X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2FDocumentation%2FDocBook%2Fmedia%2Fv4l%2Fvidioc-decoder-cmd.xml;h=73eb5cfe698a1a536e9c521f324781460992d2ba;hb=e09b41010ba33a20a87472ee821fa407a5b8da36;hp=9215627b04c77827e7b3195857d53c0fbdcea355;hpb=f93b97fd65072de626c074dbe099a1fff05ce060;p=kvmfornfv.git
diff --git a/kernel/Documentation/DocBook/media/v4l/vidioc-decoder-cmd.xml b/kernel/Documentation/DocBook/media/v4l/vidioc-decoder-cmd.xml
index 9215627b0..73eb5cfe6 100644
--- a/kernel/Documentation/DocBook/media/v4l/vidioc-decoder-cmd.xml
+++ b/kernel/Documentation/DocBook/media/v4l/vidioc-decoder-cmd.xml
@@ -197,7 +197,17 @@ be muted when playing back at a non-standard speed.
this command does nothing. This command has two flags:
if V4L2_DEC_CMD_STOP_TO_BLACK is set, then the decoder will
set the picture to black after it stopped decoding. Otherwise the last image will
-repeat. If V4L2_DEC_CMD_STOP_IMMEDIATELY is set, then the decoder
+repeat. mem2mem decoders will stop producing new frames altogether. They will send
+a V4L2_EVENT_EOS event when the last frame has been decoded
+and all frames are ready to be dequeued and will set the
+V4L2_BUF_FLAG_LAST buffer flag on the last buffer of the
+capture queue to indicate there will be no new buffers produced to dequeue. This
+buffer may be empty, indicated by the driver setting the
+bytesused field to 0. Once the
+V4L2_BUF_FLAG_LAST flag was set, the
+VIDIOC_DQBUF ioctl will not block anymore,
+but return an &EPIPE;.
+If V4L2_DEC_CMD_STOP_IMMEDIATELY is set, then the decoder
stops immediately (ignoring the pts value), otherwise it
will keep decoding until timestamp >= pts or until the last of the pending data from
its internal buffers was decoded.