comparison snow.c @ 3194:c30e9bcbb716 libavcodec

seed iterative_me with mvs from conventional search. +15% speed, +.1 dB
author lorenm
date Mon, 13 Mar 2006 01:27:13 +0000
parents 66116775b315
children 8f53630cd24e
comparison
equal deleted inserted replaced
3193:66116775b315 3194:c30e9bcbb716
3302 const int b_width = s->b_width << s->block_max_depth; 3302 const int b_width = s->b_width << s->block_max_depth;
3303 const int b_height= s->b_height << s->block_max_depth; 3303 const int b_height= s->b_height << s->block_max_depth;
3304 const int b_stride= b_width; 3304 const int b_stride= b_width;
3305 int color[3]; 3305 int color[3];
3306 3306
3307 {
3308 RangeCoder r = s->c;
3309 uint8_t state[sizeof(s->block_state)];
3310 memcpy(state, s->block_state, sizeof(s->block_state));
3311 for(mb_y= 0; mb_y<s->b_height; mb_y++)
3312 for(mb_x= 0; mb_x<s->b_width; mb_x++)
3313 encode_q_branch(s, 0, mb_x, mb_y);
3314 s->c = r;
3315 memcpy(s->block_state, state, sizeof(s->block_state));
3316 }
3317
3307 for(pass=0; pass<50; pass++){ 3318 for(pass=0; pass<50; pass++){
3308 int change= 0; 3319 int change= 0;
3309 3320
3310 for(mb_y= 0; mb_y<b_height; mb_y++){ 3321 for(mb_y= 0; mb_y<b_height; mb_y++){
3311 for(mb_x= 0; mb_x<b_width; mb_x++){ 3322 for(mb_x= 0; mb_x<b_width; mb_x++){