Loading scripts/ivas_conformance/runConformance.py +0 −21 Original line number Diff line number Diff line Loading @@ -1136,27 +1136,6 @@ class MLDConformance: def analyseOneCommandFromTuple(self, args): 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 _isBitrateAtMost(self, rawCmdline: str, max_kbps: float) -> bool: """Check if all bitrates in command line are <= max_kbps. For bitrate switching tests (e.g., 'from_32_kbps_to_96_kbps'), this checks that the upper (target) bitrate does not exceed max_kbps.""" values = self._extractKbpsValues(rawCmdline) return bool(values) and max(values) <= float(max_kbps) def _isBitrateAtMost80(self, rawCmdline: str) -> bool: return self._isBitrateAtMost(rawCmdline, 80.0) def _isBitrateAtMost192(self, rawCmdline: str) -> bool: return self._isBitrateAtMost(rawCmdline, 192.0) def _outputFormatsInCommand(self, rawCmdline: str) -> set[str]: text = rawCmdline.upper() formats = set() Loading Loading
scripts/ivas_conformance/runConformance.py +0 −21 Original line number Diff line number Diff line Loading @@ -1136,27 +1136,6 @@ class MLDConformance: def analyseOneCommandFromTuple(self, args): 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 _isBitrateAtMost(self, rawCmdline: str, max_kbps: float) -> bool: """Check if all bitrates in command line are <= max_kbps. For bitrate switching tests (e.g., 'from_32_kbps_to_96_kbps'), this checks that the upper (target) bitrate does not exceed max_kbps.""" values = self._extractKbpsValues(rawCmdline) return bool(values) and max(values) <= float(max_kbps) def _isBitrateAtMost80(self, rawCmdline: str) -> bool: return self._isBitrateAtMost(rawCmdline, 80.0) def _isBitrateAtMost192(self, rawCmdline: str) -> bool: return self._isBitrateAtMost(rawCmdline, 192.0) def _outputFormatsInCommand(self, rawCmdline: str) -> set[str]: text = rawCmdline.upper() formats = set() Loading