Lines Matching refs:key
302 int key; in new_table() local
309 for (key = 0; key < (1 << key_size); key++) in new_table()
310 table->entries[key] = (Entry) {1, 0xFFF, key}; in new_table()
343 uint16_t key; in get_key() local
345 key = 0; in get_key()
358 key |= ((uint16_t) ((*byte) >> rpad)) << bits_read; in get_key()
361 key &= (1 << key_size) - 1; in get_key()
363 return key; in get_key()
396 uint16_t key, clear, stop; in read_image_data() local
414 key = get_key(gif, key_size, &sub_len, &shift, &byte); /* clear code */ in read_image_data()
419 if (key == clear) { in read_image_data()
424 ret = add_entry(&table, str_len + 1, key, entry.suffix); in read_image_data()
434 key = get_key(gif, key_size, &sub_len, &shift, &byte); in read_image_data()
435 if (key == clear) continue; in read_image_data()
436 if (key == stop || key == 0x1000) break; in read_image_data()
438 entry = table->entries[key]; in read_image_data()
453 if (key < table->nentries - 1 && !table_is_full) in read_image_data()
457 if (key == stop) f_gif_read(gif, &sub_len, 1); /* Must be zero! */ in read_image_data()