[Libva] Add coefficients yuv to rgb conversion
Gilles Chanteperdrix
gilles.chanteperdrix at xenomai.org
Tue Nov 3 16:54:35 PST 2015
On Tue, Nov 03, 2015 at 04:56:14PM +0000, Lionel Landwerlin wrote:
> Hi,
>
> Following your comments on the previous patch, here is an serie to add
> support for coefficients passed down to the EUs for the vpp yuv to rgb
> conversion path.
Hi,
sorry for intruding on the mailing list, but this is a topic on
which I worked recently. First question is: I implemented yuv to rgb
conversion using GLSL shaders (only for yuv420p, but this could be
easily implemented for other pixel formats), and the code is
relatively simple:
https://git.click-hack.org/vplayer.git/tree/lib/yuv420p_frag.glsl
What is the gain of using libva instead?
Second thing is that I write some piece of code to compute the
values of the matrix for several color spaces (using the ffmpeg
enum). Code may be found here:
https://git.click-hack.org/vplayer.git/tree/lib/csc.c
Maybe this could be of interest.
Regards.
--
Gilles.
https://click-hack.org
More information about the Libva
mailing list