aboutsummaryrefslogtreecommitdiff
path: root/encoder.py
diff options
context:
space:
mode:
Diffstat (limited to 'encoder.py')
-rw-r--r--encoder.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/encoder.py b/encoder.py
index 15ee859..f61ca9c 100644
--- a/encoder.py
+++ b/encoder.py
@@ -67,10 +67,7 @@ def get_frame():
),
)
)
- return np.stack(
- ((frame & 0b0001) * 255, (frame >> 1 & 0b0011) * 255 / 3, (frame >> 3) * 255),
- axis=-1,
- ).astype(np.uint8)
+ return np.stack(((frame & 0b0001) * 255, (frame >> 1 & 0b0011) * 85, (frame >> 3) * 255), axis=-1).astype(np.uint8)
if args.mix: