2021-07-01 07:46 PM
A year ago I had a lot of grief getting the JPEG peripheral working - came down to memory regions!
Now I want to improve the quality by changing from JPEG_420_SUBSAMPLING to JPEG_444_SUBSAMPLING but I get random hard faults .
Is it possible the jpeg hardware is writing outside the bounds of the buffers I have defined?
The encode example has a CHUNK_IN size of 800x4x16 but I just don't have that much RAM available. I'm encoding 420 OK with a 4096 byte buffer and I can find nothing in the documentation that indicates just how big the input buffer should be for a 480 wide image (other than the 'magic' numbers in the example).
Any ideas?