Lines Matching refs:model
191 VP56Model *model = s->modelp;
193 model->vector_dct[0] = 0xA2;
194 model->vector_dct[1] = 0xA4;
195 model->vector_sig[0] = 0x80;
196 model->vector_sig[1] = 0x80;
198 memcpy(model->mb_types_stats, ff_vp56_def_mb_types_stats, sizeof(model->mb_types_stats));
199 memcpy(model->vector_fdv, vp6_def_fdv_vector_model, sizeof(model->vector_fdv));
200 memcpy(model->vector_pdv, vp6_def_pdv_vector_model, sizeof(model->vector_pdv));
201 memcpy(model->coeff_runv, vp6_def_runv_coeff_model, sizeof(model->coeff_runv));
202 memcpy(model->coeff_reorder, vp6_def_coeff_reorder, sizeof(model->coeff_reorder));
210 VP56Model *model = s->modelp;
215 model->vector_dct[comp] = vp56_rac_gets_nn(c, 7);
217 model->vector_sig[comp] = vp56_rac_gets_nn(c, 7);
223 model->vector_pdv[comp][node] = vp56_rac_gets_nn(c, 7);
228 model->vector_fdv[comp][node] = vp56_rac_gets_nn(c, 7);
244 /* first compute probabilities from model */
263 VP56Model *model = s->modelp;
275 model->coeff_dccv[pt][node] = def_prob[node];
277 model->coeff_dccv[pt][node] = def_prob[node];
283 model->coeff_reorder[pos] = vp56_rac_gets(c, 4);
290 model->coeff_runv[cg][node] = vp56_rac_gets_nn(c, 7);
298 model->coeff_ract[pt][ct][cg][node] = def_prob[node];
300 model->coeff_ract[pt][ct][cg][node] = def_prob[node];
305 if (vp6_build_huff_tree(s, model->coeff_dccv[pt],
308 if (vp6_build_huff_tree(s, model->coeff_runv[pt],
313 if (vp6_build_huff_tree(s, model->coeff_ract[pt][ct][cg],
324 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);
332 VP56Model *model = s->modelp;
342 if (vp56_rac_get_prob_branchy(c, model->vector_dct[comp])) {
346 delta |= vp56_rac_get_prob(c, model->vector_fdv[comp][j])<<j;
349 delta |= vp56_rac_get_prob(c, model->vector_fdv[comp][3])<<3;
354 model->vector_pdv[comp]);
357 if (delta && vp56_rac_get_prob_branchy(c, model->vector_sig[comp]))
385 VP56Model *model = s->modelp;
429 idx = model->coeff_index_to_pos[coeff_idx];
445 VP56Model *model = s->modelp;
460 model1 = model->coeff_dccv[pt];
461 model2 = model->coeff_dcct[pt][ctx];
488 idx = model->coeff_index_to_pos[coeff_idx];
498 model3 = model->coeff_runv[coeff_idx >= 6];
509 model1 = model2 = model->coeff_ract[pt][ct][cg];