[Libva] Filling in surface with black pixels
Ratin
ratin3 at gmail.com
Wed Oct 28 18:17:46 PDT 2015
Hi Gwenole, Many thanks for your response. I need this because I have to
indicate that there is video feed loss. So far I was creating a GLX context
for the particular window and render black pixels, but that ended up
causing some issues.
Now I ended up creating a 10x10 pixel yuv image, keep data in memory and
when time comes (at loss of a video feed) load the surface with the image
buffer and render to target window with fast scaling option. I guess I was
hoping there is a easier option, but it took a few hours to get it right,
job done :)
Thanks for your feedback.
Ratin
On Wed, Oct 28, 2015 at 8:37 AM, Gwenole Beauchesne <gb.devel at gmail.com>
wrote:
> Hi,
>
> 2015-10-27 20:04 GMT+01:00 Ratin <ratin3 at gmail.com>:
> > Hi All,
> > Is there an efficient alternate method of filling a surface with lets
> say
> > all black pixels rather than using vaPutsurface with a black background
> > image? Trying not to use glx for that because of some issues I am seeing
> > mixing glx contexts / swapbuffer calls on windows associated with VAAPI
> > surfaces..
>
> An ugly way that might only work with Intel HD Graphics VA drivers,
> i.e. a VA driver that supports VPP, is to use the
> output_background_color with a small 16x16 VA surface placed in the
> middle. An alternative is to create a black surface that you generate
> once but use it as source to copy to the target. You could also have
> the option to generate once a small VA surface and use the fast
> scaling option to fit your target VA surface.
>
> Not perfect, but should be faster than the other ways through
> vaPutImage() for instance.
>
> BTW, why would you need to do that -- I mean, filling a surface with
> black pixels?
>
> Regards,
> --
> Gwenole Beauchesne
> Intel Corporation SAS / 2 rue de Paris, 92196 Meudon Cedex, France
> Registration Number (RCS): Nanterre B 302 456 199
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libva/attachments/20151028/518443e9/attachment.html>
More information about the Libva
mailing list