Lines Matching full:decoder
6 Memory-to-Memory Stateful Video Decoder Interface
9 A stateful video decoder takes complete chunks of the bytestream (e.g. Annex-B
11 display order. The decoder is expected not to require any additional information
16 operations are needed, use of the Stateless Video Decoder Interface (in
36 depending on decoder capabilities and following the general V4L2 guidelines.
57 the application communicating with the decoder or encoder implementing
93 ``CAPTURE`` buffers must be returned by the decoder in display order.
103 Instantaneous Decoder Refresh; a type of a keyframe in an H.264/HEVC-encoded
136 data fed to the decoder or encoder; see ``OUTPUT``.
171 :alt: DOT digraph of decoder state machine
172 :caption: Decoder State Machine
217 1. To enumerate the set of coded formats supported by the decoder, the
223 about the decoder's capabilities with respect to each coded format.
224 In particular whether or not the decoder has a full-fledged bytestream
225 parser and if the decoder supports dynamic resolution changes.
243 decoder for given coded pixel format.
247 decoder for given raw pixel format and the coded format currently set on
269 from the stream for the given coded format; otherwise the decoder will
274 desired size of ``OUTPUT`` buffers; the decoder may adjust it to
289 after the decoder is done parsing the information from the stream, it will
297 format. How the new ``CAPTURE`` format is determined is up to the decoder
360 indicated by the decoder sending a ``V4L2_EVENT_SOURCE_CHANGE`` event with
380 Any client query issued after the decoder queues the event will return
391 selection rectangles and controls, since the decoder has not parsed them
393 those parsed by the decoder, a `Dynamic Resolution Change` will be
430 decoder for the current stream. The decoder should choose a
487 The values are guaranteed to be meaningful only after the decoder
498 The decoder will return only formats supported for the currently
501 may be supported by the decoder in general. In other words, the set
505 For example, a decoder may support YUV and RGB formats for resolutions
509 but after parsing resolution higher than 1920x1088, the decoder will not
519 selected/suggested by the decoder in :c:func:`VIDIOC_G_FMT`.
539 the ``CAPTURE`` queue if it is desired and if the decoder has compose and/or
563 The decoder may adjust the compose rectangle to the nearest
689 let the decoder configure the ``CAPTURE`` format appropriately,
728 returning a decoded frame allowed the decoder to return a frame that
779 During the decoding, the decoder may initiate one of the special sequences, as
780 listed below. The sequences will result in the decoder returning all the
797 of details depending on the decoder capabilities. Specifically:
802 * if the decoder is able to precisely report the OUTPUT buffer that triggered
807 further operations on corresponding decoder file handle will return the -EIO
817 it may be affected as per normal decoder operation.
827 * The decoder will drop all the pending ``OUTPUT`` buffers and they must be
837 * The decoder will start accepting new source bytestream buffers after the
848 resume point is found. While looking for a resume point, the decoder
861 keyframe, the stale SPS/PPS inside decoder state would lead to undefined
862 results when decoding. Although the decoder must handle that case without
871 4. After a resume point is found, the decoder will start returning ``CAPTURE``
879 as per normal decoder operation.
887 The decoder may return a number of remaining ``CAPTURE`` buffers containing
906 decoder.
925 The sequence starts when the decoder detects a coded frame with one or more of
937 Whenever that happens, the decoder must proceed as follows:
939 1. After encountering a resolution change in the stream, the decoder sends a
945 Any client query issued after the decoder queues the event will return
949 2. The decoder will then process and decode all remaining buffers from before
974 A source change triggers an implicit decoder drain, similar to the
975 explicit `Drain` sequence. The decoder is stopped after it completes.
1057 For backwards compatibility, the decoder will signal a ``V4L2_EVENT_EOS``
1063 are dequeued and the last ``CAPTURE`` buffer is dequeued, the decoder is
1067 * ``V4L2_DEC_CMD_START`` - the decoder will not be reset and will resume
1071 ``CAPTURE`` queue - the decoder will resume the operation normally,
1088 Although not mandatory, the availability of decoder commands may be queried
1094 If the decoder encounters an end of stream marking in the stream, the decoder
1102 decoder.
1115 will result in the decoder adjusting the requested ``CAPTURE`` format to a