[gstreamer-bugs] [Bug 620412] [PATCH] Incomplete support for 15 and 16 bit RGB and BGR formats

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sun Jun 6 16:25:04 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=620412
  GStreamer | gst-plugins-base | git

martin.bisson changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin.bisson at gmail.com

--- Comment #3 from martin.bisson at gmail.com 2010-06-06 23:25:02 UTC ---
That is not the approach used in ffmpegcolorspace. For RGB555, it does:

((uint16_t *)(d))[0] = ((r >> 3) << 10) | ((g >> 3) << 5) | (b >> 3) | ((a <<
8) & 0x8000);

For RGB565, it does:

((uint16_t *)(d))[0] = ((r >> 3) << 11) | ((g >> 2) << 5) | (b >> 3);

Should this be fixed to use something such as this GUINT16_TO_BE?

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list