Mercurial > libavcodec.hg
comparison snow.c @ 5127:4dbe6578f811 libavcodec
misc spelling fixes
author | diego |
---|---|
date | Tue, 12 Jun 2007 09:29:25 +0000 |
parents | 81bbca75ae2f |
children | 6ced4aabe225 |
comparison
equal
deleted
inserted
replaced
5126:7982b376b58a | 5127:4dbe6578f811 |
---|---|
2110 best_ref= ref; | 2110 best_ref= ref; |
2111 mx= ref_mx; | 2111 mx= ref_mx; |
2112 my= ref_my; | 2112 my= ref_my; |
2113 } | 2113 } |
2114 } | 2114 } |
2115 //FIXME if mb_cmp != SSE then intra cant be compared currently and mb_penalty vs. lambda2 | 2115 //FIXME if mb_cmp != SSE then intra cannot be compared currently and mb_penalty vs. lambda2 |
2116 | 2116 |
2117 // subpel search | 2117 // subpel search |
2118 base_bits= get_rac_count(&s->c) - 8*(s->c.bytestream - s->c.bytestream_start); | 2118 base_bits= get_rac_count(&s->c) - 8*(s->c.bytestream - s->c.bytestream_start); |
2119 pc= s->c; | 2119 pc= s->c; |
2120 pc.bytestream_start= | 2120 pc.bytestream_start= |
2890 } | 2890 } |
2891 } | 2891 } |
2892 } | 2892 } |
2893 *b= backup; | 2893 *b= backup; |
2894 | 2894 |
2895 return av_clip(((ab<<LOG2_OBMC_MAX) + aa/2)/aa, 0, 255); //FIXME we shouldnt need cliping | 2895 return av_clip(((ab<<LOG2_OBMC_MAX) + aa/2)/aa, 0, 255); //FIXME we should not need clipping |
2896 } | 2896 } |
2897 | 2897 |
2898 static inline int get_block_bits(SnowContext *s, int x, int y, int w){ | 2898 static inline int get_block_bits(SnowContext *s, int x, int y, int w){ |
2899 const int b_stride = s->b_width << s->block_max_depth; | 2899 const int b_stride = s->b_width << s->block_max_depth; |
2900 const int b_height = s->b_height<< s->block_max_depth; | 2900 const int b_height = s->b_height<< s->block_max_depth; |
3274 | 3274 |
3275 // intra(black) = neighbors' contribution to the current block | 3275 // intra(black) = neighbors' contribution to the current block |
3276 for(i=0; i<3; i++) | 3276 for(i=0; i<3; i++) |
3277 color[i]= get_dc(s, mb_x, mb_y, i); | 3277 color[i]= get_dc(s, mb_x, mb_y, i); |
3278 | 3278 |
3279 // get previous score (cant be cached due to OBMC) | 3279 // get previous score (cannot be cached due to OBMC) |
3280 if(pass > 0 && (block->type&BLOCK_INTRA)){ | 3280 if(pass > 0 && (block->type&BLOCK_INTRA)){ |
3281 int color0[3]= {block->color[0], block->color[1], block->color[2]}; | 3281 int color0[3]= {block->color[0], block->color[1], block->color[2]}; |
3282 check_block(s, mb_x, mb_y, color0, 1, *obmc_edged, &best_rd); | 3282 check_block(s, mb_x, mb_y, color0, 1, *obmc_edged, &best_rd); |
3283 }else | 3283 }else |
3284 check_block_inter(s, mb_x, mb_y, block->mx, block->my, *obmc_edged, &best_rd); | 3284 check_block_inter(s, mb_x, mb_y, block->mx, block->my, *obmc_edged, &best_rd); |