Lines Matching refs:step

118     if( (int64)arr->step*arr->rows > INT_MAX )  in icvCheckHuge()
144 arr->step = rows == 1 ? 0 : cvAlign(min_step, CV_DEFAULT_MAT_ROW_ALIGN); in cvCreateMatHeader()
146 (arr->step == 0 || arr->step == min_step ? CV_MAT_CONT_FLAG : 0); in cvCreateMatHeader()
167 int type, void* data, int step ) in cvInitMatHeader() argument
196 if( step != CV_AUTOSTEP && step != 0 ) in cvInitMatHeader()
198 if( step < min_step ) in cvInitMatHeader()
200 arr->step = step & mask; in cvInitMatHeader()
204 arr->step = min_step; in cvInitMatHeader()
208 (arr->step == min_step ? CV_MAT_CONT_FLAG : 0); in cvInitMatHeader()
288 int64 step = CV_ELEM_SIZE(type); in cvInitMatNDHeader() local
293 if( step == 0 ) in cvInitMatNDHeader()
308 if( step > INT_MAX ) in cvInitMatNDHeader()
310 mat->dim[i].step = (int)step; in cvInitMatNDHeader()
311 step *= sizes[i]; in cvInitMatNDHeader()
314 mat->type = CV_MATND_MAGIC_VAL | (step <= INT_MAX ? CV_MAT_CONT_FLAG : 0) | type; in cvInitMatNDHeader()
457 matnd->dim[0].step = mat->step; in cvGetMatND()
459 matnd->dim[1].step = CV_ELEM_SIZE(mat->type); in cvGetMatND()
490 int64 step; in cvInitNArrayIterator() local
570 step = CV_ELEM_SIZE(hdr->type); in cvInitNArrayIterator()
573 if( step != hdr->dim[j].step ) in cvInitNArrayIterator()
575 step *= hdr->dim[j].size; in cvInitNArrayIterator()
578 if( j == dim0 && step > INT_MAX ) in cvInitNArrayIterator()
615 iterator->ptr[i] += iterator->hdr[i]->dim[dims-1].step; in cvNextNArraySlice()
623 iterator->ptr[i] -= (size_t)size*iterator->hdr[i]->dim[dims-1].step; in cvNextNArraySlice()
960 size_t step, total_size; in cvCreateData() local
962 step = mat->step; in cvCreateData()
967 if( step == 0 ) in cvCreateData()
968 step = CV_ELEM_SIZE(mat->type)*mat->cols; in cvCreateData()
970 total_size = step*mat->rows + sizeof(int) + CV_MALLOC_ALIGN; in cvCreateData()
1015 total_size = (size_t)mat->dim[0].size*(mat->dim[0].step != 0 ? in cvCreateData()
1016 mat->dim[0].step : total_size); in cvCreateData()
1022 size_t size = (size_t)mat->dim[i].step*mat->dim[i].size; in cvCreateData()
1045 cvSetData( CvArr* arr, void* data, int step ) in cvSetData() argument
1064 if( step != CV_AUTOSTEP ) in cvSetData()
1066 if( step < min_step && data != 0 ) in cvSetData()
1068 mat->step = step & ((mat->rows <= 1) - 1); in cvSetData()
1072 mat->step = min_step; in cvSetData()
1077 (mat->step==min_step ? CV_MAT_CONT_FLAG : 0); in cvSetData()
1087 if( step != CV_AUTOSTEP && img->height > 1 ) in cvSetData()
1089 if( step < min_step && data != 0 ) in cvSetData()
1091 img->widthStep = step; in cvSetData()
1101 if( (((int)(size_t)data | step) & 7) == 0 && in cvSetData()
1102 cvAlign(img->width * pix_size, 8) == step ) in cvSetData()
1117 if( step != CV_AUTOSTEP ) in cvSetData()
1128 mat->dim[i].step = (int)cur_step; in cvSetData()
1180 cvGetRawData( const CvArr* arr, uchar** data, int* step, CvSize* roi_size ) in cvGetRawData() argument
1190 if( step ) in cvGetRawData()
1191 *step = mat->step; in cvGetRawData()
1203 if( step ) in cvGetRawData()
1204 *step = img->widthStep; in cvGetRawData()
1231 if( roi_size || step ) in cvGetRawData()
1247 if( step ) in cvGetRawData()
1248 *step = size1 == 1 ? 0 : mat->dim[0].step; in cvGetRawData()
1496 submat->data.ptr = mat->data.ptr + (size_t)rect.y*mat->step + in cvGetSubRect()
1498 submat->step = mat->step & (rect.height > 1 ? -1 : 0); in cvGetSubRect()
1500 (submat->step == 0 ? CV_MAT_CONT_FLAG : 0); in cvGetSubRect()
1548 submat->step = mat->step & (submat->rows > 1 ? -1 : 0); in cvGetRows()
1553 submat->step = mat->step * delta_row; in cvGetRows()
1557 submat->step &= submat->rows > 1 ? -1 : 0; in cvGetRows()
1558 submat->data.ptr = mat->data.ptr + (size_t)start_row*mat->step; in cvGetRows()
1559 submat->type = (mat->type | (submat->step == 0 ? CV_MAT_CONT_FLAG : 0)) & in cvGetRows()
1607 submat->step = mat->step & (submat->rows > 1 ? -1 : 0); in cvGetCols()
1609 submat->type = mat->type & (submat->step && submat->cols < cols ? ~CV_MAT_CONT_FLAG : -1); in cvGetCols()
1669 submat->data.ptr = mat->data.ptr - diag*mat->step; in cvGetDiag()
1674 submat->step = (mat->step + pix_size) & (submat->rows > 1 ? -1 : 0); in cvGetDiag()
1676 if( submat->step ) in cvGetDiag()
1931 ptr = mat->data.ptr + (size_t)row*mat->step + col*pix_size; in cvPtr1D()
1971 ptr += (idx - t*sz)*mat->dim[j].step; in cvPtr1D()
2030 ptr = mat->data.ptr + (size_t)y*mat->step + x*CV_ELEM_SIZE(type); in cvPtr2D()
2089 ptr = mat->data.ptr + (size_t)y*mat->dim[0].step + x*mat->dim[1].step; in cvPtr2D()
2129 ptr = mat->data.ptr + (size_t)z*mat->dim[0].step + in cvPtr3D()
2130 (size_t)y*mat->dim[1].step + x*mat->dim[2].step; in cvPtr3D()
2177 ptr += (size_t)idx[i]*mat->dim[i].step; in cvPtrND()
2257 ptr = mat->data.ptr + (size_t)y*mat->step + x*CV_ELEM_SIZE(type); in cvGet2D()
2399 ptr = mat->data.ptr + (size_t)y*mat->step + x*CV_ELEM_SIZE(type); in cvGetReal2D()
2547 ptr = mat->data.ptr + (size_t)y*mat->step + x*CV_ELEM_SIZE(type); in cvSet2D()
2666 ptr = mat->data.ptr + (size_t)y*mat->step + x*CV_ELEM_SIZE(type); in cvSetReal2D()
2874 mat->step = size2*CV_ELEM_SIZE(matnd->type); in cvGetMat()
2875 mat->step &= size1 > 1 ? -1 : 0; in cvGetMat()
2991 header->step = header->cols * CV_ELEM_SIZE(mat->type); in cvReshapeMatND()
2992 header->step &= new_rows > 1 ? -1 : 0; in cvReshapeMatND()
3034 int step; in cvReshapeMatND() local
3076 step = CV_ELEM_SIZE(header->type); in cvReshapeMatND()
3081 header->dim[i].step = step; in cvReshapeMatND()
3082 step *= new_sizes[i]; in cvReshapeMatND()
3142 header->step = mat->step; in cvReshape()
3161 header->step = total_width * CV_ELEM_SIZE1(mat->type); in cvReshape()
3211 cvSetData( img, mat->data.ptr, mat->step ); in cvGetImage()