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