summaryrefslogtreecommitdiff
path: root/vp8/encoder/rdopt.c
diff options
context:
space:
mode:
authorYunqing Wang <yunqingwang@google.com>2011-04-07 16:57:25 -0400
committerYunqing Wang <yunqingwang@google.com>2011-04-11 11:53:56 -0400
commitd1abe62d1c5455b32631688d61043f0fd2df44e7 (patch)
tree1a483ab601e74bf8e6c6366dcc99f6251e2e96d4 /vp8/encoder/rdopt.c
parenta9ce3e3834fb7f790523e0f0180520034589d786 (diff)
downloadlibvpx-d1abe62d1c5455b32631688d61043f0fd2df44e7.tar
libvpx-d1abe62d1c5455b32631688d61043f0fd2df44e7.tar.gz
libvpx-d1abe62d1c5455b32631688d61043f0fd2df44e7.tar.bz2
libvpx-d1abe62d1c5455b32631688d61043f0fd2df44e7.zip
Define RDCOST only once
Clean up the code. Change-Id: I7db048efa4d972b528d553a7921bc45979621129
Diffstat (limited to 'vp8/encoder/rdopt.c')
-rw-r--r--vp8/encoder/rdopt.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/vp8/encoder/rdopt.c b/vp8/encoder/rdopt.c
index 863b6d419..ef9cce93f 100644
--- a/vp8/encoder/rdopt.c
+++ b/vp8/encoder/rdopt.c
@@ -31,7 +31,7 @@
#include "vp8/common/g_common.h"
#include "variance.h"
#include "mcomp.h"
-
+#include "rdopt.h"
#include "vpx_mem/vpx_mem.h"
#include "dct.h"
#include "vp8/common/systemdependent.h"
@@ -46,13 +46,8 @@
extern void vp8cx_mb_init_quantizer(VP8_COMP *cpi, MACROBLOCK *x);
extern void vp8_update_zbin_extra(VP8_COMP *cpi, MACROBLOCK *x);
-
-#define RDCOST(RM,DM,R,D) ( ((128+(R)*(RM)) >> 8) + (DM)*(D) )
-
#define MAXF(a,b) (((a) > (b)) ? (a) : (b))
-
-
static const int auto_speed_thresh[17] =
{
1000,