Lines Matching refs:length
30 * @param byteSize Recommended parameter declaring the length of the input stream. If you
57 has(jpeg, byteSize, offset + length - 1)
59 where length is a variable int (around 30KB above) read from the EXIF headers.
69 int length = 0;
101 // Get the length and check if it is reasonable.
102 length = pack(jpeg, offset, 2, false);
103 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) {
104 Log.e(TAG, "Invalid length");
109 if (marker == 0xE1 && length >= 8 &&
113 length -= 8;
120 offset += length;
121 length = 0;
128 if (length > 8) {
139 if (count < 10 || count > length) {
144 length -= count;
152 while (count-- > 0 && length >= 12) {
172 length -= 12;
182 private static int pack(final InputStreamBuffer bytes, int offset, int length,
186 offset += length - 1;
191 while (length-- > 0) {
209 return getOrientation(new ByteArrayInputStream(jpeg), jpeg.length);