mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
gst/alpha/gstalphacolor.c: Detect RGBA/BGRA correctly on little endian systems.
Original commit message from CVS: Patch by: Arek Korbik <arkadini@gmail.com> * gst/alpha/gstalphacolor.c: (gst_alpha_color_set_caps): Detect RGBA/BGRA correctly on little endian systems.
This commit is contained in:
parent
a597c1d4e3
commit
d04c0bb4c4
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-11-14 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
|
Patch by: Arek Korbik <arkadini@gmail.com>
|
||||||
|
|
||||||
|
* gst/alpha/gstalphacolor.c: (gst_alpha_color_set_caps):
|
||||||
|
Detect RGBA/BGRA correctly on little endian systems.
|
||||||
|
|
||||||
2007-11-13 Tim-Philipp Müller <tim at centricular dot net>
|
2007-11-13 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format):
|
* sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format):
|
||||||
|
|
|
@ -203,7 +203,7 @@ gst_alpha_color_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
|
||||||
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
||||||
if (red_mask != 0x000000ff)
|
if (red_mask != 0x000000ff)
|
||||||
#else
|
#else
|
||||||
if (red_mask != 0x00ff0000)
|
if (red_mask != 0xff000000)
|
||||||
#endif
|
#endif
|
||||||
alpha->in_rgba = FALSE;
|
alpha->in_rgba = FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue