-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COM-12602-Replace erroneous h266 reference decoder in fluster: (#215)
Replace erroneous h266 reference decoder: * add h266_reference_decoder (VVCSoftware_VTM-H266) * Maintain h266_vvdec_decoder (VVdeC, the Fraunhofer Versatile Video Decoder) * update README.md
- Loading branch information
1 parent
51e533f
commit ad83df2
Showing
4 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Fluster - testing framework for decoders conformance | ||
# Copyright (C) 2024, Fluendo, S.A. | ||
# Author: Ruben Sanchez <[email protected]>, Fluendo, S.A. | ||
# | ||
# This library is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU Lesser General Public License | ||
# as published by the Free Software Foundation, either version 3 | ||
# of the License, or (at your option) any later version. | ||
# | ||
# This library is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public | ||
# License along with this library. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
from fluster.codec import Codec, OutputFormat | ||
from fluster.decoder import Decoder, register_decoder | ||
from fluster.utils import file_checksum, run_command | ||
|
||
|
||
@register_decoder | ||
class H266VVCVTMDecoder(Decoder): | ||
"""VTM H.266/VVC reference decoder implementation""" | ||
|
||
name = "VVCSoftware_VTM-H266" | ||
description = "VVCSoftware_VTM H.266/VVC reference decoder" | ||
codec = Codec.H266 | ||
binary = "DecoderApp" | ||
|
||
def decode( | ||
self, | ||
input_filepath: str, | ||
output_filepath: str, | ||
output_format: OutputFormat, | ||
timeout: int, | ||
verbose: bool, | ||
keep_files: bool, | ||
) -> str: | ||
"""Decodes input_filepath in output_filepath""" | ||
# pylint: disable=unused-argument | ||
run_command( | ||
[self.binary, "-b", input_filepath, "-o", output_filepath], | ||
timeout=timeout, | ||
verbose=verbose, | ||
) | ||
return file_checksum(output_filepath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters