]> granicus.if.org Git - libvpx/commitdiff
fastssim: Add some missing consts
authorAlex Converse <aconverse@google.com>
Fri, 7 Aug 2015 19:02:49 +0000 (12:02 -0700)
committerAlex Converse <aconverse@google.com>
Mon, 10 Aug 2015 16:48:25 +0000 (09:48 -0700)
Change-Id: Id36f180032c8a92c686da6f716a7468332b23b94

vpx_dsp/fastssim.c
vpx_dsp/ssim.h

index 25f01e50407be299a8590be1a3c46e34a433743b..97dba336aacfec058719fbde6f3dddb372088f8a 100644 (file)
@@ -444,7 +444,8 @@ static double convert_ssim_db(double _ssim, double _weight) {
   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();
index d25e7145dfc2e026de75f7366242c828de536312..19f4df2812981202c5879a5b24328021bd6ac093 100644 (file)
@@ -80,7 +80,8 @@ double vpx_calc_ssimg(const YV12_BUFFER_CONFIG *source,
                       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,