Lines Matching refs:dataInputStream

2561         DataInputStream dataInputStream = new DataInputStream(inputStream);  in saveJpegAttributes()  local
2564 if (dataInputStream.readByte() != MARKER) { in saveJpegAttributes()
2568 if (dataInputStream.readByte() != MARKER_SOI) { in saveJpegAttributes()
2581 byte marker = dataInputStream.readByte(); in saveJpegAttributes()
2585 marker = dataInputStream.readByte(); in saveJpegAttributes()
2588 int length = dataInputStream.readUnsignedShort() - 2; in saveJpegAttributes()
2594 if (dataInputStream.read(identifier) != 6) { in saveJpegAttributes()
2599 if (dataInputStream.skipBytes(length - 6) != length - 6) { in saveJpegAttributes()
2614 while (length > 0 && (read = dataInputStream.read( in saveJpegAttributes()
2626 Streams.copy(dataInputStream, dataOutputStream); in saveJpegAttributes()
2633 int length = dataInputStream.readUnsignedShort(); in saveJpegAttributes()
2640 while (length > 0 && (read = dataInputStream.read( in saveJpegAttributes()
2653 ByteOrderedDataInputStream dataInputStream = in readExifSegment() local
2657 parseTiffHeaders(dataInputStream, exifBytes.length); in readExifSegment()
2660 readImageFileDirectory(dataInputStream, imageType); in readExifSegment()
2690 private ByteOrder readByteOrder(ByteOrderedDataInputStream dataInputStream) in readByteOrder() argument
2693 short byteOrder = dataInputStream.readShort(); in readByteOrder()
2710 private void parseTiffHeaders(ByteOrderedDataInputStream dataInputStream, in parseTiffHeaders() argument
2713 mExifByteOrder = readByteOrder(dataInputStream); in parseTiffHeaders()
2715 dataInputStream.setByteOrder(mExifByteOrder); in parseTiffHeaders()
2718 int startCode = dataInputStream.readUnsignedShort(); in parseTiffHeaders()
2724 int firstIfdOffset = dataInputStream.readInt(); in parseTiffHeaders()
2730 if (dataInputStream.skipBytes(firstIfdOffset) != firstIfdOffset) { in parseTiffHeaders()
2737 private void readImageFileDirectory(ByteOrderedDataInputStream dataInputStream, in readImageFileDirectory() argument
2739 if (dataInputStream.mPosition + 2 > dataInputStream.mLength) { in readImageFileDirectory()
2744 short numberOfDirectoryEntry = dataInputStream.readShort(); in readImageFileDirectory()
2745 if (dataInputStream.mPosition + 12 * numberOfDirectoryEntry > dataInputStream.mLength) { in readImageFileDirectory()
2756 int tagNumber = dataInputStream.readUnsignedShort(); in readImageFileDirectory()
2757 int dataFormat = dataInputStream.readUnsignedShort(); in readImageFileDirectory()
2758 int numberOfComponents = dataInputStream.readInt(); in readImageFileDirectory()
2760 long nextEntryOffset = dataInputStream.peek() + 4; in readImageFileDirectory()
2787 dataInputStream.seek(nextEntryOffset); in readImageFileDirectory()
2794 int offset = dataInputStream.readInt(); in readImageFileDirectory()
2826 if (offset + byteCount <= dataInputStream.mLength) { in readImageFileDirectory()
2827 dataInputStream.seek(offset); in readImageFileDirectory()
2831 dataInputStream.seek(nextEntryOffset); in readImageFileDirectory()
2847 offset = dataInputStream.readUnsignedShort(); in readImageFileDirectory()
2851 offset = dataInputStream.readShort(); in readImageFileDirectory()
2855 offset = dataInputStream.readUnsignedInt(); in readImageFileDirectory()
2860 offset = dataInputStream.readInt(); in readImageFileDirectory()
2871 if (offset > 0L && offset < dataInputStream.mLength) { in readImageFileDirectory()
2872 dataInputStream.seek(offset); in readImageFileDirectory()
2873 readImageFileDirectory(dataInputStream, (int) nextIfdType); in readImageFileDirectory()
2878 dataInputStream.seek(nextEntryOffset); in readImageFileDirectory()
2883 dataInputStream.readFully(bytes); in readImageFileDirectory()
2905 if (dataInputStream.peek() != nextEntryOffset) { in readImageFileDirectory()
2906 dataInputStream.seek(nextEntryOffset); in readImageFileDirectory()
2910 if (dataInputStream.peek() + 4 <= dataInputStream.mLength) { in readImageFileDirectory()
2911 int nextIfdOffset = dataInputStream.readInt(); in readImageFileDirectory()
2917 if (nextIfdOffset > 8 && nextIfdOffset < dataInputStream.mLength) { in readImageFileDirectory()
2918 dataInputStream.seek(nextIfdOffset); in readImageFileDirectory()
2921 readImageFileDirectory(dataInputStream, IFD_TYPE_THUMBNAIL); in readImageFileDirectory()
2923 readImageFileDirectory(dataInputStream, IFD_TYPE_PREVIEW); in readImageFileDirectory()