Function av_hwframe_get_buffer

Source
pub unsafe extern "C" fn av_hwframe_get_buffer(
    hwframe_ctx: *mut AVBufferRef,
    frame: *mut AVFrame,
    flags: c_int,
) -> c_int
Expand description

Allocate a new frame attached to the given AVHWFramesContext.

@param hwframe_ctx a reference to an AVHWFramesContext @param frame an empty (freshly allocated or unreffed) frame to be filled with newly allocated buffers. @param flags currently unused, should be set to zero @return 0 on success, a negative AVERROR code on failure