Home | History | Annotate | Download | only in camera

Lines Matching refs:length

30         int length = 0;
33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) {
51 // Get the length and check if it is reasonable.
52 length = pack(jpeg, offset, 2, false);
53 if (length < 2 || offset + length > jpeg.length) {
54 Log.e(TAG, "Invalid length");
59 if (marker == 0xE1 && length >= 8 &&
63 length -= 8;
68 offset += length;
69 length = 0;
73 if (length > 8) {
84 if (count < 10 || count > length) {
89 length -= count;
93 while (count-- > 0 && length >= 12) {
113 length -= 12;
121 private static int pack(byte[] bytes, int offset, int length,
125 offset += length - 1;
130 while (length-- > 0) {