Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2853227pxb; Sat, 25 Sep 2021 20:45:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzom9YodO7SRdcJg1RPz6PlggFhQ0J4v0VbCCQ5f/6vFIuKJPmfX+VWokKEEjCI0ArLszZ1 X-Received: by 2002:a05:6402:1e88:: with SMTP id f8mr14851955edf.126.1632627951052; Sat, 25 Sep 2021 20:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632627951; cv=none; d=google.com; s=arc-20160816; b=zNocIngsL4f8XfG4eoAKMs3S62OyO06DtPmk0szftMbRsZPqSuiViCf1abiatM4c+/ PNL+n7eZjapUpT4cIP7+FM0VMXYX0a+qTkBo2EsdiR64Lb7q9i+MH1Pq5VwaCfZXR9gk OsdSdf0geUVJBJ8AJCG0E4F8QdH2QbBuCOGINnEjK7BjKXsm6q9FHUD80DLAX6KBVbna TG9loXIauievwYRW6LiHJxIpuBjyO9/x8AjbRB+LZL1QYNySJ/g0Ec2PszLPdysaWbPI Crq//zGIUiFnBLBU3yf4H5ie8oTNw32VIb5QnK3bBrxgBJTjrVOEoeWhopVpaiOXCoEN OtYw== 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 :message-id:date:subject:cc:to:from; bh=eIVZuHqg0BFjTf0M80TGWcC+DS4PU/CZldkWWbt30JU=; b=djhSFAqgj+IcxxCbFiJ01v7KY4cUa8tY/XSB27YuCrtzi3B9trSZqGc8Y1jNmAhf7a YWASk+dWjLZ6ZsWc10sZa5k8C5chUmtXzdvD6ZsWy2Ht8HW2MoaqezJL5L96ukSgTOCw kYlsuF1Kr4bozHttez9L3FiPUsHgy78uEZ4gxONjkVdQhC69RRHsU9uOSlXkxDyJN8Dr aM7bCPpvWAvEMzd43NfLQUGKHYZUdd4H0IdJSzr7Sfj0tCxPEhXNoo0tjpJtXOJUg5DD wnnMlP8v3oXgnWohBgB9KWszPO/PA01btocbb0inwlCzJvW/V41JpGunEBnBaBhFeQiQ c4Dg== 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 os28si6724873ejb.559.2021.09.25.20.45.22; Sat, 25 Sep 2021 20:45:51 -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; 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 S230413AbhIZDlU (ORCPT + 99 others); Sat, 25 Sep 2021 23:41:20 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:48816 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230373AbhIZDlT (ORCPT ); Sat, 25 Sep 2021 23:41:19 -0400 X-UUID: 93ab066e138e4c8faf3e5ccefc0535ec-20210926 X-UUID: 93ab066e138e4c8faf3e5ccefc0535ec-20210926 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 716607953; Sun, 26 Sep 2021 11:39:39 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 26 Sep 2021 11:39:38 +0800 Received: from localhost.localdomain (10.17.3.154) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 26 Sep 2021 11:39:37 +0800 From: Irui Wang To: Hans Verkuil , Tzung-Bi Shih , Hirokazu Honda , Alexandre Courbot , Tiffany Lin , Mauro Carvalho Chehab , Matthias Brugger , Tomasz Figa CC: Hsin-Yi Wang , Maoguang Meng , Longfei Wang , Yunfei Dong , Fritz Koenig , Irui Wang , , , , , , Subject: [PATCH] media: mtk-vcodec: MT8173 h264/vp8 encoder min/max bitrate settings Date: Sun, 26 Sep 2021 11:39:35 +0800 Message-ID: <20210926033935.9258-1-irui.wang@mediatek.com> X-Mailer: git-send-email 2.25.1 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 Set recommend min/max bitrate range for MT8173 h264/vp8 encoder. Signed-off-by: Irui Wang --- 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