1 #ifdef USE_LIBAVUTIL_SO
2 #include <ffmpeg/avutil.h>
6 #include "img_format.h"
8 enum PixelFormat
imgfmt2pixfmt(int fmt
)
16 return PIX_FMT_BGR565
;
18 return PIX_FMT_BGR555
;
25 return PIX_FMT_MONOBLACK
;
27 return PIX_FMT_RGB4_BYTE
;
29 return PIX_FMT_BGR4_BYTE
;
35 return PIX_FMT_RGB565
;
37 return PIX_FMT_RGB555
;
43 return PIX_FMT_YUYV422
;
45 return PIX_FMT_UYVY422
;
55 return PIX_FMT_YUV410P
;
58 return PIX_FMT_YUV420P
;
60 return PIX_FMT_YUV411P
;
62 return PIX_FMT_YUV422P
;
64 return PIX_FMT_YUV444P
;
66 fprintf(stderr
, "Unsupported format %s\n", vo_format_name(fmt
));