Lines Matching refs:model
178 VP56Model *model = s->modelp;
180 model->vector_dct[0] = 0xA2;
181 model->vector_dct[1] = 0xA4;
182 model->vector_sig[0] = 0x80;
183 model->vector_sig[1] = 0x80;
185 memcpy(model->mb_types_stats, vp56_def_mb_types_stats, sizeof(model->mb_types_stats));
186 memcpy(model->vector_fdv, vp6_def_fdv_vector_model, sizeof(model->vector_fdv));
187 memcpy(model->vector_pdv, vp6_def_pdv_vector_model, sizeof(model->vector_pdv));
188 memcpy(model->coeff_runv, vp6_def_runv_coeff_model, sizeof(model->coeff_runv));
189 memcpy(model->coeff_reorder, vp6_def_coeff_reorder, sizeof(model->coeff_reorder));
197 VP56Model *model = s->modelp;
202 model->vector_dct[comp] = vp56_rac_gets_nn(c, 7);
204 model->vector_sig[comp] = vp56_rac_gets_nn(c, 7);
210 model->vector_pdv[comp][node] = vp56_rac_gets_nn(c, 7);
215 model->vector_fdv[comp][node] = vp56_rac_gets_nn(c, 7);
231 /* first compute probabilities from model */
249 VP56Model *model = s->modelp;
261 model->coeff_dccv[pt][node] = def_prob[node];
263 model->coeff_dccv[pt][node] = def_prob[node];
269 model->coeff_reorder[pos] = vp56_rac_gets(c, 4);
276 model->coeff_runv[cg][node] = vp56_rac_gets_nn(c, 7);
284 model->coeff_ract[pt][ct][cg][node] = def_prob[node];
286 model->coeff_ract[pt][ct][cg][node] = def_prob[node];
291 if (vp6_build_huff_tree(s, model->coeff_dccv[pt],
294 if (vp6_build_huff_tree(s, model->coeff_runv[pt],
299 if (vp6_build_huff_tree(s, model->coeff_ract[pt][ct][cg],
310 model->coeff_dcct[pt][ctx][node] = av_clip(((model->coeff_dccv[pt][node] * vp6_dccv_lc[ctx][node][0] + 128) >> 8) + vp6_dccv_lc[ctx][node][1], 1, 255);
318 VP56Model *model = s->modelp;
328 if (vp56_rac_get_prob(c, model->vector_dct[comp])) {
332 delta |= vp56_rac_get_prob(c, model->vector_fdv[comp][j])<<j;
335 delta |= vp56_rac_get_prob(c, model->vector_fdv[comp][3])<<3;
340 model->vector_pdv[comp]);
343 if (delta && vp56_rac_get_prob(c, model->vector_sig[comp]))
371 VP56Model *model = s->modelp;
415 idx = model->coeff_index_to_pos[coeff_idx];
431 VP56Model *model = s->modelp;
446 model1 = model->coeff_dccv[pt];
447 model2 = model->coeff_dcct[pt][ctx];
474 idx = model->coeff_index_to_pos[coeff_idx];
484 model3 = model->coeff_runv[coeff_idx >= 6];
495 model1 = model2 = model->coeff_ract[pt][ct][cg];