changeset 2811:7af2419ad5b0

Fixed the list of supported YUV formats
author Sam Lantinga <slouken@libsdl.org>
date Sun, 30 Nov 2008 23:42:33 +0000
parents 27cb878a278e
children dc39c0b02f12
files src/video/SDL_renderer_sw.c src/video/win32/SDL_d3drender.c src/video/win32/SDL_gdirender.c src/video/x11/SDL_x11render.c
diffstat 4 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_renderer_sw.c	Sun Nov 30 21:58:23 2008 +0000
+++ b/src/video/SDL_renderer_sw.c	Sun Nov 30 23:42:33 2008 +0000
@@ -81,7 +81,7 @@
       SDL_TEXTUREBLENDMODE_BLEND | SDL_TEXTUREBLENDMODE_ADD |
       SDL_TEXTUREBLENDMODE_MOD),
      (SDL_TEXTURESCALEMODE_NONE | SDL_TEXTURESCALEMODE_FAST),
-     12,
+     14,
      {
       SDL_PIXELFORMAT_INDEX8,
       SDL_PIXELFORMAT_RGB555,
@@ -92,6 +92,8 @@
       SDL_PIXELFORMAT_RGBA8888,
       SDL_PIXELFORMAT_ABGR8888,
       SDL_PIXELFORMAT_BGRA8888,
+      SDL_PIXELFORMAT_YV12,
+      SDL_PIXELFORMAT_IYUV,
       SDL_PIXELFORMAT_YUY2,
       SDL_PIXELFORMAT_UYVY,
       SDL_PIXELFORMAT_YVYU},
--- a/src/video/win32/SDL_d3drender.c	Sun Nov 30 21:58:23 2008 +0000
+++ b/src/video/win32/SDL_d3drender.c	Sun Nov 30 23:42:33 2008 +0000
@@ -87,7 +87,7 @@
       SDL_TEXTUREBLENDMODE_MOD),
      (SDL_TEXTURESCALEMODE_NONE | SDL_TEXTURESCALEMODE_FAST |
       SDL_TEXTURESCALEMODE_SLOW | SDL_TEXTURESCALEMODE_BEST),
-     13,
+     12,
      {
       SDL_PIXELFORMAT_INDEX8,
       SDL_PIXELFORMAT_RGB332,
@@ -100,8 +100,7 @@
       SDL_PIXELFORMAT_ARGB8888,
       SDL_PIXELFORMAT_ARGB2101010,
       SDL_PIXELFORMAT_YUY2,
-      SDL_PIXELFORMAT_UYVY,
-      SDL_PIXELFORMAT_YVYU},
+      SDL_PIXELFORMAT_UYVY},
      0,
      0}
 };
--- a/src/video/win32/SDL_gdirender.c	Sun Nov 30 21:58:23 2008 +0000
+++ b/src/video/win32/SDL_gdirender.c	Sun Nov 30 23:42:33 2008 +0000
@@ -76,7 +76,7 @@
      (SDL_TEXTUREBLENDMODE_NONE | SDL_TEXTUREBLENDMODE_MASK |
       SDL_TEXTUREBLENDMODE_BLEND),
      (SDL_TEXTURESCALEMODE_NONE | SDL_TEXTURESCALEMODE_FAST),
-     12,
+     14,
      {
       SDL_PIXELFORMAT_INDEX8,
       SDL_PIXELFORMAT_RGB555,
@@ -87,6 +87,8 @@
       SDL_PIXELFORMAT_RGBA8888,
       SDL_PIXELFORMAT_ABGR8888,
       SDL_PIXELFORMAT_BGRA8888,
+      SDL_PIXELFORMAT_YV12,
+      SDL_PIXELFORMAT_IYUV,
       SDL_PIXELFORMAT_YUY2,
       SDL_PIXELFORMAT_UYVY,
       SDL_PIXELFORMAT_YVYU},
--- a/src/video/x11/SDL_x11render.c	Sun Nov 30 21:58:23 2008 +0000
+++ b/src/video/x11/SDL_x11render.c	Sun Nov 30 23:42:33 2008 +0000
@@ -192,6 +192,8 @@
         if (info->num_texture_formats == 0) {
             return;
         }
+        info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_YV12;
+        info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_IYUV;
         info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_YUY2;
         info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_UYVY;
         info->texture_formats[info->num_texture_formats++] = SDL_PIXELFORMAT_YVYU;