Lines Matching refs:length
30 int length = 0; in getOrientation() local
33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { in getOrientation()
52 length = pack(jpeg, offset, 2, false); in getOrientation()
53 if (length < 2 || offset + length > jpeg.length) { in getOrientation()
59 if (marker == 0xE1 && length >= 8 && in getOrientation()
63 length -= 8; in getOrientation()
68 offset += length; in getOrientation()
69 length = 0; in getOrientation()
73 if (length > 8) { in getOrientation()
84 if (count < 10 || count > length) { in getOrientation()
89 length -= count; in getOrientation()
93 while (count-- > 0 && length >= 12) { in getOrientation()
113 length -= 12; in getOrientation()
121 private static int pack(byte[] bytes, int offset, int length, in pack() argument
125 offset += length - 1; in pack()
130 while (length-- > 0) { in pack()