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

Method __init__

Test/testlib/encoder.py:283–292  ·  view source on GitHub ↗
(self, variant: str, binary_path: Optional[Path] = None)

Source from the content-addressed store, hash-verified

281 }
282
283 def __init__(self, variant: str, binary_path: Optional[Path] = None):
284 name = f'astcenc-{variant}-{self.version}'
285
286 if binary_path is None:
287 binary = 'astcenc'
288 post = f'-{variant}' if variant != 'universal' else ''
289 ext = '.exe' if os.name == 'nt' else ''
290 binary_path = Path('./') / 'bin' / f'{binary}{post}{ext}'
291
292 super().__init__(name, variant, binary_path)
293
294 def build_cli(self, image, block_size='6x6', preset='-thorough',
295 keep_output=True, threads=None):

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected