ZL_Compressor_selectStartingGraphID

Function ZL_Compressor_selectStartingGraphID 

Source
pub unsafe extern "C" fn ZL_Compressor_selectStartingGraphID(
    compressor: *mut ZL_Compressor,
    graph: ZL_GraphID,
) -> ZL_Report
Expand description

@brief Selects a graph as the default entry point for the compressor.

By default, a compressor’s entry point is its most recently registered graph. This function allows explicit selection of a different graph as the default entry point for subsequent compression operations.

@param compressor The compressor instance to configure. Must not be NULL. @param graph The graph ID to set as the default entry point. Must be a valid graph ID that has been registered with this compressor. @returns ZL_Report indicating success or failure. Use ZL_isError() to check for errors.

@note The compressor can still be used as a collection of multiple entry points. Alternative entry points can be selected at runtime using ZL_CCtx_selectStartingGraphID(). @note This operation automatically validates the compressor by calling ZL_Compressor_validate() internally.

See ZL_CCtx_selectStartingGraphID() for runtime entry point selection