AnsweredAssumed Answered

decode jpeg images.

Question asked by omer levin on Jan 29, 2015
Latest reply on Feb 2, 2015 by omer levin

Hello, I am trying to decode JPEG images using "Line buffer Mode". Reviewing the documentation in "i.MX 6Dual/6Quad VPU Application Programming Interface Linux Reference Manual" Rev L3.0.35_4.1.0, 09/2013, and the mxc_vpu_test (from LTIB) I have a few questions.

- It seems there are quite a few differences in the flow: The test is not setting DecOpenParam.jpgLineBufferMode, thus using a default value of 0, meaning (according to the documentation) 'Line-Buffer Mode". In this mode, according to the flowchart in <>, functions vpu_DecUpdateBitstreamBuffer()/vpu_DecGetBitstreamBuffer() should only be called once at the start of decoding, and not per frame as done in the test code. Similar call is done to Vpu_DecStartOneFrame().

- According to the documentation, in line buffer mode (DecOpenParam.jpgLineBufferMode =0) There's a need to "set bitstream to bitstreambuffer start address" (p.43). How should that be done?

When trying to do it by transferring the decoder input stream to bitstreambuffer start address using vpu_DecUpdateBitstreamBuffer() or vpu_DecBitBufferFlush(), vpu_DecGetOutputInfo() returns with decodingSuccess=17 (vpu needs more bitstream in rollback mode).

My version info below.

Thanks in advance.





my version info


Product Info: i.MX6Q

VPU firmware version: 2.1.5_r32515

VPU library version: 5.4.6