Lines Matching refs:string_code
44 dict[i].string_code = CODE_UNSET;
55 static void set_new_entry_dict(MLZDict* dict, int string_code, int parent_code, int char_code) {
56 dict[string_code].parent_code = parent_code;
57 dict[string_code].string_code = string_code;
58 dict[string_code].char_code = char_code;
60 dict[string_code].match_len = 2;
62 dict[string_code].match_len = (dict[parent_code].match_len) + 1;
66 static int decode_string(MLZ* mlz, unsigned char *buff, int string_code, int *first_char_code, unsigned long bufsize) {
72 current_code = string_code;
131 int string_code, last_string_code, char_code;
133 string_code = 0;
139 string_code = input_code(gb, mlz->dic_code_bit);
140 switch (string_code) {
151 if (string_code > mlz->current_dic_index_max) {
152 av_log(mlz->context, AV_LOG_ERROR, "String code %d exceeds maximum value of %d.\n", string_code, mlz->current_dic_index_max);
155 if (string_code == (int) mlz->bump_code) {
160 if (string_code >= mlz->next_code) {
180 int ret = decode_string(mlz, &buff[output_chars], string_code, &char_code, size - output_chars);
199 last_string_code = string_code;