Home | History | Annotate | Download | only in images

Lines Matching full:sampler

324             SkScaledBitmapSampler sampler(width, height, this->getSampleSize());
326 bm->setInfo(SkImageInfo::Make(sampler.scaledWidth(), sampler.scaledHeight(),
396 SkIRect subsetRect(SkIRect::MakeXYWH(imageLeft / sampler.srcDX(),
397 imageTop / sampler.srcDY(),
398 innerWidth / sampler.srcDX(),
399 innerHeight / sampler.srcDY()));
403 // Update the sampler. We'll now be only sampling into the subset.
404 sampler = SkScaledBitmapSampler(innerWidth, innerHeight, this->getSampleSize());
414 if (!sampler.begin(workingBitmap, SkScaledBitmapSampler::kIndex, *this)) {
415 return error_return(*bm, "Sampler failed to begin.");
420 // Iterate over the height of the source data. The sampler will
428 sampler.sampleInterlaced(scanline, iter.currY());
433 sampler.sampleInterlaced(scanline, iter.currY());
439 skip_src_rows(gif, scanline, innerWidth, sampler.srcY0());
445 sampler.next(scanline);
450 sampler.next(scanline);
452 skip_src_rows(gif, scanline, innerWidth, sampler.srcDY() - 1);
456 int read = (outHeight - 1) * sampler.srcDY() + sampler.srcY0() + 1;