From 73c44f0da30111f55b2b80eef06bacd28ec54517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tronel?= Date: Tue, 28 Nov 2023 16:18:19 +0100 Subject: [PATCH] =?UTF-8?q?On=20ne=20parse=20pas=20les=20espaces=20de=20co?= =?UTF-8?q?lorim=C3=A9trie.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- removeads.py | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/removeads.py b/removeads.py index 8dfbe04..3bc9c52 100755 --- a/removeads.py +++ b/removeads.py @@ -28,37 +28,6 @@ class SupportedFormat(IntEnum): else: return 'Unsupported format' -@unique -class ColorSpace(IntEnum): - BT709=0, - FCC=1, - BT601=2, - BT470=3, - BT470BG=4, - SMPTE170M=5, - SMPTE240M=6, - BT2020=7 - - def __str__(self): - if self is ColorSpace.BT709: - return 'bt709' - elif self is ColorSpace.FCC: - return 'fcc' - elif self is ColorSpace.BT601: - return 'bt601' - elif self is ColorSpace.BT470: - return 'bt470' - elif self is ColorSpace.BT470BG: - return 'bt470bg' - elif self is ColorSpace.SMPTE170M: - return 'smpte170m' - elif self is ColorSpace.SMPTE240M: - return 'smpte240m' - elif self is ColorSpace.BT2020: - return 'bt2020' - else: - return 'Unsupported color space' - def getFormat(inputFile): logger = logging.getLogger(__name__)