Channel split

Parameters:

src_data array of interleaved values (len x cn items) [ B, G, R, B, G, R, …]
dst_data array of pointers to destination arrays (cn items x len items) [ [B, B, …], [G, G, …], [R, R, …] ]
len number of elements
cn number of channels
// global functions

int
hal_ni_split16u(
    const ushort* src_data,
    ushort** dst_data,
    int len,
    int cn
    );

int
hal_ni_split32s(
    const int* src_data,
    int** dst_data,
    int len,
    int cn
    );

int
hal_ni_split64s(
    const int64* src_data,
    int64** dst_data,
    int len,
    int cn
    );

int
hal_ni_split8u(
    const uchar* src_data,
    uchar** dst_data,
    int len,
    int cn
    );