notro / gud

GUD USB Display
155 stars 8 forks source link

Support for JPEG compression #2

Open lightelf76 opened 3 years ago

lightelf76 commented 3 years ago

Hi! Many MCUs/MPUs have HW JPEG codec on-chip. It could be fine to utilize this functionality to save both USB bandwidth and MCU processing power.

notro commented 3 years ago

Yeah I'm aware of that. To support that someone would have to write/port a MIT licensed software encoder for use in the host driver since hw jpeg encoding in the kernel is not common and it looks like it would be difficult to drive the v4l2 interface (ioctl's) from inside the kernel.

It will be interesting to see what MCU's people come up with that will be suitable for running a GUD display.

lightelf76 commented 3 years ago

There are a number of embeddable JPEG encoders, like this https://github.com/serge-rgb/TinyJPEG