[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190603114620.vsvbxz6gyhg3tn7b@flea>
Date: Mon, 3 Jun 2019 13:46:20 +0200
From: Maxime Ripard <maxime.ripard@...tlin.com>
To: Jernej Skrabec <jernej.skrabec@...l.net>
Cc: paul.kocialkowski@...tlin.com, wens@...e.org, mchehab@...nel.org,
gregkh@...uxfoundation.org, linux-media@...r.kernel.org,
devel@...verdev.osuosl.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, nicolas@...fresne.ca,
boris.brezillon@...labora.com, jonas@...boo.se
Subject: Re: [PATCH 2/7] media: cedrus: Fix H264 default reference index count
On Thu, May 30, 2019 at 11:15:11PM +0200, Jernej Skrabec wrote:
> Reference index count in VE_H264_PPS reg should come from PPS control.
> However, this is not really important because reference index count is
> in our case always overridden by that from slice header.
>
> Cc: nicolas@...fresne.ca
> Cc: boris.brezillon@...labora.com
> Cc: jonas@...boo.se
>
> Signed-off-by: Jernej Skrabec <jernej.skrabec@...l.net>
Acked-by: Maxime Ripard <maxime.ripard@...tlin.com>
> ---
> We have to decide if we drop pps->num_ref_idx_l0_default_active_minus1
> and pps->num_ref_idx_l1_default_active_minus1 fields or add
> num_ref_idx_l0_active_override_flag and num_ref_idx_l0_active_override_flag
> to slice control.
>
> Current control doesn't have those two flags, so in Cedrus override flag is
> always set and we rely on userspace to set slice->num_ref_idx_l0_active_minus1
> and slice->num_ref_idx_l1_active_minus1 to correct values. This means that
> values stored in PPS are not needed and always ignored by VPU.
>
> If I understand correctly, algorithm is very simple:
>
> ref_count = PPS->ref_count
> if (override_flag)
> ref_count = slice->ref_count
>
> It seems that VAAPI provides only final value. In my opinion we should do the
> same - get rid of PPS default ref index count fields.
The rationale was to be as conservative as possible and just expose
everything that is in the bitstream in those controls to accomodate
for as many weird hardware as possible.
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists