Home | History | Annotate | Download | only in util

Lines Matching refs:length

35      * @param byteSize Recommended parameter declaring the length of the input stream. If you
62 has(jpeg, byteSize, offset + length - 1)
64 where length is a variable int (around 30KB above) read from the EXIF headers.
74 int length = 0;
106 // Get the length and check if it is reasonable.
107 length = pack(jpeg, offset, 2, false);
108 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) {
109 Log.e(TAG, "Invalid length");
114 if (marker == 0xE1 && length >= 8 &&
118 length -= 8;
125 offset += length;
126 length = 0;
133 if (length > 8) {
144 if (count < 10 || count > length) {
149 length -= count;
157 while (count-- > 0 && length >= 12) {
177 length -= 12;
187 private static int pack(final InputStreamBuffer bytes, int offset, int length,
191 offset += length - 1;
196 while (length-- > 0) {
214 return getOrientation(new ByteArrayInputStream(jpeg), jpeg.length);