Home | History | Annotate | Download | only in camera

Lines Matching refs:offset

29         int offset = 0;
33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) {
34 int marker = jpeg[offset] & 0xFF;
40 offset++;
52 length = pack(jpeg, offset, 2, false);
53 if (length < 2 || offset + length > jpeg.length) {
60 pack(jpeg, offset + 2, 4, false) == 0x45786966 &&
61 pack(jpeg, offset + 6, 2, false) == 0) {
62 offset += 8;
68 offset += length;
75 int tag = pack(jpeg, offset, 4, false);
82 // Get the offset and check if it is reasonable.
83 int count = pack(jpeg, offset + 4, 4, littleEndian) + 2;
85 Log.e(TAG, "Invalid offset");
88 offset += count;
92 count = pack(jpeg, offset - 2, 2, littleEndian);
95 tag = pack(jpeg, offset, 2, littleEndian);
98 int orientation = pack(jpeg, offset + 8, 2, littleEndian);
112 offset += 12;
121 private static int pack(byte[] bytes, int offset, int length,
125 offset += length - 1;
131 value = (value << 8) | (bytes[offset] & 0xFF);
132 offset += step;