Lines Matching refs:jpeg
24 public static int getOrientation(byte[] jpeg) { in getOrientation() argument
25 if (jpeg == null) { in getOrientation()
33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { in getOrientation()
34 int marker = jpeg[offset] & 0xFF; in getOrientation()
52 length = pack(jpeg, offset, 2, false); in getOrientation()
53 if (length < 2 || offset + length > jpeg.length) { in getOrientation()
60 pack(jpeg, offset + 2, 4, false) == 0x45786966 && in getOrientation()
61 pack(jpeg, offset + 6, 2, false) == 0) { in getOrientation()
75 int tag = pack(jpeg, offset, 4, false); in getOrientation()
83 int count = pack(jpeg, offset + 4, 4, littleEndian) + 2; in getOrientation()
92 count = pack(jpeg, offset - 2, 2, littleEndian); in getOrientation()
95 tag = pack(jpeg, offset, 2, littleEndian); in getOrientation()
98 int orientation = pack(jpeg, offset + 8, 2, littleEndian); in getOrientation()