checkasm/vf_threshold: fix mixed code and declarations
authorJames Almer <jamrial@gmail.com>
Mon, 4 Dec 2017 18:26:34 +0000 (15:26 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 4 Dec 2017 18:46:09 +0000 (15:46 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
tests/checkasm/vf_threshold.c

index 770f00e..3709f26 100644 (file)
@@ -42,16 +42,16 @@ static void check_threshold_8(void){
     ptrdiff_t line_size = WIDTH_PADDED;
     int w = WIDTH;
 
-    ThresholdContext s;
-    s.depth = 8;
-    ff_threshold_init(&s);
-
     declare_func(void, const uint8_t *in, const uint8_t *threshold,
                  const uint8_t *min, const uint8_t *max, uint8_t *out,
                  ptrdiff_t ilinesize, ptrdiff_t tlinesize,
                  ptrdiff_t flinesize, ptrdiff_t slinesize,
                  ptrdiff_t olinesize, int w, int h);
 
+    ThresholdContext s;
+    s.depth = 8;
+    ff_threshold_init(&s);
+
     memset(in,     0, WIDTH_PADDED);
     memset(threshold, 0, WIDTH_PADDED);
     memset(min, 0, WIDTH_PADDED);