[FFmpeg-cvslog] r22881 - in trunk: libavcodec/imgconvert.c libavutil/pixdesc.c libavutil/pixfmt.h
andoma
subversion
Wed Apr 14 22:15:19 CEST 2010
Author: andoma
Date: Wed Apr 14 22:15:19 2010
New Revision: 22881
Log:
Add PIX_FMT_Y400A, 8bit gray, 8bit alpha
Modified:
trunk/libavcodec/imgconvert.c
trunk/libavutil/pixdesc.c
trunk/libavutil/pixfmt.h
Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c Wed Apr 14 01:41:46 2010 (r22880)
+++ trunk/libavcodec/imgconvert.c Wed Apr 14 22:15:19 2010 (r22881)
@@ -602,6 +602,7 @@ int ff_fill_pointer(AVPicture *picture,
case PIX_FMT_BGR4:
case PIX_FMT_MONOWHITE:
case PIX_FMT_MONOBLACK:
+ case PIX_FMT_Y400A:
picture->data[0] = ptr;
picture->data[1] = NULL;
picture->data[2] = NULL;
Modified: trunk/libavutil/pixdesc.c
==============================================================================
--- trunk/libavutil/pixdesc.c Wed Apr 14 01:41:46 2010 (r22880)
+++ trunk/libavutil/pixdesc.c Wed Apr 14 22:15:19 2010 (r22881)
@@ -779,6 +779,14 @@ const AVPixFmtDescriptor av_pix_fmt_desc
.log2_chroma_h = 1,
.flags = PIX_FMT_HWACCEL,
},
+ [PIX_FMT_Y400A] = {
+ .name = "y400a",
+ .nb_components= 2,
+ .comp = {
+ {0,1,1,0,7}, /* Y */
+ {0,1,2,0,7}, /* A */
+ },
+ },
};
static enum PixelFormat get_pix_fmt_internal(const char *name)
Modified: trunk/libavutil/pixfmt.h
==============================================================================
--- trunk/libavutil/pixfmt.h Wed Apr 14 01:41:46 2010 (r22880)
+++ trunk/libavutil/pixfmt.h Wed Apr 14 22:15:19 2010 (r22881)
@@ -132,6 +132,7 @@ enum PixelFormat {
PIX_FMT_RGB444LE, ///< packed RGB 4:4:4, 16bpp, (msb)4A 4R 4G 4B(lsb), little-endian, most significant bits to 0
PIX_FMT_BGR444BE, ///< packed BGR 4:4:4, 16bpp, (msb)4A 4B 4G 4R(lsb), big-endian, most significant bits to 1
PIX_FMT_BGR444LE, ///< packed BGR 4:4:4, 16bpp, (msb)4A 4B 4G 4R(lsb), little-endian, most significant bits to 1
+ PIX_FMT_Y400A, ///< 8bit gray, 8bit alpha
PIX_FMT_NB, ///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions
};
More information about the ffmpeg-cvslog
mailing list