Lines Matching refs:ctx
85 int i, ctx, type;
87 for (ctx=0; ctx<3; ctx++) {
90 memcpy(model->mb_types_stats[ctx],
91 ff_vp56_pre_def_mb_type_stats[idx][ctx],
92 sizeof(model->mb_types_stats[ctx]));
104 model->mb_types_stats[ctx][type][i] += (delta ^ -sign) + sign;
112 for (ctx=0; ctx<3; ctx++) {
116 p[type] = 100 * model->mb_types_stats[ctx][type][1];
122 model->mb_type[ctx][type][0] = 255 - (255 * model->mb_types_stats[ctx][type][0]) / (1 + model->mb_types_stats[ctx][type][0] + model->mb_types_stats[ctx][type][1]);
136 model->mb_type[ctx][type][1] = 1 + 255 * p0234/(1+p0234+p156789);
137 model->mb_type[ctx][type][2] = 1 + 255 * p02 / (1+p0234);
138 model->mb_type[ctx][type][3] = 1 + 255 * p17 / (1+p156789);
139 model->mb_type[ctx][type][4] = 1 + 255 * p[0] / (1+p02);
140 model->mb_type[ctx][type][5] = 1 + 255 * p[3] / (1+p34);
141 model->mb_type[ctx][type][6] = 1 + 255 * p[1] / (1+p17);
142 model->mb_type[ctx][type][7] = 1 + 255 * p56 / (1+p5689);
143 model->mb_type[ctx][type][8] = 1 + 255 * p[5] / (1+p56);
144 model->mb_type[ctx][type][9] = 1 + 255 * p[8] / (1+p89);
147 p[type] = 100 * model->mb_types_stats[ctx][type][1];
153 VP56mb prev_type, int ctx)
155 uint8_t *mb_type_model = s->modelp->mb_type[ctx][prev_type];
208 int ctx, b;
210 ctx = vp56_get_vectors_predictors(s, row, col, VP56_FRAME_PREVIOUS);
211 s->mb_type = vp56_parse_mb_type(s, s->mb_type, ctx);