ffh264.h
上传用户:chinavct
上传日期:2022-06-20
资源大小:330k
文件大小:1k
- #define H264_DEC_CREATE 0 /* create decore instance; return 0 on success */
- #define H264_DEC_DECODE 1 /* decode a frame: returns number of bytes consumed >= 0 */
- #define H264_DEC_DESTROY 2 /* destroy decore instance: return 0 on success */
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct _h264_dec_create_t
- {
- void* handle;
- }h264_dec_create_t;
- typedef struct _h264_dec_frame_t
- {
- long type;
- unsigned long size; /* [in] bitstream length */
- unsigned long width;
- unsigned long height;
- unsigned long strider_Y;
- unsigned long strider_U;
- unsigned long strider_V;
- void* bitstream; /* [in] input image (read in) */
- void* output_Y;
- void* output_U;
- void* output_V;
- void* output_ARGB;
- }h264_dec_frame_t;
- extern int h264_decore(int opt, void* handle, void* param);
- #ifdef __cplusplus
- }
- #endif