Function rsmpeg::ffi::av_hwframe_ctx_create_derived
source · pub unsafe extern "C" fn av_hwframe_ctx_create_derived(
derived_frame_ctx: *mut *mut AVBufferRef,
format: i32,
derived_device_ctx: *mut AVBufferRef,
source_frame_ctx: *mut AVBufferRef,
flags: i32
) -> i32
Expand description
Create and initialise an AVHWFramesContext as a mapping of another existing AVHWFramesContext on a different device.
av_hwframe_ctx_init() should not be called after this.
@param derived_frame_ctx On success, a reference to the newly created AVHWFramesContext. @param format The AVPixelFormat for the derived context. @param derived_device_ctx A reference to the device to create the new AVHWFramesContext on. @param source_frame_ctx A reference to an existing AVHWFramesContext which will be mapped to the derived context. @param flags Some combination of AV_HWFRAME_MAP_* flags, defining the mapping parameters to apply to frames which are allocated in the derived device. @return Zero on success, negative AVERROR code on failure.