This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Decoder subFrame processing and the putBufferFxn

Hello - 

I have a question regarding the putBufferFxn function when used with SubFrame processing for the H.264 Decoder (H264VDEC_TI DEV.500.V.H264AVC.D.HP.IVAHD.02.00.08.00).

We are using release DVRRDK_03.50.00.05 on a DM8168 board.

We have the Decoder enabled with subFrame processing.  The getDataFxn is used to feed the Decoder encoded bit buffers.  The putBufferFxn is being called by the Decoder to release the buffer(s).

Per the Decoder Documentation, it states:

"Once the decoder consumes buffers given by Application during data sync call, decoder shall notify the application through VIDDEC3_DynamicParams::putBufferFxn API. Buffers received by decoder during nth data sync call will be returned by decoder just before (n+2)th data sync call."

Question:

Is the putBufferFxn called by the Decoder for each buffer to release, or will call it be called once for all buffers associated with the n-2 getDataFxn call?

I notice that sometimes the putBufferFxn is called more than once (consecutively) by the Decoder.  This seems to occur right before the Decoder is going to exit the process call, and is called two times in a row - the second time immediately following the first call.  

Is there any way to identify exactly what buffers are being released when the putBufferFxn is called?

Thank you for your help.

-David