diff options
author | Yunqing Wang <yunqingwang@google.com> | 2010-12-14 11:00:25 -0500 |
---|---|---|
committer | Yunqing Wang <yunqingwang@google.com> | 2010-12-14 13:59:38 -0500 |
commit | 7fb0f868634d628394a41c2195ed8ae387302c84 (patch) | |
tree | 34ae6d116048128a1d887dff6b59f070eac12fe3 /vp8/encoder/mcomp.h | |
parent | 41f4458a030dfd545078a10c1f5097702d6ccdd1 (diff) | |
download | libvpx-7fb0f868634d628394a41c2195ed8ae387302c84.tar libvpx-7fb0f868634d628394a41c2195ed8ae387302c84.tar.gz libvpx-7fb0f868634d628394a41c2195ed8ae387302c84.tar.bz2 libvpx-7fb0f868634d628394a41c2195ed8ae387302c84.zip |
Fix a bug in motion search code
The MV's range is 256. Since the new motion search uses a different
starting MV than the center ref MV, a MV range checking needs to
be done to avoid corruption.
Change-Id: I8ae0721d1bd203639e13891e2e54a2e87276f306
Diffstat (limited to 'vp8/encoder/mcomp.h')
-rw-r--r-- | vp8/encoder/mcomp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/encoder/mcomp.h b/vp8/encoder/mcomp.h index b54fe7377..122debcae 100644 --- a/vp8/encoder/mcomp.h +++ b/vp8/encoder/mcomp.h @@ -24,7 +24,7 @@ extern void accum_mv_refs(MB_PREDICTION_MODE, const int near_mv_ref_cts[4]); #define MAX_MVSEARCH_STEPS 8 // The maximum number of steps in a step search given the largest allowed initial step #define MAX_FULL_PEL_VAL ((1 << (MAX_MVSEARCH_STEPS+3)) - 8) // Max full pel mv specified in 1/8 pel units #define MAX_FIRST_STEP (1 << (MAX_MVSEARCH_STEPS-1)) // Maximum size of the first step in full pel units - +#define MAX_POSSIBLE_MV (1 << 11) // Maximum MV in 1/8 pel units extern void print_mode_context(void); extern int vp8_mv_bit_cost(MV *mv, MV *ref, int *mvcost[2], int Weight); |