Loading scripts/ivas_conformance/runConformance.py +6 −1 Original line number Diff line number Diff line Loading @@ -928,12 +928,17 @@ class MLDConformance: return self.analyseOneCommand(*args) def _extractKbpsValues(self, rawCmdline: str) -> list[float]: """Extract all bitrate values from command line (e.g., from 'at_32_kbps' or 'from_32_kbps_to_96_kbps').""" values = [] for match in re.findall(r"(\d+(?:_\d+)?)_kbps", rawCmdline.lower()): values.append(float(match.replace("_", "."))) return values def _isBitrateAtMost80(self, rawCmdline: str) -> bool: """Check if all bitrates in command line are <= 80 kbps. For bitrate switching tests (e.g., 'from_32_kbps_to_96_kbps'), this checks that the upper (target) bitrate does not exceed 80 kbps.""" values = self._extractKbpsValues(rawCmdline) return bool(values) and max(values) <= 80.0 Loading Loading @@ -1935,5 +1940,5 @@ if __name__ == "__main__": for tag in testTags: tag_status = "OK" if tag_results.get(tag, False) else "FAILED" print(f"[{tag}] {tag_status}") print("\n") print() Loading
scripts/ivas_conformance/runConformance.py +6 −1 Original line number Diff line number Diff line Loading @@ -928,12 +928,17 @@ class MLDConformance: return self.analyseOneCommand(*args) def _extractKbpsValues(self, rawCmdline: str) -> list[float]: """Extract all bitrate values from command line (e.g., from 'at_32_kbps' or 'from_32_kbps_to_96_kbps').""" values = [] for match in re.findall(r"(\d+(?:_\d+)?)_kbps", rawCmdline.lower()): values.append(float(match.replace("_", "."))) return values def _isBitrateAtMost80(self, rawCmdline: str) -> bool: """Check if all bitrates in command line are <= 80 kbps. For bitrate switching tests (e.g., 'from_32_kbps_to_96_kbps'), this checks that the upper (target) bitrate does not exceed 80 kbps.""" values = self._extractKbpsValues(rawCmdline) return bool(values) and max(values) <= 80.0 Loading Loading @@ -1935,5 +1940,5 @@ if __name__ == "__main__": for tag in testTags: tag_status = "OK" if tag_results.get(tag, False) else "FAILED" print(f"[{tag}] {tag_status}") print("\n") print()