X-Git-Url: http://git.maemo.org/git/?p=mardrone;a=blobdiff_plain;f=mardrone%2FARDrone_SDK_Version_1_8_20110726%2FARDroneLib%2FVP_SDK%2FVP_Stages%2Fvp_stages_io_file.h;fp=mardrone%2FARDrone_SDK_Version_1_8_20110726%2FARDroneLib%2FVP_SDK%2FVP_Stages%2Fvp_stages_io_file.h;h=2cb6128ad23bd680699a20df6a07cbca6346e509;hp=0000000000000000000000000000000000000000;hb=9ec9bc13b75d30bc45535c54a652934debfcea92;hpb=ae0a3c2dc0898400aca0dd6b439c5db8044db7b2 diff --git a/mardrone/ARDrone_SDK_Version_1_8_20110726/ARDroneLib/VP_SDK/VP_Stages/vp_stages_io_file.h b/mardrone/ARDrone_SDK_Version_1_8_20110726/ARDroneLib/VP_SDK/VP_Stages/vp_stages_io_file.h new file mode 100644 index 0000000..2cb6128 --- /dev/null +++ b/mardrone/ARDrone_SDK_Version_1_8_20110726/ARDroneLib/VP_SDK/VP_Stages/vp_stages_io_file.h @@ -0,0 +1,122 @@ +/** + * \brief VP Stages. File stage declaration + * \author Sylvain Gaeremynck + * \author Aurelien Morelle + * \author Thomas Landais + * \version 2.0 + * \date first release 16/03/2007 + * \date modification 19/03/2007 + */ + +/////////////////////////////////////////////// +// INCLUDES + +#ifndef _VP_STAGES_IO_FILE_H_ +#define _VP_STAGES_IO_FILE_H_ + + +/** + * @defgroup VP_SDK + * @{ */ + +/** + * @defgroup VP_Stages + * @{ */ + +/** + * @defgroup vp_stages_io_file input/output file stage + * @{ */ + +#include +#include + +/////////////////////////////////////////////// +// TYEPDEFS + +typedef struct _vp_stages_input_file_config_ +{ + char *name; + FILE *f; + uint32_t buffer_size; + bool_t loop; +} vp_stages_input_file_config_t; + +typedef struct _vp_stages_output_file_config_ +{ + char *name; + FILE *f; + uint32_t flush_every_nb; + +} vp_stages_output_file_config_t; + + +/////////////////////////////////////////////// +// FUNCTIONS + +/** + * @fn Open the input file stage + * @param vp_stages_input_file_config_t *cfg + * @todo A COMMENTER + Verification de l'open + * @return VP_SUCCESS + */ +C_RESULT +vp_stages_input_file_stage_open(vp_stages_input_file_config_t *cfg); + +/** + * @fn Transform the input file stage + * @param vp_stages_input_file_config_t *cfg + * @param vp_api_io_data_t *in + * @param vp_api_io_data_t *out + * @todo A COMMENTER + * @return VP_SUCCESS + */ +C_RESULT +vp_stages_input_file_stage_transform(vp_stages_input_file_config_t *cfg, vp_api_io_data_t *in, vp_api_io_data_t *out); + +/** + * @fn Close the input file stage + * @param vp_stages_input_file_config_t *cfg + * @todo A COMMENTER + * @return VP_SUCCESS + */ +C_RESULT +vp_stages_input_file_stage_close(vp_stages_input_file_config_t *cfg); + + +/** + * @fn Open the output file stage + * @param vp_stages_output_file_config_t *cfg + * @todo A COMMENTER + * @return VP_SUCCESS + */ +C_RESULT +vp_stages_output_file_stage_open(vp_stages_output_file_config_t *cfg); + +/** + * @fn Open the output file stage + * @param vp_stages_output_file_config_t *cfg + * @param vp_api_io_data_t *in + * @param vp_api_io_data_t *out + * @todo A COMMENTER + * @return VP_SUCCESS + */ +C_RESULT +vp_stages_output_file_stage_transform(vp_stages_output_file_config_t *cfg, vp_api_io_data_t *in, vp_api_io_data_t *out); + +/** + * @fn Open the output file stage + * @param vp_stages_output_file_config_t *cfg + * @todo A COMMENTER + * @return VP_SUCCESS + */ +C_RESULT +vp_stages_output_file_stage_close(vp_stages_output_file_config_t *cfg); + +// vp_stages_io_file +/** @} */ +// VP_Stages +/** @} */ +// VP_SDK +/** @} */ + +#endif // ! _VP_STAGES_IO_FILE_H_