analogdevicesinc / msdk

Software Development Kit for Analog Device's MAX-series microcontrollers
Apache License 2.0
69 stars 84 forks source link

RGB888_to_RGB #681

Closed ryalberti closed 1 year ago

ryalberti commented 1 year ago

In the file imgConverter.py as seen in msdk/Examples/MAX78000/ImageCapture/utils the function rgb888_to_rgb uses 3 as the bytes per pixel. This results in a faulty conversion. The 3 should be changed to a 4 in lines 108 & 109. Attached is our fix as an example. imgConverter.zip

Jake-Carter commented 1 year ago

Thanks @ryalberti, just opened a PR to fix the converter script and auto-select the correct FIFO mode for RGB888 conversions.