2 #include "img_format.h"
4 enum PixelFormat
imgfmt2pixfmt(int fmt
)
12 return PIX_FMT_BGR565
;
14 return PIX_FMT_BGR555
;
21 return PIX_FMT_MONOBLACK
;
23 return PIX_FMT_RGB4_BYTE
;
25 return PIX_FMT_BGR4_BYTE
;
31 return PIX_FMT_RGB565
;
33 return PIX_FMT_RGB555
;
39 return PIX_FMT_YUYV422
;
41 return PIX_FMT_UYVY422
;
51 return PIX_FMT_YUV410P
;
54 return PIX_FMT_YUV420P
;
56 return PIX_FMT_YUV411P
;
58 return PIX_FMT_YUV422P
;
60 return PIX_FMT_YUV444P
;
62 fprintf(stderr
, "Unsupported format %s\n", vo_format_name(fmt
));