cancel
Showing results for 
Search instead for 
Did you mean: 

LibJPEG Image decompression issue by using ExtFlash stored image.

PPanc.1
Associate II

Hello Team,

I've a 64MB flash from custom board.

I able to flash JPEG hex array to Flash section @ 0x90000000.

Flash image array verify in memory mapped mode and show data in memory section of IDE in proper manner.

Now,In TouchGFX designer ScreenView.cpp code there are I'm use LibJPEG library for decompressed image.Library code also working properly.

But here issue is when I use address then give it SOI error :

jpeg_mem_src(&cinfo,(unsigned char *)(0x90000000),2416);  
 
jpeg_read_header(&cinfo, TRUE);

So,I can't understand if data image array flash properly then why give it error ?

If I provide direct JPEG buffer array like

uint8_t buffer[2416] = {0xFF,0xD8,0xFF,0xE0 ....}
 
jpeg_mem_src(&cinfo,buffer,2416);

Kindly suggest me solution.

Thank you.

Reagrds,

Pratik

0 REPLIES 0