Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5934467pxb; Thu, 27 Jan 2022 02:50:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTsFzBKtX4DlgXA6uRf9HJLXDuo1lBQIV1T6YM46RI3nbkqqY2e7m2R+Cq5xT6fCBDzB9r X-Received: by 2002:a17:90b:33ca:: with SMTP id lk10mr13315248pjb.108.1643280647996; Thu, 27 Jan 2022 02:50:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643280647; cv=none; d=google.com; s=arc-20160816; b=pC8wyoYDVsBkfUF3wAbAcnoCsKqSU8TQ9AUzaUVwTLi5XLuSyjpeCsd27X2mP1BzSF H/0Da6CA399XWL067SeMzqlp0w+CfXd1Tjj9ma6Zu4v7V0RVrKSGB4aviBlH9PxGHjAQ jcEZCphfuQRPnbVMhujQaihvTjgMhta/DgxBCiIGZoI3g3pcK6WkGgiEUUk0OMAxPB73 NK6MZAI4CMjUb++MTZo73gvh18zwZ40PP5Kg5Cz5EtnCAVReOX2SGbJ5bCRLbrAKXldw LzPB5ruH2Y+jJ55Zm7Z4M83Vk0Z/vSl2/Bf0LejZ9PNhPpsGTQ7APm4sCfSrb1WKGtWb tftg== 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; bh=WPToMld7dNbnZZMQeyBT17GVtBeON4p7xiS7qchIi2g=; b=olWC19KgJIjpHj/CZfZwv72Adet2ZqjOjvyBom8P5XYyeRyHHb/fSzFAcsXZIUZUpy QgBhYYa/tdVK7/NQsK0JtqW402HrkKCvGV7TJ2uqJjTKADWEoyIdzSz9rmmaA4LCCAOO azrKRxXmJHOyvTSr+Z1T4Ts1Bvflz/wtiRu7wGkO7EYTRh11tOJ/uAOtjtW+6mLa5PJK Ld53Owprx3KQnNmET4BIs4ISTXjVWSXxHrzBh3kqSsmvNg4MCLmb4t2Thd/6ogZ4zlyO o4wMr2iEHcPVZhZ1KnwdJ0XmkY0tdI5hKteGuc85jc5lixSqsf53WG7Dmf0PJlwAuB5p fu0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si1663603plr.561.2022.01.27.02.50.35; Thu, 27 Jan 2022 02:50:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235464AbiA0C4Q (ORCPT + 99 others); Wed, 26 Jan 2022 21:56:16 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:53602 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S235544AbiA0C4F (ORCPT ); Wed, 26 Jan 2022 21:56:05 -0500 X-UUID: 5928dd236e2c47bc80b04ab6598268e6-20220127 X-UUID: 5928dd236e2c47bc80b04ab6598268e6-20220127 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 953028886; Thu, 27 Jan 2022 10:56:02 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 27 Jan 2022 10:56:00 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 27 Jan 2022 10:55:58 +0800 From: Yunfei Dong To: Yunfei Dong , Alexandre Courbot , Hans Verkuil , Tzung-Bi Shih , AngeloGioacchino Del Regno , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa CC: George Sun , Xiaoyong Lu , Hsin-Yi Wang , Fritz Koenig , Dafna Hirschfeld , Benjamin Gaignard , Daniel Vetter , dri-devel , Irui Wang , Steve Cho , , , , , , , Subject: [PATCH v1, 7/8] media: uapi: Init VP9 stateless decode params Date: Thu, 27 Jan 2022 10:55:43 +0800 Message-ID: <20220127025544.10854-8-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220127025544.10854-1-yunfei.dong@mediatek.com> References: <20220127025544.10854-1-yunfei.dong@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Init some of VP9 frame decode params to default value. Signed-off-by: Yunfei Dong --- drivers/media/v4l2-core/v4l2-ctrls-core.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls-core.c b/drivers/media/v4l2-core/v4l2-ctrls-core.c index 54abe5245dcc..b25c77b8a445 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls-core.c +++ b/drivers/media/v4l2-core/v4l2-ctrls-core.c @@ -112,6 +112,7 @@ static void std_init_compound(const struct v4l2_ctrl *ctrl, u32 idx, struct v4l2_ctrl_mpeg2_picture *p_mpeg2_picture; struct v4l2_ctrl_mpeg2_quantisation *p_mpeg2_quant; struct v4l2_ctrl_vp8_frame *p_vp8_frame; + struct v4l2_ctrl_vp9_frame *p_vp9_frame; struct v4l2_ctrl_fwht_params *p_fwht_params; void *p = ptr.p + idx * ctrl->elem_size; @@ -152,6 +153,13 @@ static void std_init_compound(const struct v4l2_ctrl *ctrl, u32 idx, p_vp8_frame = p; p_vp8_frame->num_dct_parts = 1; break; + case V4L2_CTRL_TYPE_VP9_FRAME: + p_vp9_frame = p; + p_vp9_frame->profile = 0; + p_vp9_frame->bit_depth = 8; + p_vp9_frame->flags |= V4L2_VP9_FRAME_FLAG_X_SUBSAMPLING | + V4L2_VP9_FRAME_FLAG_Y_SUBSAMPLING; + break; case V4L2_CTRL_TYPE_FWHT_PARAMS: p_fwht_params = p; p_fwht_params->version = V4L2_FWHT_VERSION; -- 2.25.1