Function av_tx_init
pub unsafe extern "C" fn av_tx_init(
ctx: *mut *mut AVTXContext,
tx: *mut Option<unsafe extern "C" fn(*mut AVTXContext, *mut c_void, *mut c_void, isize)>,
type_: u32,
inv: i32,
len: i32,
scale: *const c_void,
flags: u64,
) -> i32
Expand description
Initialize a transform context with the given configuration (i)MDCTs with an odd length are currently not supported.
@param ctx the context to allocate, will be NULL on error @param tx pointer to the transform function pointer to set @param type type the type of transform @param inv whether to do an inverse or a forward transform @param len the size of the transform in samples @param scale pointer to the value to scale the output if supported by type @param flags a bitmask of AVTXFlags or 0
@return 0 on success, negative error code on failure