Home
last modified time | relevance | path

Searched refs:desiredHeight (Results 1 – 3 of 3) sorted by relevance

/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJDecompressor.java246 public int getScaledWidth(int desiredWidth, int desiredHeight) { in getScaledWidth() argument
249 if (desiredWidth < 0 || desiredHeight < 0) in getScaledWidth()
254 if (desiredHeight == 0) in getScaledWidth()
255 desiredHeight = jpegHeight; in getScaledWidth()
260 if (scaledWidth <= desiredWidth && scaledHeight <= desiredHeight) in getScaledWidth()
263 if (scaledWidth > desiredWidth || scaledHeight > desiredHeight) in getScaledWidth()
287 public int getScaledHeight(int desiredWidth, int desiredHeight) { in getScaledHeight() argument
290 if (desiredWidth < 0 || desiredHeight < 0) in getScaledHeight()
295 if (desiredHeight == 0) in getScaledHeight()
296 desiredHeight = jpegHeight; in getScaledHeight()
[all …]
/external/volley/src/main/java/com/android/volley/toolbox/
DImageRequest.java212 int desiredHeight = in doParse() local
221 findBestSampleSize(actualWidth, actualHeight, desiredWidth, desiredHeight); in doParse()
227 || tempBitmap.getHeight() > desiredHeight)) { in doParse()
228 bitmap = Bitmap.createScaledBitmap(tempBitmap, desiredWidth, desiredHeight, true); in doParse()
272 int actualWidth, int actualHeight, int desiredWidth, int desiredHeight) { in findBestSampleSize() argument
274 double hr = (double) actualHeight / desiredHeight; in findBestSampleSize()
/external/libjpeg-turbo/
Dturbojpeg-jni.c750 jintArray jDstStrides, jint desiredHeight, jint flags) in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III() argument
774 height = desiredHeight; in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
816 desiredHeight, flags) == -1) in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()