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

Commit f0556555 authored by Priyanka Gujjula's avatar Priyanka Gujjula
Browse files

msm: vidc: Allow adaptive B frame encode for hevc

Both H264 and HEVC can support adaptive B frame
encoding.

Change-Id: I4b51a224d9ed9bb173f40ea5c4c919ff2800a85c
parent d435c9e7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2501,7 +2501,8 @@ int msm_venc_set_intra_period(struct msm_vidc_inst *inst)

	intra_period.pframes = gop_size->val;

	if (!max_layer->val && codec == V4L2_PIX_FMT_H264) {
	/* max_layer 0/1 indicates absence of layer encoding */
	if (max_layer->val < 2) {
		/*
		 * At this point we've already made decision on bframe.
		 * Control value gives updated bframe value.