comparison vp5.c @ 4594:a96d905dcbaa libavcodec

Add av_ prefix to clip functions
author reimar
date Sun, 25 Feb 2007 10:27:12 +0000
parents 6a10cc9adb8a
children 340c876320eb
comparison
equal deleted inserted replaced
4593:2aea8bf268d8 4594:a96d905dcbaa
162 162
163 /* coeff_model_dcct is a linear combination of coeff_model_dccv */ 163 /* coeff_model_dcct is a linear combination of coeff_model_dccv */
164 for (pt=0; pt<2; pt++) 164 for (pt=0; pt<2; pt++)
165 for (ctx=0; ctx<36; ctx++) 165 for (ctx=0; ctx<36; ctx++)
166 for (node=0; node<5; node++) 166 for (node=0; node<5; node++)
167 s->coeff_model_dcct[pt][ctx][node] = clip(((s->coeff_model_dccv[pt][node] * vp5_dccv_lc[node][ctx][0] + 128) >> 8) + vp5_dccv_lc[node][ctx][1], 1, 254); 167 s->coeff_model_dcct[pt][ctx][node] = av_clip(((s->coeff_model_dccv[pt][node] * vp5_dccv_lc[node][ctx][0] + 128) >> 8) + vp5_dccv_lc[node][ctx][1], 1, 254);
168 168
169 /* coeff_model_acct is a linear combination of coeff_model_ract */ 169 /* coeff_model_acct is a linear combination of coeff_model_ract */
170 for (ct=0; ct<3; ct++) 170 for (ct=0; ct<3; ct++)
171 for (pt=0; pt<2; pt++) 171 for (pt=0; pt<2; pt++)
172 for (cg=0; cg<3; cg++) 172 for (cg=0; cg<3; cg++)
173 for (ctx=0; ctx<6; ctx++) 173 for (ctx=0; ctx<6; ctx++)
174 for (node=0; node<5; node++) 174 for (node=0; node<5; node++)
175 s->coeff_model_acct[pt][ct][cg][ctx][node] = clip(((s->coeff_model_ract[pt][ct][cg][node] * vp5_ract_lc[ct][cg][node][ctx][0] + 128) >> 8) + vp5_ract_lc[ct][cg][node][ctx][1], 1, 254); 175 s->coeff_model_acct[pt][ct][cg][ctx][node] = av_clip(((s->coeff_model_ract[pt][ct][cg][node] * vp5_ract_lc[ct][cg][node][ctx][0] + 128) >> 8) + vp5_ract_lc[ct][cg][node][ctx][1], 1, 254);
176 } 176 }
177 177
178 static void vp5_parse_coeff(vp56_context_t *s) 178 static void vp5_parse_coeff(vp56_context_t *s)
179 { 179 {
180 vp56_range_coder_t *c = &s->c; 180 vp56_range_coder_t *c = &s->c;