LarryDong / CeleX5_source

Only source code (demo/source) for CeleX5_MP.
28 stars 7 forks source link

tOffPixelIncreasing overflow #2

Open LarryDong opened 3 years ago

LarryDong commented 3 years ago

When I was recording the tOffPixelIncreasing and tInPixelIncreasing, I found that it came back to 0 after about 30s (about 3,066,000)

微信图片_20210909212341

The type of those variables are uint32_t, which should be large enough. However, in the source code (which generates the libCeleX.so), those value may overflow when muliplied by a 12bit var.

So I modified the source code. Please download the newest code here. Of course, you need to re-compile it to generate libCeleX.so and replace the old one. Good luck.

LarryDong commented 3 years ago

Since CelePixel did not maintain the source code for a long time, I would try to fix bugs if you meet.
Please contact me if you meet a bug no matter you can fix it or not.