[FFmpeg-devel] [PATCH] pixdesc: remove PIX_FMT_FLAG flag from pixel formats which are *not* paletted

Stefano Sabatini stefano.sabatini-lala at poste.it
Thu Jul 28 13:27:31 CEST 2011


The flag was required for an hack in libswscale. Since now libswscale
distinguishes between formats which store palette in the image, and
formats which use it internally in libswscale, the flag is no longer
required.

Simplify.
---
 libavutil/pixdesc.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index 8a19be1..d815913 100644
--- a/libavutil/pixdesc.c
+++ b/libavutil/pixdesc.c
@@ -212,7 +212,6 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
         .comp = {
             {0,0,1,0,7},        /* Y */
         },
-        .flags = PIX_FMT_PAL,
     },
     [PIX_FMT_MONOWHITE] = {
         .name = "monow",
@@ -317,7 +316,6 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
             {0,0,1,3,2},        /* G */
             {0,0,1,0,2},        /* R */
         },
-        .flags = PIX_FMT_PAL,
     },
     [PIX_FMT_BGR4] = {
         .name = "bgr4",
@@ -341,7 +339,6 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
             {0,0,1,1,1},        /* G */
             {0,0,1,0,0},        /* R */
         },
-        .flags = PIX_FMT_PAL,
     },
     [PIX_FMT_RGB8] = {
         .name = "rgb8",
@@ -353,7 +350,6 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
             {0,0,1,3,2},        /* G */
             {0,0,1,0,2},        /* B */
         },
-        .flags = PIX_FMT_PAL,
     },
     [PIX_FMT_RGB4] = {
         .name = "rgb4",
@@ -377,7 +373,6 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
             {0,0,1,1,1},        /* G */
             {0,0,1,0,0},        /* B */
         },
-        .flags = PIX_FMT_PAL,
     },
     [PIX_FMT_NV12] = {
         .name = "nv12",
-- 
1.7.2.5



More information about the ffmpeg-devel mailing list