Mercurial > libavcodec.hg
comparison h264.c @ 2519:b34f2cac6a71 libavcodec
10l in implicit_weight_table
author | lorenm |
---|---|
date | Thu, 24 Feb 2005 09:27:46 +0000 |
parents | b3b06ba8787c |
children | 0fbbba9a52bc |
comparison
equal
deleted
inserted
replaced
2518:2c794e3903a2 | 2519:b34f2cac6a71 |
---|---|
3150 | 3150 |
3151 /* FIXME: MBAFF */ | 3151 /* FIXME: MBAFF */ |
3152 for(ref0=0; ref0 < h->ref_count[0]; ref0++){ | 3152 for(ref0=0; ref0 < h->ref_count[0]; ref0++){ |
3153 int poc0 = h->ref_list[0][ref0].poc; | 3153 int poc0 = h->ref_list[0][ref0].poc; |
3154 for(ref1=0; ref1 < h->ref_count[1]; ref1++){ | 3154 for(ref1=0; ref1 < h->ref_count[1]; ref1++){ |
3155 int poc1 = h->ref_list[0][ref1].poc; | 3155 int poc1 = h->ref_list[1][ref1].poc; |
3156 int td = clip(poc1 - poc0, -128, 127); | 3156 int td = clip(poc1 - poc0, -128, 127); |
3157 if(td){ | 3157 if(td){ |
3158 int tb = clip(cur_poc - poc0, -128, 127); | 3158 int tb = clip(cur_poc - poc0, -128, 127); |
3159 int tx = (16384 + (ABS(td) >> 1)) / td; | 3159 int tx = (16384 + (ABS(td) >> 1)) / td; |
3160 int dist_scale_factor = clip((tb*tx + 32) >> 6, -1024, 1023) >> 2; | 3160 int dist_scale_factor = clip((tb*tx + 32) >> 6, -1024, 1023) >> 2; |