Skip to content

Commit

Permalink
OCP-3870: Remove flu{hwva}h265dec stream/alignment configurations
Browse files Browse the repository at this point in the history
modified:   ../fluster/decoders/gstreamer.py
removed obsolete and unused stream/alignment configurations
for fluendo h265 (sw & hw) decoder
  • Loading branch information
mdimopoulos committed Aug 2, 2024
1 parent 518efe9 commit a89c983
Showing 1 changed file with 0 additions and 86 deletions.
86 changes: 0 additions & 86 deletions fluster/decoders/gstreamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,92 +678,6 @@ class FluendoH264VAGst10Decoder(GStreamer10Video):
api = "HW"


class FluendoH265VAGst10DecoderBase(GStreamer10Video):
"""Fluendo H.265 hardware decoder implementation for GStreamer 1.0"""

codec = Codec.H265
decoder_bin_tmpl = (
" video/x-h265,stream-format={stream_format},alignment={alignment} !"
" fluhwvadec "
)
provider = "Fluendo"
api = "HW"
stream_format: str = ""
alignment: str = ""

def __init__(self) -> None:
super().__init__()
self.name = self._translator(self.name)
self.description = self._translator(self.description)
self.decoder_bin = self.decoder_bin_tmpl.format(
stream_format=self.stream_format, alignment=self.alignment
)

def _translator(self, target_val: str) -> str:
new_val = f"{self.codec.value}-{self.stream_format}-{self.alignment}"
return target_val.replace(self.codec.value, new_val)


@register_decoder
class FluendoH265ByteStreamAuVAGst10Decoder(FluendoH265VAGst10DecoderBase):
"""
Fluendo H.265 (byte-stream/au) hardware decoder implementation for GStreamer 1.0
"""

stream_format = "byte-stream"
alignment = "au"


@register_decoder
class FluendoH265ByteStreamNalVAGst10Decoder(FluendoH265VAGst10DecoderBase):
"""
Fluendo H.265 (byte-stream/nal) hardware decoder implementation for GStreamer 1.0
"""

stream_format = "byte-stream"
alignment = "nal"


@register_decoder
class FluendoH265Hev1AuVAGst10Decoder(FluendoH265VAGst10DecoderBase):
"""
Fluendo H.265 (hev1/au) hardware decoder implementation for GStreamer 1.0
"""

stream_format = "hev1"
alignment = "au"


@register_decoder
class FluendoH265Hvc1AuVAGst10Decoder(FluendoH265VAGst10DecoderBase):
"""
Fluendo H.265 (hvc1/au) hardware decoder implementation for GStreamer 1.0
"""

stream_format = "hvc1"
alignment = "au"


@register_decoder
class FluendoH265Hev1NalVAGst10Decoder(FluendoH265VAGst10DecoderBase):
"""
Fluendo H.265 (hev1/nal) hardware decoder implementation for GStreamer 1.0
"""

stream_format = "hev1"
alignment = "nal"


@register_decoder
class FluendoH265Hvc1NalVAGst10Decoder(FluendoH265VAGst10DecoderBase):
"""
Fluendo H.265 (hvc1/nal) hardware decoder implementation for GStreamer 1.0
"""

stream_format = "hvc1"
alignment = "nal"


@register_decoder
class FluendoFluVAH265DecGst10Decoder(GStreamer10Video):
"""Fluendo H.265 separated plugin hardware decoder for GStreamer 1.0"""
Expand Down

0 comments on commit a89c983

Please sign in to comment.