Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26e12f8a authored by Surajit Podder's avatar Surajit Podder Committed by Praneeth Paladugu
Browse files

msm: vidc: Increase minimum input buffer count for VP9 decode



Increase minimum input buffer count for VP9 decode to 6,as
some vp9 clips which have superframes with more than 4 subframes
require more than 4 reference buffers to decode, and for some
clients output buffers are coupled with input buffers initially.

Signed-off-by: default avatarDeepak Kushwah <dkushwah@codeaurora.org>
Signed-off-by: default avatarSurajit Podder <spodder@codeaurora.org>
Signed-off-by: default avatarPraneeth Paladugu <ppaladug@codeaurora.org>
Change-Id: I561f4c3ad4c4a94c36293c26aab3a9c9423e9268
parent 5b93813a
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1488,6 +1488,16 @@ static int try_get_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
					HAL_BUFFER_INPUT);
			return -EINVAL;
		}

		if (inst->session_type == MSM_VIDC_DECODER &&
			!(inst->flags & VIDC_THUMBNAIL) &&
			inst->fmts[OUTPUT_PORT].fourcc ==
				V4L2_PIX_FMT_VP9 &&
			bufreq->buffer_count_min_host <
				MIN_NUM_OUTPUT_BUFFERS_VP9)
			bufreq->buffer_count_min_host =
				MIN_NUM_OUTPUT_BUFFERS_VP9;

		ctrl->val = bufreq->buffer_count_min_host;
		break;
	case V4L2_CID_MPEG_VIDC_VIDEO_TME_PAYLOAD_VERSION:
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@
#define MIN_SUPPORTED_HEIGHT 32
#define DEFAULT_FPS 15
#define MIN_NUM_OUTPUT_BUFFERS 1
#define MIN_NUM_OUTPUT_BUFFERS_VP9 6
#define MIN_NUM_CAPTURE_BUFFERS 1
#define MAX_NUM_OUTPUT_BUFFERS VIDEO_MAX_FRAME // same as VB2_MAX_FRAME
#define MAX_NUM_CAPTURE_BUFFERS VIDEO_MAX_FRAME // same as VB2_MAX_FRAME