![]() |
VDPAU video surface destroy takes too long
Sometime even hang on that call. What would be the reason for it? First thing comes to my mind is there is a reference frame thats currently in use. But I stop decoding prior to destroy the surfaces so what else I can do to force a video surface to destroy?
|
Re: VDPAU video surface destroy takes too long
That's odd. I haven't observed anything like this, nor heard any other reports of the problem. Are you able to reproduce this with a simple test-case application? Are you sure that the actual VDPAU driver call is taking the time; there's nothing else within your application included between timing calls, and nothing else on the system that delays when your program runs?
|
Re: VDPAU video surface destroy takes too long
Quote:
If I set the background to {0,0,0,1} the green is replaced by black however some weird artefacts show up on the screen - part of the old display is stays while remaining part if updated with the new video (probably because of alpha's?). |
Re: VDPAU video surface destroy takes too long
If your window is going to be the same size each time, there's no need to destroy the window or presentation queue at all, and probably not the output surfaces either. This should avoid the green flash.
If your video streams are the same size, there's no need to destroy the video mixer or video surfaces. Still, I can see how it might be simpler to tear everything down again and start from scratch. In that case, setting the presentation queue background color to approximately black will make the flash black instead of green. The background color alpha isn't used. What's happening is that the background color is actually the overlay chroma key color, so you may just be seeing parts of the overlay showing through, when something the same color is drawn over the top of the window. If that's not the issue, could you post a screenshot or photo of the issue? A small repro case might be useful too, if the overlay chroma key explanation isn't the problem. |
Re: VDPAU video surface destroy takes too long
Quote:
Quote:
Quote:
|
Re: VDPAU video surface destroy takes too long
The content of the video stream is unrelated to the chrome key value; the video stream can never cause itself to be shown/hidden.
The chroma key value (i.e. presentation queue background color) is a color painted into the desktop surface (i.e. drawn into the presentation queue target window) that will cause the video to show up. The only possible issue with chroma keying is: If some other window (i.e. not the presentation queue target) is moved over the top of the presentation queue target window, then that other window should be completely visible and occlude the presentation queue target entirely. However, if that other window is painted (or partially painted) the same color as the chroma key, then video may show over that window instead of being occluded. |
| All times are GMT -5. The time now is 03:03 PM. |
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2013, nV News.