[][src]Type Definition libaom_sys::aom_release_frame_buffer_cb_fn_t

type aom_release_frame_buffer_cb_fn_t = Option<unsafe extern "C" fn(priv_: *mut c_void, fb: *mut aom_codec_frame_buffer_t) -> c_int>;

release frame buffer callback prototype

This callback is invoked by the decoder when the frame buffer is not referenced by any other buffers. |fb| is guaranteed to not be NULL. On success the callback must return 0. Any failure the callback must return a value less than 0.

\param[in] priv Callback's private data \param[in] fb Pointer to aom_codec_frame_buffer_t