MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / build_cli

Method build_cli

Test/testlib/encoder.py:81–99  ·  view source on GitHub ↗

Build the command line needed for the given test. Args: image: The test image to compress. block_size: The block size to use. preset: The quality preset to use. keep_output: Should the test preserve output images? This is a hint

(self, image: TestImage, block_size: str = '6x6',
                  preset: str = '-thorough', keep_output: bool = True,
                  threads: Optional[int] = None)

Source from the content-addressed store, hash-verified

79 self.binary_path = binary_path
80
81 def build_cli(self, image: TestImage, block_size: str = '6x6',
82 preset: str = '-thorough', keep_output: bool = True,
83 threads: Optional[int] = None) -> list[str]:
84 '''
85 Build the command line needed for the given test.
86
87 Args:
88 image: The test image to compress.
89 block_size: The block size to use.
90 preset: The quality preset to use.
91 keep_output: Should the test preserve output images? This is a hint
92 and may be ignored if astcenc version used can't do it.
93 threads: The thread count to use.
94
95 Return:
96 The command line arguments for this encoder version.
97 '''
98 # pylint: disable=unused-argument,redundant-returns-doc
99 assert False, 'Missing subclass implementation'
100
101 def execute(self, command: list[str]) -> list[str]:
102 '''

Callers 1

run_testMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected