/** * Returns the tag with a given TID in the given IFD if the tag exists. * Otherwise returns null. */ protected ExifTag getTag( short tag, int ifd ) { IfdData ifdData = mIfdDatas[ifd]; return ( ifdData == null ) ? null : ifdData.getTag( tag ); }
/** * Returns the tag with a given TID in the given IFD if the tag exists. * Otherwise returns null. */ protected ExifTag getTag( short tag, int ifd ) { IfdData ifdData = mIfdDatas[ifd]; return ( ifdData == null ) ? null : ifdData.getTag( tag ); }
/** * Returns a list of all {@link ExifTag}s with a given TID or null if there * are none. */ protected List<ExifTag> getAllTagsForTagId( short tag ) { ArrayList<ExifTag> ret = new ArrayList<ExifTag>(); for( IfdData d : mIfdDatas ) { if( d != null ) { ExifTag t = d.getTag( tag ); if( t != null ) { ret.add( t ); } } } if( ret.size() == 0 ) { return null; } return ret; }
/** * Returns a list of all {@link ExifTag}s with a given TID or null if there * are none. */ protected List<ExifTag> getAllTagsForTagId( short tag ) { ArrayList<ExifTag> ret = new ArrayList<ExifTag>(); for( IfdData d : mIfdDatas ) { if( d != null ) { ExifTag t = d.getTag( tag ); if( t != null ) { ret.add( t ); } } } if( ret.size() == 0 ) { return null; } return ret; }
return null; ExifTag tag = ifdData.getTag( ExifInterface.getTrueTagKey( ExifInterface.TAG_USER_COMMENT ) ); if( tag == null ) { return null;
return null; ExifTag tag = ifdData.getTag( ExifInterface.getTrueTagKey( ExifInterface.TAG_USER_COMMENT ) ); if( tag == null ) { return null;
IfdData ifd0 = mExifData.getIfdData( IfdId.TYPE_IFD_0 ); offset = calculateOffsetOfIfd( ifd0, offset ); ifd0.getTag( ExifInterface.getTrueTagKey( ExifInterface.TAG_EXIF_IFD ) ).setValue( offset ); exifIfd.getTag( ExifInterface.getTrueTagKey( ExifInterface.TAG_INTEROPERABILITY_IFD ) ).setValue( offset ); offset = calculateOffsetOfIfd( interIfd, offset ); ifd0.getTag( ExifInterface.getTrueTagKey( ExifInterface.TAG_GPS_IFD ) ).setValue( offset ); offset = calculateOffsetOfIfd( gpsIfd, offset ); ifd1.getTag( ExifInterface.getTrueTagKey( ExifInterface.TAG_JPEG_INTERCHANGE_FORMAT ) ).setValue( offset ); offset += mExifData.getCompressedThumbnail().length; offset += mExifData.getStrip( i ).length; ifd1.getTag( ExifInterface.getTrueTagKey( ExifInterface.TAG_STRIP_OFFSETS ) ).setValue( offsets );
IfdData ifd0 = mExifData.getIfdData( IfdId.TYPE_IFD_0 ); offset = calculateOffsetOfIfd( ifd0, offset ); ifd0.getTag( ExifInterface.getTrueTagKey( ExifInterface.TAG_EXIF_IFD ) ).setValue( offset ); exifIfd.getTag( ExifInterface.getTrueTagKey( ExifInterface.TAG_INTEROPERABILITY_IFD ) ).setValue( offset ); offset = calculateOffsetOfIfd( interIfd, offset ); ifd0.getTag( ExifInterface.getTrueTagKey( ExifInterface.TAG_GPS_IFD ) ).setValue( offset ); offset = calculateOffsetOfIfd( gpsIfd, offset ); ifd1.getTag( ExifInterface.getTrueTagKey( ExifInterface.TAG_JPEG_INTERCHANGE_FORMAT ) ).setValue( offset ); offset += mExifData.getCompressedThumbnail().length; offset += mExifData.getStrip( i ).length; ifd1.getTag( ExifInterface.getTrueTagKey( ExifInterface.TAG_STRIP_OFFSETS ) ).setValue( offsets );