<div dir="ltr"><div>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.  <br><br>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 :)<br><br></div><div>Thanks for your feedback.<br><br></div><div>Ratin <br></div><div><br><br><br></div><div><br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 28, 2015 at 8:37 AM, Gwenole Beauchesne <span dir="ltr"><<a href="mailto:gb.devel@gmail.com" target="_blank">gb.devel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
2015-10-27 20:04 GMT+01:00 Ratin <<a href="mailto:ratin3@gmail.com">ratin3@gmail.com</a>>:<br>
> Hi All,<br>
>   Is there an efficient alternate method of filling a surface with lets say<br>
> all black pixels rather than using vaPutsurface with a black background<br>
> image? Trying not to use glx for that because of some issues I am seeing<br>
> mixing glx contexts / swapbuffer calls on windows associated with VAAPI<br>
> surfaces..<br>
<br>
</span>An ugly way that might only work with Intel HD Graphics VA drivers,<br>
i.e. a VA driver that supports VPP, is to use the<br>
output_background_color with a small 16x16 VA surface placed in the<br>
middle. An alternative is to create a black surface that you generate<br>
once but use it as source to copy to the target. You could also have<br>
the option to generate once a small VA surface and use the fast<br>
scaling option to fit your target VA surface.<br>
<br>
Not perfect, but should be faster than the other ways through<br>
vaPutImage() for instance.<br>
<br>
BTW, why would you need to do that -- I mean, filling a surface with<br>
black pixels?<br>
<br>
Regards,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Gwenole Beauchesne<br>
Intel Corporation SAS / 2 rue de Paris, 92196 Meudon Cedex, France<br>
Registration Number (RCS): Nanterre B 302 456 199<br>
</font></span></blockquote></div><br></div>