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

Gerd Hoffmann
2020-01-09T13:41:10Z

Hi,

> Regarding re-using, the driver can simply re-queue buffers returned by
> the device. If the device needs a buffer as reference frame, it must
> not return the buffer.

Ok, that'll work.

> I'll describe this rule in the next version of the patch.

Good. You should also add a note about ordering. If the device returns
the buffers as soon as they are no longer needed for decoding they
might be completed out-of-order, specifically B-Frames might complete
before the reference I/P frame. Is the device allowed to do that or
should it complete the buffers in playback order?

cheers,
Gerd