Function rsmpeg::ffi::av_hwframe_ctx_alloc [−][src]
pub unsafe extern "C" fn av_hwframe_ctx_alloc(
device_ctx: *mut AVBufferRef
) -> *mut AVBufferRef
Expand description
Allocate an AVHWFramesContext tied to a given device context.
@param device_ctx a reference to a AVHWDeviceContext. This function will make a new reference for internal use, the one passed to the function remains owned by the caller. @return a reference to the newly created AVHWFramesContext on success or NULL on failure.