You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
thanks again for your very helpful Javascript code!
I'm playing around with a Loupedeck CT myself and documented the issue for Lua as well ( CommandPost/CommandPost#2369 ).
The pixel buffer memory layout is 5-6-5 r-g-b , and the bytes are stored little-endian. The code in index.js calculates the number as 5-5-3 r-b-g , big-endian. The upper "unused" three bits of the number belong to green.
I can't run your code, so I have to make vague suggestions here, but I think the two changes should be:
Change the rgb2int() function to return a 5-6-5 number.
Write that number as little-endian byte sequence instead of big-endian byte sequence.
Hi all,
thanks again for your very helpful Javascript code!
I'm playing around with a Loupedeck CT myself and documented the issue for Lua as well ( CommandPost/CommandPost#2369 ).
The pixel buffer memory layout is 5-6-5 r-g-b , and the bytes are stored little-endian. The code in
index.jscalculates the number as 5-5-3 r-b-g , big-endian. The upper "unused" three bits of the number belong to green.I can't run your code, so I have to make vague suggestions here, but I think the two changes should be:
rgb2int()function to return a 5-6-5 number.