MCPcopy Create free account
hub / github.com/creatale/node-dv / icvEncodeFormat

Function icvEncodeFormat

deps/opencv/modules/core/src/persistence.cpp:3021–3026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3019#define CV_FS_MAX_FMT_PAIRS 128
3020
3021static char*
3022icvEncodeFormat( int elem_type, char* dt )
3023{
3024 sprintf( dt, "%d%c", CV_MAT_CN(elem_type), icvTypeSymbol[CV_MAT_DEPTH(elem_type)] );
3025 return dt + ( dt[2] == '\0' && dt[0] == '1' );
3026}
3027
3028static int
3029icvDecodeFormat( const char* dt, int* fmt_pairs, int max_len )

Callers 4

icvWriteMatFunction · 0.85
icvWriteMatNDFunction · 0.85
icvWriteSparseMatFunction · 0.85
icvGetFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected