Lines Matching refs:sampleSize
22 int sampleSize = *sampleSizePtr; in accountForNativeScaling() local
23 SkASSERT(sampleSize > 1); in accountForNativeScaling()
32 switch (sampleSize) { in accountForNativeScaling()
38 return this->codec()->getScaledDimensions(get_scale_from_sample_size(sampleSize)); in accountForNativeScaling()
48 SkTDivMod(sampleSize, supportedSampleSize, &actualSampleSize, &remainder); in accountForNativeScaling()
68 SkISize SkSampledCodec::onGetSampledDimensions(int sampleSize) const { in onGetSampledDimensions()
69 const SkISize size = this->accountForNativeScaling(&sampleSize); in onGetSampledDimensions()
70 return SkISize::Make(get_scaled_dimension(size.width(), sampleSize), in onGetSampledDimensions()
71 get_scaled_dimension(size.height(), sampleSize)); in onGetSampledDimensions()
87 int sampleSize = options.fSampleSize; in onGetAndroidPixels() local
88 SkISize scaledSize = this->getSampledDimensions(sampleSize); in onGetAndroidPixels()
95 int scaledSubsetX = subset->x() / sampleSize; in onGetAndroidPixels()
96 int scaledSubsetY = subset->y() / sampleSize; in onGetAndroidPixels()
169 int sampleSize = options.fSampleSize; in sampledDecode() local
171 SkISize nativeSize = this->accountForNativeScaling(&sampleSize, &nativeSampleSize); in sampledDecode()