Skip to content

Commit

Permalink
Add support for the cros-codecs AV1 decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
dwlsalmeida authored and rgonzalezfluendo committed Nov 23, 2023
1 parent 413bbe2 commit 41c0e4e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fluster/decoders/cros_codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down Expand Up @@ -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'

0 comments on commit 41c0e4e

Please sign in to comment.