Skip to main content
frackers
Senior
October 13, 2019
Question

H/W JPEG encode/decode with different colour formats

  • October 13, 2019
  • 0 replies
  • 653 views

Now that the h/w jpeg decode is working so well I have turned my attention to the encode side. I'm currently using a s/w encoder but for that I have to convert RGB565 from the camera into RGB888 for the encoder I have chosen.

The h/w encoder can do RGB565 directly but unfortunately, jpeg_utils.c assumes that decode and encode are the same format (the code is peppered with macros) and I'm using ARGB8888 for the decode.

Is there a way of doing this without a major re-write of the utils module - or has maybe someone already done it? I could continue to do the 565/888 conversion (its using DMA2D) but it would be nice to do it right!

Cheers

This topic has been closed for replies.