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

Commit 70c9c7d1 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: venc: Enable Adaptive B by default"

parents 55264e2f 261e3eb2
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: