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

Commit 10eb1494 authored by Amit Shekhar's avatar Amit Shekhar
Browse files

msm: vidc: Fix work mode for rate control CQ



Set single stage work mode for HEIC sessions. Currently, with two
stages, encoded tiles are missing at random.

Change-Id: Iadb59102447e1873e99ae1fd03a1d7b6ce3cba1a
Signed-off-by: default avatarAmit Shekhar <ashekhar@codeaurora.org>
parent 7db4d9a4
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1514,6 +1514,10 @@ int msm_vidc_decide_work_mode_iris2(struct msm_vidc_inst *inst)
			/* For WORK_MODE_1, set Low Latency mode by default */
			/* For WORK_MODE_1, set Low Latency mode by default */
			latency.enable = true;
			latency.enable = true;
		}
		}
		if (inst->rc_type == V4L2_MPEG_VIDEO_BITRATE_MODE_CQ) {
			pdata.video_work_mode = HFI_WORKMODE_1;
			latency.enable = true;
		}
		if (inst->rc_type == RATE_CONTROL_LOSSLESS) {
		if (inst->rc_type == RATE_CONTROL_LOSSLESS) {
			pdata.video_work_mode = HFI_WORKMODE_2;
			pdata.video_work_mode = HFI_WORKMODE_2;
			latency.enable = false;
			latency.enable = false;