From: Alex Converse Date: Fri, 7 Aug 2015 19:02:49 +0000 (-0700) Subject: fastssim: Add some missing consts X-Git-Tag: v1.5.0~296^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ea7f2be43de8c832f01c5741be8df6125f65dc2;p=libvpx fastssim: Add some missing consts Change-Id: Id36f180032c8a92c686da6f716a7468332b23b94 --- diff --git a/vpx_dsp/fastssim.c b/vpx_dsp/fastssim.c index 25f01e504..97dba336a 100644 --- a/vpx_dsp/fastssim.c +++ b/vpx_dsp/fastssim.c @@ -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(); diff --git a/vpx_dsp/ssim.h b/vpx_dsp/ssim.h index d25e7145d..19f4df281 100644 --- a/vpx_dsp/ssim.h +++ b/vpx_dsp/ssim.h @@ -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,