[gst-devel] RGB caps

Julien MOUTTE jmoutte at electronic-group.com
Tue Dec 2 11:25:01 CET 2003


Should i revert Company's changes in ximagesink? All those changes with
disagreements behind might make the code bloated in the end...

On Tue, 2003-11-25 at 22:57, David Schleef wrote:
> On Tue, Nov 25, 2003 at 04:20:16PM +0100, in7y118 at public.uni-hamburg.de wrote:
> > While fixing ffcolorspace and ximagesink to work with RGB caps on LE and BE 
> > machines, I did the following things/changes and am going to update 
> > docs/random/mimetypes:
> > - drop endianness. It's always G_BIG_ENDIAN.
> > - drop depth. It's always depth == bpp.
> > - masks are always host-endian. To get the red part of a pixel, use code like 
> > this: red_part = pixel & GINT_TO_BE (red_mask);
> 
> 1) 16 bit formats truly do have a endianness, since the green bits are
> split between the bytes.
> 
> 2) depth is not the same as bpp.
> 
> 3) Changing masks to be host-endian goes against the second statement
> below.
> 
> > Reasons for this:
> > - There should never be the possibility to specify the same format with 
> > different caps. (endianness and depth allowed this with adapting the masks.)
> > - gst_caps_to_string must result in the same string for the same format on any 
> > machine. Storing masks as real masks would break that.
> 
> The current system already guarantees both of these.
> 
> I have no problems with changing to a new standard for video/x-raw-rgb,
> but the standard needs to be well-thought out and documented.
> 
> 
> 
> dave...
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
-- 
Julien MOUTTE - jmoutte at electronic-group.com
C.T.O.
_________________________________________________________

ELECTRONIC GROUP INTERACTIVE - www.electronic-group.com
World Trade Center, Moll de BARCELONA
Edificio Norte 4 Planta
08039 BARCELONA SPAIN
Tel : +34 93600 23 23 Fax : +34 93600 23 10
_________________________________________________________






More information about the gstreamer-devel mailing list