Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCP-3870: Remove flu{hwva}h265dec stream/alignment configurations #186

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading