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
Solved! Go to Solution.
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------