Skip to content

Commit 6269bbb

Browse files
committed
media: docs: dev-stateless-decoder: Document frame type flags
Document that frame type flags must be set for the coded buffer. Decoders, like NVIDIA Tegra h264 decoder for example, won't work properly without these flags. Signed-off-by: Dmitry Osipenko <[email protected]>
1 parent 90ffb93 commit 6269bbb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Documentation/userspace-api/media/v4l/dev-stateless-decoder.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ A typical frame would thus be decoded using the following sequence:
271271
we are not sure that the current decode request is the last one needed
272272
to produce a fully decoded frame, then
273273
``V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF`` must also be set.
274+
``V4L2_BUF_FLAG_KEYFRAME``, ``V4L2_BUF_FLAG_PFRAME`` and
275+
``V4L2_BUF_FLAG_BFRAME`` must be set if relevant to the coded
276+
format.
274277

275278
``request_fd``
276279
must be set to the file descriptor of the decoding request.

0 commit comments

Comments
 (0)