9 #define FFMPEG_LATENCY -9
14 FFMPEG(Asset
*asset_in
);
16 int init(char *codec_string
);
17 int decode(uint8_t *data
, long data_size
, VFrame
*frame_out
);
19 static int convert_cmodel(AVPicture
*picture_in
, PixelFormat pix_fmt
,
20 int width_in
, int height_in
,
22 static int convert_cmodel(VFrame
*frame_in
, VFrame
*frame_out
);
24 static int convert_cmodel_transfer(VFrame
*frame_in
,VFrame
*frame_out
);
25 static int init_picture_from_frame(AVPicture
*picture
, VFrame
*frame
);
27 static CodecID
codec_id(char *codec_string
);
30 static PixelFormat
color_model_to_pix_fmt(int color_model
);
31 static int pix_fmt_to_color_model(PixelFormat pix_fmt
);
36 AVCodecContext
*context
;