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

Commit e4e50cab authored by Qiwei Liu's avatar Qiwei Liu
Browse files

msm: vidc: enable encoder slice delivery for HEVC



Enable encoder slice delivery for HEVC format.

CRs-fixed: 2104882
Change-Id: I46375c5934ce2e793be27be195d686d0a60195cc
Signed-off-by: default avatarQiwei Liu <qiweil@codeaurora.org>
parent f0c7cce9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1464,13 +1464,14 @@ int msm_venc_s_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
		pdata = &multi_slice_control;
		break;
	case V4L2_CID_MPEG_VIDEO_MULTI_SLICE_DELIVERY_MODE: {
		bool codec_avc =
		bool codecs_supported =
			inst->fmts[CAPTURE_PORT].fourcc == V4L2_PIX_FMT_HEVC ||
			inst->fmts[CAPTURE_PORT].fourcc == V4L2_PIX_FMT_H264 ||
			inst->fmts[CAPTURE_PORT].fourcc ==
							V4L2_PIX_FMT_H264_NO_SC;

		temp_ctrl = TRY_GET_CTRL(V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE);
		if (codec_avc && temp_ctrl->val ==
		if (codecs_supported && temp_ctrl->val ==
				V4L2_MPEG_VIDEO_MULTI_SICE_MODE_MAX_MB) {
			property_id = HAL_PARAM_VENC_SLICE_DELIVERY_MODE;
			enable.enable = true;