About JPEG Decode in i.MX6Dual Lite with Linux BSP

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

About JPEG Decode in i.MX6Dual Lite with Linux BSP

跳至解决方案
1,039 次查看
yuuki
Senior Contributor II

Dear all,

We want to make application of JPEG Decode using VPU.

- OS is Yocto Linux BSP(fsl-yocto-3.14.28-1.0.0) of NXP.
- Board is MX6DL-SABRE-SDP.

We have the following questions.
May I have advice?

[1]
Files of different size and format cannot be decoded in succession.
When some JPEG files of the different size are decoded in succession,
Is there the method to decode in succession without performing Open/Close of VPU_Decoder?

If it is possible, may I have advice about a setting method?

[2]
A "JPEG decode result" changes by file format(before decoding).
(JPEG file => decode => YUV420 or YUV444 format)

Is there the method to fix the format of the decoded file?
(For example, formats are only YUV444.)

If it is possible, would you tell me the method with a format as RGB?

May I have advice?

Best Regards,
Yuuki

标签 (2)
0 项奖励
回复
1 解答
943 次查看
Yuri
NXP Employee
NXP Employee

Hello,

1.

  The FSL / NXP BSP provides special VPU API for Linux, described in
“i.MX_VPU_Application_Programming_Interface_Linux_Reference_Manual.pdf”.

  To work with several files, please use so called multi-instances feature of VPU.

Several threads may work concurrently via switching the contexts of codec in frame
based mode which are stored in the memory [section 1.2.3 (Multi-Instances) of the
API manual].
For examples, please refer  to sections 3.3.1 (Basic Architecture) and 4.4.2 (VPU
Example Application).

2.

  The decoded data format is defined by encoding parameters.


Have a great day,
Yuri

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

在原帖中查看解决方案

0 项奖励
回复
1 回复
944 次查看
Yuri
NXP Employee
NXP Employee

Hello,

1.

  The FSL / NXP BSP provides special VPU API for Linux, described in
“i.MX_VPU_Application_Programming_Interface_Linux_Reference_Manual.pdf”.

  To work with several files, please use so called multi-instances feature of VPU.

Several threads may work concurrently via switching the contexts of codec in frame
based mode which are stored in the memory [section 1.2.3 (Multi-Instances) of the
API manual].
For examples, please refer  to sections 3.3.1 (Basic Architecture) and 4.4.2 (VPU
Example Application).

2.

  The decoded data format is defined by encoding parameters.


Have a great day,
Yuri

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

0 项奖励
回复