diff options
Diffstat (limited to 'chromium/media/filters/dav1d_video_decoder.cc')
-rw-r--r-- | chromium/media/filters/dav1d_video_decoder.cc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/chromium/media/filters/dav1d_video_decoder.cc b/chromium/media/filters/dav1d_video_decoder.cc index bb31801e439..7e5eaf5b245 100644 --- a/chromium/media/filters/dav1d_video_decoder.cc +++ b/chromium/media/filters/dav1d_video_decoder.cc @@ -129,6 +129,16 @@ struct ScopedDav1dPictureFree { } }; +// static +SupportedVideoDecoderConfigs Dav1dVideoDecoder::SupportedConfigs() { + return {{/*profile_min=*/AV1PROFILE_PROFILE_MAIN, + /*profile_max=*/AV1PROFILE_PROFILE_HIGH, + /*coded_size_min=*/kDefaultSwDecodeSizeMin, + /*coded_size_max=*/kDefaultSwDecodeSizeMax, + /*allow_encrypted=*/false, + /*require_encrypted=*/false}}; +} + Dav1dVideoDecoder::Dav1dVideoDecoder(MediaLog* media_log, OffloadState offload_state) : media_log_(media_log), @@ -145,6 +155,10 @@ std::string Dav1dVideoDecoder::GetDisplayName() const { return "Dav1dVideoDecoder"; } +VideoDecoderType Dav1dVideoDecoder::GetDecoderType() const { + return VideoDecoderType::kDav1d; +} + void Dav1dVideoDecoder::Initialize(const VideoDecoderConfig& config, bool low_delay, CdmContext* /* cdm_context */, @@ -368,7 +382,7 @@ bool Dav1dVideoDecoder::DecodeBuffer(scoped_refptr<DecoderBuffer> buffer) { color_space = config_.color_space_info(); frame->set_color_space(color_space.ToGfxColorSpace()); - frame->metadata()->power_efficient = false; + frame->metadata().power_efficient = false; frame->set_hdr_metadata(config_.hdr_metadata()); // When we use bind mode, our image data is dependent on the Dav1dPicture, |