Commit bc0fbf54 authored by lorenm's avatar lorenm

seed iterative_me with mvs from conventional search.

+15% speed, +.1 dB


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5158 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7cc0ceaa
......@@ -3304,6 +3304,17 @@ static void iterative_me(SnowContext *s){
const int b_stride= b_width;
int color[3];
{
RangeCoder r = s->c;
uint8_t state[sizeof(s->block_state)];
memcpy(state, s->block_state, sizeof(s->block_state));
for(mb_y= 0; mb_y<s->b_height; mb_y++)
for(mb_x= 0; mb_x<s->b_width; mb_x++)
encode_q_branch(s, 0, mb_x, mb_y);
s->c = r;
memcpy(s->block_state, state, sizeof(s->block_state));
}
for(pass=0; pass<50; pass++){
int change= 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment