Re: [virtio-dev] Re: [PATCH v2 1/1] virtio-video: Add virtio video device specification

Gerd Hoffmann
2019-12-19T13:02:07Z

Hi,

> > Not clearly defined in the spec: When is the decoder supposed to send
> > the response for a queue request? When it finished decoding (i.e. frame
> > is ready for playback), or when it doesn't need the buffer any more for
> > decoding (i.e. buffer can be re-queued or pages can be released)?
> In my eyes the both statements mean almost the same and both are valid.

Well, no. When the device decoded a P-Frame it can notify the device,
saying "here is your decoded frame". But the device might still need
the buffer with the decoded frame to properly decode the following B/I
Frames which reference the P-Frame.

cheers,
Gerd