pub unsafe extern "C" fn ZL_Graph_tryGraph(
gctx: *const ZL_Graph,
input: *const ZL_Input,
graphID: ZL_GraphID,
params: *const ZL_RuntimeGraphParameters,
) -> ZL_Result_ZL_GraphPerformanceExpand description
@brief Attempt compression using a graph and return the performance.
This API allows the user to simulate the execution of a given @p graphID on an input to measure its performance. This API is wasteful in CPU and memory and should only be used when there is no better choice.
@param input The input to try compress on
@param graphID The GraphID to use to compress the @p input
@param params The runtime parameters for the @p graphID, or NULL to not
parameterize the graph.
@returns If the compression failed it returns a non-fatal error. Otherwise, it returns the performance of the @p graphID on the @p input.