video: driver: Modify default values for VBV Delay and Peak Bitrate

Modify cap values for below properties:
[1] VBV Dealy: default as 300, min as 100, and max as 300
[2] Peak bitrate: default as avg bitrate set by client.

Change-Id: Ic9533e8a40e789128e5baa975bf1a0355e373e08
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
This commit is contained in:
Akshata Sahukar
2021-04-26 18:35:06 -07:00
parent cf3fd457b3
commit 450a9e0e20
3 changed files with 3 additions and 8 deletions

View File

@@ -1528,9 +1528,7 @@ int msm_vidc_adjust_peak_bitrate(void *instance, struct v4l2_ctrl *ctrl)
if (adjusted_value < bitrate)
adjusted_value = bitrate;
} else {
adjusted_value = capability->cap[BIT_RATE].value +
(capability->cap[BIT_RATE].value /
PERCENT_PEAK_BITRATE_INCREASED);
adjusted_value = capability->cap[BIT_RATE].value;
}
msm_vidc_update_cap_value(inst, PEAK_BITRATE,