Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
1d0ae2e6
Commit
1d0ae2e6
authored
Jun 25, 2013
by
Ronald S. Bultje
Committed by
Gerrit Code Review
Jun 25, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Don't skip right/bottom border pixels in SSIM calculations."
parents
c5be54ee
44f349df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vp9/encoder/vp9_ssim.c
vp9/encoder/vp9_ssim.c
+3
-2
No files found.
vp9/encoder/vp9_ssim.c
View file @
1d0ae2e6
...
...
@@ -88,8 +88,9 @@ double vp9_ssim2(uint8_t *img1, uint8_t *img2, int stride_img1,
double
ssim_total
=
0
;
// sample point start with each 4x4 location
for
(
i
=
0
;
i
<
height
-
8
;
i
+=
4
,
img1
+=
stride_img1
*
4
,
img2
+=
stride_img2
*
4
)
{
for
(
j
=
0
;
j
<
width
-
8
;
j
+=
4
)
{
for
(
i
=
0
;
i
<=
height
-
8
;
i
+=
4
,
img1
+=
stride_img1
*
4
,
img2
+=
stride_img2
*
4
)
{
for
(
j
=
0
;
j
<=
width
-
8
;
j
+=
4
)
{
double
v
=
ssim_8x8
(
img1
+
j
,
stride_img1
,
img2
+
j
,
stride_img2
);
ssim_total
+=
v
;
samples
++
;
...
...
Write
Preview
Markdown
is supported
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