From 0cb0394ad147417166b1816ec3db496673a225c5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 22 Mar 2007 05:26:09 +0000 Subject: [PATCH] handle PIX_FMT_BGR32_1; nVidia cards prefer this format --- .../src/arch/MovieTexture/MovieTexture_FFMpeg.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp b/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp index fd8ab36a7b..8316e95266 100644 --- a/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp +++ b/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp @@ -39,6 +39,19 @@ static struct AVPixelFormat_t true, PixelFormatYCbCr_YUYV422, }, + { + /* This format is really BGRA, and is affected by endianness, unlike PIX_FMT_RGB24 + * and PIX_FMT_BGR24. */ + 32, + { 0x0000FF00, + 0x00FF0000, + 0xFF000000, + 0x000000FF }, + avcodec::PIX_FMT_BGR32_1, + true, + false, + PixelFormatYCbCr_Invalid, + }, { /* This format is really ARGB, and is affected by endianness, unlike PIX_FMT_RGB24 * and PIX_FMT_BGR24. */