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
81d7f118
Commit
81d7f118
authored
Oct 22, 2015
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_psnr: remove %0.2f format specifiers for stream summary line.
This makes output equally precise as vf_ssim.
parent
3f85552e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_psnr.c
libavfilter/vf_psnr.c
+2
-2
No files found.
libavfilter/vf_psnr.c
View file @
81d7f118
...
@@ -324,10 +324,10 @@ static av_cold void uninit(AVFilterContext *ctx)
...
@@ -324,10 +324,10 @@ static av_cold void uninit(AVFilterContext *ctx)
buf
[
0
]
=
0
;
buf
[
0
]
=
0
;
for
(
j
=
0
;
j
<
s
->
nb_components
;
j
++
)
{
for
(
j
=
0
;
j
<
s
->
nb_components
;
j
++
)
{
int
c
=
s
->
is_rgb
?
s
->
rgba_map
[
j
]
:
j
;
int
c
=
s
->
is_rgb
?
s
->
rgba_map
[
j
]
:
j
;
av_strlcatf
(
buf
,
sizeof
(
buf
),
" %c:%
0.2
f"
,
s
->
comps
[
j
],
av_strlcatf
(
buf
,
sizeof
(
buf
),
" %c:%f"
,
s
->
comps
[
j
],
get_psnr
(
s
->
mse_comp
[
c
],
s
->
nb_frames
,
s
->
max
[
c
]));
get_psnr
(
s
->
mse_comp
[
c
],
s
->
nb_frames
,
s
->
max
[
c
]));
}
}
av_log
(
ctx
,
AV_LOG_INFO
,
"PSNR%s average:%
0.2f min:%0.2f max:%0.2
f
\n
"
,
av_log
(
ctx
,
AV_LOG_INFO
,
"PSNR%s average:%
f min:%f max:%
f
\n
"
,
buf
,
buf
,
get_psnr
(
s
->
mse
,
s
->
nb_frames
,
s
->
average_max
),
get_psnr
(
s
->
mse
,
s
->
nb_frames
,
s
->
average_max
),
get_psnr
(
s
->
max_mse
,
1
,
s
->
average_max
),
get_psnr
(
s
->
max_mse
,
1
,
s
->
average_max
),
...
...
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