]> granicus.if.org Git - libvpx/commitdiff
vp9_skin_detection: fix some build warnings.
authorjackychen <jackychen@google.com>
Thu, 8 Oct 2015 16:50:28 +0000 (09:50 -0700)
committerjackychen <jackychen@google.com>
Thu, 8 Oct 2015 16:51:34 +0000 (09:51 -0700)
Change-Id: Ib779c083e9775dc9922ed6e104f6275bc453bef9

vp9/encoder/vp9_skin_detection.c
vp9/encoder/vp9_skin_detection.h

index aaa8ea077ae69782d316c380c5196fca6b13e95e..c2763b7dabc2ffdd8c3318d514436a81e71df6fd 100644 (file)
@@ -98,12 +98,13 @@ void vp9_compute_skin_map(VP9_COMP *const cpi, FILE *yuv_skinmap_file) {
       uint8_t ysource4 = src_y[(ypos + 1) * src_ystride + (ypos + 1)];
       uint8_t usource4 = src_u[(uvpos + 1) * src_uvstride + (uvpos  + 1)];
       uint8_t vsource4 = src_v[(uvpos + 1) * src_uvstride + (uvpos +  1)];
+      int is_skin = 0;
       if (mode_filter == 1) {
         ysource = (ysource + ysource2 + ysource3 + ysource4) >> 2;
         usource = (usource + usource2 + usource3 + usource4) >> 2;
         vsource = (vsource + vsource2 + vsource3 + vsource4) >> 2;
       }
-      const int is_skin = vp9_skin_pixel(ysource, usource, vsource);
+      is_skin = vp9_skin_pixel(ysource, usource, vsource);
       for (i = 0; i < y_bsize; i++) {
         for (j = 0; j < y_bsize; j++) {
           if (is_skin)
index 3d4e7375f76cd390e0763a550de8f70faa5253a9..0a87ef9f4275a2db02b31f82bd100a3cc9c7131b 100644 (file)
@@ -25,7 +25,8 @@ int vp9_skin_pixel(const uint8_t y, const uint8_t cb, const uint8_t cr);
 
 #ifdef OUTPUT_YUV_SKINMAP
 // For viewing skin map on input source.
-void vp9_compute_skin_map(VP9_COMP *const cpi, FILE *yuv_skinmap_file);
+void vp9_compute_skin_map(struct VP9_COMP *const cpi, FILE *yuv_skinmap_file);
+extern void vp9_write_yuv_frame_420(YV12_BUFFER_CONFIG *s, FILE *f);
 #endif
 
 #ifdef __cplusplus