From 41c0e4eab91f914f828498b61928af882f5f054b Mon Sep 17 00:00:00 2001 From: Daniel Almeida Date: Wed, 22 Nov 2023 15:28:34 -0500 Subject: [PATCH] Add support for the cros-codecs AV1 decoder --- fluster/decoders/cros_codecs.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fluster/decoders/cros_codecs.py b/fluster/decoders/cros_codecs.py index 8a0c063..abf5d51 100644 --- a/fluster/decoders/cros_codecs.py +++ b/fluster/decoders/cros_codecs.py @@ -68,6 +68,8 @@ def decode( input_fmt = "vp8" elif self.codec == Codec.VP9: input_fmt = "vp9" + elif self.codec == Codec.AV1: + input_fmt = "av1" else: raise Exception(f"Unsupported input codec {self.codec}") @@ -111,3 +113,11 @@ class CrosCodecsVP9Decoder(CrosCodecsDecoder): codec = Codec.VP9 hw_acceleration = True api = 'VAAPI' + + +@register_decoder +class CrosCodecsAV1Decoder(CrosCodecsDecoder): + '''cros-codecs decoder for AV1''' + codec = Codec.AV1 + hw_acceleration = True + api = 'VAAPI'