From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.251.105.195 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795743509; b=aZ5PrOIoqeqc1f0TsUu/O/HbXSh8f/6u93Z0ra9yd2l+X2mbCqr5kx5rc7sCd+erl71U 0895dmEMqrEtIPVxVJhATAEKBZzm18YZVLMKipIDRtM4tflTdmjY9XpsZR9t//XygHOkH GUVH5WZngThvNe3L7jUgw8986pT1fpgiE6vdSxYgPPnaTJ91hz2LEv8oN5pptsvkYMBun xEx9h/3dMnPnHDv3txX4BzWBAXs535Aa6Lz6gzdPnHP+itRQukjBXEBMD3/qKazwFI+KJ 6SInzfZOYMvdzJOZy5jt/Z8m1m0CSWiPNWJlXTa79LE/+306Cgkb6dYKyykd/sUCKgQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795743509; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:Subject:From:To:Cc: Date:In-Reply-To:References:Autocrypt:Organization:Content-Type: User-Agent:MIME-Version; bh=vPpjfD0g7Dp8q9C9+957w2yoqDmVUixuMVEqJCHIS8s=; b=pEOI/DXyAPSKfmIjjbjnLjoPW1dDlX0R7/qi2EQBoTgtoXCzQ+7RP6y19bZiCBJ1iszk WmN0kR14rm0YGJ9MkPR8lAlLIDTqk7FnzUx26Jq3Zpicb3YjOKHpbP9op1aamxIiNgL2H FzonPVxbmn0KHGMBqmV3a6ZigEsDmFSFFaqgS/+LkhaP1yHr/v39nsCh+k9/RuZfhcBE2 PyJhCJSIIiabDhRaZGQawh/ZsPPoH0x3O0TnwW7YMs23kh7TC7c9fOEXk2fkn2feUotym ysBrqPjg5uDxhWC38DYQdKw8tvx9RMSRUDGStZ0O2jt1Z0WSV2tMoGs7+ZxGBg+aKfA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=kXj21Zzg; arc=none smtp.remote-ip=148.251.105.195 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1FA6E606A31C; Fri, 27 Nov 2026 01:38:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1FA6E606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=kXj21Zzg DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1795743506; bh=BKLSb77hnDZ9zYB/ThkT3KsW2SFPf+voZLV3Q7PM/YM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=kXj21ZzgmCW297JHzWtalsUEFqwrDDfQ78v+ELCNNWHyyqUbySnpP5x/cmbazvM/2 5DbSkgSkqS2A9sge0PndtovAIK9MIX18lth5oKYPg4DMGKHRid7yV/v9nl6F6g36LL tGMvNtjo4fOOM53gBFoAuW7mDf1maqo0iHDTfvfo8A5sBTI8HRqr+c3in553ZYFz1f agFumWdl6cBBUIHm1j7je+FZ6QSY/FW7GT6qkL+nL/Olu0B1y+IAEN58w9bZJZHzg1 0wdi5vIeexIQ6JyP3hmSTSgNTj7eWrG3rEBJOlduXRYkC+kwRDyENirj+OPCB8vd0Y QVKbUZE6TDmMw== Received: from [100.64.0.214] (unknown [100.64.0.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange secp256r1 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nicolas) by bali.collaboradmins.com (Postfix) with ESMTPSA id 380F017E005B; Fri, 27 Nov 2026 02:38:25 +0100 (CET) Message-ID: <6c4a2a463271ec46e54034bced7cd02aec393085.camel@collabora.com> Subject: Re: [PATCH v2] media: codecs: vp9: Add tile_info control From: Nicolas Dufresne To: Benjamin Gaignard , mchehab@kernel.org, hverkuil+cisco@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Date: Thu, 26 Nov 2026 20:38:22 -0500 In-Reply-To: <20261112082631.40863-1-benjamin.gaignard@collabora.com> References: <20261112082631.40863-1-benjamin.gaignard@collabora.com> Autocrypt: addr=nicolas.dufresne@collabora.com; prefer-encrypt=mutual; keydata=mDMEaCN2ixYJKwYBBAHaRw8BAQdAM0EHepTful3JOIzcPv6ekHOenE1u0vDG1gdHFrChD /e0J05pY29sYXMgRHVmcmVzbmUgPG5pY29sYXNAbmR1ZnJlc25lLmNhPoicBBMWCgBEAhsDBQsJCA cCAiICBhUKCQgLAgQWAgMBAh4HAheABQkJZfd1FiEE7w1SgRXEw8IaBG8S2UGUUSlgcvQFAmibrjo CGQEACgkQ2UGUUSlgcvQlQwD/RjpU1SZYcKG6pnfnQ8ivgtTkGDRUJ8gP3fK7+XUjRNIA/iXfhXMN abIWxO2oCXKf3TdD7aQ4070KO6zSxIcxgNQFtDFOaWNvbGFzIER1ZnJlc25lIDxuaWNvbGFzLmR1Z nJlc25lQGNvbGxhYm9yYS5jb20+iJkEExYKAEECGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4 AWIQTvDVKBFcTDwhoEbxLZQZRRKWBy9AUCaCyyxgUJCWX3dQAKCRDZQZRRKWBy9ARJAP96pFmLffZ smBUpkyVBfFAf+zq6BJt769R0al3kHvUKdgD9G7KAHuioxD2v6SX7idpIazjzx8b8rfzwTWyOQWHC AAS0LU5pY29sYXMgRHVmcmVzbmUgPG5pY29sYXMuZHVmcmVzbmVAZ21haWwuY29tPoiZBBMWCgBBF iEE7w1SgRXEw8IaBG8S2UGUUSlgcvQFAmibrGYCGwMFCQll93UFCwkIBwICIgIGFQoJCAsCBBYCAw ECHgcCF4AACgkQ2UGUUSlgcvRObgD/YnQjfi4+L8f4fI7p1pPMTwRTcaRdy6aqkKEmKsCArzQBAK8 bRLv9QjuqsE6oQZra/RB4widZPvphs78H0P6NmpIJ Organization: Collabora Canada Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-+KXddYZKZwO5hel34jzW" User-Agent: Evolution 3.62.1 (3.62.1-1.fc45) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 --=-+KXddYZKZwO5hel34jzW Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le jeudi 12 novembre 2026 =C3=A0 09:26 +0100, Benjamin Gaignard a =C3=A9cri= t=C2=A0: > Some hardware accelerators needs to know tiles location and size > in the bitstream. > Tiles size are coded inside the bitstream so it is up to the > userland to provide theses information by calling > V4L2_CID_STATELESS_VP9_TILE_INFO_ENTRY control. >=20 > Signed-off-by: Benjamin Gaignard > --- > The userland implementation in GStreamer for this control could be > found here: > https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/13038 >=20 > This will be use by Verisilicon VC9000D driver which isn't upstream yet > because some improvements in Verisilicon core are needed before. > At least it needs these series to be merged first: > - Create AV1 helper library:=20 > https://patchwork.linuxtv.org/project/linux-media/list/?series=3D30160 > - media: verisilicon: remove unused variant and code clean up: > https://patchwork.linuxtv.org/project/linux-media/list/?series=3D31435 > - media: verisilicon: simplify auxiliary buffers allocation: > https://patchwork.linuxtv.org/project/linux-media/list/?series=3D30541 Can't merge without an upstream user. >=20 >=20 > changes in v2: > - add __user before p_vp9_tile_info_entry declaration in v4l2_ext_control > structure. > - fix invalid symbol in documentation. >=20 > .../media/v4l/ext-ctrls-codec-stateless.rst | 42 +++++++++++++++++++ > .../media/v4l/videodev2.h.rst.exceptions | 1 + > .../media/v4l/vidioc-g-ext-ctrls.rst | 4 ++ > .../media/v4l/vidioc-queryctrl.rst | 6 +++ > drivers/media/v4l2-core/v4l2-ctrls-core.c | 8 ++++ > drivers/media/v4l2-core/v4l2-ctrls-defs.c | 5 +++ > include/media/v4l2-ctrls.h | 2 + > include/uapi/linux/v4l2-controls.h | 27 ++++++++++++ > include/uapi/linux/videodev2.h | 2 + > 9 files changed, 97 insertions(+) >=20 > diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec-statel= ess.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.r= st > index d7a3b8ef03a7..effd3eb47e29 100644 > --- a/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst > +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst > @@ -2050,6 +2050,48 @@ This structure contains all loop filter related pa= rameters. See sections > - When set, the bitstream contains additional syntax elements that > specify which mode and reference frame deltas are to be updated. > =20 > +``V4L2_CID_STATELESS_VP9_TILE_INFO_ENTRY (struct)`` > + Specifies VP9 Tile Info entry as describe in section 6.4 "Decode til= e syntax" > + of :ref:`vp9`. > + MiRowStart, MiRowEnd, MiColStart and MiColEnd can be retrieved from = struct > + v4l2_ctrl_vp9_frame using tile_row and tile_col. > + > +.. c:type:: v4l2_ctrl_vp9_tile_info_entry > + > +.. raw:: latex > + > + \small > + > +.. tabularcolumns:: |p{1.2cm}|p{9.2cm}|p{6.9cm}| > + > +.. cssclass:: longtable > + > +.. flat-table:: struct v4l2_ctrl_vp9_tile_info_entry > + :header-rows: 0 > + :stub-columns: 0 > + :widths: 1 1 2 > + > + * - __u32 > + - ``tile_offset`` > + - Specifies the offset from the tile data after frame header, > + i.e. where the coded tile data actually starts. > + * - __u32 > + - ``tile_size`` > + - Specifies the size in bytes of the coded tile. > + Equivalent to "tile_size" in :ref:`vp9` > + * - __u32 > + - ``tile_row`` > + - Specifies the row of the current tile. > + Equivalent to "tileRow" in :ref:`vp9` > + * - __u32 > + - ``tile_col`` > + - Specifies the col of the current tile. > + Equivalent to "tileCol" in :ref:`vp9` > + > +.. raw:: latex > + > + \normalsize > + > .. _v4l2-codec-stateless-hevc: > =20 > ``V4L2_CID_STATELESS_HEVC_SPS (struct)`` > diff --git a/Documentation/userspace-api/media/v4l/videodev2.h.rst.except= ions b/Documentation/userspace-api/media/v4l/videodev2.h.rst.exceptions > index 6182b4e2d2ee..5e411cdb0469 100644 > --- a/Documentation/userspace-api/media/v4l/videodev2.h.rst.exceptions > +++ b/Documentation/userspace-api/media/v4l/videodev2.h.rst.exceptions > @@ -161,6 +161,7 @@ replace symbol V4L2_CTRL_TYPE_FWHT_PARAMS :c:type:`V4= L.v4l2_ctrl_type` > replace symbol V4L2_CTRL_TYPE_VP8_FRAME :c:type:`V4L.v4l2_ctrl_type` > replace symbol V4L2_CTRL_TYPE_VP9_COMPRESSED_HDR :c:type:`V4L.v4l2_ctrl_= type` > replace symbol V4L2_CTRL_TYPE_VP9_FRAME :c:type:`V4L.v4l2_ctrl_type` > +replace symbol V4L2_CTRL_TYPE_VP9_TILE_INFO_ENTRY :c:type:`V4L.v4l2_ctrl= _type` > replace symbol V4L2_CTRL_TYPE_HDR10_CLL_INFO :c:type:`V4L.v4l2_ctrl_type= ` > replace symbol V4L2_CTRL_TYPE_HDR10_MASTERING_DISPLAY :c:type:`V4L.v4l2_= ctrl_type` > replace symbol V4L2_CTRL_TYPE_HEVC_SPS :c:type:`V4L.v4l2_ctrl_type` > diff --git a/Documentation/userspace-api/media/v4l/vidioc-g-ext-ctrls.rst= b/Documentation/userspace-api/media/v4l/vidioc-g-ext-ctrls.rst > index d78328152b75..836b227c10c9 100644 > --- a/Documentation/userspace-api/media/v4l/vidioc-g-ext-ctrls.rst > +++ b/Documentation/userspace-api/media/v4l/vidioc-g-ext-ctrls.rst > @@ -258,6 +258,10 @@ still cause this situation. > - ``p_vp9_frame`` > - A pointer to a struct :c:type:`v4l2_ctrl_vp9_frame`. Valid if th= is > control is of type ``V4L2_CTRL_TYPE_VP9_FRAME``. > + * - struct :c:type:`v4l2_ctrl_vp9_tile_info_entry` * > + - ``p_vp9_tile_info_entry`` > + - A pointer to a struct :c:type:`v4l2_ctrl_vp9_tile_info_entry`. V= alid if this > + control is of type ``V4L2_CTRL_TYPE_VP9_TILE_INFO_ENTRY``. > * - struct :c:type:`v4l2_ctrl_hdr10_cll_info` * > - ``p_hdr10_cll`` > - A pointer to a struct :c:type:`v4l2_ctrl_hdr10_cll_info`. Valid = if this control is > diff --git a/Documentation/userspace-api/media/v4l/vidioc-queryctrl.rst b= /Documentation/userspace-api/media/v4l/vidioc-queryctrl.rst > index 82c8b52e771c..bfef51f70c42 100644 > --- a/Documentation/userspace-api/media/v4l/vidioc-queryctrl.rst > +++ b/Documentation/userspace-api/media/v4l/vidioc-queryctrl.rst > @@ -555,6 +555,12 @@ See also the examples in :ref:`control`. > - n/a > - A struct :c:type:`v4l2_ctrl_vp9_frame`, containing VP9 > =09frame decode parameters for stateless video decoders. > + * - ``V4L2_CTRL_TYPE_VP9_TILE_INFO_ENTRY`` > + - n/a > + - n/a > + - n/a > + - A struct :c:type:`v4l2_ctrl_vp9_tile_info_entry`, containing VP9 > + tile info for stateless video decoders. > * - ``V4L2_CTRL_TYPE_AV1_SEQUENCE`` > - n/a > - n/a > diff --git a/drivers/media/v4l2-core/v4l2-ctrls-core.c b/drivers/media/v4= l2-core/v4l2-ctrls-core.c > index 6e751a043a21..a426a716f3d4 100644 > --- a/drivers/media/v4l2-core/v4l2-ctrls-core.c > +++ b/drivers/media/v4l2-core/v4l2-ctrls-core.c > @@ -425,6 +425,9 @@ void v4l2_ctrl_type_op_log(const struct v4l2_ctrl *ct= rl) > =09case V4L2_CTRL_TYPE_VP9_FRAME: > =09=09pr_cont("VP9_FRAME"); > =09=09break; > +=09case V4L2_CTRL_TYPE_VP9_TILE_INFO_ENTRY: > +=09=09pr_cont("VP9_TILE_INFO_ENTRY"); > +=09=09break; > =09case V4L2_CTRL_TYPE_HEVC_SPS: > =09=09pr_cont("HEVC_SPS"); > =09=09break; > @@ -1415,6 +1418,8 @@ static int std_validate_compound(const struct v4l2_= ctrl *ctrl, u32 idx, > =20 > =09case V4L2_CTRL_TYPE_VP9_FRAME: > =09=09return validate_vp9_frame(p); > +=09case V4L2_CTRL_TYPE_VP9_TILE_INFO_ENTRY: > +=09=09break; > =09case V4L2_CTRL_TYPE_AV1_FRAME: > =09=09return validate_av1_frame(p); > =09case V4L2_CTRL_TYPE_AV1_SEQUENCE: > @@ -2135,6 +2140,9 @@ static struct v4l2_ctrl *v4l2_ctrl_new(struct v4l2_= ctrl_handler *hdl, > =09case V4L2_CTRL_TYPE_VP9_FRAME: > =09=09elem_size =3D sizeof(struct v4l2_ctrl_vp9_frame); > =09=09break; > +=09case V4L2_CTRL_TYPE_VP9_TILE_INFO_ENTRY: > +=09=09elem_size =3D sizeof(struct v4l2_ctrl_vp9_tile_info_entry); > +=09=09break; > =09case V4L2_CTRL_TYPE_AV1_SEQUENCE: > =09=09elem_size =3D sizeof(struct v4l2_ctrl_av1_sequence); > =09=09break; > diff --git a/drivers/media/v4l2-core/v4l2-ctrls-defs.c b/drivers/media/v4= l2-core/v4l2-ctrls-defs.c > index e062f2088490..f7a98925027b 100644 > --- a/drivers/media/v4l2-core/v4l2-ctrls-defs.c > +++ b/drivers/media/v4l2-core/v4l2-ctrls-defs.c > @@ -1228,6 +1228,7 @@ const char *v4l2_ctrl_get_name(u32 id) > =09case V4L2_CID_STATELESS_MPEG2_QUANTISATION:=09=09return "MPEG-2 Quant= isation Matrices"; > =09case V4L2_CID_STATELESS_VP9_COMPRESSED_HDR:=09return "VP9 Probabiliti= es Updates"; > =09case V4L2_CID_STATELESS_VP9_FRAME:=09=09=09return "VP9 Frame Decode P= arameters"; > +=09case V4L2_CID_STATELESS_VP9_TILE_INFO_ENTRY:=09=09return "VP9 Tile In= fo Entry"; > =09case V4L2_CID_STATELESS_HEVC_SPS:=09=09=09return "HEVC Sequence Param= eter Set"; > =09case V4L2_CID_STATELESS_HEVC_PPS:=09=09=09return "HEVC Picture Parame= ter Set"; > =09case V4L2_CID_STATELESS_HEVC_SLICE_PARAMS:=09=09return "HEVC Slice Pa= rameters"; > @@ -1602,6 +1603,10 @@ void v4l2_ctrl_fill(u32 id, const char **name, enu= m v4l2_ctrl_type *type, > =09case V4L2_CID_STATELESS_AV1_SEQUENCE: > =09=09*type =3D V4L2_CTRL_TYPE_AV1_SEQUENCE; > =09=09break; > +=09case V4L2_CID_STATELESS_VP9_TILE_INFO_ENTRY: > +=09=09*type =3D V4L2_CTRL_TYPE_VP9_TILE_INFO_ENTRY; > +=09=09*flags |=3D V4L2_CTRL_FLAG_DYNAMIC_ARRAY; > +=09=09break; > =09case V4L2_CID_STATELESS_AV1_TILE_GROUP_ENTRY: > =09=09*type =3D V4L2_CTRL_TYPE_AV1_TILE_GROUP_ENTRY; > =09=09*flags |=3D V4L2_CTRL_FLAG_DYNAMIC_ARRAY; > diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h > index cec9217d97ac..286e72a00a9d 100644 > --- a/include/media/v4l2-ctrls.h > +++ b/include/media/v4l2-ctrls.h > @@ -45,6 +45,7 @@ struct video_device; > * @p_h264_pred_weights:=09Pointer to a struct v4l2_ctrl_h264_pred_weigh= ts. > * @p_vp8_frame:=09=09Pointer to a VP8 frame params structure. > * @p_vp9_compressed_hdr_probs:=09Pointer to a VP9 frame compressed head= er probs structure. > + * @p_vp9_tile_info_entry:=09Pointer to a VP9 tile info structure. > * @p_vp9_frame:=09=09Pointer to a VP9 frame params structure. > * @p_hevc_sps:=09=09=09Pointer to an HEVC sequence parameter set struct= ure. > * @p_hevc_pps:=09=09=09Pointer to an HEVC picture parameter set structu= re. > @@ -83,6 +84,7 @@ union v4l2_ctrl_ptr { > =09struct v4l2_ctrl_hevc_slice_params *p_hevc_slice_params; > =09struct v4l2_ctrl_vp9_compressed_hdr *p_vp9_compressed_hdr_probs; > =09struct v4l2_ctrl_vp9_frame *p_vp9_frame; > +=09struct v4l2_ctrl_vp9_tile_info_entry *p_vp9_tile_info_entry; > =09struct v4l2_ctrl_hdr10_cll_info *p_hdr10_cll; > =09struct v4l2_ctrl_hdr10_mastering_display *p_hdr10_mastering; > =09struct v4l2_area *p_area; > diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2= -controls.h > index d17e41d51d2e..8eb8da0073cd 100644 > --- a/include/uapi/linux/v4l2-controls.h > +++ b/include/uapi/linux/v4l2-controls.h > @@ -2642,6 +2642,8 @@ struct v4l2_ctrl_hevc_ext_sps_lt_rps { > =20 > /* Stateless VP9 controls */ > =20 > +#define V4L2_VP9_MAX_TILE_COUNT=09=09=09512 We already got that one wrong on AV1, can we get it right here, where is th= at number from? My quick checks state that the maximum tile colums is 64 and r= ows is 4, and so this is 256. > + > #define V4L2_VP9_LOOP_FILTER_FLAG_DELTA_ENABLED=090x1 > #define V4L2_VP9_LOOP_FILTER_FLAG_DELTA_UPDATE=090x2 > =20 > @@ -2924,6 +2926,31 @@ struct v4l2_ctrl_vp9_compressed_hdr { > =09struct v4l2_vp9_mv_probs mv; > }; > =20 > +#define V4L2_CID_STATELESS_VP9_TILE_INFO_ENTRY (V4L2_CID_CODEC_STATELESS= _BASE + 302) > +/** > + * struct v4l2_ctrl_vp9_tile_info_entry - VP9 Tile Info entry > + * > + * Represents a single VP9 tile inside. Note that MiRowStart, > + * MiRowEnd, MiColStart and MiColEnd can be retrieved from struct > + * v4l2_ctrl_vp9_frame using tile_row and tile_col. > + * See section 6.4 "Decode tile syntax" for more details. > + * > + * @tile_offset: offset from the tile data after frame header, > + * i.e. where the coded tile data actually starts. > + * @tile_size: specifies the size in bytes of the coded tile. Equivalent= to > + * "tile_size" in the VP9 Specification. > + * @tile_row: specifies the row of the current tile. Equivalent to "tile= Row" in > + * the VP9 Specification. > + * @tile_col: specifies the col of the current tile. Equivalent to "tile= Col" in > + * the VP9 Specification. > + */ > +struct v4l2_ctrl_vp9_tile_info_entry { > +=09__u32 tile_offset; > +=09__u32 tile_size; > +=09__u32 tile_row; > +=09__u32 tile_col; Do we really need a pair of 32bit here condering the range? > +}; > + > /* Stateless AV1 controls */ > =20 > #define V4L2_AV1_TOTAL_REFS_PER_FRAME=098 > diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev= 2.h > index 5373dba640fa..b010be9437a7 100644 > --- a/include/uapi/linux/videodev2.h > +++ b/include/uapi/linux/videodev2.h > @@ -1903,6 +1903,7 @@ struct v4l2_ext_control { > =09=09struct v4l2_ctrl_mpeg2_quantisation __user *p_mpeg2_quantisation; > =09=09struct v4l2_ctrl_vp9_compressed_hdr __user *p_vp9_compressed_hdr_p= robs; > =09=09struct v4l2_ctrl_vp9_frame __user *p_vp9_frame; > +=09=09struct v4l2_ctrl_vp9_tile_info_entry __user *p_vp9_tile_info_entry= ; > =09=09struct v4l2_ctrl_hevc_sps __user *p_hevc_sps; > =09=09struct v4l2_ctrl_hevc_pps __user *p_hevc_pps; > =09=09struct v4l2_ctrl_hevc_slice_params __user *p_hevc_slice_params; > @@ -1984,6 +1985,7 @@ enum v4l2_ctrl_type { > =20 > =09V4L2_CTRL_TYPE_VP9_COMPRESSED_HDR=09=3D 0x0260, > =09V4L2_CTRL_TYPE_VP9_FRAME=09=09=3D 0x0261, > +=09V4L2_CTRL_TYPE_VP9_TILE_INFO_ENTRY=09=3D 0x0262, > =20 > =09V4L2_CTRL_TYPE_HEVC_SPS=09=09=09=3D 0x0270, > =09V4L2_CTRL_TYPE_HEVC_PPS=09=09=09=3D 0x0271, Nicolas --=-+KXddYZKZwO5hel34jzW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTvDVKBFcTDwhoEbxLZQZRRKWBy9AUCawjfDwAKCRDZQZRRKWBy 9G35AP9yrw/6qonbhJjl57SYAQ6q0dFqexCc/VheMInqIa+58AEAiv/h2rh9Bg/t JJORos+rP3f5ElM0Y3vtsCC4OgqAXwc= =SUtZ -----END PGP SIGNATURE----- --=-+KXddYZKZwO5hel34jzW--