Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3091075imw; Mon, 18 Jul 2022 01:49:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uoJX+UM3soDqcI9MdoFpVqNf+1L94Rh8SMIo5Tg4WJOZ88a0tv7ptj0dyOTAVgqhKLs7ik X-Received: by 2002:a17:907:2d0b:b0:72b:978a:c6df with SMTP id gs11-20020a1709072d0b00b0072b978ac6dfmr25248796ejc.618.1658134153025; Mon, 18 Jul 2022 01:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658134153; cv=none; d=google.com; s=arc-20160816; b=VgPC1zr0fqWUX10AmXHFv4FR2cEI8WbxbpzQYhTBNvdhkzScrMt1xunIPmWHBZ+vwT yki2Sy+IabwBMsUlv/u3KKem9d4dPD1+M8q/RwoG9TFN8aOCySD8zJJtvnr4D3hnYUQ+ vH8mt8i/j2nZagZpJyRadKbZL9VMTTFqeaEpSXxrFYNo99qASYZWo24WjMMbp9xML13Q YJm5MKTQN9mJXs0PGstczz8YFpemJ0UlrueZSrXFA7zArk9mXmK7QbGnsahvxYGU2V+G dBHymJfA5JPYABxCc7U33YyHpc5frVFSCTS84HIw4QbdiZdK1ygtAu8y6OrD6dYP6U+s VTEA== 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=roN3B2qQdKSBaqBbksI/gPxqh+nqcIwc+JaTBnJMqF4=; b=SU0/R2+vSpRiwFFyGftG0fpBHA1ADDWVIlvCyWHHeDw36MMKZ2if8GRdPuJDm/4woE EgK/RbQ+VS7NUV2K7+iHq9AWmsbclPsDeYVigjbUNILKfx2I++2KspTnuhoFNgZA9Ru5 64aflieGJaWlOL2ypfBfjGOtMa0DyFRicRhuz7OU0oCabewsZ5aSF8nVG0vOG7yRki/Y DiwsVgV3vD+RThNNwbZTp8zVB6O20VVFMOvLCu48hKKBGFq6P6kxrnQObB0Buznl/dcc HBhp3SNWn9TiGcfgdx6WSUmQufhtFanXAm7Yw/EFDy4YrCcS+Uwzolx7ucV23vvEnxCD sq6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=OzBh3ZLu; 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 hq38-20020a1709073f2600b0072f1e648893si8834693ejc.714.2022.07.18.01.48.48; Mon, 18 Jul 2022 01:49:13 -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=OzBh3ZLu; 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 S233997AbiGRIkU (ORCPT + 99 others); Mon, 18 Jul 2022 04:40:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233916AbiGRIj7 (ORCPT ); Mon, 18 Jul 2022 04:39:59 -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 65139BC92; Mon, 18 Jul 2022 01:39:58 -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 B4A7A6601A2F; Mon, 18 Jul 2022 09:39:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1658133597; bh=CC2ZoWOCrylXUT5toiF6692TYp44s2QcLVUR0tOz+sE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OzBh3ZLuLlS/qkuBDVdX9P1EdoLkmA+Q1mz93CGP12bNJZBBInesA79MVMt/BqKEm LJYTwn0ElubIeELbb775laWHgDnQOkPidDjBv+5/N2i1FiZZyFWS8P3eZLnJ2b6BF5 UDrg5Vu4yV3CoTltPiJ9Ot1TNR2CxfdyJCmuenTdEkMsw1fd9+rJ8AhINlF55b63nt WAtSVVXVBEHG7nMhNuLFW7LCiaWQ7wX3kYBpCMrnnFcxQFUEEY+5+wr4HKxR7W7jnA OXM1GXWanJ5M1MpDQo38cub+ieaKhSPnnZ0NrVU2AXIQRIEiicF+Zmxu8X1Ni8YU3O /W24jvjZGhtkQ== 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 5/7] media: Hantro: HEVC: Allows 10-bit bitstream Date: Mon, 18 Jul 2022 10:39:43 +0200 Message-Id: <20220718083945.200845-6-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 Stop limiting HEVC support to 8-bits bitstreams also accept 10-bits bitstreams. Signed-off-by: Benjamin Gaignard Reviewed-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_hevc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_hevc.c b/drivers/staging/media/hantro/hantro_hevc.c index e06837108a09..85688a4df166 100644 --- a/drivers/staging/media/hantro/hantro_hevc.c +++ b/drivers/staging/media/hantro/hantro_hevc.c @@ -159,8 +159,8 @@ int hantro_hevc_validate_sps(struct hantro_ctx *ctx, const struct v4l2_ctrl_hevc 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) - /* Only 8-bit is supported */ + if (sps->bit_depth_luma_minus8 != 0 && sps->bit_depth_luma_minus8 != 2) + /* Only 8-bit and 10-bit is supported */ return -EINVAL; ctx->bit_depth = sps->bit_depth_luma_minus8 + 8; -- 2.32.0