From d5b8f7860f17ad5c37bd5f6e9e73d548c80817ab Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Thu, 19 May 2011 16:00:28 -0700 Subject: [PATCH] disable trellis optimization for first pass also remove 2 #defines and 1 function declaration that are not in use. Change-Id: I8f743d0e3dd9ebf1de24a8b0c30ff09f29b00c53 --- vp8/encoder/encodeintra.c | 3 --- vp8/encoder/encodeintra.h | 1 - vp8/encoder/onyx_if.c | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/vp8/encoder/encodeintra.c b/vp8/encoder/encodeintra.c index 5d52c9f..6f7e663 100644 --- a/vp8/encoder/encodeintra.c +++ b/vp8/encoder/encodeintra.c @@ -21,9 +21,6 @@ #include "vp8/common/g_common.h" #include "encodeintra.h" -#define intra4x4ibias_rate 128 -#define intra4x4pbias_rate 256 - #if CONFIG_RUNTIME_CPU_DETECT #define IF_RTCD(x) (x) diff --git a/vp8/encoder/encodeintra.h b/vp8/encoder/encodeintra.h index 40930bc..8159097 100644 --- a/vp8/encoder/encodeintra.h +++ b/vp8/encoder/encodeintra.h @@ -17,6 +17,5 @@ void vp8_encode_intra16x16mby(const VP8_ENCODER_RTCD *, MACROBLOCK *x); void vp8_encode_intra16x16mbuv(const VP8_ENCODER_RTCD *, MACROBLOCK *x); void vp8_encode_intra4x4mby(const VP8_ENCODER_RTCD *, MACROBLOCK *mb); void vp8_encode_intra4x4block(const VP8_ENCODER_RTCD *, MACROBLOCK *x, BLOCK *be, BLOCKD *b, int best_mode); -void vp8_encode_intra4x4block_rd(const VP8_ENCODER_RTCD *, MACROBLOCK *x, BLOCK *be, BLOCKD *b, int best_mode); #endif diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index 2a77235..ae85a68 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -1232,7 +1232,7 @@ void vp8_set_speed_features(VP8_COMP *cpi) cpi->find_fractional_mv_step = vp8_skip_fractional_mv_step; } - if (cpi->sf.optimize_coefficients == 1) + if (cpi->sf.optimize_coefficients == 1 && cpi->pass!=1) cpi->mb.optimize = 1; else cpi->mb.optimize = 0; -- 2.7.4