Lines Matching refs:uchar
190 uchar* data = img.ptr();
317 uchar *out = data;
351 out[x] = cv::saturate_cast<uchar>(fi[x]*5);
359 out[x] = cv::saturate_cast<uchar>(ui[x]);
391 void ExrDecoder::UpSample( uchar *data, int xstep, int ystep, int xsample, int ysample )
435 void ExrDecoder::UpSampleY( uchar *data, int xstep, int ystep, int ysample )
466 b = ((uchar *)data)[y * step + x * 3];
467 Y = ((uchar *)data)[y * step + x * 3 + 1];
468 r = ((uchar *)data)[y * step + x * 3 + 2];
488 ((uchar *)data)[y * step + x * 3 + 0] = cv::saturate_cast<uchar>(b);
489 ((ucharuchar>(Y);
490 ((uchar *)data)[y * step + x * 3 + 2] = cv::saturate_cast<uchar>(r);
526 uchar *o = (uchar *)out;
528 o[i] = (uchar) (in[n] * m_chroma.blue[0] + in[n + 1] * m_chroma.green[0] + in[n + 2] * m_chroma.red[0]);
542 else // how to best convert float to uchar?
546 ((uchar *)out)[i] = uchar((ui[n] * m_chroma.blue[0] + ui[n + 1] * m_chroma.green[0] + ui[n + 2] * m_chroma.red[0]) * (256.0 / 4294967296.0));
620 buffer = (char *)const_cast<uchar *>(img.ptr());
676 const uchar* sd = img.ptr(line);
699 const uchar* sd = img.ptr(line);