mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-24 13:55:16 +00:00
e56303798c
Initial SickGear for Python 3.
28 lines
485 B
Python
28 lines
485 B
Python
NB_CHANNEL_NAME = {1: "mono", 2: "stereo"}
|
|
|
|
|
|
def humanAudioChannel(value):
|
|
return NB_CHANNEL_NAME.get(value, str(value))
|
|
|
|
|
|
def humanFrameRate(value):
|
|
if isinstance(value, (int, float)):
|
|
return "%.1f fps" % value
|
|
else:
|
|
return value
|
|
|
|
|
|
def humanComprRate(rate):
|
|
return "%.1fx" % rate
|
|
|
|
|
|
def humanAltitude(value):
|
|
return "%.1f meters" % value
|
|
|
|
|
|
def humanPixelSize(value):
|
|
return "%s pixels" % value
|
|
|
|
|
|
def humanDPI(value):
|
|
return "%s DPI" % value
|