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
1e6408a1
Commit
1e6408a1
authored
Feb 09, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/showinfo: only print checksum for the existing planes
Make the output a bit nicer.
parent
175ab5f9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
vf_showinfo.c
libavfilter/vf_showinfo.c
+6
-2
No files found.
libavfilter/vf_showinfo.c
View file @
1e6408a1
...
@@ -62,7 +62,7 @@ static void end_frame(AVFilterLink *inlink)
...
@@ -62,7 +62,7 @@ static void end_frame(AVFilterLink *inlink)
av_log
(
ctx
,
AV_LOG_INFO
,
av_log
(
ctx
,
AV_LOG_INFO
,
"n:%d pts:%s pts_time:%s pos:%"
PRId64
" "
"n:%d pts:%s pts_time:%s pos:%"
PRId64
" "
"fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c "
"fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c "
"checksum:%08X plane_checksum:[%08X
%08X %08X %08X]
\n
"
,
"checksum:%08X plane_checksum:[%08X"
,
showinfo
->
frame
,
showinfo
->
frame
,
av_ts2str
(
picref
->
pts
),
av_ts2timestr
(
picref
->
pts
,
&
inlink
->
time_base
),
picref
->
pos
,
av_ts2str
(
picref
->
pts
),
av_ts2timestr
(
picref
->
pts
,
&
inlink
->
time_base
),
picref
->
pos
,
av_pix_fmt_descriptors
[
picref
->
format
].
name
,
av_pix_fmt_descriptors
[
picref
->
format
].
name
,
...
@@ -72,7 +72,11 @@ static void end_frame(AVFilterLink *inlink)
...
@@ -72,7 +72,11 @@ static void end_frame(AVFilterLink *inlink)
picref
->
video
->
top_field_first
?
'T'
:
'B'
,
/* Top / Bottom */
picref
->
video
->
top_field_first
?
'T'
:
'B'
,
/* Top / Bottom */
picref
->
video
->
key_frame
,
picref
->
video
->
key_frame
,
av_get_picture_type_char
(
picref
->
video
->
pict_type
),
av_get_picture_type_char
(
picref
->
video
->
pict_type
),
checksum
,
plane_checksum
[
0
],
plane_checksum
[
1
],
plane_checksum
[
2
],
plane_checksum
[
3
]);
checksum
,
plane_checksum
[
0
]);
for
(
plane
=
1
;
picref
->
data
[
plane
]
&&
plane
<
4
;
plane
++
)
av_log
(
ctx
,
AV_LOG_INFO
,
" %08X"
,
plane_checksum
[
plane
]);
av_log
(
ctx
,
AV_LOG_INFO
,
"]
\n
"
);
showinfo
->
frame
++
;
showinfo
->
frame
++
;
avfilter_end_frame
(
inlink
->
dst
->
outputs
[
0
]);
avfilter_end_frame
(
inlink
->
dst
->
outputs
[
0
]);
...
...
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