Mercurial > mplayer.hg
view fmt-conversion.h @ 22772:d2469c37ee29
r22547: fix up some longer than 80 char lines , and use suggestion from Diego.
r22570: dont start newline with a space and readd subdirectory
r22718: add new audio and video codecs to libavcodec list
r22748: add png and gif encoders, how to use them with mencoder is another question
r22749: split sonic into sonic/sonicls and wma into wmav1/wmav2
r22750: add rest of lavc encoders to list (vcr1, cljr, jpegls, ffvhuff, msmpeg4v1)
r22751: gsm requires libgsm so remove it
r22752: aiff isnt there as well, TEST FIRST, THEN DOCUMENT COMPN!
r22753: ok so cljr , vcr1 and msmpegv1 dont actually work... removed
r22679: Some more details for the mga_vid section taken from drivers/README.
r22686: tdfx_vid compilation has been simplified.
r22695: Add a link to Attila's mga_vid port to Linux 2.6.x.
r22704: 'make install' now takes care of most manual installation steps for *_vid.o.
author | voroshil |
---|---|
date | Sat, 24 Mar 2007 03:28:32 +0000 |
parents | bf1fbe97cc40 |
children | 5e3665b6213e |
line wrap: on
line source
#ifdef USE_LIBAVUTIL_SO #include <ffmpeg/avutil.h> #else #include "avutil.h" #endif #include "img_format.h" enum PixelFormat imgfmt2pixfmt(int fmt) { switch (fmt) { case IMGFMT_BGR32: return PIX_FMT_RGB32; case IMGFMT_BGR24: return PIX_FMT_BGR24; case IMGFMT_BGR16: return PIX_FMT_BGR565; case IMGFMT_BGR15: return PIX_FMT_BGR555; case IMGFMT_BGR8: return PIX_FMT_BGR8; case IMGFMT_BGR4: return PIX_FMT_BGR4; case IMGFMT_BGR1: case IMGFMT_RGB1: return PIX_FMT_MONOBLACK; case IMGFMT_RG4B: return PIX_FMT_RGB4_BYTE; case IMGFMT_BG4B: return PIX_FMT_BGR4_BYTE; case IMGFMT_RGB32: return PIX_FMT_BGR32; case IMGFMT_RGB24: return PIX_FMT_RGB24; case IMGFMT_RGB16: return PIX_FMT_RGB565; case IMGFMT_RGB15: return PIX_FMT_RGB555; case IMGFMT_RGB8: return PIX_FMT_RGB8; case IMGFMT_RGB4: return PIX_FMT_RGB4; case IMGFMT_YUY2: return PIX_FMT_YUYV422; case IMGFMT_UYVY: return PIX_FMT_UYVY422; case IMGFMT_NV12: return PIX_FMT_NV12; case IMGFMT_NV21: return PIX_FMT_NV21; case IMGFMT_Y800: case IMGFMT_Y8: return PIX_FMT_GRAY8; case IMGFMT_IF09: case IMGFMT_YVU9: return PIX_FMT_YUV410P; case IMGFMT_I420: case IMGFMT_YV12: return PIX_FMT_YUV420P; case IMGFMT_411P: return PIX_FMT_YUV411P; case IMGFMT_422P: return PIX_FMT_YUV422P; case IMGFMT_444P: return PIX_FMT_YUV444P; default: fprintf(stderr, "Unsupported format %s\n", vo_format_name(fmt)); } return PIX_FMT_NONE; }