Lines Matching refs:sampler
70 SkScaledBitmapSampler sampler(width, height, this->getSampleSize()); in onDecode() local
107 const int w = sampler.scaledWidth(); in onDecode()
108 const int h = sampler.scaledHeight(); in onDecode()
111 const int w = sampler.scaledWidth(); in onDecode()
112 const int h = sampler.scaledHeight(); in onDecode()
129 if (!sampler.begin(bm, SkScaledBitmapSampler::kGray, *this)) { in onDecode()
147 const int dstHeight = sampler.scaledHeight(); in onDecode()
149 srcRow += sampler.srcY0() * srcRowBytes; in onDecode()
151 sampler.next(srcRow); in onDecode()
152 srcRow += sampler.srcDY() * srcRowBytes; in onDecode()
158 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, *this)) { in onDecode()
176 const int dstHeight = sampler.scaledHeight(); in onDecode()
178 srcRow += sampler.srcY0() * srcRowBytes; in onDecode()
180 sampler.next(srcRow); in onDecode()
181 srcRow += sampler.srcDY() * srcRowBytes; in onDecode()
189 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, *this)) { in onDecode()
195 const int dstHeight = sampler.scaledHeight(); in onDecode()
197 srcRow += sampler.srcY0() * srcRowBytes; in onDecode()
199 sampler.next(srcRow); in onDecode()
200 srcRow += sampler.srcDY() * srcRowBytes; in onDecode()
219 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGBA, opts)) { in onDecode()
225 const int dstHeight = sampler.scaledHeight(); in onDecode()
227 srcRow += sampler.srcY0() * srcRowBytes; in onDecode()
229 sampler.next(srcRow); in onDecode()
230 srcRow += sampler.srcDY() * srcRowBytes; in onDecode()