[vlc-devel] [PATCH 5/5] direct3d11: pass the Whitepoint shifts as a Matrix

Steinar H. Gunderson sgunderson at bigfoot.com
Mon Mar 6 18:11:42 CET 2017


On Mon, Mar 06, 2017 at 05:57:53PM +0100, Steve Lhomme wrote:
> +#define CbCr_ACHROMACY 0.5f /* 128 on 8 bits and 512 on 10 bits, etc */
> +        colorspace.WhitePoint[1*4 + 3] = -CbCr_ACHROMACY;
> +        colorspace.WhitePoint[2*4 + 3] = -CbCr_ACHROMACY;

Isn't 0.5f rather 127.5 on a GPU?

/* Steinar */
-- 
Homepage: https://www.sesse.net/


More information about the vlc-devel mailing list