shithub: libvpx

Download patch

ref: 6f424a768e1ccd7775adc9273c3a7de7dda54bc4
parent: 6a3ff0b6171468fbcc0fce1f50168c4e65251722
author: Jim Bankoski <jimbankoski@google.com>
date: Tue Jul 12 13:47:49 EDT 2016

vp9_postproc.c missing extern.

BUG=webm:1256

Change-Id: I5271e71bc53cce033fb906040643dcdd5ccb2381

--- a/vp9/common/vp9_postproc.c
+++ b/vp9/common/vp9_postproc.c
@@ -34,6 +34,7 @@
 
 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,
--- a/vpx_dsp/deblock.c
+++ b/vpx_dsp/deblock.c
@@ -8,8 +8,8 @@
  *  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,
     8, 11, 13, 4, 2, 9, 0, 3, 9, 6, 1, 2, 3, 14, 13, 1, 8, 2, 9, 7, 3, 3, 1, 13,
@@ -153,8 +153,7 @@
 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];
--- a/vpx_dsp/mips/deblock_msa.c
+++ b/vpx_dsp/mips/deblock_msa.c
@@ -575,8 +575,7 @@
 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;