<_whitenotifier-f>
[glasgow] attie commented on pull request #225: applet.video.ws2818_output: add support for LEDs other than RGB - https://git.io/JTp2S
ali_as has quit [Remote host closed the connection]
<marcan>
that should be pix_bytes = 3, pix_bpp = 32 right?
<marcan>
since there are 8 bits of padding
<marcan>
so rgb in, grb0 out
<d1b2>
<Attie> maybe... an "in size" and "out size" might be a good idea, but I simplified (for now)
<d1b2>
<Attie> e.g: I expected people with RGBW LEDs to feed in RGBA pixels, and then mask off the A to show "color" and avoid white-washing everything due to the alpha component
<d1b2>
<Attie> if you only have RGB LEDs, then just feed in RGB
<marcan>
well, W != A
<d1b2>
<Attie> and if you actually want control kf the white LED, then pick RGBW
<marcan>
you need a specific color transform to properly take advantage of RGBW LEDs
<d1b2>
<Attie> yeah, hence masking it to zero
<marcan>
yeah, but then you're just wasting USB bandwidth and requiring people to use RGBA
<marcan>
it makes much more sense to take in RGB in that case
<d1b2>
<Attie> I agree, but then we end up with an "input pixel format" and an "output pixel format", and that increases complexity
<d1b2>
<Attie> e.g: RGB in, RGBW out... vs. RGB in RGB out
<d1b2>
<Attie> I need to go to sleep now, but happy to continue discussing tomorrow
<d1b2>
<Attie> I'm not against doing it more properly
<marcan>
it's just passing in "in width" vs "out width" separately
<marcan>
RGBx means RGB in, RGBW out; RGB means RGB in, RGB out
<marcan>
just change the tuple to (3, 4, lambda..)
<marcan>
pix_bytes_in, pix_bytes_out, func
<marcan>
and calculate pix_bpp from pix_bytes_out
<d1b2>
<Attie> yeah, true... okay. I'll look at that tomorrow
<d1b2>
<Attie> nn :)
<marcan>
nn!
gillesmauve has quit [Killed (Sigyn (Spam is off topic on freenode.))]
PyroPeter_ has joined #glasgow
nicoo has quit [Ping timeout: 240 seconds]
PyroPeter has quit [Ping timeout: 264 seconds]
PyroPeter_ is now known as PyroPeter
nicoo has joined #glasgow
electronic_eel has quit [Ping timeout: 260 seconds]
electronic_eel has joined #glasgow
Getorix_ has joined #glasgow
Getorix__ has joined #glasgow
Getorix has quit [Ping timeout: 260 seconds]
Getorix_ has quit [Ping timeout: 265 seconds]
Stormwind_mobile has quit [Ping timeout: 246 seconds]
cr1901_modern has quit [Ping timeout: 272 seconds]
cr1901_modern has joined #glasgow
cr1901_modern1 has joined #glasgow
cr1901_modern has quit [Ping timeout: 246 seconds]
Stormwind_mobile has joined #glasgow
Stormwind_mobile has quit [Ping timeout: 272 seconds]
cr1901_modern1 has quit [Quit: Leaving.]
cr1901_modern has joined #glasgow
Stephie has quit [Quit: Fuck this shit, I'm out!]
Stephie has joined #glasgow
ExeciN has joined #glasgow
midnight has quit [Ping timeout: 244 seconds]
midnight has joined #glasgow
Stormwind_mobile has joined #glasgow
ExeciN has quit [Quit: so long king Bowser]
<_whitenotifier-f>
[glasgow] attie synchronize pull request #225: applet.video.ws2818_output: add support for LEDs other than RGB - https://git.io/JTpzp
<d1b2>
<Attie> @marcan / @whitequark I've added support for different input/output pixel sizes
<d1b2>
<Attie> happy to squish into one commit if you'd prefer
<_whitenotifier-f>
[glasgow] attie synchronize pull request #225: applet.video.ws2818_output: add support for LEDs other than RGB - https://git.io/JTpzp
<_whitenotifier-f>
[glasgow] attie synchronize pull request #225: applet.video.ws2818_output: add support for LEDs other than RGB - https://git.io/JTpzp