From 4ea7f2be43de8c832f01c5741be8df6125f65dc2 Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Fri, 7 Aug 2015 12:02:49 -0700 Subject: [PATCH] fastssim: Add some missing consts Change-Id: Id36f180032c8a92c686da6f716a7468332b23b94 --- vpx_dsp/fastssim.c | 3 ++- vpx_dsp/ssim.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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, -- 2.40.0