Lines Matching full:samplesize
15 static bool is_valid_sample_size(int sampleSize) {
16 // FIXME: As Leon has mentioned elsewhere, surely there is also a maximum sampleSize?
17 return sampleSize > 0;
119 SkISize SkAndroidCodec::getSampledDimensions(int sampleSize) const {
120 if (!is_valid_sample_size(sampleSize)) {
125 if (1 == sampleSize) {
129 return this->onGetSampledDimensions(sampleSize);
140 SkISize SkAndroidCodec::getSampledSubsetDimensions(int sampleSize, const SkIRect& subset) const {
141 if (!is_valid_sample_size(sampleSize)) {
155 return this->getSampledDimensions(sampleSize);
160 return SkISize::Make(get_scaled_dimension(subset.width(), sampleSize),
161 get_scaled_dimension(subset.height(), sampleSize));