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