ZL_Compressor_registerTransposeSplitGraph

Function ZL_Compressor_registerTransposeSplitGraph 

Source
pub unsafe extern "C" fn ZL_Compressor_registerTransposeSplitGraph(
    cgraph: *mut ZL_Compressor,
    successor: ZL_GraphID,
) -> ZL_GraphID
Expand description

Helper function to create a graph for ZL_NODE_TRANSPOSE_SPLIT.

For frame format versions >= 11 ZL_NODE_TRANSPOSE_SPLIT is used and any eltWidth is supported. For frame format versions < 11 only eltWidth = 1, 2, 4, 8 is supported. Using other sizes will fail compression.

Input: A fixed-size-field stream Output: eltWidth serialized streams of size nbElts Result: Convert a stream of N fields of size S into S streams of N fields by transposing the input stream. Example : 1 2 3 4 5 6 7 8 as 2 fields of size 4 => transposed into 4 streams as 2 fields of size 1 => (1, 5), (2, 6), (3, 7), (4, 8)