The following functions are required to be implemented for all decoders that advertise the AOM_CODEC_CAP_PUT_SLICE capability. Calling these functions for codecs that don't advertise this capability will result in an error code being returned, usually AOM_CODEC_ERROR
put slice callback prototype
This callback is invoked by the decoder to notify the application of the availability of partially decoded image data. The
Register for notification of slice completion.
Registers a given function to be called when a decoded slice is available.
- Parameters
-
[in] | ctx | Pointer to this instance's context |
[in] | cb | Pointer to the callback function |
[in] | user_priv | User's private data |
- Return values
-
AOM_CODEC_OK | Callback successfully registered. |
AOM_CODEC_ERROR | Decoder context not initialized, or algorithm not capable of posting slice completion. |