/external/opencv3/modules/core/src/ |
D | cuda_host_mem.cpp | 243 HostMem cv::cuda::HostMem::reshape(int new_cn, int new_rows) const in reshape() 253 if ((new_cn > total_width || total_width % new_cn != 0) && new_rows == 0) in reshape() 254 new_rows = rows * total_width / new_cn; in reshape() 256 if (new_rows != 0 && new_rows != rows) in reshape() 263 if ((unsigned)new_rows > (unsigned)total_size) in reshape() 266 total_width = total_size / new_rows; in reshape() 268 if (total_width * new_rows != total_size) in reshape() 271 hdr.rows = new_rows; in reshape()
|
D | cuda_gpu_mat.cpp | 161 GpuMat cv::cuda::GpuMat::reshape(int new_cn, int new_rows) const in reshape() 171 if ((new_cn > total_width || total_width % new_cn != 0) && new_rows == 0) in reshape() 172 new_rows = rows * total_width / new_cn; in reshape() 174 if (new_rows != 0 && new_rows != rows) in reshape() 181 if ((unsigned)new_rows > (unsigned)total_size) in reshape() 184 total_width = total_size / new_rows; in reshape() 186 if (total_width * new_rows != total_size) in reshape() 189 hdr.rows = new_rows; in reshape()
|
D | umatrix.cpp | 479 UMat UMat::reshape(int new_cn, int new_rows) const in reshape() 484 if( dims > 2 && new_rows == 0 && new_cn != 0 && size[dims-1]*cn % new_cn == 0 ) in reshape() 499 if( (new_cn > total_width || total_width % new_cn != 0) && new_rows == 0 ) in reshape() 500 new_rows = rows * total_width / new_cn; in reshape() 502 if( new_rows != 0 && new_rows != rows ) in reshape() 509 if( (unsigned)new_rows > (unsigned)total_size ) in reshape() 512 total_width = total_size / new_rows; in reshape() 514 if( total_width * new_rows != total_size ) in reshape() 518 hdr.rows = new_rows; in reshape()
|
D | array.cpp | 2542 int total_width, new_rows, cn; in cvReshapeMatND() local 2563 new_rows = new_sizes[0]; in cvReshapeMatND() 2565 new_rows = total_width*mat->rows/new_cn; in cvReshapeMatND() 2568 new_rows = mat->rows; in cvReshapeMatND() 2570 new_rows = mat->rows * total_width / new_cn; in cvReshapeMatND() 2573 if( new_rows != mat->rows ) in cvReshapeMatND() 2581 total_width = total_size / new_rows; in cvReshapeMatND() 2583 if( total_width * new_rows != total_size ) in cvReshapeMatND() 2588 header.rows = new_rows; in cvReshapeMatND() 2598 header.step &= new_rows > 1 ? -1 : 0; in cvReshapeMatND() [all …]
|
D | matrix.cpp | 956 Mat Mat::reshape(int new_cn, int new_rows) const in reshape() 961 if( dims > 2 && new_rows == 0 && new_cn != 0 && size[dims-1]*cn % new_cn == 0 ) in reshape() 976 if( (new_cn > total_width || total_width % new_cn != 0) && new_rows == 0 ) in reshape() 977 new_rows = rows * total_width / new_cn; in reshape() 979 if( new_rows != 0 && new_rows != rows ) in reshape() 986 if( (unsigned)new_rows > (unsigned)total_size ) in reshape() 989 total_width = total_size / new_rows; in reshape() 991 if( total_width * new_rows != total_size ) in reshape() 995 hdr.rows = new_rows; in reshape()
|
/external/libvterm/src/ |
D | screen.c | 80 static ScreenCell *realloc_buffer(VTermScreen *screen, ScreenCell *buffer, int new_rows, int new_co… in realloc_buffer() argument 82 …ScreenCell *new_buffer = vterm_allocator_malloc(screen->vt, sizeof(ScreenCell) * new_rows * new_co… in realloc_buffer() 84 for(int row = 0; row < new_rows; row++) { in realloc_buffer() 480 static int resize(int new_rows, int new_cols, VTermPos *delta, void *user) in resize() argument 489 if(!is_altscreen && new_rows < old_rows) { in resize() 493 for(pos.row = old_rows - 1; pos.row >= new_rows; pos.row--) in resize() 498 if(first_blank_row > new_rows) { in resize() 505 scrollrect(rect, first_blank_row - new_rows, 0, user); in resize() 508 delta->row -= first_blank_row - new_rows; in resize() 512 screen->buffers[0] = realloc_buffer(screen, screen->buffers[0], new_rows, new_cols); in resize() [all …]
|
/external/opencv3/modules/core/test/ |
D | test_umat.cpp | 315 int new_rows = randomInt(1, INT_MAX); in TEST_P() local 316 if ( ((int)ua.total()*ua.channels())%(new_rows*nChannels) != 0) in TEST_P() 318 EXPECT_ANY_THROW (ua.reshape(nChannels, new_rows) ); in TEST_P() 322 EXPECT_NO_THROW ( ub = ua.reshape(nChannels, new_rows) ); in TEST_P() 324 ASSERT_EQ(ub.rows, new_rows); in TEST_P() 327 EXPECT_MAT_NEAR(ua.reshape(nChannels,new_rows), a.reshape(nChannels,new_rows), 0); in TEST_P() 330 new_rows = (int)ua.total()*ua.channels()/(nChannels*randomInt(1, size.width*size.height)); in TEST_P() 331 if (new_rows == 0) new_rows = 1; in TEST_P() 332 int new_cols = (int)ua.total()*ua.channels()/(new_rows*nChannels); in TEST_P() 333 int sz[] = {new_rows, new_cols}; in TEST_P() [all …]
|
/external/ceres-solver/internal/ceres/ |
D | triplet_sparse_matrix.cc | 113 int* new_rows = new int[new_max_num_nonzeros]; in Reserve() local 118 new_rows[i] = rows_[i]; in Reserve() 123 rows_.reset(new_rows); in Reserve()
|
/external/eigen/Eigen/src/Core/ |
D | PlainObjectBase.h | 719 const Index new_rows = other.rows() - _this.rows(); 722 if (new_rows>0) 723 _this.bottomRightCorner(new_rows, other.cols()) = other.bottomRows(new_rows); 750 const Index new_rows = Derived::RowsAtCompileTime==1 ? 1 : size; 752 _this.derived().m_storage.conservativeResize(size,new_rows,new_cols); 761 const Index new_rows = Derived::RowsAtCompileTime==1 ? 1 : other.rows(); 763 _this.derived().m_storage.conservativeResize(other.size(),new_rows,new_cols);
|
/external/opencv/cxcore/src/ |
D | cxarray.cpp | 2937 int total_width, new_rows, cn; in cvReshapeMatND() local 2957 new_rows = new_sizes[0]; in cvReshapeMatND() 2959 new_rows = total_width*mat->rows/new_cn; in cvReshapeMatND() 2962 new_rows = mat->rows; in cvReshapeMatND() 2964 new_rows = mat->rows * total_width / new_cn; in cvReshapeMatND() 2967 if( new_rows != mat->rows ) in cvReshapeMatND() 2975 total_width = total_size / new_rows; in cvReshapeMatND() 2977 if( total_width * new_rows != total_size ) in cvReshapeMatND() 2982 header->rows = new_rows; in cvReshapeMatND() 2992 header->step &= new_rows > 1 ? -1 : 0; in cvReshapeMatND() [all …]
|
/external/webrtc/webrtc/modules/desktop_capture/ |
D | desktop_region.cc | 371 Rows new_rows; in Translate() local 389 new_rows.insert(new_rows.end(), Rows::value_type(row->bottom, row)); in Translate() 393 new_rows.swap(rows_); in Translate()
|
/external/opencv/cxcore/include/ |
D | cxcore.h | 412 int new_cn, int new_rows CV_DEFAULT(0) );
|
/external/opencv3/modules/core/include/opencv2/core/ |
D | core_c.h | 868 int new_cn, int new_rows CV_DEFAULT(0) );
|