i.mx RT1160 JPEG Encode?

cancel
Showing results for 
Search instead for 
Did you mean: 

i.mx RT1160 JPEG Encode?

111 Views
Cococarbine
Contributor II

Hello,

I was wondering if there was an example for encoding a YCbCr or RGB565 image from the camera.  I saw there was a jpeg decode example, just not an encoding example.

0 Kudos
2 Replies

101 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Cococarbine,

There is not an encoding example available on the i.MRT1160 SDK. The example available for decoding does contain libraries that can perform several operation with the jpeg format but you would need to review the input required and perform any necessary conversions from the camera to the jpeg libraries.

My apologies for the inconvenience.

Regards,
Gustavo

0 Kudos

105 Views
pdgendt
Contributor II

You can take a look at https://github.com/nothings/stb/blob/master/stb_image_write.h for a simple header only implementation.

Conversion to YCbCr or RGB565 is not supported though.

0 Kudos