[vlc-devel] [PATCH] Add Endianess Option in vmem.c

Albrecht Lohoefener lohoefat at iis.fraunhofer.de
Mon Dec 14 15:59:35 CET 2009


Pierre Ynard schrieb:
> Hello,
> 
>> this patch add an endianess option to vmem.c
>> It solves the problem, that vmem.c deliver only the frame in the BGR 
>> format. This happens when I readout the frame as four bytes value and 
>> not as one 32 bit integer value.
>> The easiest way to fix this is to turn the masks in vmem.c
> 
> I use a similar hack on my smartphone application so that it gets the
> colors right.
> 
> Please don't use tabs in VLC code, use 4 white spaces instead
> (http://wiki.videolan.org/Code_Conventions).
> 
>> +	add_integer("vmem-endianess", 0, NULL, T_ENDIANESS,
>> LT_ENDIANESS, false )
> 
ok, sorry.
Next time I will be better ;-)

> A boolean type is probably enough?

yes that's right, you can change the data type.

Regards, Albrecht

-- 
Albrecht Lohoefener
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-0
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail   lohoefat at iis.fraunhofer.de
Internet www.iis.fraunhofer.de



More information about the vlc-devel mailing list