Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6205675pxb; Thu, 27 Jan 2022 08:38:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwdZPGgc/FU2nN5gcIpD6Z2LDiHhjtmDEuAMb0fuHRuygKrZcE7Nh97gN1LSsOnBL+MOpgc X-Received: by 2002:a17:90b:3447:: with SMTP id lj7mr4953185pjb.39.1643301495220; Thu, 27 Jan 2022 08:38:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643301495; cv=none; d=google.com; s=arc-20160816; b=HSL3zmXJkCxfFFbqsNR9D9aJNRen5TiQlGnam/w0SriUTdYSokEYjyMrFBhikh9025 QIblUo03G7KUZ9MBuhi7XrqXB9+Qh6Ehjx4o5RGVpCe4UUbyPTS0H6fypLckuZr5bMw3 3L9f65Sk92TJiC24NiZ6JwFvWAs4JBO9PloQ7StUCuyghYYuifP5jaBbDwruc6UruJJw 1Zkfp+CMBKe5EWiVNHuQ8Befjquq1kPU4ZinhzCZgzSqKqJ+EB55jgHtpmwNnq1OegSv OKOSjFRX3MS4gWYWIWSt9Rc/cp7sYoj7qJi1eBA5peG6jwkzBgtezVVVecrqTWSueq9i K1iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1/pFKZsibDbTasI5zHvoomcfgVulhQzgBhdCkCIsPV4=; b=Ft8jMSX9mW/b2ckznl8r9xOmrdP93zd20kElxwYNeWScDBgzDpOL4a/MtZKFLq0Mmh XV9X4sNfimzxSGL+30eIoAnZmkclc7x5g+adiKOy9SszIrooEIDTRaJLil8OlnjH8mGm wn+a6EYygGxOmO4WicRAimPUf5MYwVPqHCycS2D+ti/9SVtJm/8Y6YrU/GNDHb2K1rWm XAl671usP8TUeR6oQQf9EH9LHkd2uDSBeUw8kLv5FbMeOvtH8FyqOYSuN06kEg7mjN+y JnRyToiSlIsyC98OTmGqNMvwnkLgaqEy6kHpqtliszsvIM+uvfzeDrIeRf0a28LfO2Vx FIcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SBk++oGj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si2343418plo.507.2022.01.27.08.38.02; Thu, 27 Jan 2022 08:38:15 -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; dkim=pass header.i=@chromium.org header.s=google header.b=SBk++oGj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238525AbiA0JYK (ORCPT + 99 others); Thu, 27 Jan 2022 04:24:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238497AbiA0JYK (ORCPT ); Thu, 27 Jan 2022 04:24:10 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B99CC061747 for ; Thu, 27 Jan 2022 01:24:09 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id t14so3333928ljh.8 for ; Thu, 27 Jan 2022 01:24:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1/pFKZsibDbTasI5zHvoomcfgVulhQzgBhdCkCIsPV4=; b=SBk++oGjK7vx0bR/u816Fk2uDzB+AlEwqZ4fjozkcNku8sKEy0s4qnYQVBkjiLcXwZ iONXICtuFkUv6Hw8Tzo4sCIck9Nt/2u9zBftwk0FLSN/SWTNQTB3x08U4JLD4Wzx1o5h hiX00dZ7j99eLlL0vFrDxqxBbboh8fBIxyY6I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1/pFKZsibDbTasI5zHvoomcfgVulhQzgBhdCkCIsPV4=; b=6usSRC58rKOTuf6l8L1wkjU6sEpRwyoPJ5iz7pE/Elg/NGoA0oHhoYVHE79UBtWrTH 4VbKNAcMTz+C/DmpHbpqp4nCPpKolaS0rgmR93Qn6Ag6FfTiqldpVjO5pZcsvSDnoQeH gUSp9N9zU+5HTPBKx9v8PLIiQwTJycDeQvRo+3RHWbpsfIYmuBSYUp3E7CRd65q3RzUG c8nmEcfEEQfigk9VWW90zTwpHdZX1C2ry4Wt0t4rSDILWRwpFQdkiekj39vGjLWUf9Sr ZFzfNeTE0koBZrpFJ/pIkiL/ON6tLIFTLva4cat3AllkWfbVUPrzqtnY3Sf1y6MdwrAL taFQ== X-Gm-Message-State: AOAM530M7Aft22F9algEBeR+Bkrt4A0sudrDyU8MLZ4rVhzKbPPJQmW2 G+l1kEpxO1XWVePrc0eKby41LAhZIzGA3zIFdd+ODw== X-Received: by 2002:a2e:920b:: with SMTP id k11mr2169470ljg.302.1643275447980; Thu, 27 Jan 2022 01:24:07 -0800 (PST) MIME-Version: 1.0 References: <20220127025544.10854-1-yunfei.dong@mediatek.com> <20220127025544.10854-8-yunfei.dong@mediatek.com> In-Reply-To: <20220127025544.10854-8-yunfei.dong@mediatek.com> From: Chen-Yu Tsai Date: Thu, 27 Jan 2022 17:23:56 +0800 Message-ID: Subject: Re: [PATCH v1, 7/8] media: uapi: Init VP9 stateless decode params To: Yunfei Dong , Andrzej Pietrasiewicz Cc: Alexandre Courbot , Hans Verkuil , Tzung-Bi Shih , AngeloGioacchino Del Regno , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa , George Sun , Xiaoyong Lu , Hsin-Yi Wang , Fritz Koenig , Dafna Hirschfeld , Benjamin Gaignard , Daniel Vetter , dri-devel , Irui Wang , Steve Cho , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srv_heupstream@mediatek.com, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Jan 27, 2022 at 10:56 AM Yunfei Dong wrote: > > Init some of VP9 frame decode params to default value. > > Signed-off-by: Yunfei Dong Maybe add Fixes: b88dbe38dca8 ("media: uapi: Add VP9 stateless decoder controls") > --- > 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 >