Lines Matching defs:is

11  * distributed under the License is distributed on an "AS IS" BASIS,
63 * set in the Options structure is a way to see if the bitmap was reused,
86 * image, returning a smaller image to save memory. The sample size is
89 * an image that is 1/4 the width/height of the original, and 1/16 the
90 * number of pixels. Any value <= 1 is treated the same as 1. Note: the
98 * If this is non-null, the decoder will try to decode into this
99 * internal configuration. If it is null, or the request cannot be met,
110 * If dither is true, the decoder will attempt to dither the decoded
119 * if {@link #inScaled} is set (which it is by default} and this
123 * <p>If this is 0,
128 * functions will leave it as-is and no density will be applied.
140 * This is used in conjunction with {@link #inDensity} and
144 * <p>If this is 0,
150 * functions will leave it as-is and no scaling for density will be
161 * The pixel density of the actual screen that is being used. This is
163 * {@link #inTargetDensity} is actually the density the application
167 * allow the loading code to avoid scaling a bitmap that is currently
169 * if {@link #inDensity} is the same as {@link #inScreenDensity}, the
170 * bitmap will be left as-is. Anything using the resulting bitmap
176 * <p>This is never set automatically for the caller by
188 * When this flag is set, if {@link #inDensity} and
192 * is drawn to a Canvas.
194 * <p>This flag is turned on by default and should be turned off if you need
201 * If this is set to true, then the resulting bitmap will allocate its
204 * (e.g. the bitmap is drawn, getPixels() is called), they will be
209 * or by making a copy of it. This distinction is controlled by
210 * inInputShareable. If this is true, then the bitmap may keep a shallow
211 * reference to the input. If this is false, then the bitmap will
213 * sharing is allowed, the implementation may still decide to make a
219 * This field works in conjuction with inPurgeable. If inPurgeable is
220 * false, then this field is ignored. If inPurgeable is true, then this
227 * If inPreferQualityOverSpeed is set to true, the decoder will try to
237 * inJustDecodeBounds. However, if there is an error trying to decode,
245 * inJustDecodeBounds. However, if there is an error trying to decode,
251 * If known, this string is set to the mimetype of the decoded image.
252 * If not know, or there is an error, it is set to null.
265 * is useful if there's an intermediary that wants to first decode the
268 * if the operation is canceled.
273 * This can be called from another thread while this options object is
275 * it should cancel its operation. This is not guaranteed to cancel
277 * null, or if inJustDecodeBounds is true, will set outWidth/outHeight
287 * Decode a file path into a bitmap. If the specified file name is null,
292 * image should be completely decoded, or just is size returned.
294 * decoded, or, if opts is non-null, if opts requested only the
321 * Decode a file path into a bitmap. If the specified file name is null,
336 InputStream is, Rect pad, Options opts) {
355 return decodeStream(is, pad, opts);
365 * image should be completely decoded, or just is size returned.
367 * decoded, or, if opts is non-null, if opts requested only the
372 InputStream is = null;
376 is = res.openRawResource(id, value);
378 bm = decodeResourceStream(res, value, is, null, opts);
382 If it happened on close, bm is still valid.
386 if (is != null) is.close();
419 * image should be completely decoded, or just is size returned.
421 * decoded, or, if opts is non-null, if opts requested only the
450 * Decode an input stream into a bitmap. If the input stream is null, or
455 * @param is The input stream that holds the raw data to be decoded into a
459 * no bitmap is returned (null) then padding is
462 * image should be completely decoded, or just is size returned.
464 * decoded, or, if opts is non-null, if opts requested only the
467 public static Bitmap decodeStream(InputStream is, Rect outPadding, Options opts) {
470 if (is == null) {
476 if (!is.markSupported()) {
477 is = new BufferedInputStream(is, DECODE_BUFFER_SIZE);
483 is.mark(1024);
488 if (is instanceof AssetManager.AssetInputStream) {
489 final int asset = ((AssetManager.AssetInputStream) is).getAssetInt();
510 // pass some temp storage down to the native code. 1024 is made up,
512 // into is.read(...) This number is not related to the value passed
529 bm = nativeDecodeStream(is, tempStorage, outPadding, opts, true, scale);
534 bm = nativeDecodeStream(is, tempStorage, outPadding, opts);
591 * Decode an input stream into a bitmap. If the input stream is null, or
596 * @param is The input stream that holds the raw data to be decoded into a
600 public static Bitmap decodeStream(InputStream is) {
601 return decodeStream(is, null, null);
607 * this returns, so the descriptor can be used again as-is.
612 * no bitmap is returned (null) then padding is
615 * image should be completely decoded, or just is size returned.
640 * this returns, so the descriptor can be used again as is.
649 private static native Bitmap nativeDecodeStream(InputStream is, byte[] storage,
651 private static native Bitmap nativeDecodeStream(InputStream is, byte[] storage,