av_hwframe_ctx_create_derived

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 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.

extern (C) @nogc nothrow
int
av_hwframe_ctx_create_derived

Meta