Message ID | 20230412115652.403949-6-benjamin.gaignard@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp281750vqo; Wed, 12 Apr 2023 05:22:47 -0700 (PDT) X-Google-Smtp-Source: AKy350brG8do9UaCjTg9c+VX0SOLDazu41sR6RX69C86hJcM2UaYF2il+6EaIfJL3cBeWydfaCEG X-Received: by 2002:a17:903:11cd:b0:19d:ee88:b4d7 with SMTP id q13-20020a17090311cd00b0019dee88b4d7mr19978637plh.25.1681302167340; Wed, 12 Apr 2023 05:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681302167; cv=none; d=google.com; s=arc-20160816; b=JwlfefLMMpcF7eHAb/7z9eXFD1ea3jJkt1nctIJSbwAjSemgRRafV3dv0tqwYNhTnn M1Hm+xe3oux56FXmOsiPTUO2DTE0fFVF9xO/382n3+LovwD+itZc6S9b2fgrCXXeokxM Kr9qsYbO+zbTP4tiM9JKB2nquzdPxWsyfJGS1oYSlEpy5PembaWcdv6kKGjdR2QP/xIL twBBlPgYMN9/kLCm3u32186z0eRNJNaAY3S//vm0LuIZzDgGqi/5Hj8FulXAFqhw5QIg gnnoRxM5LFKcws7f78g4oFOifAa51ilAIdSoAO601B92Q9aoelpKMZaj73l9hk+EIF34 rFVw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VhabWBOn7oqrOBY7O5vy211lWPzZ0L7VaPTR9sGvLoY=; b=Esnd1n7vj7qUrShaLdRlBDqTnzv79oYl6B2Y0AUNfgonAAJDWHPU86tP/ThTYw5rBg QcpGKunfHEr2HXZDopXgb6Rm8C/Ne4Q6HN3xgI6YzAON9GzT7G0j25mENf1itYw/VDpj em2Xn0o2P4WnLaDeGbo8RpbeQXqGgpMWh3MefSw47/d2QJfZtrtpExv/DNXZ59b+LFcc /qhs6qNnpoieMUt9I8vdjqeEK1qksjoB/I6DwsHEvwYVZ4tVIPKivjR6pctCdaj0I87u ZZWesbKIOeAUgxeqfZRk+I6Cl4a31xY5M36xZx7qcDCyfYPtOApWP36T/nfOQqjSpOOn jzIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KllQBzg7; 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=QUARANTINE sp=QUARANTINE 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 z11-20020a170902ee0b00b001a67798316dsi623415plb.261.2023.04.12.05.22.34; Wed, 12 Apr 2023 05:22:47 -0700 (PDT) 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=KllQBzg7; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbjDLL5R (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Wed, 12 Apr 2023 07:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231410AbjDLL5I (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 12 Apr 2023 07:57:08 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABC5CEA; Wed, 12 Apr 2023 04:57:07 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:c2e:89bd:4b8e:9e98]) (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 E77BC660326B; Wed, 12 Apr 2023 12:57:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681300626; bh=g41XyyHBmbMssUN5c7ZvMN8gUuqx7OSKT4P6IGFh8Fw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KllQBzg7XRRIbLQbrPYlMyUjiVCXtV94oPZMkV+6s4RRUKnzgGqSlyneCj5GESOLl F+agXHvWPHWDSeCoq5wGDYGEc1d2ZhJjRwuqGReNCU0E+gEsqHOVkDeR9nwGoRRMoS jqK1AkaBDJg5tbeGSqP0tebBk5rp/ov01nVWnn4owzmBZq8tnIzFlNaezQwRIaWSkE l4M5aNNd8xMZkicV3Iisq5216o0EbeUr/a5QGItfjYh7XDVpW2x8At9ttgjEi9LYmg zGJemjqOK3pUMyLp8qg7voTUNvsJ4AYw3wptl22rf2bDx+PD3Pbhak1516ajhoSX0U 51eCXgbUAt0Ng== From: Benjamin Gaignard <benjamin.gaignard@collabora.com> To: ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, nicolas.dufresne@collabora.com Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Benjamin Gaignard <benjamin.gaignard@collabora.com> Subject: [PATCH v6 05/13] media: verisilicon: Get bit depth for V4L2_PIX_FMT_NV15_4L4 Date: Wed, 12 Apr 2023 13:56:44 +0200 Message-Id: <20230412115652.403949-6-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230412115652.403949-1-benjamin.gaignard@collabora.com> References: <20230412115652.403949-1-benjamin.gaignard@collabora.com> 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, URIBL_BLOCKED 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?1762973101401424217?= X-GMAIL-MSGID: =?utf-8?q?1762973101401424217?= |
Series |
AV1 stateless decoder for RK3588
|
|
Commit Message
Benjamin Gaignard
April 12, 2023, 11:56 a.m. UTC
Let's the driver knows that V4L2_PIX_FMT_NV15_4L4 is a 10bits pixel format. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> --- Changes in v6: - Rename NV12_10LE40_4L4 pixel format into NV15_4L4. drivers/media/platform/verisilicon/hantro_v4l2.c | 1 + 1 file changed, 1 insertion(+)
Comments
Il 12/04/23 13:56, Benjamin Gaignard ha scritto: > Let's the driver knows that V4L2_PIX_FMT_NV15_4L4 is a 10bits > pixel format. > > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com> > Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
diff --git a/drivers/media/platform/verisilicon/hantro_v4l2.c b/drivers/media/platform/verisilicon/hantro_v4l2.c index d238d407f986..4445dec630cb 100644 --- a/drivers/media/platform/verisilicon/hantro_v4l2.c +++ b/drivers/media/platform/verisilicon/hantro_v4l2.c @@ -71,6 +71,7 @@ int hantro_get_format_depth(u32 fourcc) switch (fourcc) { case V4L2_PIX_FMT_P010: case V4L2_PIX_FMT_P010_4L4: + case V4L2_PIX_FMT_NV15_4L4: return 10; default: return 8;