(self, variant: str, binary_path: Optional[Path] = None)
| 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): |