Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3087919imw; Mon, 18 Jul 2022 01:43:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v/xTTifTq14faZ/8wtSS0ezVrw9mNWaT/rA3zyMn+tHzZLfVfgjVP1vTcjZqPvAHE55A5N X-Received: by 2002:a17:906:98c7:b0:72b:2f8a:66b4 with SMTP id zd7-20020a17090698c700b0072b2f8a66b4mr24163451ejb.692.1658133833400; Mon, 18 Jul 2022 01:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658133833; cv=none; d=google.com; s=arc-20160816; b=NlHw7y+zSwxMiYOSHsCIedSrPM0I2biOpv8y97tXjvGlmkgP9B99Lh394+afaCogVL Xz/yKcYPaSpSfmHs92C0nxBNqp7VLKbxKYsBFsbSe+UId8fZxMtYcatj2afIF6ChuNsX znEkIf8YbknhRQRM02LTbn+Zm8FHHlwhLGSaglwazcu6LYqWu1AbiMFFWKC9kNo69BQy PBgeaWKcOFG9pDvkPmaG+Kh03PXW3d6uiD9q2yrIw4U1ptLzxCBsXgt1RVfg1PYpcCF9 ZGUEjXEG7wEOj7rqUX968UDcZQAceQrVyT+fcOvRt614dmALkC6X8CUT8BlvSrrA8wMQ mMzg== 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=OYka6J4kfddkxhcHg03DtuCXfDaq6XCRblVi1ZqARHQ=; b=lNnUM+NK1sQQB4KPhn/PCrjA8PORq9oheNAu2U6IQ2l/k+FeZzgpPkophjD+RzHFlF fwGsGIsi9ethLYK2jCs/unZrjPJxxVMbrLIbE3ljjuY1pP7h6x+R5fdxr3v4oAopeFsO XOCORu7ckNRk4V/Myqgk1cyevKTAVSyMUsNbsouCqR+t07UYIP7btoXwgCHqSa27QCnZ hcdhG/UCa9HtxGJXjt04wjSZ9STCPGlK55VjQUfFB1npcrXYTDxXMKogfQSruNi7PFrC u7sefmE4X6Jlplc+uKJAVy3cYV/BRKsHcVJ/TeTgMzC25Qej3gLVGdrWJCj57gKMX2Op wjkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Zll13bFJ; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js1-20020a17090797c100b0072b9b3d42cbsi21719156ejc.525.2022.07.18.01.43.28; Mon, 18 Jul 2022 01:43:53 -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=Zll13bFJ; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234003AbiGRIkX (ORCPT + 99 others); Mon, 18 Jul 2022 04:40:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233920AbiGRIkA (ORCPT ); Mon, 18 Jul 2022 04:40:00 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B47C3DEF0; Mon, 18 Jul 2022 01:39:59 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:4754:89ee:32c6:e620]) (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 13B6A6601A63; Mon, 18 Jul 2022 09:39:58 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1658133598; bh=ZRxJT5OR9oDych6+2qH0vxPCcILDhySxzLTelLRoAwU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zll13bFJCLG7pIqNCqZHOlUpBI1QHuA6xg6tkdZ0D9nzMC20aEf01juzLIGaea7f2 4dcPf9gc2T+P3owNTXfuJlMI6Jb0CN0V4oLGMZIZSYeCos6K9iJR/el5fbdxIzbIS2 T2+XkSxLPGbe8x2a1679XwOq3lv9wDmqcoUQK/IjI02iPXsVNXUlAn2PKF72Z8e24t y1TYWIrNBdI2/2IZWmPC4UKSjqpsJ3RpoR+BXdmJ/DfXxnYigZkLYKBHOh4z80G5KO uvJxbmtNJPo6mye9X5l0oQlKQNEe4mt6VL9nwzhnU82jbPRFh5puFyhbPF+Hvr2wiu eWAFa1Swk4tFA== From: Benjamin Gaignard To: mchehab@kernel.org, hverkuil@xs4all.nl, ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, gregkh@linuxfoundation.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, nicolas.dufresne@collabora.com, andrzej.p@collabora.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, kernel@collabora.com, Benjamin Gaignard Subject: [PATCH v2 7/7] media: hantro: Allows luma and chroma depth to be different Date: Mon, 18 Jul 2022 10:39:45 +0200 Message-Id: <20220718083945.200845-8-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220718083945.200845-1-benjamin.gaignard@collabora.com> References: <20220718083945.200845-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 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: X-Mailing-List: linux-kernel@vger.kernel.org Luma and chroma depth are set on different hardware registers. Even if they aren't identical the bitstream can be compliant to HEVC specifications and decoded by the hardware. With this patch TSUNEQBD_A_MAIN10_Technicolor_2 conformance test is successfully decoded. Signed-off-by: Benjamin Gaignard Reviewed-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_hevc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_hevc.c b/drivers/staging/media/hantro/hantro_hevc.c index 85688a4df166..26b1329893f7 100644 --- a/drivers/staging/media/hantro/hantro_hevc.c +++ b/drivers/staging/media/hantro/hantro_hevc.c @@ -156,9 +156,6 @@ static int tile_buffer_reallocate(struct hantro_ctx *ctx) int hantro_hevc_validate_sps(struct hantro_ctx *ctx, const struct v4l2_ctrl_hevc_sps *sps) { - if (sps->bit_depth_luma_minus8 != sps->bit_depth_chroma_minus8) - /* Luma and chroma bit depth mismatch */ - return -EINVAL; if (sps->bit_depth_luma_minus8 != 0 && sps->bit_depth_luma_minus8 != 2) /* Only 8-bit and 10-bit is supported */ return -EINVAL; -- 2.32.0