changeset 1760:8cba5672faa4 libavformat

Replace deprecated PIX_FMT names by the newer variants.
author diego
date Wed, 07 Feb 2007 01:48:09 +0000
parents 9eaf71a70ac1
children e9bff647e326
files dc1394.c grab.c sgi.c v4l2.c x11grab.c
diffstat 5 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/dc1394.c	Tue Feb 06 19:14:16 2007 +0000
+++ b/dc1394.c	Wed Feb 07 01:48:09 2007 +0000
@@ -42,7 +42,7 @@
     int frame_size_id;
 } dc1394_frame_formats[] = {
     { 320, 240, PIX_FMT_UYVY422, MODE_320x240_YUV422 },
-    { 640, 480, PIX_FMT_UYVY411, MODE_640x480_YUV411 },
+    { 640, 480, PIX_FMT_UYYVYY411, MODE_640x480_YUV411 },
     { 640, 480, PIX_FMT_UYVY422, MODE_640x480_YUV422 },
     {   0,   0, 0, MODE_320x240_YUV422 } /* default -- gotta be the last one */
 };
--- a/grab.c	Tue Feb 06 19:14:16 2007 +0000
+++ b/grab.c	Wed Feb 07 01:48:09 2007 +0000
@@ -124,7 +124,7 @@
     if (ap->pix_fmt == PIX_FMT_YUV420P) {
         desired_palette = VIDEO_PALETTE_YUV420P;
         desired_depth = 12;
-    } else if (ap->pix_fmt == PIX_FMT_YUV422) {
+    } else if (ap->pix_fmt == PIX_FMT_YUYV422) {
         desired_palette = VIDEO_PALETTE_YUV422;
         desired_depth = 16;
     } else if (ap->pix_fmt == PIX_FMT_BGR24) {
@@ -260,7 +260,7 @@
         break;
     case VIDEO_PALETTE_YUV422:
         frame_size = width * height * 2;
-        st->codec->pix_fmt = PIX_FMT_YUV422;
+        st->codec->pix_fmt = PIX_FMT_YUYV422;
         break;
     case VIDEO_PALETTE_RGB24:
         frame_size = width * height * 3;
--- a/sgi.c	Tue Feb 06 19:14:16 2007 +0000
+++ b/sgi.c	Wed Feb 07 01:48:09 2007 +0000
@@ -101,7 +101,7 @@
     for (z = 0; z < si->zsize; z++) {
 
 #ifndef WORDS_BIGENDIAN
-        /* rgba -> bgra for rgba32 on little endian cpus */
+        /* rgba -> bgra for rgb32 on little endian cpus */
         if (si->zsize == 4 && z != 3)
             chan_offset = 2 - z;
         else
@@ -130,7 +130,7 @@
     int length = 0;
 
 #ifndef WORDS_BIGENDIAN
-    /* rgba -> bgra for rgba32 on little endian cpus */
+    /* rgba -> bgra for rgb32 on little endian cpus */
     if (pixelstride == 4 && chan_offset != 3) {
        chan_offset = 2 - chan_offset;
     }
@@ -241,7 +241,7 @@
     } else if (s->zsize == SGI_RGB) {
         info->pix_fmt = PIX_FMT_RGB24;
     } else if (s->zsize == SGI_RGBA) {
-        info->pix_fmt = PIX_FMT_RGBA32;
+        info->pix_fmt = PIX_FMT_RGB32;
     } else {
         return AVERROR_INVALIDDATA;
     }
@@ -386,7 +386,7 @@
             si->dimension = SGI_MULTI_CHAN;
             si->zsize = SGI_RGB;
             break;
-         case PIX_FMT_RGBA32:
+         case PIX_FMT_RGB32:
             si->dimension = SGI_MULTI_CHAN;
             si->zsize = SGI_RGBA;
             break;
@@ -408,7 +408,7 @@
     for (z = 0; z < si->zsize; z++) {
 
 #ifndef WORDS_BIGENDIAN
-        /* rgba -> bgra for rgba32 on little endian cpus */
+        /* rgba -> bgra for rgb32 on little endian cpus */
         if (si->zsize == 4 && z != 3)
             chan_offset = 2 - z;
         else
@@ -451,7 +451,7 @@
     "sgi,rgb,rgba,bw",
     sgi_probe,
     sgi_read,
-    (1 << PIX_FMT_GRAY8) | (1 << PIX_FMT_RGB24) | (1 << PIX_FMT_RGBA32),
+    (1 << PIX_FMT_GRAY8) | (1 << PIX_FMT_RGB24) | (1 << PIX_FMT_RGB32),
 #ifdef CONFIG_MUXERS
     sgi_write,
 #else
--- a/v4l2.c	Tue Feb 06 19:14:16 2007 +0000
+++ b/v4l2.c	Wed Feb 07 01:48:09 2007 +0000
@@ -74,7 +74,7 @@
         .v4l2_fmt = V4L2_PIX_FMT_YUV422P,
     },
     {
-        .ff_fmt = PIX_FMT_YUV422,
+        .ff_fmt = PIX_FMT_YUYV422,
         .v4l2_fmt = V4L2_PIX_FMT_YUYV,
     },
     {
@@ -99,7 +99,7 @@
     },
     /*
     {
-        .ff_fmt = PIX_FMT_RGBA32,
+        .ff_fmt = PIX_FMT_RGB32,
         .v4l2_fmt = V4L2_PIX_FMT_BGR32,
     },
     */
--- a/x11grab.c	Tue Feb 06 19:14:16 2007 +0000
+++ b/x11grab.c	Wed Feb 07 01:48:09 2007 +0000
@@ -221,7 +221,7 @@
             return AVERROR_IO;
         }
 #endif
-        input_pixfmt = PIX_FMT_RGBA32;
+        input_pixfmt = PIX_FMT_RGB32;
         break;
     default:
         av_log(s1, AV_LOG_ERROR, "image depth %i not supported ... aborting\n", image->bits_per_pixel);