, , 1 - 2, 0. 32 while inSampleSize 0. , Java int.
, :
int count = 0;
int inSampleSize = 1;
while (inSampleSize != 0) {
count++;
inSampleSize *= 2;
}
, inSampleSize , count 32.
, , 32 while? : reqWidth reqHeight 1.
, , :
calculateInSampleSize(options, 0, 0);
, .
reqWidth reqHeight , , , . , , View.getWidth() View.getHeight(), , , , , 0. , , , , reqWidth reqHeight , , 1, .