ref: 3476e407188ed0b1dd1897aa424fc18f1e9fd464
parent: bd8b783aa0384db044816eacc66d0db9fb7addab
parent: 5aeaf43c42cc167c713096428cae28aad4b1537c
author: Johann Koenig <johannkoenig@google.com>
date: Mon Jan 7 18:56:07 EST 2019
Merge "vp8 multi dimensional search: resolve missing declarations"
--- a/vp8/encoder/mcomp.c
+++ b/vp8/encoder/mcomp.c
@@ -1129,6 +1129,7 @@
mv_err_cost(&this_mv, center_mv, mvcost, x->errorperbit);
}
+#if HAVE_SSE2 || HAVE_MSA
int vp8_diamond_search_sadx4(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *ref_mv,
int_mv *best_mv, int search_param, int sad_per_bit,
int *num00, vp8_variance_fn_ptr_t *fn_ptr,
@@ -1277,6 +1278,7 @@
return fn_ptr->vf(what, what_stride, best_address, in_what_stride, &thissad) +
mv_err_cost(&this_mv, center_mv, mvcost, x->errorperbit);
}
+#endif // HAVE_SSE2 || HAVE_MSA
int vp8_full_search_sad_c(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *ref_mv,
int sad_per_bit, int distance,
@@ -1364,6 +1366,7 @@
mv_err_cost(&this_mv, center_mv, mvcost, x->errorperbit);
}
+#if HAVE_SSSE3
int vp8_full_search_sadx3(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *ref_mv,
int sad_per_bit, int distance,
vp8_variance_fn_ptr_t *fn_ptr, int *mvcost[2],
@@ -1482,7 +1485,9 @@
return fn_ptr->vf(what, what_stride, bestaddress, in_what_stride, &thissad) +
mv_err_cost(&this_mv, center_mv, mvcost, x->errorperbit);
}
+#endif // HAVE_SSSE3
+#if HAVE_SSE4_1
int vp8_full_search_sadx8(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *ref_mv,
int sad_per_bit, int distance,
vp8_variance_fn_ptr_t *fn_ptr, int *mvcost[2],
@@ -1628,6 +1633,7 @@
return fn_ptr->vf(what, what_stride, bestaddress, in_what_stride, &thissad) +
mv_err_cost(&this_mv, center_mv, mvcost, x->errorperbit);
}
+#endif // HAVE_SSE4_1
int vp8_refining_search_sad_c(MACROBLOCK *x, BLOCK *b, BLOCKD *d,
int_mv *ref_mv, int error_per_bit,
@@ -1707,6 +1713,7 @@
mv_err_cost(&this_mv, center_mv, mvcost, x->errorperbit);
}
+#if HAVE_SSE2 || HAVE_MSA
int vp8_refining_search_sadx4(MACROBLOCK *x, BLOCK *b, BLOCKD *d,
int_mv *ref_mv, int error_per_bit,
int search_range, vp8_variance_fn_ptr_t *fn_ptr,
@@ -1816,3 +1823,4 @@
return fn_ptr->vf(what, what_stride, best_address, in_what_stride, &thissad) +
mv_err_cost(&this_mv, center_mv, mvcost, x->errorperbit);
}
+#endif // HAVE_SSE2 || HAVE_MSA