Lines Matching refs:buf
90 private int readBytes(byte buf[], int off, int len) {
93 int n = input.read(buf, off, len);
106 private static final int ExtractByte(byte buf[], int off) {
107 return (buf[off] & 0xFF);
110 private static final int ExtractWord(byte buf[], int off) {
111 return (buf[off] & 0xFF) | ((buf[off + 1] & 0xFF) << 8);
136 byte buf[] = new byte[6];
137 if (readBytes(buf, 0, 6) != 0) {
140 if ((buf[0] != 4) || (buf[5] != 0)) {
144 delay = ExtractWord(buf, 2) * 10;
149 disposal_method = (buf[1] >> 2) & 7;
150 if ((buf[1] & TRANSPARENCYMASK) != 0) {
151 trans_pixel = ExtractByte(buf, 4);
168 byte buf[] = new byte[n];
169 if (readBytes(buf, 0, n) != 0) {
173 comment += new String(buf, 0);
176 if (n == 3 && buf[0] == 1) {
178 ExtractWord(buf, 1);
181 nloops = ExtractWord(buf, 1);
188 if ("NETSCAPE2.0".equals(new String(buf, 0))) {
278 byte buf[] = new byte[13];
281 if (readBytes(buf, 0, 13) != 0) {
286 if ((buf[0] != 'G') || (buf[1] != 'I') || (buf[2] != 'F')) {
291 global_width = ExtractWord(buf, 6);
292 global_height = ExtractWord(buf, 8);
295 int ch = ExtractByte(buf, 10);
313 global_bgpixel = ExtractByte(buf, 11);
315 if (buf[12] != 0) {
316 props.put("aspectratio", ""+((ExtractByte(buf, 12) + 15) / 64.0));