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

Commit b66a36f3 authored by Surapusetty Naresh Babu's avatar Surapusetty Naresh Babu
Browse files

msm : Cap framerate for all Intra setting

check the framerate and cap output framerate
based on allintra encoding.

(cherry picked from commit cc1a40e4)

Change-Id: I1d1bf492b8701e52cc2da64e26b085bd0dbc9945
parent 513d3a22
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4628,6 +4628,13 @@ int handle_all_intra_restrictions(struct msm_vidc_inst *inst)
	fps_max = capability->cap[CAP_ALLINTRA_MAX_FPS].max;
	s_vpr_h(inst->sid, "%s: rc_type %u, fps %u, fps_max %u\n",
		__func__, inst->rc_type, n_fps, fps_max);
	if (inst->all_intra && n_fps > fps_max) {
		inst->clk_data.frame_rate = fps_max << 16;
		n_fps = fps_max;
		s_vpr_h(inst->sid,
			"%s:cap2 frame rate to %u for allintra encoding",
			__func__, inst->clk_data.frame_rate >> 16);
	}
	if ((inst->rc_type != V4L2_MPEG_VIDEO_BITRATE_MODE_VBR &&
		inst->rc_type != RATE_CONTROL_OFF &&
		inst->rc_type != RATE_CONTROL_LOSSLESS) ||