/packages/apps/Gallery2/src/com/android/camera/ |
Exif.java | 21 import com.android.gallery3d.exif.ExifInterface; 28 public static ExifInterface getExif(byte[] jpegData) { 29 ExifInterface exif = new ExifInterface(); 39 public static int getOrientation(ExifInterface exif) { 40 Integer val = exif.getTagIntValue(ExifInterface.TAG_ORIENTATION); 44 return ExifInterface.getRotationForOrientationValue(val.shortValue()); 51 ExifInterface exif = getExif(jpegData);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
Exif.java | 21 import com.android.gallery3d.exif.ExifInterface; 34 ExifInterface exif = new ExifInterface(); 37 Integer val = exif.getTagIntValue(ExifInterface.TAG_ORIENTATION); 41 return ExifInterface.getRotationForOrientationValue(val.shortValue());
|
MediaDetails.java | 21 import com.android.gallery3d.exif.ExifInterface; 136 ExifInterface exif = new ExifInterface(); 145 setExifData(details, exif.getTag(ExifInterface.TAG_FLASH), 147 setExifData(details, exif.getTag(ExifInterface.TAG_IMAGE_WIDTH), 149 setExifData(details, exif.getTag(ExifInterface.TAG_IMAGE_LENGTH), 151 setExifData(details, exif.getTag(ExifInterface.TAG_MAKE), 153 setExifData(details, exif.getTag(ExifInterface.TAG_MODEL), 155 setExifData(details, exif.getTag(ExifInterface.TAG_APERTURE_VALUE), 157 setExifData(details, exif.getTag(ExifInterface.TAG_ISO_SPEED_RATINGS) [all...] |
LocalImage.java | 39 import com.android.gallery3d.exif.ExifInterface; 198 ExifInterface exif = new ExifInterface(); 287 ExifInterface exifInterface = new ExifInterface(); 288 ExifTag tag = exifInterface.buildTag(ExifInterface.TAG_ORIENTATION, 289 ExifInterface.getOrientationValueForRotation(rotation)); 291 exifInterface.setTag(tag) [all...] |
/packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/ |
ExifDataTest.java | 28 ExifInterface mInterface; 43 mInterface = new ExifInterface(); 46 mVersionTag = mInterface.buildTag(ExifInterface.TAG_EXIF_VERSION, new byte[] { 50 mGpsVersionTag = mInterface.buildTag(ExifInterface.TAG_GPS_VERSION_ID, new byte[] { 54 mModelTag = mInterface.buildTag(ExifInterface.TAG_MODEL, "helloworld"); 56 mDateTimeTag = mInterface.buildTag(ExifInterface.TAG_DATE_TIME, "2013:02:11 20:20:20"); 58 mCompressionTag = mInterface.buildTag(ExifInterface.TAG_COMPRESSION, 100); 61 mInterface.buildTag(ExifInterface.TAG_JPEG_INTERCHANGE_FORMAT, 100); 63 mLongitudeTag = mInterface.buildTag(ExifInterface.TAG_GPS_LONGITUDE, new Rational[] { 69 .buildTag(ExifInterface.TAG_SHUTTER_SPEED_VALUE, new Rational(4, 6)) [all...] |
ExifReaderTest.java | 27 private ExifInterface mInterface; 38 mInterface = new ExifInterface(); 43 mInterface = new ExifInterface(); 62 List<String> typeTagValue = ifd1Truth.get(ExifInterface.TAG_COMPRESSION); 72 int type = (int) ifd1.getTag(ExifInterface.getTrueTagKey(ExifInterface.TAG_COMPRESSION)) 75 if (String.valueOf(ExifInterface.Compression.JPEG).equals(typeTagTruth)) { 76 assertTrue(getImageTitle(), type == ExifInterface.Compression.JPEG); 81 } else if (String.valueOf(ExifInterface.Compression.UNCOMPRESSION).equals(typeTagTruth)) { 82 assertTrue(getImageTitle(), type == ExifInterface.Compression.UNCOMPRESSION) [all...] |
ExifInterfaceTest.java | 41 private ExifInterface mInterface; 73 int tag = ExifInterface.defineTag(1, (short) 0x0100); 77 int[] allowed = ExifInterface.getAllowedIfdsFromInfo(mInterface.getTagInfo().get( 78 ExifInterface.TAG_IMAGE_WIDTH)); 164 tags.add(mInterface.buildTag(ExifInterface.TAG_ORIENTATION, 165 ExifInterface.Orientation.RIGHT_TOP)); 166 tags.add(mInterface.buildTag(ExifInterface.TAG_USER_COMMENT, "goooooooooooooooooogle")); 180 if (tid != ExifInterface.getTrueTagKey(ExifInterface.TAG_ORIENTATION) 181 && tid != ExifInterface.getTrueTagKey(ExifInterface.TAG_USER_COMMENT)) [all...] |
ExifTagTest.java | 31 ExifInterface mInterface; 45 mInterface = new ExifInterface(); 48 mVersionTag = mInterface.buildTag(ExifInterface.TAG_EXIF_VERSION, new byte[] { 52 mGpsVersionTag = mInterface.buildTag(ExifInterface.TAG_GPS_VERSION_ID, new byte[] { 56 mModelTag = mInterface.buildTag(ExifInterface.TAG_MODEL, "helloworld"); 58 mDateTimeTag = mInterface.buildTag(ExifInterface.TAG_DATE_TIME, "2013:02:11 20:20:20"); 60 mCompressionTag = mInterface.buildTag(ExifInterface.TAG_COMPRESSION, 100); 63 mInterface.buildTag(ExifInterface.TAG_JPEG_INTERCHANGE_FORMAT, 100); 65 mLongitudeTag = mInterface.buildTag(ExifInterface.TAG_GPS_LONGITUDE, new Rational[] { 71 .buildTag(ExifInterface.TAG_SHUTTER_SPEED_VALUE, new Rational(4, 6)) [all...] |
ExifModifierTest.java | 34 private ExifInterface mInterface; 64 mVersionTag = mInterface.buildTag(ExifInterface.TAG_EXIF_VERSION, new byte[] { 68 mGpsVersionTag = mInterface.buildTag(ExifInterface.TAG_GPS_VERSION_ID, new byte[] { 72 mModelTag = mInterface.buildTag(ExifInterface.TAG_MODEL, "end-of-the-world"); 74 mDateTimeTag = mInterface.buildTag(ExifInterface.TAG_DATE_TIME, "2012:12:31 23:59:59"); 76 mCompressionTag = mInterface.buildTag(ExifInterface.TAG_COMPRESSION, 100); 79 mInterface.buildTag(ExifInterface.TAG_JPEG_INTERCHANGE_FORMAT, 100); 81 mLongitudeTag = mInterface.buildTag(ExifInterface.TAG_GPS_LONGITUDE, new Rational[] { 87 .buildTag(ExifInterface.TAG_SHUTTER_SPEED_VALUE, new Rational(1, 1)); 103 mInterface = new ExifInterface(); [all...] |
ExifParserTest.java | 28 private ExifInterface mInterface; 32 mInterface = new ExifInterface(); 37 mInterface = new ExifInterface(); 159 if (mGroundTruth.get(IfdId.TYPE_IFD_0).get(ExifInterface.TAG_MODEL) == null) { 175 if (tag.getTagId() == ExifInterface.TAG_MODEL) { 187 assertEquals(getImageTitle(), ExifInterface.TAG_MODEL, tag.getTagId()); 212 if (tag.getTagId() == ExifInterface.TAG_COMPRESSION) { 213 if (tag.getValueAt(0) == ExifInterface.Compression.JPEG) {
|
Util.java | 65 if (tagId == ExifInterface.getTrueTagKey(ExifInterface.TAG_COMPONENTS_CONFIGURATION)) { 103 if (id == ExifInterface.TAG_MAKER_NOTE || id == TAG_XP_TITLE || 123 if (id == ExifInterface.TAG_COPYRIGHT 124 || id == ExifInterface.TAG_GPS_DATE_STAMP) {
|
/packages/apps/Gallery2/src/com/android/photos/drawables/ |
DataUriThumbnailDrawable.java | 19 import android.media.ExifInterface; 33 ExifInterface exif = new ExifInterface(data);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
ExifInterface.java | 64 public class ExifInterface { 713 public ExifInterface() { 718 * Reads the exif tags from a byte array, clearing this ExifInterface 729 * Reads the exif tags from an InputStream, clearing this ExifInterface 749 * Reads the exif tags from a file, clearing this ExifInterface object's 772 * Sets the exif tags, clearing this ExifInterface object's existing exif 783 * Clears this ExifInterface object's existing exif tags. 790 * Writes the tags from this ExifInterface object into a jpeg image, 808 * Writes the tags from this ExifInterface object into a jpeg compressed 826 * Writes the tags from this ExifInterface object into a jpeg stream [all...] |
ExifOutputStream.java | 83 private final ExifInterface mInterface; 85 protected ExifOutputStream(OutputStream ou, ExifInterface iRef) { 246 if (t.getValue() == null && !ExifInterface.isOffsetTag(t.getTagId())) { 328 ExifTag exifOffsetTag = mInterface.buildUninitializedTag(ExifInterface.TAG_EXIF_IFD); 331 + ExifInterface.TAG_EXIF_IFD); 345 ExifTag gpsOffsetTag = mInterface.buildUninitializedTag(ExifInterface.TAG_GPS_IFD); 348 + ExifInterface.TAG_GPS_IFD); 357 .buildUninitializedTag(ExifInterface.TAG_INTEROPERABILITY_IFD); 360 + ExifInterface.TAG_INTEROPERABILITY_IFD); 376 .buildUninitializedTag(ExifInterface.TAG_JPEG_INTERCHANGE_FORMAT) [all...] |
ExifParser.java | 163 private final ExifInterface mInterface; 165 private static final short TAG_EXIF_IFD = ExifInterface 166 .getTrueTagKey(ExifInterface.TAG_EXIF_IFD); 167 private static final short TAG_GPS_IFD = ExifInterface.getTrueTagKey(ExifInterface.TAG_GPS_IFD); 168 private static final short TAG_INTEROPERABILITY_IFD = ExifInterface 169 .getTrueTagKey(ExifInterface.TAG_INTEROPERABILITY_IFD); 170 private static final short TAG_JPEG_INTERCHANGE_FORMAT = ExifInterface 171 .getTrueTagKey(ExifInterface.TAG_JPEG_INTERCHANGE_FORMAT); 172 private static final short TAG_JPEG_INTERCHANGE_FORMAT_LENGTH = ExifInterface [all...] |
ExifReader.java | 31 private final ExifInterface mInterface; 33 ExifReader(ExifInterface iRef) {
|
ExifModifier.java | 35 private final ExifInterface mInterface; 48 protected ExifModifier(ByteBuffer byteBuffer, ExifInterface iRef) throws IOException, 62 ExifInterface.closeSilently(is); 136 ExifInterface.closeSilently(is);
|
IfdData.java | 139 if (ExifInterface.isOffsetTag(tag.getTagId())) {
|
/pdk/apps/TestingCamera/src/com/android/testingcamera/ |
SnapshotDialogFragment.java | 9 import android.media.ExifInterface; 121 private String getAttrib(ExifInterface exif, String tag) { 155 ExifInterface exif = new ExifInterface(targetFile.toString()); 157 String aperture = getAttrib(exif, ExifInterface.TAG_APERTURE); 159 String dateTime = getAttrib(exif, ExifInterface.TAG_DATETIME); 160 String exposureTime = getAttrib(exif, ExifInterface.TAG_EXPOSURE_TIME); 161 int flash = exif.getAttributeInt(ExifInterface.TAG_FLASH, 0); 162 double focalLength = exif.getAttributeDouble(ExifInterface.TAG_FOCAL_LENGTH, 0); 165 String gpsDatestamp = getAttrib(exif, ExifInterface.TAG_GPS_DATESTAMP) [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
Image.java | 26 import android.media.ExifInterface; 41 private ExifInterface mExif; 93 mExif = new ExifInterface(mDataPath); 110 int orientation = ExifInterface.ORIENTATION_NORMAL; 113 orientation = ExifInterface.ORIENTATION_NORMAL; 116 orientation = ExifInterface.ORIENTATION_ROTATE_90; 119 orientation = ExifInterface.ORIENTATION_ROTATE_180; 122 orientation = ExifInterface.ORIENTATION_ROTATE_270; 126 replaceExifTag(ExifInterface.TAG_ORIENTATION,
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
SaveCopyTask.java | 33 import com.android.gallery3d.exif.ExifInterface; 133 public ExifInterface getExifData(Uri source) { 134 ExifInterface exif = new ExifInterface(); 152 public boolean putExifData(File file, ExifInterface exif, Bitmap image) { 191 ExifInterface exif = getExifData(sourceUri); 195 exif.addDateTimeStampTag(ExifInterface.TAG_DATE_TIME, time, 197 exif.setTag(exif.buildTag(ExifInterface.TAG_ORIENTATION, 198 ExifInterface.Orientation.TOP_LEFT));
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
FileRetriever.java | 19 import android.media.ExifInterface; 49 ExifInterface exif = new ExifInterface(contentUri.getPath());
|
/frameworks/base/media/java/android/media/ |
ExifInterface.java | 30 public class ExifInterface { 119 public ExifInterface(String filename) throws IOException { 299 String latValue = mAttributes.get(ExifInterface.TAG_GPS_LATITUDE); 300 String latRef = mAttributes.get(ExifInterface.TAG_GPS_LATITUDE_REF); 301 String lngValue = mAttributes.get(ExifInterface.TAG_GPS_LONGITUDE); 302 String lngRef = mAttributes.get(ExifInterface.TAG_GPS_LONGITUDE_REF);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
ImageLoader.java | 40 import com.android.gallery3d.exif.ExifInterface; 86 public static final int ORI_NORMAL = ExifInterface.Orientation.TOP_LEFT; 87 public static final int ORI_ROTATE_90 = ExifInterface.Orientation.RIGHT_TOP; 88 public static final int ORI_ROTATE_180 = ExifInterface.Orientation.BOTTOM_LEFT; 89 public static final int ORI_ROTATE_270 = ExifInterface.Orientation.RIGHT_BOTTOM; 90 public static final int ORI_FLIP_HOR = ExifInterface.Orientation.TOP_RIGHT; 91 public static final int ORI_FLIP_VERT = ExifInterface.Orientation.BOTTOM_RIGHT; 92 public static final int ORI_TRANSPOSE = ExifInterface.Orientation.LEFT_TOP; 93 public static final int ORI_TRANSVERSE = ExifInterface.Orientation.LEFT_BOTTOM; 163 ExifInterface exif = new ExifInterface() [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
ImageUtils.java | 36 import android.media.ExifInterface; 130 final ExifInterface exif = new ExifInterface(inputFilename); 131 final int orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, 132 ExifInterface.ORIENTATION_UNDEFINED); 141 case ExifInterface.ORIENTATION_ROTATE_90: { 146 case ExifInterface.ORIENTATION_ROTATE_180: { 151 case ExifInterface.ORIENTATION_ROTATE_270: {
|