Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guillaume Martres
aom-rav1e
Commits
8a896fa5
Commit
8a896fa5
authored
Aug 25, 2014
by
Jim Bankoski
Committed by
Gerrit Code Review
Aug 25, 2014
Browse files
Merge "vp9_calc_ssim: remove unused parm to resolve warning"
parents
10d3afb4
3c463ab0
Changes
3
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encoder.c
View file @
8a896fa5
...
...
@@ -2792,12 +2792,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
;
...
...
vp9/encoder/vp9_ssim.c
View file @
8a896fa5
...
...
@@ -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
;
...
...
vp9/encoder/vp9_ssim.h
View file @
8a896fa5
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment