convert an RGB888 image to JPEG image

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

convert an RGB888 image to JPEG image

2,779 次查看
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 项奖励
回复
2 回复数

2,763 次查看
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 项奖励
回复

2,669 次查看
zhouqi
Contributor II

 

破坏者

Hi farid_mabrouk

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

   Would you give me so

破坏者
破坏者
 

 

0 项奖励
回复