shithub: libvpx

Download patch

ref: 4ea7f2be43de8c832f01c5741be8df6125f65dc2
parent: 2808dd12c29b83226563fcf443b72f4be3dcb73d
author: Alex Converse <[email protected]>
date: Fri Aug 7 08:02:49 EDT 2015

fastssim: Add some missing consts

Change-Id: Id36f180032c8a92c686da6f716a7468332b23b94

--- a/vpx_dsp/fastssim.c
+++ b/vpx_dsp/fastssim.c
@@ -444,7 +444,8 @@
   return 10 * (log10(_weight) - log10(_weight - _ssim));
 }
 
-double vpx_calc_fastssim(YV12_BUFFER_CONFIG *source, YV12_BUFFER_CONFIG *dest,
+double vpx_calc_fastssim(const YV12_BUFFER_CONFIG *source,
+                         const YV12_BUFFER_CONFIG *dest,
                          double *ssim_y, double *ssim_u, double *ssim_v) {
   double ssimv;
   vpx_clear_system_state();
--- a/vpx_dsp/ssim.h
+++ b/vpx_dsp/ssim.h
@@ -80,7 +80,8 @@
                       const YV12_BUFFER_CONFIG *dest,
                       double *ssim_y, double *ssim_u, double *ssim_v);
 
-double vpx_calc_fastssim(YV12_BUFFER_CONFIG *source, YV12_BUFFER_CONFIG *dest,
+double vpx_calc_fastssim(const YV12_BUFFER_CONFIG *source,
+                         const YV12_BUFFER_CONFIG *dest,
                          double *ssim_y, double *ssim_u, double *ssim_v);
 
 double vpx_psnrhvs(const YV12_BUFFER_CONFIG *source,