53 int level, uni_code, uni_len;
58 for(level=-256; level<256; level++){
69 l= (-
level) ^ ((1 << size) - 1);
76 uni_code ^= (1<<uni_len)-1;
79 uni_code<<=
size; uni_code|=l;
82 uni_code<<=1; uni_code|=1;
92 uni_code ^= (1<<uni_len)-1;
95 uni_code<<=
size; uni_code|=l;
98 uni_code<<=1; uni_code|=1;
130 #if CONFIG_VC1_DECODER
182 for(y=0; y<block_size; y++){
184 for(x=0; x<block_size; x++){
185 sum+=src[x + y*stride];
188 return FASTDIV((sum + (scale>>1)), scale);
193 int16_t **dc_val_ptr,
int *dir_ptr)
212 b = dc_val[ - 1 -
wrap];
223 #if ARCH_X86 && HAVE_7REGS && HAVE_EBX_AVAILABLE
225 "movl %3, %%eax \n\t"
226 "shrl $1, %%eax \n\t"
227 "addl %%eax, %2 \n\t"
228 "addl %%eax, %1 \n\t"
229 "addl %0, %%eax \n\t"
231 "movl %%edx, %0 \n\t"
232 "movl %1, %%eax \n\t"
234 "movl %%edx, %1 \n\t"
235 "movl %2, %%eax \n\t"
237 "movl %%edx, %2 \n\t"
238 :
"+b" (
a),
"+c" (b),
"+D" (
c)
245 a = (a + (8 >> 1)) / 8;
246 b = (b + (8 >> 1)) / 8;
247 c = (c + (8 >> 1)) / 8;
249 a =
FASTDIV((a + (scale >> 1)), scale);
250 b =
FASTDIV((b + (scale >> 1)), scale);
251 c =
FASTDIV((c + (scale >> 1)), scale);
268 if (abs(a - b) < abs(b - c)) {
284 if(s->
mb_x==0) a= (1024 + (scale>>1))/scale;
286 if(s->
mb_y==0) c= (1024 + (scale>>1))/scale;
314 if (abs(a - b) < abs(b - c)) {
323 if (abs(a - b) <= abs(b - c)) {
333 *dc_val_ptr = &dc_val[0];