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

Commit 4c65367a authored by Akshata Sahukar's avatar Akshata Sahukar
Browse files

msm: vidc: Enable LTR use contraint by default



Encoder shall encode subsequent frames in encoding order subject to the 
following constraints:
- It shall not use short-term reference frames in display/input
  order older than the current frame with the LTR command applied
  for future encoding in encoding order.
- It shall not use LTR frames not described by the most recent USELTRFRAME.
- It may use LTR frames updated after the current frame in encoding order.

Change-Id: I167bb0e211c46f892fedb88f8054bc98543ebe8a
Signed-off-by: default avatarAkshata Sahukar <asahukar@codeaurora.org>
parent 8e381af8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3715,7 +3715,7 @@ int msm_venc_set_ltr_useframe(struct msm_vidc_inst *inst)

	ctrl = get_ctrl(inst, V4L2_CID_MPEG_VIDC_VIDEO_USELTRFRAME);
	use_ltr.ref_ltr = ctrl->val;
	use_ltr.use_constrnt = false;
	use_ltr.use_constrnt = true;
	use_ltr.frames = 0;
	dprintk(VIDC_HIGH, "%s: %d\n", __func__, use_ltr.ref_ltr);
	rc = call_hfi_op(hdev, session_set_property, inst->session,