ZL_Compressor_initUsingGraphFn

Function ZL_Compressor_initUsingGraphFn 

Source
pub unsafe extern "C" fn ZL_Compressor_initUsingGraphFn(
    compressor: *mut ZL_Compressor,
    f: ZL_GraphFn,
) -> ZL_Report
Expand description

@brief Initialize a @p compressor object with a ZL_GraphFn Graph function @p f. It will register a few custom graphs and custom nodes, and set the starting Graph ID. This is a convenience function, which is equivalent to calling the Graph function, then ZL_Compressor_selectStartingGraphID() followed by ZL_Compressor_validate() @returns Success or an error which can be checked with ZL_isError(). @param f The function used to build the ZL_GraphID.