]> granicus.if.org Git - libvpx/commitdiff
vp9_calc_ssim: remove unused parm to resolve warning
authorJim Bankoski <jimbankoski@google.com>
Fri, 22 Aug 2014 19:25:07 +0000 (12:25 -0700)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Fri, 22 Aug 2014 20:41:38 +0000 (13:41 -0700)
Change-Id: I2b4f4e929495837817010eae12aa6225899afaff

vp9/encoder/vp9_encoder.c
vp9/encoder/vp9_ssim.c
vp9/encoder/vp9_ssim.h

index 1aa8b9584e9184a92afcad97facfec25b992d312..fe39e103f823f554fa7d7a0015771a3c547beef3 100644 (file)
@@ -2742,12 +2742,12 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags,
           cpi->totalp_sq_error += psnr2.sse[0];
           cpi->totalp_samples += psnr2.samples[0];
 
-          frame_ssim2 = vp9_calc_ssim(orig, recon, 1, &weight);
+          frame_ssim2 = vp9_calc_ssim(orig, recon, &weight);
 
           cpi->summed_quality += frame_ssim2 * weight;
           cpi->summed_weights += weight;
 
-          frame_ssim2 = vp9_calc_ssim(orig, &cm->post_proc_buffer, 1, &weight);
+          frame_ssim2 = vp9_calc_ssim(orig, &cm->post_proc_buffer, &weight);
 
           cpi->summedp_quality += frame_ssim2 * weight;
           cpi->summedp_weights += weight;
index 026e6a8fd9df018d3684da0664c1ec3c02c7322a..8435640c8c132cb5b550beddb2c2cae348b7cc75 100644 (file)
@@ -95,7 +95,7 @@ double vp9_ssim2(uint8_t *img1, uint8_t *img2, int stride_img1,
   return ssim_total;
 }
 double vp9_calc_ssim(YV12_BUFFER_CONFIG *source, YV12_BUFFER_CONFIG *dest,
-                     int lumamask, double *weight) {
+                     double *weight) {
   double a, b, c;
   double ssimv;
 
index a581c2c23d4869624e0f08c85249f38f6f777df7..d1dd1b722371c682ded5df6a816ad50cbbef520b 100644 (file)
@@ -18,7 +18,7 @@ extern "C" {
 #include "vpx_scale/yv12config.h"
 
 double vp9_calc_ssim(YV12_BUFFER_CONFIG *source, YV12_BUFFER_CONFIG *dest,
-                     int lumamask, double *weight);
+                     double *weight);
 
 double vp9_calc_ssimg(YV12_BUFFER_CONFIG *source, YV12_BUFFER_CONFIG *dest,
                       double *ssim_y, double *ssim_u, double *ssim_v);