com.android.gallery3d.exif.ExifInterface Java Examples
The following examples show how to use
com.android.gallery3d.exif.ExifInterface.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BitmapRegionTileSource.java From Trebuchet with GNU General Public License v3.0 | 5 votes |
@Override public boolean readExif(ExifInterface ei) { try { InputStream is = regenerateInputStream(); ei.readExif(is); Utils.closeSilently(is); return true; } catch (IOException e) { Log.e("BitmapRegionTileSource", "Error reading resource", e); return false; } }
Example #2
Source File: BitmapRegionTileSource.java From TurboLauncher with Apache License 2.0 | 5 votes |
public boolean loadInBackground() { ExifInterface ei = new ExifInterface(); if (readExif(ei)) { Integer ori = ei.getTagIntValue(ExifInterface.TAG_ORIENTATION); if (ori != null) { mRotation = ExifInterface.getRotationForOrientationValue(ori.shortValue()); } } mDecoder = loadBitmapRegionDecoder(); if (mDecoder == null) { mState = State.ERROR_LOADING; return false; } else { int width = mDecoder.getWidth(); int height = mDecoder.getHeight(); if (mPreviewSize != 0) { int previewSize = Math.min(mPreviewSize, MAX_PREVIEW_SIZE); BitmapFactory.Options opts = new BitmapFactory.Options(); opts.inPreferredConfig = Bitmap.Config.ARGB_8888; opts.inPreferQualityOverSpeed = true; float scale = (float) previewSize / Math.max(width, height); opts.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); opts.inJustDecodeBounds = false; mPreview = loadPreviewBitmap(opts); } mState = State.LOADED; return true; } }
Example #3
Source File: BitmapRegionTileSource.java From TurboLauncher with Apache License 2.0 | 5 votes |
@Override public boolean readExif(ExifInterface ei) { try { InputStream is = regenerateInputStream(); ei.readExif(is); Utils.closeSilently(is); return true; } catch (IOException e) { Log.e("BitmapRegionTileSource", "Error reading resource", e); return false; } }
Example #4
Source File: BitmapRegionTileSource.java From LB-Launcher with Apache License 2.0 | 5 votes |
public boolean loadInBackground() { ExifInterface ei = new ExifInterface(); if (readExif(ei)) { Integer ori = ei.getTagIntValue(ExifInterface.TAG_ORIENTATION); if (ori != null) { mRotation = ExifInterface.getRotationForOrientationValue(ori.shortValue()); } } mDecoder = loadBitmapRegionDecoder(); if (mDecoder == null) { mState = State.ERROR_LOADING; return false; } else { int width = mDecoder.getWidth(); int height = mDecoder.getHeight(); if (mPreviewSize != 0) { int previewSize = Math.min(mPreviewSize, MAX_PREVIEW_SIZE); BitmapFactory.Options opts = new BitmapFactory.Options(); opts.inPreferredConfig = Bitmap.Config.ARGB_8888; opts.inPreferQualityOverSpeed = true; float scale = (float) previewSize / Math.max(width, height); opts.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); opts.inJustDecodeBounds = false; mPreview = loadPreviewBitmap(opts); } mState = State.LOADED; return true; } }
Example #5
Source File: BitmapRegionTileSource.java From LB-Launcher with Apache License 2.0 | 5 votes |
@Override public boolean readExif(ExifInterface ei) { try { InputStream is = regenerateInputStream(); ei.readExif(is); Utils.closeSilently(is); return true; } catch (IOException e) { Log.e("BitmapRegionTileSource", "Error reading resource", e); return false; } }
Example #6
Source File: BitmapRegionTileSource.java From Trebuchet with GNU General Public License v3.0 | votes |
public abstract boolean readExif(ExifInterface ei);
Example #7
Source File: BitmapRegionTileSource.java From TurboLauncher with Apache License 2.0 | votes |
public abstract boolean readExif(ExifInterface ei);
Example #8
Source File: BitmapRegionTileSource.java From LB-Launcher with Apache License 2.0 | votes |
public abstract boolean readExif(ExifInterface ei);