Re: [PATCH v2 4/4] Documentation: media: Document V4L2_H264_DECODE_PARAM_FLAG_PFRAME/BFRAME

From: Dmitry Osipenko
Date: Sat Aug 30 2025 - 07:30:04 EST


29.08.2025 17:15, Paul Kocialkowski пишет:
>>> +      - All submitted slices for the frame are P slices. This is a compability
>>> +        flag required for decoders that only support decoding such frames, but
>>> +        should not be required for slice-based decoders.
>> Seems to match the comment in Tegra driver, and related to a hardware
>> limitation. Shall we also recommend not to use this unless similar limitation
>> exists ?
> I think the flag should only be allowed for frame-based decode mode and indeed
> it would be good to say that drivers should only check this flag if they have
> such limitations.
>
> Userspace on the other hand cannot really know if it will be used or not so it
> should set the flags when applicable.

IIRC, Tegra dec driver doesn't support decoding frames consisting of
multiple slices, it can only decode frames consisting of a single slice.
Tegra dec can handle multi-slice frames using a "macroblock by
macroblock" decoding mode with a lot of CPU processing, like classic old
hw decoders did it, this is not supported by upstream driver.