Message ID | 20230125172755.1498973-1-benjamin.gaignard@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp399997wrn; Wed, 25 Jan 2023 09:40:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXug5PUb5KAs5LAyyXQqfqXmANPmSbR+JDh3QzN4bzTG6wQpBUxwLiMOM2yIZUD5hBmJ6kPy X-Received: by 2002:aa7:dc10:0:b0:483:b15a:3206 with SMTP id b16-20020aa7dc10000000b00483b15a3206mr22979145edu.23.1674668459750; Wed, 25 Jan 2023 09:40:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674668459; cv=none; d=google.com; s=arc-20160816; b=q/IcDelQyJxUomiceYSUEyJ5VxaDL+QrXZ53Y7PDjAKFHO3j1a33qU1HgX7fSJ1IPA O1sfS3DGnAFHUv7GOR+Uiq2oFUZTzuzb5e3TPruJTa1VeDC6MKxHPGYkuWXuHsOuKo2A tIikl4tMZOeQZAM9hXesnIB30Hdnhn+vpHCCooEUpHrAEtS246ZU0F7RJEmSBLWZRMss pUb5Uugp43Ia4K5bikzD18Gf8RC86tOqmxGZyenwYL2uykA9j58v/bYqVKf3Q31R/txK BZFBVjdctcZBqm3ptB0L0M0tIrSovAmWD938RTU3dZy6QP23rE3loBn0TTb+qKgnnpMX OnLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4FX4yUi2so+gSbp77Q4hCdSXmWsSqkzv6tew47d+n2Y=; b=WoTdJMICgZx6GqZdLBBmPeXVvwRQMEcCXXbe+3VO7JOExxHlm2N6O2AtuULykWw0Zw 7gRTR1ZLFcuH+SxBzXVo+FNrsParOnl9m87bv3LTVuLmzciunMEn2fE31ELEak4+u5vx xS29n8WrzcbErjpkXihJ5USKFT9Smh+kjs2H/Ujilh42osDVQpyiLvkiBfd12o0Xy/uS e4AcCdaq7f6AN3aNRkc6QcGm2y/Fy067mKz4s8lOQttiuALolA4w99gz2vM3wk+CG7/F r8OT4vfxQdbIeTf/vZsJC5g2gp3LdZxtQsvUqedXd1+I6X/07iibk+kPoLAuAuiB26px UxBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VB2gMay4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020a056402400700b0046197a8b7a1si7588264eda.485.2023.01.25.09.40.35; Wed, 25 Jan 2023 09:40:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VB2gMay4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235678AbjAYR2K (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Wed, 25 Jan 2023 12:28:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235311AbjAYR2J (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 25 Jan 2023 12:28:09 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A94B2CFE7; Wed, 25 Jan 2023 09:28:04 -0800 (PST) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:ad6f:c6af:709d:745c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id 885DB66003B1; Wed, 25 Jan 2023 17:28:02 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1674667682; bh=ftbq0IBc4A40w5QgdUFCSat4ox2AWsD9fPmQCdsmw6k=; h=From:To:Cc:Subject:Date:From; b=VB2gMay4GS5sLnQPt9uV9LenFUkipBbqBwJINSnafY3wku3dpqUw7K92UXmKNrDPZ 7QxG840PgQRqLsYJkQY0OM9Xtl7lBHcKFMIRbZUXo5QGf4mNB0Qz3vCJVXwm7S69NP YWOIZ0zKs/2h1U+ybVistGvQmVdR7lAR+8FhpPfyRPY7istkbKzbAaLfIsyQ8WHwed 9TqBeYF7FY8/cmMy5Vlu6+F+kKGQ8eAcRzEZVtRUCW64lfppbHRkj4kPZlPi4rS2qI Vv+pMmRvIBDVBAeE2Vj37Ww9m0aIQ530Psc6VVqegYI97BfyBSyye3b0JmQGJGBLFB +/3GKvF1aqM5g== From: Benjamin Gaignard <benjamin.gaignard@collabora.com> To: ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, mchehab@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, hverkuil-cisco@xs4all.nl, nicolas.dufresne@collabora.co.uk Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, Benjamin Gaignard <benjamin.gaignard@collabora.com> Subject: [PATCH v4 0/2] media: verisilicon: HEVC: fix 10bits handling Date: Wed, 25 Jan 2023 18:27:53 +0100 Message-Id: <20230125172755.1498973-1-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756017154880361153?= X-GMAIL-MSGID: =?utf-8?q?1756017154880361153?= |
Series |
media: verisilicon: HEVC: fix 10bits handling
|
|
Message
Benjamin Gaignard
Jan. 25, 2023, 5:27 p.m. UTC
When decoding a 10bits bitstreams HEVC driver should only expose 10bits pixel formats. To fulfill this requirement it is needed to call hantro_reset_raw_fmt() and to only change driver internal state in case of success. Fluster score (140/147) doesn't change after this series. version 4: - Split the change in 2 patches. - Change hantro_check_depth_match() prototype to avoid using ctx->bit_depth - Return the result of hantro_reset_raw_fmt() to the caller. - Only set ctx->bit_depth when hantro_reset_raw_fmt() returns is ok. Benjamin Gaignard (2): media: verisilicon: Do not change context bit depth before validating the format media: verisilicon: HEVC: Only propose 10 bits compatible pixels formats .../media/platform/verisilicon/hantro_drv.c | 46 +++++++++++++--- .../platform/verisilicon/hantro_postproc.c | 2 +- .../media/platform/verisilicon/hantro_v4l2.c | 53 +++++++++---------- .../media/platform/verisilicon/hantro_v4l2.h | 3 +- .../media/platform/verisilicon/imx8m_vpu_hw.c | 2 + 5 files changed, 68 insertions(+), 38 deletions(-)