This commit is contained in:
2025-10-24 05:26:42 +02:00
parent b6196c1d46
commit 0ec8b77554
8 changed files with 250 additions and 213 deletions

View File

@ -60,10 +60,10 @@ class Format:
def __init__(self, channels, depth):
self._channels = channels
self._depth = depth
if depth is 8:
if depth == 8:
self._type = 'B'
self._size = channels
elif depth is 16:
elif depth == 16:
self._type = 'H'
self._size = channels * 2
else: