Lines Matching refs:key_size
300 new_table(int key_size) in new_table() argument
303 int init_bulk = MAX(1 << (key_size + 1), 0x100); in new_table()
307 table->nentries = (1 << key_size) + 2; in new_table()
309 for (key = 0; key < (1 << key_size); key++) in new_table()
338 get_key(gd_GIF *gif, int key_size, uint8_t *sub_len, uint8_t *shift, uint8_t *byte) in get_key() argument
346 for (bits_read = 0; bits_read < key_size; bits_read += frag_size) { in get_key()
357 frag_size = MIN(key_size - bits_read, 8 - rpad); in get_key()
361 key &= (1 << key_size) - 1; in get_key()
362 *shift = (*shift + key_size) % 8; in get_key()
394 int init_key_size, key_size, table_is_full=0; in read_image_data() local
403 key_size = (int) byte; in read_image_data()
408 clear = 1 << key_size; in read_image_data()
410 table = new_table(key_size); in read_image_data()
411 key_size++; in read_image_data()
412 init_key_size = key_size; in read_image_data()
414 key = get_key(gif, key_size, &sub_len, &shift, &byte); /* clear code */ in read_image_data()
420 key_size = init_key_size; in read_image_data()
421 table->nentries = (1 << (key_size - 1)) + 2; in read_image_data()
434 key = get_key(gif, key_size, &sub_len, &shift, &byte); in read_image_data()
437 if (ret == 1) key_size++; in read_image_data()