AnsweredAssumed Answered

Escape from decoder hang of VPU API (or prescan usage)

Question asked by torus1000 on May 12, 2015
Latest reply on Jun 29, 2015 by torus1000

Hi all,

 

Now I'm getting stack at VPU decoder hang then I read VPU API manual;
  i.MX_6_VPU_Application_Programming_Interface_Linux_Reference_Manual.pdf

 

I have following 2 questions. Can anybody help me?

 

     >Page85 : 4.4.3 Other Issues
     >To avoid the VPU hanging if there is not enough stream data, enable prescan
     >in networking mode to first scan the stream buffer.
     >This flag can be disabled if the bitstream buffer is large in real video
     >playback and the application can guarantee the bitstream buffer is enough.

 

(Q1)  Could you figure out which step should I add prescanResult flag checker?
     4.4.2.1 Decode Stream to Display on LCD on p83
     3.3.1.1 Decoder Operation Flow on p41, Figure 4. Decoder Operation Flow on p43

 

     >Page 81 4.3.4 Escape from Decoder Hang
     >In the middle of picture decoding, decoder hanging is signaled to
     >the application through the decoder buffer empty interrupt if this interrupt is enabled

 

(Q2) Regard to decoder buffer empty interrupt, when and how did it enable during decoding?
     (see 3.3.1.1 Decoder Operation Flow on p41, Figure 4. Decoder Operation Flow on p43)

 

Thanks.

Outcomes