Message ID | 20230113052551.23708-1-ming.qian@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-media-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78742C67871 for <linux-media@archiver.kernel.org>; Fri, 13 Jan 2023 05:27:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237953AbjAMF1T (ORCPT <rfc822;linux-media@archiver.kernel.org>); Fri, 13 Jan 2023 00:27:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234573AbjAMF02 (ORCPT <rfc822;linux-media@vger.kernel.org>); Fri, 13 Jan 2023 00:26:28 -0500 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2051.outbound.protection.outlook.com [40.107.7.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E79961319; Thu, 12 Jan 2023 21:26:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nDvomM20gxJUBjdlU4Lqx82zw+jZmCG/2RjcUE9QPjtrTKlmgmY/JKbFtoXU37ahreXztNPexS2vnD1sv3c6WfxdrDZgNd8g+uFNQzj904Dvt80LKtWm7jCMjDErEK2IY0/L7qlJAlvrc5snRuUWIRjR0C2n6EU72+6986Wg2Fe4VGWe+VdmJ6hVrERAWyUbcbn4/QNu4KvO34f58kW5jQqc11pxrQCA6siu2aHYVrAHz2pfDNicvAcgnxQGRt302dia8YLp4rkKchDHYL19Zusi7gyiGuyrlKSG4+rVSbUx9qsmZ7mE+d3yt0YpGahIfeOFSXv8ep3dHeH9NQaAGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bZFW5qfP/3fmDN96yw4B3bYfhN3k1vpunXPTAW6utwM=; b=Fp5ExSPLVG83cbmY9ud4as8EOBkWzPv8qTWM9k80xYbxYWXwDPJdr55JCMXcezbpOOvTTW9ZKzimhf4kwZBzWGA7XyFlznSsY2OlCb5qLZMh/JNQMjLgWOlztROtAfp90xthOsQQSgKsAg0El8x/82z9jFUUtbzEH5EMWJTb56QGBeKBa63WdHiGHKB/vftXa7NEcTEx3MYIR0cGordAWhvE5WzXJ+VqvbOOpLviSMFdb6SFn8hMDgOpc06cpJNAmiz6siBKJ5RiBmQa1CSha2zreCx3kg2xoFyWlLiFsAcUanVqVwYrXG0NII6SOkLOq/6IqWpxjAfG0CcDg3c7bw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bZFW5qfP/3fmDN96yw4B3bYfhN3k1vpunXPTAW6utwM=; b=fNPKe2gMoj+mWJkmUBML1W3m9PNA/yyYhyhuA4/H/0z7HgWiJuBEh/F6eEHKNEnY34Aj+wJ3xKesIVW4yudOAt9tuMFEvLPSCmMbdLtl0xMtDr2aMVR0owlxnwex18poC7WE7MDl+5Y2YPR6TDkLfXAguBmVkoJgrzzEiJpmWig= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by DBBPR04MB8043.eurprd04.prod.outlook.com (2603:10a6:10:1e7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Fri, 13 Jan 2023 05:26:07 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d%7]) with mapi id 15.20.6002.013; Fri, 13 Jan 2023 05:26:07 +0000 From: Ming Qian <ming.qian@nxp.com> To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, xiahong.bao@nxp.com, eagle.zhou@nxp.com, tao.jiang_2@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] media: amphion: correct the unspecified color space Date: Fri, 13 Jan 2023 13:25:51 +0800 Message-Id: <20230113052551.23708-1-ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0112.apcprd01.prod.exchangelabs.com (2603:1096:4:40::16) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|DBBPR04MB8043:EE_ X-MS-Office365-Filtering-Correlation-Id: a205ce03-d1ba-4d93-36f1-08daf526abf2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TBePorAdx8K+WP1fgZXKrKJ1CLK8QTBGWFZrHPks8uzf5AeDsUsxPpgIdI+YnUm2XIjmfIj+7FTeWxmP1YGYkPSGwTKyBLEftzKo29X1nFF/WVsHo3KcaB/xCSsSE6FxKrERiJhiwRc/RuThMlOcstWoseswQSwooeu0X0cmlM5TwyCkJ0++93CXuA+20RJg9T7s+QeDbAtUqqWYUy//W25euvR3OSeQpECkk5aWKZrzVGqerc7jA/g+SFmIik3B3JVk+i+BrctgKZXoiHzoKkYMS/G2ddt/YHsGRfUV4ayUX31/oE6ybZEurLNDYvvwK+CUfqw+h0VgSCTcYlpZ3xD7ZcsS5UF3ZUHVjgLTNHutChCXNq1Esoj3AL58TUkLlaVbmOqCwWZBOjbqj1ebtKdvaV86dgo8x1O7nKfQJ0oAgSEzU3FfnQ7KWnd40ylkp36C2UTIED0YHttNoICOR9V26tOUHs1LcQfoKxe6dUOWxEhf/oGPsZxLCLOzYab9xgsFPZSwmOZiJ4Irl1DHtjDMH4R9e4cNnEcsKxZiyHHtBc5Qu2s2Ln/dC2O99GxmKcAVPN6qVg7zGQ+rqsXEt08bh9rT6ookY6AT75JGTk3JsAAY/wcJiUlmnvBqfIw9dbswyIbKgb9t+0BDUJBbeuhVre2XAo8+20wrFA/2lWBqolvHN4ilgpHbi5lQTkVq700JWMGCp/xRbYpyIT78xw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6341.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(396003)(136003)(39860400002)(366004)(451199015)(8936002)(66946007)(66556008)(7416002)(4326008)(26005)(86362001)(66476007)(41300700001)(8676002)(5660300002)(186003)(478600001)(36756003)(2906002)(6486002)(52116002)(44832011)(316002)(6666004)(1076003)(6512007)(6506007)(2616005)(38100700002)(38350700002)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2JIID5zU7MuSMOStY8+81b0hRmULjlBV+MDk7kyaEv2A3hOlRuQKMzs/9nsXV9Uj3pSiH4cMXqTFbz2VYOj8lle9CdmoUdmE+x7D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yMm3ZaqBNiucy87avjElecu/KwMScO4PdMQKVAW3osgcsHZEs3xsJHN+gQ+Tf5UWQFWY3ogI4V3oJ2nWCXzgPtrZucROfDjHdjSTKqb7aAQF42bVoOxA1vlJIHE5GazuEwMb88t3hdqf5T2o2YIhObc4GJrKTtyQWTVh4PV8uegLcJcF4+yW9V9HOjamLWtRwVQqs+59Dd9uSAfYguvelcywUMoTApZ4ubmNR+97KDPqMf2p0Mktgt0NGEmWE+NwSx5hU9p24MT/jHLfeaMiGPsS6sgdBgi1puNHnkmjbaM2jbtEFcrA7zG+NjBba8eSjpZWkXkJkzQ9uSntq6WnrkU9AtQkc1DSRCvBiF/zqzwnAWW0h4vngIq1f5jAHwIlXkHhTgU3s3aTmxZfvu63/fGRZQAYbyVKnXCCZqSLOsmSjZwej/NE X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a205ce03-d1ba-4d93-36f1-08daf526abf2 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2023 05:26:07.1967 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ImFOAavRVQL/AoC4VrZ1V5avyPnidEXdhr6CWi83HEwVLKMTDllzU08I6As8JBOjkjBdBzUgMeKz7QrDdRLhyA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB8043 Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org |
Series |
media: amphion: correct the unspecified color space
|
expand
|
diff --git a/drivers/media/platform/amphion/vpu_color.c b/drivers/media/platform/amphion/vpu_color.c index 80b9a53fd1c1..4ae435cbc5cd 100644 --- a/drivers/media/platform/amphion/vpu_color.c +++ b/drivers/media/platform/amphion/vpu_color.c @@ -17,7 +17,7 @@ #include "vpu_helpers.h" static const u8 colorprimaries[] = { - 0, + V4L2_COLORSPACE_LAST, V4L2_COLORSPACE_REC709, /*Rec. ITU-R BT.709-6*/ 0, 0, @@ -31,7 +31,7 @@ static const u8 colorprimaries[] = { }; static const u8 colortransfers[] = { - 0, + V4L2_XFER_FUNC_LAST, V4L2_XFER_FUNC_709, /*Rec. ITU-R BT.709-6*/ 0, 0, @@ -53,7 +53,7 @@ static const u8 colortransfers[] = { }; static const u8 colormatrixcoefs[] = { - 0, + V4L2_YCBCR_ENC_LAST, V4L2_YCBCR_ENC_709, /*Rec. ITU-R BT.709-6*/ 0, 0,
in the E.2.1 of Rec. ITU-T H.264 (06/2019), 0 of cloour primaries is reserved, and 2 is unspecified. driver can map V4L2_COLORSPACE_LAST to 0, and map V4L2_COLORSPACE_DEFAULT to 2. v4l2_xfer_func and v4l2_ycbcr_encoding are similar case. Fixes: 3cd084519c6f ("media: amphion: add vpu v4l2 m2m support") Signed-off-by: Ming Qian <ming.qian@nxp.com> --- drivers/media/platform/amphion/vpu_color.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)