Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Unified Diff: source/libvpx/vpx_dsp/sad.c

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/libvpx/vpx_dsp/arm/variance_neon.c ('k') | source/libvpx/vpx_dsp/variance.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/libvpx/vpx_dsp/sad.c
diff --git a/source/libvpx/vpx_dsp/sad.c b/source/libvpx/vpx_dsp/sad.c
index 9db312fbe0525f07f71fc4ebed7ae44602dd745b..c0c3ff99645cb80752f746c54460ea991340fab8 100644
--- a/source/libvpx/vpx_dsp/sad.c
+++ b/source/libvpx/vpx_dsp/sad.c
@@ -14,13 +14,7 @@
#include "./vpx_dsp_rtcd.h"
#include "vpx/vpx_integer.h"
-
-#if CONFIG_VP9_HIGHBITDEPTH
-#include "vp9/common/vp9_common.h"
-#endif // CONFIG_VP9_HIGHBITDEPTH
-// Temporary ...
-#define ROUND_POWER_OF_TWO(value, n) \
- (((value) + (1 << ((n) - 1))) >> (n))
+#include "vpx_ports/mem.h"
/* Sum the difference between every corresponding element of the buffers. */
static INLINE unsigned int sad(const uint8_t *a, int a_stride,
@@ -39,6 +33,7 @@ static INLINE unsigned int sad(const uint8_t *a, int a_stride,
return sad;
}
+// TODO(johannkoenig): this moved to vpx_dsp, should be able to clean this up.
/* Remove dependency on vp9 variance function by duplicating vp9_comp_avg_pred.
* The function averages every corresponding element of the buffers and stores
* the value in a third buffer, comp_pred.
« no previous file with comments | « source/libvpx/vpx_dsp/arm/variance_neon.c ('k') | source/libvpx/vpx_dsp/variance.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698