ref: 838eae39617d402774b8e22744172b4d723e532f
parent: 54c87058bfa5124408f0725deb8373ef94c4b98e
author: Yaowu Xu <[email protected]>
date: Mon Sep 23 12:07:31 EDT 2013
Correct 3 step search site initialziation 39c7b01d accidently reverted the row/col initialization, which broke mv clamps, which is dependent on the sites for valid motion vector range. This commit fixed the issue. Change-Id: Ibcce0226e0360b1ef483fe760b2e33f1af4bf494
--- a/vp9/encoder/vp9_mcomp.c
+++ b/vp9/encoder/vp9_mcomp.c
@@ -144,8 +144,8 @@
for (len = MAX_FIRST_STEP; len > 0; len /= 2) {
// Generate offsets for 8 search sites per step.
const MV ss_mvs[8] = {
- { 0, -len}, {0, len}, {-len, 0 }, {len, 0 },
- {-len, -len}, {len, -len}, {-len, len}, {len, len}
+ {-len, 0 }, {len, 0 }, { 0, -len}, {0, len},
+ {-len, -len}, {-len, len}, {len, -len}, {len, len}
};
int i;
for (i = 0; i < 8; ++i) {