convert an RGB888 image to JPEG image

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

convert an RGB888 image to JPEG image

1,681 Views
farid_mabrouk
Contributor II

Hi Guys!

I have generated framebuffer in RGB888 and I would like to convert to to a JPEG format. I am trying to use these APIs, bur so far no success:

// Step 2: Initialize the JPEG compression object
jpeg_create_compress(&cinfo);

//jpeg_start_decompress(&cinfo);
jpeg_start_compress (&cinfo,true);

 

Can anyone give me more details about what other APIs to use and it would be great if there is a demo example.

Thank you all in advance.

 

0 Kudos
2 Replies

1,665 Views
farid_mabrouk
Contributor II

I hope someone would answer my question. I am not sure why I am not getting a reply for none of the questions I submitted recently.

 

I am trying to compress an RGB888 image using Libjepg library, but for some reasons my code hangs as soon as it call this function: jpeg_set_defaults(&cinfo); I was following the example code used in this APP Note: https://www.nxp.com/docs/en/application-note/AN12110.pdf

In between I am using iMX RT1176A.

0 Kudos

1,571 Views
zhouqi
Contributor II

 

Spoiler

Hi farid_mabrouk

   I have the problem with how to get a RGB888 capture from CSI.

   Would you give me so

Spoiler
Spoiler
 

 

0 Kudos