X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=mardrone%2FARDrone_SDK_Version_1_8_20110726%2FARDroneLib%2FVLIB%2Fvideo_packetizer.h;fp=mardrone%2FARDrone_SDK_Version_1_8_20110726%2FARDroneLib%2FVLIB%2Fvideo_packetizer.h;h=bf8d271e894399f3c3da49f7d1e099845ee8820e;hb=9ec9bc13b75d30bc45535c54a652934debfcea92;hp=0000000000000000000000000000000000000000;hpb=ae0a3c2dc0898400aca0dd6b439c5db8044db7b2;p=mardrone diff --git a/mardrone/ARDrone_SDK_Version_1_8_20110726/ARDroneLib/VLIB/video_packetizer.h b/mardrone/ARDrone_SDK_Version_1_8_20110726/ARDroneLib/VLIB/video_packetizer.h new file mode 100644 index 0000000..bf8d271 --- /dev/null +++ b/mardrone/ARDrone_SDK_Version_1_8_20110726/ARDroneLib/VLIB/video_packetizer.h @@ -0,0 +1,39 @@ +#ifndef _VIDEO_PACKETIZER_H_ +#define _VIDEO_PACKETIZER_H_ + +#include +#include + +C_RESULT video_packetizer_init( video_controller_t* controller ); +C_RESULT video_packetizer_close( video_controller_t* controller ); + + +/// Write to a stream + +// Fills a stream with length bits from code +void video_write_data( video_stream_t* const stream, uint32_t code, int32_t length ); + +// Updates stream as its length attributes is a multiple of 8 +// Updates is done by adding bits +C_RESULT video_stuff8( video_stream_t* const stream ); + + +/// Read from a stream + +// Takes length bit from stream and updates it +C_RESULT video_read_data( video_stream_t* const stream, uint32_t* code, int32_t length ); + +// Takes length bit from stream without updating it +C_RESULT video_peek_data( const video_stream_t* const stream, uint32_t* code, int32_t length ); + +// Updates stream as its length attributes is a multiple of 8 +// Updates is done by skipping bits +C_RESULT video_align8( video_stream_t* const stream ); + + +/// Copy a stream + +// Flush content of stream in into stream out +C_RESULT video_cache_stream( video_controller_t* controller, video_stream_t* in ); + +#endif // _VIDEO_PACKETIZER_H_