Lines Matching refs:ncmpts
218 int ncmpts; in readData() local
227 ncmpts = 3; in readData()
234 ncmpts = 1; in readData()
239 for( int i = 0; i < ncmpts; i++ ) in readData()
255 … result = readComponent8u( data + i, buffer, step, cmptlut[i], maxval, offset, ncmpts ); in readData()
257 …Component16u( ((unsigned short *)data) + i, buffer, step / 2, cmptlut[i], maxval, offset, ncmpts ); in readData()
260 i = ncmpts; in readData()
288 int maxval, int offset, int ncmpts ) in readComponent8u() argument
317 dst[x*ncmpts] = cv::saturate_cast<uchar>(pix); in readComponent8u()
323 dst[x*ncmpts] = cv::saturate_cast<uchar>(pix); in readComponent8u()
330 dst[x*ncmpts] = dst[(x+1)*ncmpts] = cv::saturate_cast<uchar>(pix); in readComponent8u()
338 dst[x*ncmpts] = (uchar)pix; in readComponent8u()
343 dst[x*ncmpts + step] = dst[x*ncmpts]; in readComponent8u()
352 int maxval, int offset, int ncmpts ) in readComponent16u() argument
381 dst[x*ncmpts] = cv::saturate_cast<ushort>(pix); in readComponent16u()
387 dst[x*ncmpts] = cv::saturate_cast<ushort>(pix); in readComponent16u()
394 dst[x*ncmpts] = dst[(x+1)*ncmpts] = cv::saturate_cast<ushort>(pix); in readComponent16u()
402 dst[x*ncmpts] = (ushort)pix; in readComponent16u()
407 dst[x*ncmpts + step] = dst[x*ncmpts]; in readComponent16u()
497 int w = _img.cols, h = _img.rows, ncmpts = _img.channels(); in writeComponent8u() local
505 for( int i = 0; i < ncmpts; i++ ) in writeComponent8u()
508 jas_matrix_setv( row, x, data[x * ncmpts + i] ); in writeComponent8u()
521 int w = _img.cols, h = _img.rows, ncmpts = _img.channels(); in writeComponent16u() local
529 for( int i = 0; i < ncmpts; i++ ) in writeComponent16u()
532 jas_matrix_setv( row, x, data[x * ncmpts + i] ); in writeComponent16u()