/** * When receiving {@link #EVENT_UNCOMPRESSED_STRIP}, call this function to * get the strip size. */ protected int getStripSize() { if( mStripSizeTag == null ) return 0; return (int) mStripSizeTag.getValueAt( 0 ); }
/** * When receiving {@link #EVENT_COMPRESSED_IMAGE}, call this function to get * the image data size. */ protected int getCompressedImageSize() { if( mJpegSizeTag == null ) { return 0; } return (int) mJpegSizeTag.getValueAt( 0 ); }
/** * When receiving {@link #EVENT_COMPRESSED_IMAGE}, call this function to get * the image data size. */ protected int getCompressedImageSize() { if( mJpegSizeTag == null ) { return 0; } return (int) mJpegSizeTag.getValueAt( 0 ); }
/** * When receiving {@link #EVENT_UNCOMPRESSED_STRIP}, call this function to * get the strip size. */ protected int getStripSize() { if( mStripSizeTag == null ) return 0; return (int) mStripSizeTag.getValueAt( 0 ); }
if( tid == TAG_EXIF_IFD && checkAllowed( ifd, ExifInterface.TAG_EXIF_IFD ) ) { if( isIfdRequested( IfdId.TYPE_IFD_EXIF ) || isIfdRequested( IfdId.TYPE_IFD_INTEROPERABILITY ) ) { registerIfd( IfdId.TYPE_IFD_EXIF, tag.getValueAt( 0 ) ); registerIfd( IfdId.TYPE_IFD_GPS, tag.getValueAt( 0 ) ); registerIfd( IfdId.TYPE_IFD_INTEROPERABILITY, tag.getValueAt( 0 ) ); registerCompressedImage( tag.getValueAt( 0 ) ); for( int i = 0; i < tag.getComponentCount(); i++ ) { if( tag.getDataType() == ExifTag.TYPE_UNSIGNED_SHORT ) { registerUncompressedStrip( i, tag.getValueAt( i ) ); registerUncompressedStrip( i, tag.getValueAt( i ) );
if( tid == TAG_EXIF_IFD && checkAllowed( ifd, ExifInterface.TAG_EXIF_IFD ) ) { if( isIfdRequested( IfdId.TYPE_IFD_EXIF ) || isIfdRequested( IfdId.TYPE_IFD_INTEROPERABILITY ) ) { registerIfd( IfdId.TYPE_IFD_EXIF, tag.getValueAt( 0 ) ); registerIfd( IfdId.TYPE_IFD_GPS, tag.getValueAt( 0 ) ); registerIfd( IfdId.TYPE_IFD_INTEROPERABILITY, tag.getValueAt( 0 ) ); registerCompressedImage( tag.getValueAt( 0 ) ); for( int i = 0; i < tag.getComponentCount(); i++ ) { if( tag.getDataType() == ExifTag.TYPE_UNSIGNED_SHORT ) { registerUncompressedStrip( i, tag.getValueAt( i ) ); registerUncompressedStrip( i, tag.getValueAt( i ) );
case ExifTag.TYPE_UNSIGNED_LONG: for( int i = 0, n = tag.getComponentCount(); i < n; i++ ) { dataOutputStream.writeInt( (int) tag.getValueAt( i ) ); case ExifTag.TYPE_UNSIGNED_SHORT: for( int i = 0, n = tag.getComponentCount(); i < n; i++ ) { dataOutputStream.writeShort( (short) tag.getValueAt( i ) );
case ExifTag.TYPE_UNSIGNED_LONG: for( int i = 0, n = tag.getComponentCount(); i < n; i++ ) { dataOutputStream.writeInt( (int) tag.getValueAt( i ) ); case ExifTag.TYPE_UNSIGNED_SHORT: for( int i = 0, n = tag.getComponentCount(); i < n; i++ ) { dataOutputStream.writeShort( (short) tag.getValueAt( i ) );