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_o_sdl.h;fp=mardrone%2FARDrone_SDK_Version_1_8_20110726%2FARDroneLib%2FVP_SDK%2FVP_Stages%2Fvp_stages_o_sdl.h;h=67ac5d5e354ac3ecdd7314d6d24789650af4142b;hp=0000000000000000000000000000000000000000;hb=9ec9bc13b75d30bc45535c54a652934debfcea92;hpb=ae0a3c2dc0898400aca0dd6b439c5db8044db7b2 diff --git a/mardrone/ARDrone_SDK_Version_1_8_20110726/ARDroneLib/VP_SDK/VP_Stages/vp_stages_o_sdl.h b/mardrone/ARDrone_SDK_Version_1_8_20110726/ARDroneLib/VP_SDK/VP_Stages/vp_stages_o_sdl.h new file mode 100644 index 0000000..67ac5d5 --- /dev/null +++ b/mardrone/ARDrone_SDK_Version_1_8_20110726/ARDroneLib/VP_SDK/VP_Stages/vp_stages_o_sdl.h @@ -0,0 +1,156 @@ +/** + * \brief VP Stages. Output SDL 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 + */ + +#ifndef _VP_STAGES_O_SDL_H_ +#define _VP_STAGES_O_SDL_H_ + +/** + * @defgroup VP_SDK + * @{ */ + +/** + * @defgroup VP_Stages + * @{ */ + +/** + * @defgroup vp_stages_o_sdl output sdl stage + * @{ */ + +#if !defined(__NDS__) + +/////////////////////////////////////////////// +// INCLUDES + +#include + +#include + +#if defined(_CK4215_) && defined(WIN32) +#include +#endif + +/////////////////////////////////////////////// +// TYEPDEFS + +typedef struct _vp_stages_output_sdl_config_ +{ + uint32_t width; // in + uint32_t height; // in + uint32_t bpp; // in + +#if defined(_CK4215_) && defined(WIN32) + uint32_t window_pos_x; // in + uint32_t window_pos_y; // in +#endif + + uint32_t window_width; // in + uint32_t window_height; // in + + uint32_t pic_width; // in + uint32_t pic_height; // in + + uint32_t y_size; // in + uint32_t c_size; // in + + // private + + SDL_Surface *surface; + SDL_Overlay *overlay; + + uint32_t received; + +} vp_stages_output_sdl_config_t; + + +/////////////////////////////////////////////// +// FUNCTIONS + + +/** + * @fn vp_stages_buffer_to_overlay + * @param SDL_Overlay *overlay + * @param output_sdl_config_t *cfg + * @param vp_api_io_data_t *data + * @todo A COMMENTER + * @return VOID + */ +/* +void +vp_stages_buffer_to_overlay(SDL_Overlay *overlay, vp_stages_output_sdl_config_t *cfg, vp_api_io_data_t *data); +*/ +/** + * @fn vp_stages_display_frame + * @param output_sdl_config_t *cfg + * @param vp_api_io_data_t *dat + * @todo A COMMENTER + * @return 0 + */ +/* +int +vp_stages_display_frame(vp_stages_output_sdl_config_t *cfg, vp_api_io_data_t *data); +*/ + +#ifdef __cplusplus +extern "C" +{ +#endif + +#if defined(_CK4215_) && defined(WIN32) +void +vp_stages_init_display(void * handle); + +void * +vp_stages_get_child_window( void ); + +#endif +/** + * @fn Open the output sdl stage + * @param vp_stages_output_sdl_config_t *cfg + * @todo A COMMENTER + * @return VP_SUCCESS or VP_FAILURE + */ +C_RESULT +vp_stages_output_sdl_stage_open(vp_stages_output_sdl_config_t *cfg); + +/** + * @fn Open the output sdl stage + * @param vp_stages_output_sdl_config_t *cfg + * @param vp_api_io_data_t *in + * @param vp_api_io_data_t *out + * @todo A COMMENTER + * @return VP_SUCCESS or VP_FAILURE + */ +C_RESULT +vp_stages_output_sdl_stage_transform(vp_stages_output_sdl_config_t *cfg, vp_api_io_data_t *in, vp_api_io_data_t *out); + +/** + * @fn Open the output sdl stage + * @param vp_stages_output_sdl_config_t *cfg + * @todo A COMMENTER + * @return VP_SUCCESS or VP_FAILURE + */ +C_RESULT +vp_stages_output_sdl_stage_close(vp_stages_output_sdl_config_t *cfg); + + +#endif // ! __NDS__ + +// vp_stages_o_sdl +/** @} */ +// VP_Stages +/** @} */ +// VP_SDK +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif // _VP_STAGES_O_SDL_H_