[vlc-devel] [PATCH] picture_t: add the possibility to copy pixels another way than through planes

Steve Lhomme robux4 at videolabs.io
Mon Apr 20 17:13:19 CEST 2015

On Mon, Apr 20, 2015 at 4:16 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> Le 2015-04-20 17:10, Steve Lhomme a écrit :
>> Pixel copying only occurs with picture_t having the same pixel format
>> and dimensions. If the pixel format is the same, then the copy method
>> should be compatible.
> Yes... but copying what? There is nothing to copy besides the generic
> parameters and the planes.

Pixels are copied from the D3D9 surface of the decoder to the D3D9
surface of the display FIFO. It's not just passing along meta data.
The decoder surfaces belong to the avcodec dxva_context and must not
be used for anything else. That was the source of some of the weird
ordering issues I was having.

More information about the vlc-devel mailing list