| 3107 | |
| 3108 | |
| 3109 | static int |
| 3110 | icvDecodeSimpleFormat( const char* dt ) |
| 3111 | { |
| 3112 | int elem_type = -1; |
| 3113 | int fmt_pairs[CV_FS_MAX_FMT_PAIRS], fmt_pair_count; |
| 3114 | |
| 3115 | fmt_pair_count = icvDecodeFormat( dt, fmt_pairs, CV_FS_MAX_FMT_PAIRS ); |
| 3116 | if( fmt_pair_count != 1 || fmt_pairs[0] > 4 ) |
| 3117 | CV_Error( CV_StsError, "Too complex format for the matrix" ); |
| 3118 | |
| 3119 | elem_type = CV_MAKETYPE( fmt_pairs[1], fmt_pairs[0] ); |
| 3120 | |
| 3121 | return elem_type; |
| 3122 | } |
| 3123 | |
| 3124 | |
| 3125 | CV_IMPL void |
no test coverage detected