Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
2c7f7a69
Commit
2c7f7a69
authored
Jul 09, 2015
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: Use av_log to print benchmark output.
parent
6253f511
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ffmpeg.c
ffmpeg.c
+3
-3
No files found.
ffmpeg.c
View file @
2c7f7a69
...
@@ -473,7 +473,7 @@ static void ffmpeg_cleanup(int ret)
...
@@ -473,7 +473,7 @@ static void ffmpeg_cleanup(int ret)
if
(
do_benchmark
)
{
if
(
do_benchmark
)
{
int
maxrss
=
getmaxrss
()
/
1024
;
int
maxrss
=
getmaxrss
()
/
1024
;
printf
(
"bench: maxrss=%ikB
\n
"
,
maxrss
);
av_log
(
NULL
,
AV_LOG_INFO
,
"bench: maxrss=%ikB
\n
"
,
maxrss
);
}
}
for
(
i
=
0
;
i
<
nb_filtergraphs
;
i
++
)
{
for
(
i
=
0
;
i
<
nb_filtergraphs
;
i
++
)
{
...
@@ -614,7 +614,7 @@ static void update_benchmark(const char *fmt, ...)
...
@@ -614,7 +614,7 @@ static void update_benchmark(const char *fmt, ...)
va_start
(
va
,
fmt
);
va_start
(
va
,
fmt
);
vsnprintf
(
buf
,
sizeof
(
buf
),
fmt
,
va
);
vsnprintf
(
buf
,
sizeof
(
buf
),
fmt
,
va
);
va_end
(
va
);
va_end
(
va
);
printf
(
"bench: %8"
PRIu64
" %s
\n
"
,
t
-
current_time
,
buf
);
av_log
(
NULL
,
AV_LOG_INFO
,
"bench: %8"
PRIu64
" %s
\n
"
,
t
-
current_time
,
buf
);
}
}
current_time
=
t
;
current_time
=
t
;
}
}
...
@@ -4154,7 +4154,7 @@ int main(int argc, char **argv)
...
@@ -4154,7 +4154,7 @@ int main(int argc, char **argv)
exit_program
(
1
);
exit_program
(
1
);
ti
=
getutime
()
-
ti
;
ti
=
getutime
()
-
ti
;
if
(
do_benchmark
)
{
if
(
do_benchmark
)
{
printf
(
"bench: utime=%0.3fs
\n
"
,
ti
/
1000000
.
0
);
av_log
(
NULL
,
AV_LOG_INFO
,
"bench: utime=%0.3fs
\n
"
,
ti
/
1000000
.
0
);
}
}
av_log
(
NULL
,
AV_LOG_DEBUG
,
"%"
PRIu64
" frames successfully decoded, %"
PRIu64
" decoding errors
\n
"
,
av_log
(
NULL
,
AV_LOG_DEBUG
,
"%"
PRIu64
" frames successfully decoded, %"
PRIu64
" decoding errors
\n
"
,
decode_error_stat
[
0
],
decode_error_stat
[
1
]);
decode_error_stat
[
0
],
decode_error_stat
[
1
]);
...
...
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