Skip to content

Commit

Permalink
EncoderConfigAV1: Fix GetMaxBFrameCount
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dabrain34 authored and zlatinski committed Nov 27, 2024
1 parent eb97ba3 commit 83b5cd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vk_video_encoder/libs/VkVideoEncoder/VkEncoderConfigAV1.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ struct EncoderConfigAV1 : public EncoderConfig {

virtual bool InitRateControl() override;

virtual uint8_t GetMaxBFrameCount() { return static_cast<uint8_t>(av1EncodeCapabilities.maxBidirectionalCompoundReferenceCount); }

bool GetRateControlParameters(VkVideoEncodeRateControlInfoKHR* rcInfo,
VkVideoEncodeRateControlLayerInfoKHR* rcLayerInfo,
VkVideoEncodeAV1RateControlInfoKHR* rcInfoAV1,
Expand Down

0 comments on commit 83b5cd1

Please sign in to comment.