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
4d4df310
Commit
4d4df310
authored
Apr 05, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_idet: print accumulated statistics for single and multi frame detection
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bfd30fa8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
vf_idet.c
libavfilter/vf_idet.c
+10
-3
No files found.
libavfilter/vf_idet.c
View file @
4d4df310
...
...
@@ -39,6 +39,7 @@ typedef struct {
Type
last_type
;
Type
prestat
[
4
];
Type
poststat
[
4
];
AVFilterBufferRef
*
cur
;
AVFilterBufferRef
*
next
;
...
...
@@ -126,8 +127,6 @@ static void filter(AVFilterContext *ctx)
type
=
UNDETERMINED
;
}
idet
->
prestat
[
type
]
++
;
if
(
type
!=
UNDETERMINED
)
idet
->
last_type
=
type
;
...
...
@@ -141,6 +140,8 @@ static void filter(AVFilterContext *ctx)
idet
->
cur
->
video
->
interlaced
=
0
;
}
idet
->
prestat
[
type
]
++
;
idet
->
poststat
[
idet
->
last_type
]
++
;
av_log
(
ctx
,
AV_LOG_INFO
,
"Single frame:%s, Multi frame:%s
\n
"
,
type2str
(
type
),
type2str
(
idet
->
last_type
));
}
...
...
@@ -219,12 +220,18 @@ static av_cold void uninit(AVFilterContext *ctx)
{
IDETContext
*
idet
=
ctx
->
priv
;
av_log
(
ctx
,
AV_LOG_INFO
,
"TFF:%d BFF:%d Progressive:%d Undetermined:%d
\n
"
,
av_log
(
ctx
,
AV_LOG_INFO
,
"
Single frame detection:
TFF:%d BFF:%d Progressive:%d Undetermined:%d
\n
"
,
idet
->
prestat
[
TFF
],
idet
->
prestat
[
BFF
],
idet
->
prestat
[
PROGRSSIVE
],
idet
->
prestat
[
UNDETERMINED
]
);
av_log
(
ctx
,
AV_LOG_INFO
,
"Multi frame detection: TFF:%d BFF:%d Progressive:%d Undetermined:%d
\n
"
,
idet
->
poststat
[
TFF
],
idet
->
poststat
[
BFF
],
idet
->
poststat
[
PROGRSSIVE
],
idet
->
poststat
[
UNDETERMINED
]
);
if
(
idet
->
prev
)
avfilter_unref_buffer
(
idet
->
prev
);
if
(
idet
->
cur
)
avfilter_unref_buffer
(
idet
->
cur
);
...
...
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