Interface IBufferQueueReader
interface IBufferQueueReader
Extends com.amazon.apmf.IStandard
This interface defines a buffer queue reader
Methods
tryDequeueFrame()
API to get a frame from buffer queue. Note: Clients may recieve a null object in return if buffer queue does not have a free frame available. We will trigger onFrameAvailable callback on client listeners (if they implemented listner interface and passed while attaching to buffer queue) once a frame is available for clients to use.DequeueStatustryDequeueFrame(outFrame*frame)
Parameters
frame (out)
Frame* — Required
pass Frame* and queue will return the available (if any) frame.
Returns
DequeueStatus
DequeueStatus
enqueueFrame()
When a client is done processing Frame which was made available via onFrameAvailable() callback, they should use this API to return the frame back to queue.voidenqueueFrame(Frame*frame)
Parameters
frame
Frame* — Required
enqueue the frame back to the reader queue

