Home | History | Annotate | Download | only in src

Lines Matching refs:total_width

2937         int  total_width, new_rows, cn;
2951 total_width = mat->cols * cn;
2959 new_rows = total_width*mat->rows/new_cn;
2963 if( new_cn > total_width )
2964 new_rows = mat->rows * total_width / new_cn;
2969 int total_size = total_width * mat->rows;
2975 total_width = total_size / new_rows;
2977 if( total_width * new_rows != total_size )
2983 header->cols = total_width / new_cn;
2985 if( header->cols * new_cn != total_width ||
3108 int total_width, new_width;
3134 total_width = mat->cols * CV_MAT_CN( mat->type );
3136 if( (new_cn > total_width || total_width % new_cn != 0) && new_rows == 0 )
3137 new_rows = mat->rows * total_width / new_cn;
3146 int total_size = total_width * mat->rows;
3154 total_width = total_size / new_rows;
3156 if( total_width * new_rows != total_size )
3161 header->step = total_width * CV_ELEM_SIZE1(mat->type);
3164 new_width = total_width / new_cn;
3166 if( new_width * new_cn != total_width )