Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3840377imu; Mon, 12 Nov 2018 01:06:46 -0800 (PST) X-Google-Smtp-Source: AJdET5fer4x34Oc14Em7j2C1WuiT2P69GXINL2WlW1/HDXORE0gY/jVNI6rQIlxW2FA3nkURXdZl X-Received: by 2002:a62:f24f:: with SMTP id y15-v6mr122019pfl.25.1542013606792; Mon, 12 Nov 2018 01:06:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542013606; cv=none; d=google.com; s=arc-20160816; b=bYzA5Yte6NXOfCMRtTHriMmvSPAE+JhMvf+z+2WtMDYF6BFKUvaTL05/1nMRiYv1pb NDlmOLLfLpJFvi/FGCHnPbjcbLFjENVctmoLA+l4UAZ5cmBs748Cmy1+wFt2GLJGhbDN z1rTQuBanIgFny9f940l+UkSfWB0IDRPr7bHu7BB2Q5Jah2mP/K568xkgCXlADl3VZH1 LKR4NJzNpXWXXPxpCjgAyEj5+klJvmDRBMdeZRALEfbaEaxTDpTp//9jZaY677plTHel q3FVXejBebXBgp959UvwkFVX1NbUAEYrKKMUb1NiMrqVr+KROhJz9aWKlutka/l6Z+zU nd3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=fDUUupqAyWTYVw+nAocjnNlLkxQYligWTxQHEl974qw=; b=HNGGt9JpJvZxT1hqKAh5Gk+/ThDn1t7OZx395y37D3yts/EYj3RFWUANzUsu2XHZr5 Eza7GF9TmpqShn76f3GayNvfy3/W4Qk+ZXvCqqq6d3ovnUg+AZGgTFBCWzxE/Ozv83tJ 5T9/cE0O3sBi6+1RGV4WRN7EU+dwjlMKifkZK6hjrKeK6lRA5OLEvrvyIEf3j52LeXSs /rNZu7PMS7/IoPCXYqt9tn2L+R8QpRu9wccREqoSK1qdkoG2WKl8LKvJlakMhaRbn1ck XzqbhW44gH0pbhQ2bUc6OAGJMPz0uhSDg+YivkNp2IsXjS/GcizXro571+newrFSM/Ue sGFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k25-v6si17748512pfe.36.2018.11.12.01.06.31; Mon, 12 Nov 2018 01:06:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729124AbeKLS6Y (ORCPT + 99 others); Mon, 12 Nov 2018 13:58:24 -0500 Received: from alexa-out-blr-02.qualcomm.com ([103.229.18.198]:53888 "EHLO alexa-out-blr.qualcomm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727208AbeKLS6Y (ORCPT ); Mon, 12 Nov 2018 13:58:24 -0500 X-IronPort-AV: E=Sophos;i="5.54,494,1534789800"; d="scan'208";a="236713" Received: from ironmsg04-blr.qualcomm.com ([10.86.208.133]) by alexa-out-blr.qualcomm.com with ESMTP/TLS/AES256-SHA; 12 Nov 2018 14:36:06 +0530 X-IronPort-AV: E=McAfee;i="5900,7806,9074"; a="2574621" Received: from mgottam-linux.qualcomm.com ([10.204.65.20]) by ironmsg04-blr.qualcomm.com with ESMTP; 12 Nov 2018 14:36:06 +0530 Received: by mgottam-linux.qualcomm.com (Postfix, from userid 2305155) id E1A6C310F; Mon, 12 Nov 2018 14:36:04 +0530 (IST) From: Malathi Gottam To: stanimir.varbanov@linaro.org, hverkuil@xs4all.nl, mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, acourbot@chromium.org, vgarodia@codeaurora.org, mgottam@codeaurora.org Subject: [PATCH] media: venus: change the default value of GOP size Date: Mon, 12 Nov 2018 14:36:02 +0530 Message-Id: <1542013562-18968-1-git-send-email-mgottam@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When the client doesn't explicitly set any GOP size, current default value is low and overshoots bitrate beyond tolerance. Hence default value is modified so as to have intra period of 1sec. Signed-off-by: Malathi Gottam --- drivers/media/platform/qcom/venus/venc_ctrls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/venc_ctrls.c b/drivers/media/platform/qcom/venus/venc_ctrls.c index 45910172..e6a43e9 100644 --- a/drivers/media/platform/qcom/venus/venc_ctrls.c +++ b/drivers/media/platform/qcom/venus/venc_ctrls.c @@ -295,7 +295,7 @@ int venc_ctrl_init(struct venus_inst *inst) 0, INTRA_REFRESH_MBS_MAX, 1, 0); v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, - V4L2_CID_MPEG_VIDEO_GOP_SIZE, 0, (1 << 16) - 1, 1, 12); + V4L2_CID_MPEG_VIDEO_GOP_SIZE, 0, (1 << 16) - 1, 1, 30); v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, V4L2_CID_MPEG_VIDEO_VPX_MIN_QP, 1, 128, 1, 1); -- 1.9.1