changeset 898:9087f43dbcd2 libavutil

Add PIX_FMT_Y400A, 8bit gray, 8bit alpha
author andoma
date Wed, 14 Apr 2010 20:15:19 +0000
parents 37d97bd9f84d
children 0795a743bda1
files pixdesc.c pixfmt.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pixdesc.c	Fri Apr 09 23:29:47 2010 +0000
+++ b/pixdesc.c	Wed Apr 14 20:15:19 2010 +0000
@@ -779,6 +779,14 @@
         .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)
--- a/pixfmt.h	Fri Apr 09 23:29:47 2010 +0000
+++ b/pixfmt.h	Wed Apr 14 20:15:19 2010 +0000
@@ -132,6 +132,7 @@
     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
 };