1 #ifndef MPLAYER_FMT_CONVERSION_H
2 #define MPLAYER_FMT_CONVERSION_H
5 #include "libavutil/avutil.h"
6 #include "libmpcodecs/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
;
59 return PIX_FMT_YUV420P
;
61 return PIX_FMT_YUV411P
;
63 return PIX_FMT_YUV422P
;
65 return PIX_FMT_YUV444P
;
67 fprintf(stderr
, "Unsupported format %s\n", vo_format_name(fmt
));
73 #endif /* MPLAYER_FMT_CONVERSION_H */