Re: [PATCH v6 1/6] docs: uapi: media: Clarify HEVC slice_param bit_size, data_byte_offset
From: Nicolas Dufresne
Date: Tue Apr 28 2026 - 16:07:33 EST
Le mercredi 04 mars 2026 à 14:05 +0000, Dave Stevenson a écrit :
> From: John Cox <john.cox@xxxxxxxxxxxxxxx>
>
> Clarify exactly what bit_size and data_byte_offset mean when there are
> multiple slices in the bitstream data.
>
> Signed-off-by: John Cox <john.cox@xxxxxxxxxxxxxxx>
> Signed-off-by: Dave Stevenson <dave.stevenson@xxxxxxxxxxxxxxx>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>
> ---
> Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst
> index 3b1e05c6eb13..a54e8ea29440 100644
> --- a/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst
> +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst
> @@ -2399,10 +2399,12 @@ This structure contains all loop filter related parameters. See sections
>
> * - __u32
> - ``bit_size``
> - - Size (in bits) of the current slice data.
> + - Size in bits of the slice_segment_data for the current slice including
> + any emulation prevention bytes.
> * - __u32
> - ``data_byte_offset``
> - - Offset (in byte) to the video data in the current slice data.
> + - Offset in bytes from the start of the current v4l2_buffer to the start
> + of the slice_segment_data for the current slice.
> * - __u32
> - ``num_entry_point_offsets``
> - Specifies the number of entry point offset syntax elements in the slice header.
Attachment:
signature.asc
Description: This is a digitally signed message part