Clear()

Updated: April 19, 2023

Clear the buffer information

Synopsis:

#include <OMXAL/OpenMAXAL_QNX.h>
struct XAQNXBufferQueueSourceItf_ {
    XAresult (*Clear)(XAQNXBufferQueueSourceItf self);
} ;

Arguments:

self
A reference to the source interface

Library:

mmfilter

Description:

This function clears the items in the buffer queue. You should call this function only to cancel an encoding or decoding operation, because it releases the memory of the queued buffer items that haven't been processed.

In normal operation, when the media engine finishes processing the items in a buffer, it generates an event (and hence, triggers the registered callback), to inform the client that the buffer can be released or reused.

Returns:

An XA_RESULT_* constant indicating the operation result