Lines Matching refs:step
198 bool GrFmtExrReader::ReadData( uchar* data, int step, int color ) in ReadData() argument
220 ystep = step; in ReadData()
314 UpSample( data, 3, step / xstep, xsample[0], m_blue->ySampling ); in ReadData()
316 UpSample( data + xstep, 3, step / xstep, xsample[1], m_green->ySampling ); in ReadData()
318 UpSample( data + 2 * xstep, 3, step / xstep, xsample[2], m_red->ySampling ); in ReadData()
321 UpSample( data, 1, step / xstep, xsample[0], m_green->ySampling ); in ReadData()
352 ChromaToBGR( (float *)buffer, 1, step ); in ReadData()
374 out += step; in ReadData()
379 UpSampleY( data, 3, step / xstep, m_blue->ySampling ); in ReadData()
381 UpSampleY( data + xstep, 3, step / xstep, m_green->ySampling ); in ReadData()
383 UpSampleY( data + 2 * xstep, 3, step / xstep, m_red->ySampling ); in ReadData()
386 UpSampleY( data, 1, step / xstep, m_green->ySampling ); in ReadData()
390 ChromaToBGR( (float *)data, m_height, step / xstep ); in ReadData()
467 void GrFmtExrReader::ChromaToBGR( float *data, int numlines, int step ) in ChromaToBGR() argument
478 b = ((uchar *)data)[y * step + x * 3]; in ChromaToBGR()
479 Y = ((uchar *)data)[y * step + x * 3 + 1]; in ChromaToBGR()
480 r = ((uchar *)data)[y * step + x * 3 + 2]; in ChromaToBGR()
484 b = data[y * step + x * 3]; in ChromaToBGR()
485 Y = data[y * step + x * 3 + 1]; in ChromaToBGR()
486 r = data[y * step + x * 3 + 2]; in ChromaToBGR()
490 b = ((uint *)data)[y * step + x * 3]; in ChromaToBGR()
491 Y = ((uint *)data)[y * step + x * 3 + 1]; in ChromaToBGR()
492 r = ((uint *)data)[y * step + x * 3 + 2]; in ChromaToBGR()
501 ((uchar *)data)[y * step + x * 3] = CV_CAST_8U(t); in ChromaToBGR()
503 ((uchar *)data)[y * step + x * 3 + 1] = CV_CAST_8U(t); in ChromaToBGR()
505 ((uchar *)data)[y * step + x * 3 + 2] = CV_CAST_8U(t); in ChromaToBGR()
509 data[y * step + x * 3] = (float)b; in ChromaToBGR()
510 data[y * step + x * 3 + 1] = (float)Y; in ChromaToBGR()
511 data[y * step + x * 3 + 2] = (float)r; in ChromaToBGR()
516 ((uint *)data)[y * step + x * 3] = (uint)MAX(t,0); in ChromaToBGR()
518 ((uint *)data)[y * step + x * 3 + 1] = (uint)MAX(t,0); in ChromaToBGR()
520 ((uint *)data)[y * step + x * 3 + 2] = (uint)MAX(t,0); in ChromaToBGR()
589 bool GrFmtExrWriter::WriteImage( const uchar* data, int step, in WriteImage() argument
631 bufferstep = step; in WriteImage()
727 data += step; in WriteImage()