Decodes a bitstream file to a YUV file. Args: input_bitstream: Path to the input bitstream file. output_yuv: Path for the output YUV file. config_params (optional): A dictionary of decoding parameters. Mainly used by ffmpeg to spe
(self,
input_bitstream: Path,
output_yuv: Path,
config_params: Dict[str, Any] = None)
| 311 | self._run_command(cmd, f"Encoding {input_yuv.name}") |
| 312 | |
| 313 | def decode(self, |
| 314 | input_bitstream: Path, |
| 315 | output_yuv: Path, |
| 316 | config_params: Dict[str, Any] = None): |
| 317 | """ |
| 318 | Decodes a bitstream file to a YUV file. |
| 319 | |
| 320 | Args: |
| 321 | input_bitstream: Path to the input bitstream file. |
| 322 | output_yuv: Path for the output YUV file. |
| 323 | config_params (optional): A dictionary of decoding parameters. |
| 324 | Mainly used by ffmpeg to specify output format. |
| 325 | """ |
| 326 | if config_params is None: |
| 327 | config_params = {} |
| 328 | cmd = self._build_decode_cmd(input_bitstream, output_yuv, config_params) |
| 329 | self._run_command(cmd, f"Decoding {input_bitstream.name}") |
no test coverage detected