mirror of
https://github.com/opencv/opencv.git
synced 2026-09-13 05:42:51 -05:00
opencv: Use cv::AutoBuffer<>::data()
This commit is contained in:
committed by
Alexander Alekhin
parent
135ea264ef
commit
b09a4a98d4
@@ -485,7 +485,7 @@ void cv::split(const Mat& src, Mat* mv)
|
||||
size_t esz = src.elemSize(), esz1 = src.elemSize1();
|
||||
size_t blocksize0 = (BLOCK_SIZE + esz-1)/esz;
|
||||
AutoBuffer<uchar> _buf((cn+1)*(sizeof(Mat*) + sizeof(uchar*)) + 16);
|
||||
const Mat** arrays = (const Mat**)(uchar*)_buf;
|
||||
const Mat** arrays = (const Mat**)_buf.data();
|
||||
uchar** ptrs = (uchar**)alignPtr(arrays + cn + 1, 16);
|
||||
|
||||
arrays[0] = &src;
|
||||
|
||||
Reference in New Issue
Block a user