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

Steve Lhomme robux4 at gmail.com
Tue Mar 7 13:12:39 CET 2017


On Mon, Mar 6, 2017 at 6:11 PM, Steinar H. Gunderson
<sgunderson at bigfoot.com> wrote:
> 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?

I suppose it depends if you use asbolute values or not. In D3D11 we
use xxx_UNORM for the swapchain meaning it's normalized between 0 and
1 regardless of the original bit depth.

> /* Steinar */
> --
> Homepage: https://www.sesse.net/
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list