Change i.MX6DQ JPEG quality.

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

Change i.MX6DQ JPEG quality.

跳至解决方案
727 次查看
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

标签 (4)
标记 (3)
0 项奖励
回复
1 解答
588 次查看
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 项奖励
回复
1 回复
589 次查看
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 项奖励
回复