[Mesa-dev] [PATCH] state_trackers/vdpau: Implement VdpGenerateCSCMatrix partially

Christian König deathsimple at vodafone.de
Wed Oct 26 02:40:10 PDT 2011


On 25.10.2011 20:57, Maarten Lankhorst wrote:
> On 10/25/2011 08:00 PM, Younes Manton wrote:
>> On Tue, Oct 25, 2011 at 1:35 PM, Maarten Lankhorst
>> <m.b.lankhorst at gmail.com>  wrote:
>>> ....
>> Is there a reason not to use/add to the code in vl_csc.c in this case?
>> It supports 601 and 709, wider gamut, and and it takes procamp into
>> account. It calculates a 4x4 matrix, but you can just drop the 4th row
>> for VDPAU.
> Good suggestion, the main reason is that I was not aware of its existence. Oops. :)
If you need an example about how to use it you could take a look at 
src/gallium/state_trackers/xorg/xvmc/attributes.c. But I'm still not 
100% sure if the implementation there is correct.

Christian.


More information about the mesa-dev mailing list