mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
seed iterative_me with mvs from conventional search.
+15% speed, +.1 dB Originally committed as revision 5158 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
07674d518c
commit
8f8ae4951e
@ -3304,6 +3304,17 @@ static void iterative_me(SnowContext *s){
|
|||||||
const int b_stride= b_width;
|
const int b_stride= b_width;
|
||||||
int color[3];
|
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++){
|
for(pass=0; pass<50; pass++){
|
||||||
int change= 0;
|
int change= 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user