Skip to content

Commit 0f35ba2

Browse files
committed
EncoderConfigAV1: Fix GetMaxBFrameCount
To support driver which does not support B Frame, GetMaxBFrameCount has been introduced in #103 but AV1 was not supported yet. Signed-off-by: Stéphane Cerveau <scerveau@igalia.com>
1 parent d6fe796 commit 0f35ba2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vk_video_encoder/libs/VkVideoEncoder/VkEncoderConfigAV1.h

+2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ struct EncoderConfigAV1 : public EncoderConfig {
117117

118118
virtual bool InitRateControl() override;
119119

120+
virtual uint8_t GetMaxBFrameCount() { return static_cast<uint8_t>(av1EncodeCapabilities.maxBidirectionalCompoundReferenceCount); }
121+
120122
bool GetRateControlParameters(VkVideoEncodeRateControlInfoKHR* rcInfo,
121123
VkVideoEncodeRateControlLayerInfoKHR* rcLayerInfo,
122124
VkVideoEncodeAV1RateControlInfoKHR* rcInfoAV1,

0 commit comments

Comments
 (0)