Commit b6ee0fa3 authored by Jan Schmidt's avatar Jan Schmidt

gst/ffmpegcolorspace/gstffmpegcodecmap.c: Fix the r_mask test for RGBA32 on little-endian.

Original commit message from CVS:
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_caps_to_pixfmt):
Fix the r_mask test for RGBA32 on little-endian.
Fix a stupid typo that would have obviously broken
compilation on big-endian, if anyone was testing.
parent 3bac564c
2007-07-13 Jan Schmidt <thaytan@mad.scientist.com>
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_caps_to_pixfmt):
Fix the r_mask test for RGBA32 on little-endian.
Fix a stupid typo that would have obviously broken
compilation on big-endian, if anyone was testing.
2007-07-12 Wim Taymans <wim.taymans@gmail.com>
* gst/videotestsrc/videotestsrc.c: (paint_hline_AYUV),
......@@ -637,7 +637,7 @@ gst_ffmpeg_caps_to_pixfmt (const GstCaps * caps,
#else
if (rmask == 0x00ff0000)
context->pix_fmt = PIX_FMT_BGRA32;
else if (rmask == 0x00ff0000)
else if (rmask == 0x0000ff00)
context->pix_fmt = PIX_FMT_RGBA32;
else if (rmask == 0x000000ff)
context->pix_fmt = PIX_FMT_ARGB32;
......@@ -648,12 +648,12 @@ gst_ffmpeg_caps_to_pixfmt (const GstCaps * caps,
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
if (rmask == 0x00ff0000)
context->pix_fmt = PIX_FMT_RGB32;
elseif (rmask == 0x0000ff00)
context->pix_fmt = PIX_FMT_BGR32;
elseif (rmask == 0xff000000)
context->pix_fmt = PIX_FMT_xRGB32;
else if (rmask == 0x0000ff00)
context->pix_fmt = PIX_FMT_BGR32;
else if (rmask == 0xff000000)
context->pix_fmt = PIX_FMT_xRGB32;
else // if (rmask == 0x000000ff)
context->pix_fmt = PIX_FMT_BGRx32;
context->pix_fmt = PIX_FMT_BGRx32;
#else
if (rmask == 0x0000ff00)
context->pix_fmt = PIX_FMT_RGB32;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment