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
7ac6b8cf
Commit
7ac6b8cf
authored
Sep 19, 2014
by
Pascal Massimino
Committed by
Michael Niedermayer
Sep 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/idet: typo fix: PROGRSSIVE -> PROGRESSIVE
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
33c752be
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
vf_idet.c
libavfilter/vf_idet.c
+6
-6
vf_idet.h
libavfilter/vf_idet.h
+1
-1
No files found.
libavfilter/vf_idet.c
View file @
7ac6b8cf
...
...
@@ -42,8 +42,8 @@ static const char *type2str(Type type)
switch
(
type
)
{
case
TFF
:
return
"Top Field First "
;
case
BFF
:
return
"Bottom Field First"
;
case
PROGRSSIVE
:
return
"Progressive "
;
case
UNDETERMINED
:
return
"Undetermined "
;
case
PROGR
E
SSIVE
:
return
"Progressive "
;
case
UNDETERMINED
:
return
"Undetermined "
;
}
return
NULL
;
}
...
...
@@ -108,7 +108,7 @@ static void filter(AVFilterContext *ctx)
}
else
if
(
alpha
[
1
]
>
idet
->
interlace_threshold
*
alpha
[
0
]){
type
=
BFF
;
}
else
if
(
alpha
[
1
]
>
idet
->
progressive_threshold
*
delta
){
type
=
PROGRSSIVE
;
type
=
PROGR
E
SSIVE
;
}
else
{
type
=
UNDETERMINED
;
}
...
...
@@ -141,7 +141,7 @@ static void filter(AVFilterContext *ctx)
}
else
if
(
idet
->
last_type
==
BFF
){
idet
->
cur
->
top_field_first
=
0
;
idet
->
cur
->
interlaced_frame
=
1
;
}
else
if
(
idet
->
last_type
==
PROGRSSIVE
){
}
else
if
(
idet
->
last_type
==
PROGR
E
SSIVE
){
idet
->
cur
->
interlaced_frame
=
0
;
}
...
...
@@ -187,13 +187,13 @@ static av_cold void uninit(AVFilterContext *ctx)
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
[
PROGR
E
SSIVE
],
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
[
PROGR
E
SSIVE
],
idet
->
poststat
[
UNDETERMINED
]
);
...
...
libavfilter/vf_idet.h
View file @
7ac6b8cf
...
...
@@ -29,7 +29,7 @@ typedef int (*ff_idet_filter_func)(const uint8_t *a, const uint8_t *b, const uin
typedef
enum
{
TFF
,
BFF
,
PROGRSSIVE
,
PROGR
E
SSIVE
,
UNDETERMINED
,
}
Type
;
...
...
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