summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Duvivier <cduvivier@google.com>2012-08-17 15:37:51 -0700
committerChristian Duvivier <cduvivier@google.com>2012-08-17 16:35:48 -0700
commitfc892cc54d6c443f2e29e270c7ad0dc5e0f137a2 (patch)
treef8828d36a873fe81dd170e67f12f353d3867fbbc
parentee59dd7e1513196a4f1b82cc98ca9c92bb9fd2e8 (diff)
downloadlibvpx-fc892cc54d6c443f2e29e270c7ad0dc5e0f137a2.tar
libvpx-fc892cc54d6c443f2e29e270c7ad0dc5e0f137a2.tar.gz
libvpx-fc892cc54d6c443f2e29e270c7ad0dc5e0f137a2.tar.bz2
libvpx-fc892cc54d6c443f2e29e270c7ad0dc5e0f137a2.zip
Fix warnings.
Change-Id: I01dd96da18fe22450bb372b10ba90eab52e29bdf
-rw-r--r--vp8/common/findnearmv.c1
-rw-r--r--vp8/common/findnearmv.h12
-rw-r--r--vp8/decoder/decodframe.c2
-rw-r--r--vp8/decoder/dequantize.h7
-rw-r--r--vp8/encoder/onyx_if.c2
-rw-r--r--vp8/encoder/rdopt.c2
-rw-r--r--vp8/encoder/variance.h15
7 files changed, 38 insertions, 3 deletions
diff --git a/vp8/common/findnearmv.c b/vp8/common/findnearmv.c
index 05789aff2..6f7361dd0 100644
--- a/vp8/common/findnearmv.c
+++ b/vp8/common/findnearmv.c
@@ -10,6 +10,7 @@
#include "findnearmv.h"
+#include "vp8/encoder/variance.h"
#include <limits.h>
const unsigned char vp8_mbsplit_offset[4][16] = {
diff --git a/vp8/common/findnearmv.h b/vp8/common/findnearmv.h
index eff00c47e..e3cdab5ce 100644
--- a/vp8/common/findnearmv.h
+++ b/vp8/common/findnearmv.h
@@ -18,6 +18,18 @@
#include "treecoder.h"
#include "onyxc_int.h"
+#if CONFIG_NEWBESTREFMV
+/* check a list of motion vectors by sad score using a number rows of pixels
+ * above and a number cols of pixels in the left to select the one with best
+ * score to use as ref motion vector
+ */
+void vp8_find_best_ref_mvs(MACROBLOCKD *xd,
+ unsigned char *ref_y_buffer,
+ int ref_y_stride,
+ int_mv *best_mv,
+ int_mv *nearest,
+ int_mv *near);
+#endif
static void mv_bias(int refmb_ref_frame_sign_bias, int refframe, int_mv *mvp, const int *ref_frame_sign_bias) {
MV xmv;
diff --git a/vp8/decoder/decodframe.c b/vp8/decoder/decodframe.c
index 0ac23654c..4b3d36956 100644
--- a/vp8/decoder/decodframe.c
+++ b/vp8/decoder/decodframe.c
@@ -372,8 +372,10 @@ static void decode_macroblock(VP8D_COMP *pbi, MACROBLOCKD *xd,
if (mode == I8X8_PRED) {
for (i = 0; i < 4; i++) {
int ib = vp8_i8x8_block[i];
+#if !CONFIG_HYBRIDTRANSFORM8X8
const int iblock[4] = {0, 1, 4, 5};
int j;
+#endif
int i8x8mode;
BLOCKD *b;
diff --git a/vp8/decoder/dequantize.h b/vp8/decoder/dequantize.h
index b12ee6904..c4c8d4a06 100644
--- a/vp8/decoder/dequantize.h
+++ b/vp8/decoder/dequantize.h
@@ -195,4 +195,11 @@ typedef struct {
#define DEQUANT_INVOKE(ctx,fn) vp8_dequant_##fn
#endif
+#if CONFIG_HYBRIDTRANSFORM8X8
+void vp8_ht_dequant_idct_add_8x8_c(TX_TYPE tx_type, short *input, short *dq,
+ unsigned char *pred, unsigned char *dest,
+ int pitch, int stride);
+#endif
+
+
#endif
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index bcbc85766..d7a9456d1 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -707,14 +707,12 @@ void vp8_set_speed_features(VP8_COMP *cpi) {
sf->thresh_mult[THR_V_PRED ] = 1000;
sf->thresh_mult[THR_H_PRED ] = 1000;
-#if CONFIG_NEWINTRAMODES
sf->thresh_mult[THR_D45_PRED ] = 1000;
sf->thresh_mult[THR_D135_PRED] = 1000;
sf->thresh_mult[THR_D117_PRED] = 1000;
sf->thresh_mult[THR_D153_PRED] = 1000;
sf->thresh_mult[THR_D27_PRED ] = 1000;
sf->thresh_mult[THR_D63_PRED ] = 1000;
-#endif
sf->thresh_mult[THR_B_PRED ] = 2000;
sf->thresh_mult[THR_I8X8_PRED] = 2000;
sf->thresh_mult[THR_TM ] = 1000;
diff --git a/vp8/encoder/rdopt.c b/vp8/encoder/rdopt.c
index a2c1a230c..ed5b5c96d 100644
--- a/vp8/encoder/rdopt.c
+++ b/vp8/encoder/rdopt.c
@@ -2699,7 +2699,7 @@ void vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int
int best_filter_state;
#endif
#if CONFIG_NEWBESTREFMV
- int_mv ref_mv[MAX_REF_FRAMES] = {0};
+ int_mv ref_mv[MAX_REF_FRAMES] = {{0}};
#endif
#if CONFIG_SWITCHABLE_INTERP
diff --git a/vp8/encoder/variance.h b/vp8/encoder/variance.h
index 73a0a6b99..da83d1261 100644
--- a/vp8/encoder/variance.h
+++ b/vp8/encoder/variance.h
@@ -422,4 +422,19 @@ typedef struct {
#define SSIMPF_INVOKE(ctx,fn) vp8_ssimpf_##fn
#endif
+#if CONFIG_NEWBESTREFMV
+unsigned int vp8_sad2x16_c(
+ const unsigned char *src_ptr,
+ int src_stride,
+ const unsigned char *ref_ptr,
+ int ref_stride,
+ int max_sad);
+unsigned int vp8_sad16x2_c(
+ const unsigned char *src_ptr,
+ int src_stride,
+ const unsigned char *ref_ptr,
+ int ref_stride,
+ int max_sad);
+#endif
+
#endif