[FFmpeg-devel] [PATCH] Add hwaccel_data infrastructure
Thu Mar 5 19:43:58 CET 2009
> On Wed, Mar 04, 2009 at 10:31:46AM +0100, Gwenole Beauchesne wrote:
> > On Wed, 4 Mar 2009, Michael Niedermayer wrote:
> > >> Because I suggested open/close and you said only when needed. :) So I
> > >> assumed it was the wrong route since, currently, VA API only needs
> > >> av_mallocz() at frame buffer creation and do extra work at frame
> > >> buffer destruction.
> > >
> > > can you explain what this extra work is?
> > For VA API:
> > ...
> > I could do that at ::end_frame() time, once they are committed, though.
> > However, for VDPAU, I am not sure there is another place than a ::close()
> > to destroy the bitstreamBuffers, unless they are copied locally in
> > vdp_decoder_render(). IIRC, this is asynchronous so if we delete them
> > straight away, some weird things could happen when the function comes to
> > actually need them later. ;-)
Yes, vdp_decoder_render synchronously copies the data before returning; the
asynchronous part is the actual decoding of that data.
More information about the ffmpeg-devel