Change i.MX6DQ JPEG quality.

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

Change i.MX6DQ JPEG quality.

Jump to solution
536 Views
satoshishimoda
Senior Contributor I

Hi community,

Our customer have a question about i.MX6DQ VPU.

They want to change the JPEG encoding quality with Android 5.1 BSP.

When using camera app, JPEG endocing is executed with the following code, but its quality seems to be not able to change.

"hardware/imx/mx6/libcamera2/YuvToJpegEncoder.cpp"

How can we change the JPEG quality?

Best Regards,

Satoshi Shimoda

Labels (4)
Tags (3)
0 Kudos
1 Solution
397 Views
b36401
NXP Employee
NXP Employee

You can use the API. For VPU mjpeg encoder, you need to set related parameter table to adjust the quality.

Here are related API includes:

encop.EncStdParam.mjpgParam.mjpg_qMatTable=...

vpu_EncOpen(&handle, &encop);

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
398 Views
b36401
NXP Employee
NXP Employee

You can use the API. For VPU mjpeg encoder, you need to set related parameter table to adjust the quality.

Here are related API includes:

encop.EncStdParam.mjpgParam.mjpg_qMatTable=...

vpu_EncOpen(&handle, &encop);

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos