MP4DMXMpoOutputFunctionCallback

Syntax

#include <cafe/mp4dmx.h>

s32
MP4DMXMpoOutputFunctionCallback(
    MP4DMXMpoDATA *data,
    s32 track_ID,
    void *handle
);

Parameters

data The output data (Input).
track_ID The output data's track ID (Input).
handle A pointer referencing a callback function's handle (Input).

Return Values

MP4DMX_RET_SUCCESS Success.
MP4DMX_RET_ERROR_INVALID_POINTER Failure. This error is returned when an argument is NULL.
MP4DMX_RET_ERROR Failure. This error is returned when some other error occurs within the function.

Description

The callback function is defined in the user application, and must be implemented. It must also be included in the input parameter configuration.

The callback function is configured by setting a function pointer and handle in the MP4DMXMpoOutputFunction data structure. The MP4 data file can be accessed by casting the library output data to a pointer to the MP4DMXMpoUNIT. If extraction of the elementary data completes, the return value of the callback is set to MP4DMX_RET_SUCCESS as input to the next-stage decoder.

Do Not Call From

Background Do not call this function from the background.
Callbacks Do not call this function from any callback function.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.

See Also

Error Codes

Revision History

2014-08-01 Initial version.


CONFIDENTIAL