00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AVUTIL_PIXFMT_H
00022 #define AVUTIL_PIXFMT_H
00023
00058 enum PixelFormat {
00059 PIX_FMT_NONE= -1,
00060 PIX_FMT_YUV420P,
00061 PIX_FMT_YUYV422,
00062 PIX_FMT_RGB24,
00063 PIX_FMT_BGR24,
00064 PIX_FMT_YUV422P,
00065 PIX_FMT_YUV444P,
00066 PIX_FMT_RGB32,
00067 PIX_FMT_YUV410P,
00068 PIX_FMT_YUV411P,
00069 PIX_FMT_RGB565,
00070 PIX_FMT_RGB555,
00071 PIX_FMT_GRAY8,
00072 PIX_FMT_MONOWHITE,
00073 PIX_FMT_MONOBLACK,
00074 PIX_FMT_PAL8,
00075 PIX_FMT_YUVJ420P,
00076 PIX_FMT_YUVJ422P,
00077 PIX_FMT_YUVJ444P,
00078 PIX_FMT_XVMC_MPEG2_MC,
00079 PIX_FMT_XVMC_MPEG2_IDCT,
00080 PIX_FMT_UYVY422,
00081 PIX_FMT_UYYVYY411,
00082 PIX_FMT_BGR32,
00083 PIX_FMT_BGR565,
00084 PIX_FMT_BGR555,
00085 PIX_FMT_BGR8,
00086 PIX_FMT_BGR4,
00087 PIX_FMT_BGR4_BYTE,
00088 PIX_FMT_RGB8,
00089 PIX_FMT_RGB4,
00090 PIX_FMT_RGB4_BYTE,
00091 PIX_FMT_NV12,
00092 PIX_FMT_NV21,
00093
00094 PIX_FMT_RGB32_1,
00095 PIX_FMT_BGR32_1,
00096
00097 PIX_FMT_GRAY16BE,
00098 PIX_FMT_GRAY16LE,
00099 PIX_FMT_YUV440P,
00100 PIX_FMT_YUVJ440P,
00101 PIX_FMT_YUVA420P,
00102 PIX_FMT_VDPAU_H264,
00103 PIX_FMT_VDPAU_MPEG1,
00104 PIX_FMT_VDPAU_MPEG2,
00105 PIX_FMT_VDPAU_WMV3,
00106 PIX_FMT_VDPAU_VC1,
00107 PIX_FMT_RGB48BE,
00108 PIX_FMT_RGB48LE,
00109 PIX_FMT_VAAPI_MOCO,
00110 PIX_FMT_VAAPI_IDCT,
00111 PIX_FMT_VAAPI_VLD,
00112 PIX_FMT_NB,
00113 };
00114
00115 #ifdef WORDS_BIGENDIAN
00116 #define PIX_FMT_RGBA PIX_FMT_RGB32_1
00117 #define PIX_FMT_BGRA PIX_FMT_BGR32_1
00118 #define PIX_FMT_ARGB PIX_FMT_RGB32
00119 #define PIX_FMT_ABGR PIX_FMT_BGR32
00120 #define PIX_FMT_GRAY16 PIX_FMT_GRAY16BE
00121 #define PIX_FMT_RGB48 PIX_FMT_RGB48BE
00122 #else
00123 #define PIX_FMT_RGBA PIX_FMT_BGR32
00124 #define PIX_FMT_BGRA PIX_FMT_RGB32
00125 #define PIX_FMT_ARGB PIX_FMT_BGR32_1
00126 #define PIX_FMT_ABGR PIX_FMT_RGB32_1
00127 #define PIX_FMT_GRAY16 PIX_FMT_GRAY16LE
00128 #define PIX_FMT_RGB48 PIX_FMT_RGB48LE
00129 #endif
00130
00131 #if LIBAVUTIL_VERSION_INT < (50<<16)
00132 #define PIX_FMT_UYVY411 PIX_FMT_UYYVYY411
00133 #define PIX_FMT_RGBA32 PIX_FMT_RGB32
00134 #define PIX_FMT_YUV422 PIX_FMT_YUYV422
00135 #endif
00136
00137 #endif