Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
68f328fc
Commit
68f328fc
authored
Sep 21, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_psnr: avoid 64bit arithmetic in the inner loop
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a11c16a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vf_psnr.c
libavfilter/vf_psnr.c
+3
-1
No files found.
libavfilter/vf_psnr.c
View file @
68f328fc
...
...
@@ -94,8 +94,10 @@ void compute_images_mse(PSNRContext *s,
uint64_t
m
=
0
;
for
(
i
=
0
;
i
<
outh
;
i
++
)
{
int
m2
=
0
;
for
(
j
=
0
;
j
<
outw
;
j
++
)
m
+=
pow2
(
main_line
[
j
]
-
ref_line
[
j
]);
m2
+=
pow2
(
main_line
[
j
]
-
ref_line
[
j
]);
m
+=
m2
;
ref_line
+=
ref_linesize
;
main_line
+=
main_linesize
;
}
...
...
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