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

Commit 942a41f5 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm : Cap framerate for all Intra setting"

parents c7eadc26 cc1a40e4
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) ||