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

Pierre Ynard linkfanel at yahoo.fr
Mon Dec 14 15:42:37 CET 2009


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 )

A boolean type is probably enough?

Regards,

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."



More information about the vlc-devel mailing list