libandroidplugin added
[mardrone] / mardrone / ARDrone_SDK_Version_1_8_20110726 / ARDroneLib / VP_SDK / VP_Stages / vp_stages_io_console.c
1 /**
2  *  \brief    VP Stages. Console stage declaration
3  *  \author   Sylvain Gaeremynck <sylvain.gaeremynck@parrot.fr>
4  *  \author   Aurelien Morelle <aurelien.morelle@parrot.fr>
5  *  \author   Thomas Landais <thomas.landais@parrot.fr>
6  *  \version  2.0
7  *  \date     first release 16/03/2007
8  *  \date     modification  19/03/2007
9  */
10
11 ///////////////////////////////////////////////
12 // INCLUDES
13
14 #include <VP_Stages/vp_stages_io_console.h>
15 #include <VP_Api/vp_api_error.h>
16 #include <VP_Os/vp_os_print.h>
17
18
19 C_RESULT
20 vp_stages_output_console_stage_open(void *cfg)
21 {
22   return (VP_SUCCESS);
23 }
24
25
26 C_RESULT
27 vp_stages_output_console_stage_transform(void *cfg, vp_api_io_data_t *in, vp_api_io_data_t *out)
28 {
29   out->buffers = in->buffers;
30   out->size = in->size;
31   if(in->status == VP_API_STATUS_PROCESSING)
32   {
33     int i;
34
35     for(i = 0;i < out->size;i++)
36       PRINT("%c",in->buffers[in->indexBuffer][i]);
37   }
38
39   out->status = in->status;
40
41   return (VP_SUCCESS);
42 }
43
44
45 C_RESULT
46 vp_stages_output_console_stage_close(void *cfg)
47 {
48   return (VP_SUCCESS);
49 }