On Thu, 13 Oct 2016, Diego Biurrun wrote:

On Wed, Oct 12, 2016 at 06:24:40PM +0200, Alexandra Hájková wrote:
--- /dev/null
+++ b/tests/checkasm/hevc_add_res.c
@@ -0,0 +1,84 @@
+
+#define randomize_buffers(buf, size)            \
+    do {                                        \
+        int j;                                  \
+        for (j = 0; j < size; j++) {            \
+            int16_t r = rnd();                  \
+            AV_WN16A(buf + j, r >> 3);          \
+        }                                       \
+    } while (0)

We should stop duplicating these between checkasm modules some day.
You're welcome to help me refactor.

Even though they might look identical, they are subtly different and tailored to each specific test, at least for some tests.

// Martin
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to