mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 10:42:22 +00:00
gst/ffmpegcolorspace/gstffmpegcodecmap.c: Fix BGRA32 caps (#164209).
Original commit message from CVS: Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> * gst/ffmpegcolorspace/gstffmpegcodecmap.c: (gst_ffmpeg_pixfmt_to_caps): Fix BGRA32 caps (#164209).
This commit is contained in:
parent
d6f07e9e7c
commit
27f04b405e
2 changed files with 15 additions and 7 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2005-01-17 Gergely Nagy <algernon@bonehunter.rulez.org>
|
||||||
|
|
||||||
|
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
|
||||||
|
(gst_ffmpeg_pixfmt_to_caps):
|
||||||
|
Fix BGRA32 caps (#164209).
|
||||||
|
|
||||||
2005-01-17 Gergely Nagy <algernon@bonehunter.rulez.org>
|
2005-01-17 Gergely Nagy <algernon@bonehunter.rulez.org>
|
||||||
|
|
||||||
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
|
@ -196,15 +196,15 @@ gst_ffmpeg_pixfmt_to_caps (enum PixelFormat pix_fmt, AVCodecContext * context)
|
||||||
depth = 32;
|
depth = 32;
|
||||||
endianness = G_BIG_ENDIAN;
|
endianness = G_BIG_ENDIAN;
|
||||||
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
||||||
r_mask = 0xff000000;
|
r_mask = 0x00ff0000;
|
||||||
g_mask = 0x00ff0000;
|
|
||||||
b_mask = 0x0000ff00;
|
|
||||||
a_mask = 0x000000ff;
|
|
||||||
#else
|
|
||||||
r_mask = 0x000000ff;
|
|
||||||
g_mask = 0x0000ff00;
|
g_mask = 0x0000ff00;
|
||||||
b_mask = 0x00ff0000;
|
b_mask = 0x000000ff;
|
||||||
a_mask = 0xff000000;
|
a_mask = 0xff000000;
|
||||||
|
#else
|
||||||
|
r_mask = 0x0000ff00;
|
||||||
|
g_mask = 0x00ff0000;
|
||||||
|
b_mask = 0xff000000;
|
||||||
|
a_mask = 0x000000ff;
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case PIX_FMT_YUV410P:
|
case PIX_FMT_YUV410P:
|
||||||
|
|
Loading…
Reference in a new issue