# HG changeset patch # User Sam Lantinga # Date 1228088553 0 # Node ID 7af2419ad5b03576d66631c887c9dbec4dfe6025 # Parent 27cb878a278e80091b315c789c62bcc1a6d660a2 Fixed the list of supported YUV formats diff -r 27cb878a278e -r 7af2419ad5b0 src/video/SDL_renderer_sw.c --- 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}, diff -r 27cb878a278e -r 7af2419ad5b0 src/video/win32/SDL_d3drender.c --- 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} }; diff -r 27cb878a278e -r 7af2419ad5b0 src/video/win32/SDL_gdirender.c --- 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}, diff -r 27cb878a278e -r 7af2419ad5b0 src/video/x11/SDL_x11render.c --- 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;