Function libaom_sys::aom_codec_get_cx_data[][src]

pub unsafe extern "C" fn aom_codec_get_cx_data(
    ctx: *mut aom_codec_ctx_t,
    iter: *mut aom_codec_iter_t
) -> *const aom_codec_cx_pkt_t

Encoded data iterator

Iterates over a list of data packets to be passed from the encoder to the application. The different kinds of packets available are enumerated in #aom_codec_cx_pkt_kind.

#AOM_CODEC_CX_FRAME_PKT packets should be passed to the application’s muxer. Multiple compressed frames may be in the list. #AOM_CODEC_STATS_PKT packets should be appended to a global buffer.

The application \ref MUST silently ignore any packet kinds that it does not recognize or support.

The data buffers returned from this function are only guaranteed to be valid until the application makes another call to any aom_codec_* function.

\param[in] ctx Pointer to this instance’s context \param[in,out] iter Iterator storage, initialized to NULL

\return Returns a pointer to an output data packet (compressed frame data, two-pass statistics, etc.) or NULL to signal end-of-list.