ZL_Compressor_registerStaticGraph

Function ZL_Compressor_registerStaticGraph 

Source
pub unsafe extern "C" fn ZL_Compressor_registerStaticGraph(
    compressor: *mut ZL_Compressor,
    sgDesc: *const ZL_StaticGraphDesc,
) -> ZL_GraphID
Expand description

This is the more complete declaration variant, offering more control and capabilities. In order to be valid, a Static Graph Description must :

  • provide exactly as many successors as nb of outcomes defined by head Node
  • only employ single-input Graphs as successors
  • match each outcome type with a successor using a compatible input type
  • optionally, can specify @localParams for a Static Graph. In this case, these parameters are forwarded to the Head Node, replacing any previous local parameter that may have been already set on the Head Node.

If a declaration is invalid, it results in an invalid GraphID, which can be tested using ZL_GraphID_isValid() on the return value. Note: ZL_GraphID_isValid() is currently defined in zs2_graph_api.h.