public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
To: Hans Verkuil <hverkuil@xs4all.nl>,
	Sebastian Fricke	 <sebastian.fricke@collabora.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	 Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Boris Brezillon	 <boris.brezillon@collabora.com>
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	 linux-rockchip@lists.infradead.org,
	linux-staging@lists.linux.dev,
	Mauro Carvalho Chehab <mchehab+huawei@kernel.org>,
	Alex Bee <knaerzche@gmail.com>,
	Benjamin Gaignard	 <benjamin.gaignard@collabora.com>,
	Detlev Casanova	 <detlev.casanova@collabora.com>,
	Dan Carpenter <dan.carpenter@linaro.org>,
	 Jonas Karlman <jonas@kwiboo.se>,
	Christopher Obbard <christopher.obbard@linaro.org>
Subject: Re: [PATCH v7 09/12] media: rkvdec: Add get_image_fmt ops
Date: Tue, 08 Apr 2025 13:13:03 -0400	[thread overview]
Message-ID: <af5275a0017bc802379ee63df23fcafd44c8c285.camel@collabora.com> (raw)
In-Reply-To: <5cd6e8d3-fa51-4225-a3b8-9727cfd95062@xs4all.nl>

(just trimmed a bit)

Le mardi 08 avril 2025 à 16:32 +0200, Hans Verkuil a écrit :
> So can we agree on the following (I think):
> 
> 1) rkvdec_try_ctrl no longer checks the image_fmt. Effectively this means that there
>    is no longer any need to change rkvdec_try_ctrl in this patch.

Correct.

> 
> 2) in rkvdec_s_ctrl we do the image_fmt check: if it changes, but vb2_is_busy is true,
>    then return -EBUSY, otherwise call rkvdec_reset_decoded_fmt(). This code is specific
>    for V4L2_CID_STATELESS_H264_SPS, so just make sure it is under an if/switch for that
>    control ID.

Correct. In practice, the IOCTL implementation function will be renamed
to what Jonas proposed (translated to s_ctrl instead of try), with some
name like s_sps_ctrl() (can't remember exactly). This is because
upcoming HEVC will endup sharing this code. Its going to be 1 control
per codec that supports 10bit.

> 
> 3) I'll see if I can make a patch to clarify in the control documentation that setting
>    it can change the format.

Thanks.

> 
> 4) I'll make a patch for the cedrus driver as well to align with the approach in rkvdec.

Thank you ! Glad we got to the bottom of it. As for rkvdec TODO, I will
prepare an upstaging patch series, and fix anything needed.

Nicolas

  parent reply	other threads:[~2025-04-08 17:13 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-25  9:40 [PATCH v7 00/12] media: rkvdec: Add H.264 High 10 and 4:2:2 profile support Sebastian Fricke
2025-02-25  9:40 ` [PATCH v7 01/12] media: v4l2-common: Add helpers to calculate bytesperline and sizeimage Sebastian Fricke
2025-02-25 12:51   ` Hans Verkuil
2025-02-25  9:40 ` [PATCH v7 02/12] media: v4l2: Add NV15 and NV20 pixel formats Sebastian Fricke
2025-02-25  9:40 ` [PATCH v7 03/12] media: rkvdec: h264: Use bytesperline and buffer height as virstride Sebastian Fricke
2025-02-25  9:40 ` [PATCH v7 04/12] media: rkvdec: h264: Don't hardcode SPS/PPS parameters Sebastian Fricke
2025-02-25  9:40 ` [PATCH v7 05/12] media: rkvdec: Extract rkvdec_fill_decoded_pixfmt into helper Sebastian Fricke
2025-02-25  9:40 ` [PATCH v7 06/12] media: rkvdec: Move rkvdec_reset_decoded_fmt helper Sebastian Fricke
2025-02-25  9:40 ` [PATCH v7 07/12] media: rkvdec: Extract decoded format enumeration into helper Sebastian Fricke
2025-02-25  9:40 ` [PATCH v7 08/12] media: rkvdec: Add image format concept Sebastian Fricke
2025-02-25  9:40 ` [PATCH v7 09/12] media: rkvdec: Add get_image_fmt ops Sebastian Fricke
2025-04-07 11:09   ` Hans Verkuil
2025-04-07 13:52     ` Nicolas Dufresne
2025-04-07 14:17       ` Hans Verkuil
2025-04-07 14:59         ` Nicolas Dufresne
2025-04-07 15:07           ` Jonas Karlman
2025-04-07 15:33             ` Jonas Karlman
2025-04-07 15:35             ` Nicolas Dufresne
2025-04-07 15:44               ` Jonas Karlman
2025-04-08  8:28           ` Hans Verkuil
2025-04-08 13:36             ` Nicolas Dufresne
2025-04-08 14:32               ` Hans Verkuil
2025-04-08 17:01                 ` Jonas Karlman
2025-04-08 17:13                 ` Nicolas Dufresne [this message]
2025-02-25  9:40 ` [PATCH v7 10/12] media: rkvdec: h264: Support High 10 and 4:2:2 profiles Sebastian Fricke
2025-02-25  9:40 ` [PATCH v7 11/12] media: rkvdec: h264: Limit minimum profile to constrained baseline Sebastian Fricke
2025-02-25  9:40 ` [PATCH v7 12/12] media: rkvdec: Fix frame size enumeration Sebastian Fricke
2025-02-25 12:40 ` [PATCH] fixup! media: v4l2-common: Add helpers to calculate bytesperline and sizeimage Sebastian Fricke
2025-02-25 12:46   ` Sebastian Fricke
2025-02-25 12:50     ` Hans Verkuil
2025-02-25 14:05       ` Nicolas Dufresne

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=af5275a0017bc802379ee63df23fcafd44c8c285.camel@collabora.com \
    --to=nicolas.dufresne@collabora.com \
    --cc=benjamin.gaignard@collabora.com \
    --cc=boris.brezillon@collabora.com \
    --cc=christopher.obbard@linaro.org \
    --cc=dan.carpenter@linaro.org \
    --cc=detlev.casanova@collabora.com \
    --cc=ezequiel@vanguardiasur.com.ar \
    --cc=gregkh@linuxfoundation.org \
    --cc=hverkuil@xs4all.nl \
    --cc=jonas@kwiboo.se \
    --cc=knaerzche@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=mchehab+huawei@kernel.org \
    --cc=mchehab@kernel.org \
    --cc=sebastian.fricke@collabora.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox