On ne parse pas les espaces de colorimétrie.
This commit is contained in:
31
removeads.py
31
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__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user