Lines Matching refs:model

216     VP56Model *model = s->modelp;
218 model->vector_dct[0] = 0xA2;
219 model->vector_dct[1] = 0xA4;
220 model->vector_sig[0] = 0x80;
221 model->vector_sig[1] = 0x80;
223 memcpy(model->mb_types_stats, ff_vp56_def_mb_types_stats, sizeof(model->mb_types_stats));
224 memcpy(model->vector_fdv, vp6_def_fdv_vector_model, sizeof(model->vector_fdv));
225 memcpy(model->vector_pdv, vp6_def_pdv_vector_model, sizeof(model->vector_pdv));
226 memcpy(model->coeff_runv, vp6_def_runv_coeff_model, sizeof(model->coeff_runv));
227 memcpy(model->coeff_reorder, vp6_def_coeff_reorder, sizeof(model->coeff_reorder));
235 VP56Model *model = s->modelp;
240 model->vector_dct[comp] = vp56_rac_gets_nn(c, 7);
242 model->vector_sig[comp] = vp56_rac_gets_nn(c, 7);
248 model->vector_pdv[comp][node] = vp56_rac_gets_nn(c, 7);
253 model->vector_fdv[comp][node] = vp56_rac_gets_nn(c, 7);
269 /* first compute probabilities from model */
288 VP56Model *model = s->modelp;
300 model->coeff_dccv[pt][node] = def_prob[node];
302 model->coeff_dccv[pt][node] = def_prob[node];
308 model->coeff_reorder[pos] = vp56_rac_gets(c, 4);
315 model->coeff_runv[cg][node] = vp56_rac_gets_nn(c, 7);
323 model->coeff_ract[pt][ct][cg][node] = def_prob[node];
325 model->coeff_ract[pt][ct][cg][node] = def_prob[node];
330 if (vp6_build_huff_tree(s, model->coeff_dccv[pt],
333 if (vp6_build_huff_tree(s, model->coeff_runv[pt],
338 if (vp6_build_huff_tree(s, model->coeff_ract[pt][ct][cg],
349 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);
357 VP56Model *model = s->modelp;
367 if (vp56_rac_get_prob_branchy(c, model->vector_dct[comp])) {
371 delta |= vp56_rac_get_prob(c, model->vector_fdv[comp][j])<<j;
374 delta |= vp56_rac_get_prob(c, model->vector_fdv[comp][3])<<3;
379 model->vector_pdv[comp]);
382 if (delta && vp56_rac_get_prob_branchy(c, model->vector_sig[comp]))
410 VP56Model *model = s->modelp;
454 idx = model->coeff_index_to_pos[coeff_idx];
464 s->idct_selector[b] = model->coeff_index_to_idct_selector[FFMIN(coeff_idx, 63)];
472 VP56Model *model = s->modelp;
492 model1 = model->coeff_dccv[pt];
493 model2 = model->coeff_dcct[pt][ctx];
520 idx = model->coeff_index_to_pos[coeff_idx];
530 model3 = model->coeff_runv[coeff_idx >= 6];
541 model1 = model2 = model->coeff_ract[pt][ct][cg];
546 s->idct_selector[b] = model->coeff_index_to_idct_selector[FFMIN(coeff_idx, 63)];