]> granicus.if.org Git - libvpx/commitdiff
vp9_postproc.c missing extern.
authorJim Bankoski <jimbankoski@google.com>
Wed, 13 Jul 2016 00:47:49 +0000 (17:47 -0700)
committerJim Bankoski <jimbankoski@google.com>
Wed, 13 Jul 2016 00:47:49 +0000 (17:47 -0700)
BUG=webm:1256

Change-Id: I5271e71bc53cce033fb906040643dcdd5ccb2381

vp9/common/vp9_postproc.c
vpx_dsp/deblock.c
vpx_dsp/mips/deblock_msa.c

index 6a71a19faf59ad34c6c4354e3c76764dce8c7a01..b13a6347239b90ad9e23f13fc40fde5872fb488b 100644 (file)
@@ -34,6 +34,7 @@ static const int16_t kernel5[] = {
 
 static const uint8_t q_diff_thresh = 20;
 static const uint8_t last_q_thresh = 170;
+extern int16_t vpx_rv[];
 
 #if CONFIG_VP9_HIGHBITDEPTH
 void vp9_highbd_post_proc_down_and_across_c(const uint16_t *src_ptr,
index 411bc7754526a115d63982357ec68c5893a8d575..2b1b7e30ebafa46165168acc9cf12612dda53f93 100644 (file)
@@ -8,7 +8,7 @@
  *  be found in the AUTHORS file in the root of the source tree.
  */
 #include <stdlib.h>
-
+#include "vpx/vpx_integer.h"
 
 const int16_t vpx_rv[] = {8, 5, 2, 2, 8, 12, 4, 9, 8, 3, 0, 3, 9, 0, 0, 0, 8, 3,
     14, 4, 10, 1, 11, 14, 1, 14, 9, 6, 12, 11, 8, 6, 10, 0, 0, 8, 9, 0, 3, 14,
@@ -153,8 +153,7 @@ void vpx_mbpost_proc_across_ip_c(unsigned char *src, int pitch, int rows,
 void vpx_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,
                             int flimit) {
   int r, c, i;
-  unsigned int seed;
-  const int16_t *rv3 = &vpx_rv[63 & rand_r(&seed)];
+  const int16_t *rv3 = &vpx_rv[63 & rand()];
 
   for (c = 0; c < cols; c++) {
     unsigned char *s = &dst[c];
index 616721d8e9621ae040ba770939b39fb2280908f2..dbff053a95a8c8a8d6a93255a4567fd91b8a6a14 100644 (file)
@@ -575,8 +575,7 @@ void vpx_mbpost_proc_across_ip_msa(uint8_t *src_ptr, int32_t pitch,
 void vpx_mbpost_proc_down_msa(uint8_t *dst_ptr, int32_t pitch, int32_t rows,
                               int32_t cols, int32_t flimit) {
   int32_t row, col, cnt, i;
-  unsigned int seed;
-  const int16_t *rv3 = &vpx_rv[63 & rand_r(&seed)];
+  const int16_t *rv3 = &vpx_rv[63 & rand()];
   v4i32 flimit_vec;
   v16u8 dst7, dst8, dst_r_b, dst_l_b;
   v16i8 mask;