]> granicus.if.org Git - libvpx/commitdiff
Fix initialization order for the encoder
authorJingning Han <jingning@google.com>
Tue, 3 Dec 2013 23:25:16 +0000 (15:25 -0800)
committerJingning Han <jingning@google.com>
Tue, 3 Dec 2013 23:29:24 +0000 (15:29 -0800)
This commit makes the coefficient tree initialized prior to token
initialization, where the coefficient costs are filled out according
to the probabilities associated with coefficient value categories.

Change-Id: If4e89c3923058376f8382c683fe4a225a4a38af3

vp9/encoder/vp9_onyx_if.c

index 968cbfbcea8c84151c6ae7d7e68bb565a0768455..852cedfd5983459b581d0b7bdcbd0861274f56bd 100644 (file)
@@ -159,6 +159,7 @@ void vp9_initialize_enc() {
 
   if (!init_done) {
     vp9_initialize_common();
+    vp9_coef_tree_initialize();
     vp9_tokenize_initialize();
     vp9_init_quant_tables();
     vp9_init_me_luts();
@@ -166,7 +167,6 @@ void vp9_initialize_enc() {
     // init_base_skip_probs();
     vp9_entropy_mv_init();
     vp9_entropy_mode_init();
-    vp9_coef_tree_initialize();
     init_done = 1;
   }
 }