Home | History | Annotate | Download | only in util

Lines Matching defs:inSampleSize

124         // Calculate inSampleSize
125 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
133 // Decode bitmap with inSampleSize set
156 // Calculate inSampleSize
157 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
164 // Decode bitmap with inSampleSize set
187 // Calculate inSampleSize
188 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
190 // Decode bitmap with inSampleSize set
220 * Calculate an inSampleSize for use in a {@link android.graphics.BitmapFactory.Options} object when decoding
222 * the closest inSampleSize that is a power of 2 and will result in the final decoded bitmap
229 * @return The value to be used for inSampleSize
237 int inSampleSize = 1;
244 // Calculate the largest inSampleSize value that is a power of 2 and keeps both
246 while ((halfHeight / inSampleSize) > reqHeight
247 && (halfWidth / inSampleSize) > reqWidth) {
248 inSampleSize *= 2;
255 // be more aggressive with sample down the image (=larger inSampleSize).
257 long totalPixels = width * height / inSampleSize;
263 inSampleSize *= 2;
267 return inSampleSize;