• Home
  • Raw
  • Download

Lines Matching +full:pylint +full:- +full:exit

1 # SPDX-License-Identifier: Apache-2.0
2 # -----------------------------------------------------------------------------
3 # Copyright 2019-2023 Arm Limited
9 # http://www.apache.org/licenses/LICENSE-2.0
16 # -----------------------------------------------------------------------------
63 def build_cli(self, image, blockSize="6x6", preset="-thorough",
71 preset (str): The quality-performance preset to use.
80 # pylint: disable=unused-argument,no-self-use,redundant-returns-doc
93 # pylint: disable=no-self-use
102 sys.exit(1)
167 # pylint: disable=unused-argument,no-self-use,redundant-returns-doc
177 # pylint: disable=unused-argument,no-self-use,redundant-returns-doc
187 # pylint: disable=unused-argument,no-self-use,redundant-returns-doc
198 preset (str): The quality-performance preset to use.
210 # pylint: disable=assignment-from-no-return
239 "ldr": "-tl",
240 "ldrs": "-ts",
241 "hdr": "-th",
242 "hdra": "-tH"
253 name = "astcenc-%s-%s" % (variant, self.VERSION)
257 binary = f"./bin/astcenc-{variant}"
266 def build_cli(self, image, blockSize="6x6", preset="-thorough",
286 blockSize, preset, "-silent"
290 command.append("-normal")
293 command.append("-a")
297 command.append("-j")
305 patternPSNR = r"\s*PSNR \(LDR-RGB\):\s*([0-9.]*) dB"
307 patternPSNR = r"\s*PSNR \(LDR-RGBA\):\s*([0-9.]*) dB"
309 patternPSNR = r"\s*mPSNR \(RGB\)(?: \[.*?\] )?:\s*([0-9.]*) dB.*"
313 return r"\s*Total time:\s*([0-9.]*) s"
316 return r"\s*Coding time:\s*([0-9.]*) s"
319 return r"\s*Coding rate:\s*([0-9.]*) MT/s"
331 binary = f"./Binaries/{version}/astcenc-{variant}"
348 "ldr": "-tl",
349 "ldrs": "-ts",
350 "hdr": "-t"
360 name = "astcenc-%s" % self.VERSION
368 def build_cli(self, image, blockSize="6x6", preset="-thorough",
371 if preset == "-fastest":
372 preset = "-fast"
387 blockSize, preset, "-silentmode", "-time", "-showpsnr"
391 command.append("-normal_psnr")
394 command.append("-hdr")
397 command.append("-alphablend")
400 command.append("-j")
408 patternPSNR = r"PSNR \(LDR-RGB\):\s*([0-9.]*) dB"
410 patternPSNR = r"PSNR \(LDR-RGBA\):\s*([0-9.]*) dB"
412 patternPSNR = r"mPSNR \(RGB\)(?: \[.*?\] )?:\s*([0-9.]*) dB.*"
417 # return r"Elapsed time:\s*([0-9.]*) seconds.*"
418 return r"\s*Total time:\s*([0-9.]*) s"
422 # return r".* coding time: \s*([0-9.]*) seconds"
423 return r"\s*Coding time:\s*([0-9.]*) s"
427 return r"\s*Coding rate:\s*([0-9.]*) MT/s"