changeset 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 10cda832bd0f
files snow.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/snow.c	Mon Mar 13 01:26:06 2006 +0000
+++ b/snow.c	Mon Mar 13 01:27:13 2006 +0000
@@ -3304,6 +3304,17 @@
     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;