Function rsmpeg::ffi::av_hwframe_transfer_get_formats[][src]

pub unsafe extern "C" fn av_hwframe_transfer_get_formats(
    hwframe_ctx: *mut AVBufferRef,
    dir: u32,
    formats: *mut *mut i32,
    flags: i32
) -> i32
Expand description

Get a list of possible source or target formats usable in av_hwframe_transfer_data().

@param hwframe_ctx the frame context to obtain the information for @param dir the direction of the transfer @param formats the pointer to the output format list will be written here. The list is terminated with AV_PIX_FMT_NONE and must be freed by the caller when no longer needed using av_free(). If this function returns successfully, the format list will have at least one item (not counting the terminator). On failure, the contents of this pointer are unspecified. @param flags currently unused, should be set to zero @return 0 on success, a negative AVERROR code on failure.