Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp5104733pxb; Tue, 5 Oct 2021 17:58:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGKFlaegrad4W5zTRGCRbw9JYzvGSqYviSNVNd/sqcy7GdGF7Ym04CokesCDONI15PkL+F X-Received: by 2002:a17:90a:1a4c:: with SMTP id 12mr7381054pjl.175.1633481930046; Tue, 05 Oct 2021 17:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633481930; cv=none; d=google.com; s=arc-20160816; b=ysHpJaA15PCyiBKdqgj99iAigXtxrEnzjT22DbmhgzhnBkaL7LTBn80UVN9B3WcuRZ Jdxc/byZehp7G/vjxrZPyDOdS6RmlUH9+yriFVrSSBKUH12WngCVSQnxOo28bFC0sW5a 7J8KxrEK5yubJN2ewuS2XgTZ9b/AfCj83Sx3ntwP7uAS0ykUeRRl1dsJNdJsyKBBFzQ2 fAHi75DuTv84Skfd8RGY8ienvmwxgmNtCXVDnhfReWRjTa0hUD09xImDt7itutnba3KE r2IS77/OD8GMdm1P1LBu7iTjc/RX5dNO6+KXg3UN7VuW6Nq689eXiLzmwkk2bOy6NO3e jzvg== 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=BnBbGM64QgB5WqzcyJW08etbln6pWC86wmdrU2FWwHk=; b=XG2RC6HWH0GshjJa3ZuvijkgPmtsXAdsaLKX81p+g8Vd2NYRvT02bIDAnSEKUz7c8G HVAR+3O/iHlv/IHHKZwOHgaDyZYk5T3em3BZf/X/whMaOCKk+Hs0oEMX8rTppsEjFDki voj7bmmM8R4mGEOBq4gqDOA9TF5r9E2foilKg3ILLrdnARfQipGFayHVAOeUGw8eYQYe k1ZBWy+eV75kyPXguVead9NDorDhSpwIcRC1HhsaceAygjN1Bog//Cn143peJSaQhdPB gGj54IBc0fQIt6kqr9Ve5YctcrXnVNkfvyC6n9D+bn8Q1/xxvFTXlsfhiUCk25SBV+yq KrwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=jq9S2dgj; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j63si22655665pge.378.2021.10.05.17.58.36; Tue, 05 Oct 2021 17:58:50 -0700 (PDT) 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=@google.com header.s=20210112 header.b=jq9S2dgj; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236953AbhJFA7f (ORCPT + 99 others); Tue, 5 Oct 2021 20:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231582AbhJFA7e (ORCPT ); Tue, 5 Oct 2021 20:59:34 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA34FC06174E for ; Tue, 5 Oct 2021 17:57:42 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id r18so3162683edv.12 for ; Tue, 05 Oct 2021 17:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BnBbGM64QgB5WqzcyJW08etbln6pWC86wmdrU2FWwHk=; b=jq9S2dgjGpgRQfijmZdn0qh5bgVlzqhVZ9YJBI764wnh/E12jtFJ2PsOoeyo0oFIyR LHqk+MI1VVu0h7KDAtA59I+nITfVc00AJyvynBMYhqzLZPw8Z02I5zuWJYeR7q6wIY5m nVLO32I2DZyl62N73IIk6XUHS83X+YlV5v9UmFKEdkFPoLzMgIOeapoVNbikwiZvL9Nm 7bouOO6ZWYcMco3gu5muzmHlkOplwpYfX6brhibL4DWUBQhYp9W8xo2qbYmUPsHRheHI C3/TYxsC/tAiN6v2C3ZoIDig7SBYEXbUQCFf+qwQ+d43Au5j5mqebfmMslkcGzj+/lbU u8bQ== 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=BnBbGM64QgB5WqzcyJW08etbln6pWC86wmdrU2FWwHk=; b=ess3vT182T44O9Uyc6gI01qWakHzeKAXU83ZOUnDZKUbrXU1l2g/rMBF234/YpUy+z UNevJ7abblknVVxlIU24SdpCWLy+guKpyWSyx9xVXsxgBxdUU1h+IDVGgH7Cq5W6caJu 4TaovSz8f4BSjz80DKyiZYHLsPOX6RSPhMiwcqT0qi512gIImNgh95BzhU/IaOcnWfzH z6doB0GTwQ9gIfs1uhYKKML6Z4vt8B1+W3xgNffOG78inNZYoAq7X+/rZTxNqEiIwSy1 Sq5CGeoGe9s6vPZXgWeAZgUHsEs5NM1IJzPXFeo+firGpJuAc7LKQET4s/FEOW9lnNa7 dqjQ== X-Gm-Message-State: AOAM530GupZbI1GUCOohCp12GLrJx7exCIDQq+sPOK6h1qA/eAgzlBGM 65RbvpNrAKki/KmE1KSDE8/uH7MW789UMBvuo2aHKA== X-Received: by 2002:a50:d8cf:: with SMTP id y15mr30842697edj.66.1633481861084; Tue, 05 Oct 2021 17:57:41 -0700 (PDT) MIME-Version: 1.0 References: <20210926033935.9258-1-irui.wang@mediatek.com> In-Reply-To: <20210926033935.9258-1-irui.wang@mediatek.com> From: Hirokazu Honda Date: Wed, 6 Oct 2021 09:57:30 +0900 Message-ID: Subject: Re: [PATCH] media: mtk-vcodec: MT8173 h264/vp8 encoder min/max bitrate settings To: Irui Wang Cc: Hans Verkuil , Tzung-Bi Shih , Alexandre Courbot , Tiffany Lin , Mauro Carvalho Chehab , Matthias Brugger , Tomasz Figa , Hsin-Yi Wang , Maoguang Meng , Longfei Wang , Yunfei Dong , Fritz Koenig , linux-media@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 Irui, thank you for the patch. On Sun, Sep 26, 2021 at 12:39 PM Irui Wang wrote: > > Set recommend min/max bitrate range for MT8173 h264/vp8 encoder. > > Signed-off-by: Irui Wang I confirmed the patch worked with my own test. Tested-by: Hirokazu Honda -Hiro > > --- > This patch dependents on "Clean redundant encoder format definition", > which already accepted into linux-next.git: > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/patch/?id=4093eb21538ae4f2861b26f4615939e1fa50dc67 > --- > drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c > index 4489a9744cd7..5dce3681ce94 100644 > --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c > +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c > @@ -388,8 +388,8 @@ static const struct mtk_vcodec_enc_pdata mt8173_avc_pdata = { > .num_capture_formats = ARRAY_SIZE(mtk_video_formats_capture_h264), > .output_formats = mtk_video_formats_output, > .num_output_formats = ARRAY_SIZE(mtk_video_formats_output), > - .min_bitrate = 1, > - .max_bitrate = 4000000, > + .min_bitrate = 64, > + .max_bitrate = 60000000, > .core_id = VENC_SYS, > }; > > @@ -400,7 +400,7 @@ static const struct mtk_vcodec_enc_pdata mt8173_vp8_pdata = { > .output_formats = mtk_video_formats_output, > .num_output_formats = ARRAY_SIZE(mtk_video_formats_output), > .min_bitrate = 64, > - .max_bitrate = 4000000, > + .max_bitrate = 9000000, > .core_id = VENC_LT_SYS, > }; > > -- > 2.25.1 >