Mercurial > libavcodec.hg
comparison h264.c @ 2781:899a2ea0907c libavcodec
parenthesing to avoid compiler errors in the future - compared asm outputs, behaviour didnt changed
author | alex |
---|---|
date | Sat, 02 Jul 2005 19:39:58 +0000 |
parents | 3eddfe241bb9 |
children | 0a8c847ad5e7 |
comparison
equal
deleted
inserted
replaced
2780:3144a4fc383b | 2781:899a2ea0907c |
---|---|
2962 int idx = rem6[q]; | 2962 int idx = rem6[q]; |
2963 if(shift >= 2) // qp<12 are shifted during dequant | 2963 if(shift >= 2) // qp<12 are shifted during dequant |
2964 shift -= 2; | 2964 shift -= 2; |
2965 for(x=0; x<64; x++) | 2965 for(x=0; x<64; x++) |
2966 h->dequant8_coeff[q][x] = dequant8_coeff_init[idx][ | 2966 h->dequant8_coeff[q][x] = dequant8_coeff_init[idx][ |
2967 dequant8_coeff_init_scan[(x>>1)&12 | x&3] ] << shift; | 2967 dequant8_coeff_init_scan[((x>>1)&12) | (x&3)] ] << shift; |
2968 } | 2968 } |
2969 if(h->sps.transform_bypass){ | 2969 if(h->sps.transform_bypass){ |
2970 for(x=0; x<16; x++) | 2970 for(x=0; x<16; x++) |
2971 h->dequant4_coeff[0][x] = 1; | 2971 h->dequant4_coeff[0][x] = 1; |
2972 for(x=0; x<64; x++) | 2972 for(x=0; x<64; x++) |
4401 | 4401 |
4402 static inline int get_dct8x8_allowed(H264Context *h){ | 4402 static inline int get_dct8x8_allowed(H264Context *h){ |
4403 int i; | 4403 int i; |
4404 for(i=0; i<4; i++){ | 4404 for(i=0; i<4; i++){ |
4405 if(!IS_SUB_8X8(h->sub_mb_type[i]) | 4405 if(!IS_SUB_8X8(h->sub_mb_type[i]) |
4406 || !h->sps.direct_8x8_inference_flag && IS_DIRECT(h->sub_mb_type[i])) | 4406 || (!h->sps.direct_8x8_inference_flag && IS_DIRECT(h->sub_mb_type[i]))) |
4407 return 0; | 4407 return 0; |
4408 } | 4408 } |
4409 return 1; | 4409 return 1; |
4410 } | 4410 } |
4411 | 4411 |