summaryrefslogtreecommitdiff
path: root/tools_common.h
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2019-02-08 19:29:10 -0800
committerJerome Jiang <jianj@google.com>2019-02-11 20:18:07 -0800
commitc10833faa65b2859231f4ab58c5da73a52168863 (patch)
tree4e78e5a78fbd1928e72750bc69268e61956e17d4 /tools_common.h
parentdb50d729450917504aff6576395ad03e4e5f586c (diff)
downloadlibvpx-c10833faa65b2859231f4ab58c5da73a52168863.tar
libvpx-c10833faa65b2859231f4ab58c5da73a52168863.tar.gz
libvpx-c10833faa65b2859231f4ab58c5da73a52168863.tar.bz2
libvpx-c10833faa65b2859231f4ab58c5da73a52168863.zip
Test decode and find mismatch in vp9 svc example encoder.
Also write it to opsnr.stt when internal stats is enabled. Removed some redundant code in vpxenc.c and vp9cx_set_ref.c Change-Id: I3700137fff0be92a23e4ab75713db72da1dc4076
Diffstat (limited to 'tools_common.h')
-rw-r--r--tools_common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools_common.h b/tools_common.h
index 28695e4f1..4526d9f16 100644
--- a/tools_common.h
+++ b/tools_common.h
@@ -166,6 +166,15 @@ void vpx_img_downshift(vpx_image_t *dst, vpx_image_t *src, int down_shift);
void vpx_img_truncate_16_to_8(vpx_image_t *dst, vpx_image_t *src);
#endif
+int compare_img(const vpx_image_t *const img1, const vpx_image_t *const img2);
+#if CONFIG_VP9_HIGHBITDEPTH
+void find_mismatch_high(const vpx_image_t *const img1,
+ const vpx_image_t *const img2, int yloc[4], int uloc[4],
+ int vloc[4]);
+#endif
+void find_mismatch(const vpx_image_t *const img1, const vpx_image_t *const img2,
+ int yloc[4], int uloc[4], int vloc[4]);
+
#ifdef __cplusplus
} /* extern "C" */
#endif