Updated: April 19, 2023 |
Add a buffer to the queue
#include <OMXAL/OpenMAXAL_QNX.h>
struct XAQNXBufferQueueSourceItf_ { XAresult (*Enqueue)(XAQNXBufferQueueSourceItf self, void *pBufferContext, void *pData, XAuint32 dataLength, const XAQNXBufferItem *pItems, XAuint32 itemsLength); } ;
This function adds a buffer to the queue used by an OpenMAX source. This is the mechanism for writing audio and video data to the QNX OpenMAX-compliant media engine for processing.
An application still owns the memory of the buffers that it adds to the queue. When it's finished writing media data, the application must return the memory of all buffers (e.g., by calling free()), and must call Clear() to make the interface delete its references to that buffer memory.
An XA_RESULT_* constant indicating the operation result