]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
media: venus: change the default value of GOP size
authorMalathi Gottam <mgottam@codeaurora.org>
Mon, 12 Nov 2018 09:06:02 +0000 (04:06 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 09:34:16 +0000 (04:34 -0500)
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 <mgottam@codeaurora.org>
Acked-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/qcom/venus/venc_ctrls.c

index 459101728d26cd2fe7c4a824c922839eda743b3f..e6a43e934a050ab7fd94d0919b6593d24fc1d91e 100644 (file)
@@ -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);