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

Commit 261e3eb2 authored by Vaibhav Deshu Venkatesh's avatar Vaibhav Deshu Venkatesh
Browse files

msm: venc: Enable Adaptive B by default



Enable Adaptive B whenever B frames are enabled.

CRs-Fixed: 2234389
Change-Id: I32c8e2a80f4c1ec1a133b6b666f0d7a702578518
Signed-off-by: default avatarVaibhav Deshu Venkatesh <vdeshuve@codeaurora.org>
parent 91083098
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -1365,6 +1365,19 @@ int create_pkt_cmd_session_set_property(
		memcpy(hfi, (struct hfi_intra_period *) pdata,
				sizeof(struct hfi_intra_period));
		pkt->size += sizeof(struct hfi_intra_period);

		if (hfi->bframes) {
			struct hfi_enable *hfi_enable;
			u32 *prop_type;

			prop_type = (u32 *)((u8 *)&pkt->rg_property_data[0] +
				sizeof(u32) + sizeof(struct hfi_intra_period));
			*prop_type =  HFI_PROPERTY_PARAM_VENC_ADAPTIVE_B;
			hfi_enable = (struct hfi_enable *)(prop_type + 1);
			hfi_enable->enable = true;
			pkt->num_properties = 2;
			pkt->size += sizeof(struct hfi_enable) + sizeof(u32);
		}
		break;
	}
	case HAL_CONFIG_VENC_IDR_PERIOD: