MCPcopy Create free account
hub / github.com/JasonLSC/GSCodec_Studio / decode

Method decode

gsplat/compression/video_codec.py:313–329  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}")

Callers 12

decompressMethod · 0.95
compile_pdfFunction · 0.45
compile_pdfFunction · 0.45
_compress_gaussian_ansFunction · 0.45
_decompress_gaussian_ansFunction · 0.45
read_images_binaryFunction · 0.45
convert_mp4_to_yuvFunction · 0.45
read_extrinsics_binaryFunction · 0.45
convert_mp4_to_yuvFunction · 0.45

Calls 2

_build_decode_cmdMethod · 0.95
_run_commandMethod · 0.95

Tested by

no test coverage detected