Skip to content

Commit

Permalink
H264RateControl: do not force the rate control for default
Browse files Browse the repository at this point in the history
Intel ANV does not support VBR rate control so keep
default rate control selected by the config.

Signed-off-by: Stéphane Cerveau <[email protected]>
  • Loading branch information
dabrain34 authored and zlatinski committed Oct 23, 2024
1 parent 2fc85bd commit 1e89710
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vk_video_encoder/libs/VkVideoEncoder/VkEncoderConfigH264.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,7 @@ bool EncoderConfigH264::GetRateControlParameters(VkVideoEncodeRateControlInfoKHR
pRateControlLayersInfo->frameRateNumerator = frameRateNumerator;
pRateControlLayersInfo->frameRateDenominator = frameRateDenominator;

if (rateControlMode == VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DEFAULT_KHR) {
pRateControlInfo->rateControlMode = VK_VIDEO_ENCODE_RATE_CONTROL_MODE_VBR_BIT_KHR;
} else {
pRateControlInfo->rateControlMode = rateControlMode;
}
pRateControlInfo->rateControlMode = rateControlMode;

if (pRateControlInfo->rateControlMode == VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DISABLED_BIT_KHR) {
pRateControlLayerInfoH264->minQp = pRateControlLayerInfoH264->maxQp = minQp;
Expand Down

0 comments on commit 1e89710

Please sign in to comment.