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

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

Merge "msm: vidc: Allow all-intra encoding in CBR_CFR"

parents 0ccc5672 1b0c12bb
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -4365,6 +4365,13 @@ int handle_all_intra_restrictions(struct msm_vidc_inst *inst)
		return -ENOTSUPP;
		return -ENOTSUPP;
	}
	}


	/* CBR_CFR is one of the advertised rc mode for HEVC encoding.
	 * However, all-intra is intended for quality bitstream. Hence,
	 * fallback to VBR RC mode if client needs all-intra encoding.
	 */
	if (inst->rc_type == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR)
		inst->rc_type = V4L2_MPEG_VIDEO_BITRATE_MODE_VBR;

	/* check supported bit rate mode and frame rate */
	/* check supported bit rate mode and frame rate */
	capability = &inst->capability;
	capability = &inst->capability;
	n_fps = inst->clk_data.frame_rate >> 16;
	n_fps = inst->clk_data.frame_rate >> 16;