mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 11:49:48 +00: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;
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user