From cbafc773f50858cf92486ff41761168eb4e63297 Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Tue, 2 Mar 2021 08:53:44 +0800 Subject: [PATCH] fix: max value of uint16 is 65535 --- examples/VideoSpeedTest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/VideoSpeedTest.py b/examples/VideoSpeedTest.py index c036b896..be05dba9 100644 --- a/examples/VideoSpeedTest.py +++ b/examples/VideoSpeedTest.py @@ -157,7 +157,7 @@ def mkData(): dt = xp.uint16 loc = 4096 scale = 1024 - mx = 2**16 + mx = 2**16 - 1 elif cacheKey[0] == 'float': dt = xp.float32 loc = 1.0