Skip to content

Commit

Permalink
RateControl: Use disabled rate control as default rate control
Browse files Browse the repository at this point in the history
Intel ANV does not support VBR rate control so make the default
to disabled

Signed-off-by: Stéphane Cerveau <[email protected]>
  • Loading branch information
dabrain34 committed Oct 17, 2024
1 parent 17d7b2d commit a8bcf8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ bool EncoderConfigH264::GetRateControlParameters(VkVideoEncodeRateControlInfoKHR
pRateControlLayersInfo->frameRateDenominator = frameRateDenominator;

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

0 comments on commit a8bcf8f

Please sign in to comment.