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
014e4e44
Commit
014e4e44
authored
Jan 30, 2016
by
Timothy Gu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_phase: Reduce the scope of several variables
Reviewed-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
4ab4793c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
vf_phase.c
libavfilter/vf_phase.c
+10
-8
No files found.
libavfilter/vf_phase.c
View file @
014e4e44
...
@@ -116,14 +116,7 @@ static int config_input(AVFilterLink *inlink)
...
@@ -116,14 +116,7 @@ static int config_input(AVFilterLink *inlink)
*/
*/
static
enum
PhaseMode
analyze_plane
(
void
*
ctx
,
enum
PhaseMode
mode
,
AVFrame
*
old
,
AVFrame
*
new
)
static
enum
PhaseMode
analyze_plane
(
void
*
ctx
,
enum
PhaseMode
mode
,
AVFrame
*
old
,
AVFrame
*
new
)
{
{
double
bdiff
,
tdiff
,
pdiff
,
scale
;
double
bdiff
,
tdiff
,
pdiff
;
const
int
ns
=
new
->
linesize
[
0
];
const
int
os
=
old
->
linesize
[
0
];
const
uint8_t
*
nptr
=
new
->
data
[
0
];
const
uint8_t
*
optr
=
old
->
data
[
0
];
const
int
h
=
new
->
height
;
const
int
w
=
new
->
width
;
int
bdif
,
tdif
,
pdif
;
if
(
mode
==
AUTO
)
{
if
(
mode
==
AUTO
)
{
mode
=
new
->
interlaced_frame
?
new
->
top_field_first
?
mode
=
new
->
interlaced_frame
?
new
->
top_field_first
?
...
@@ -136,6 +129,15 @@ static enum PhaseMode analyze_plane(void *ctx, enum PhaseMode mode, AVFrame *old
...
@@ -136,6 +129,15 @@ static enum PhaseMode analyze_plane(void *ctx, enum PhaseMode mode, AVFrame *old
if
(
mode
<=
BOTTOM_FIRST
)
{
if
(
mode
<=
BOTTOM_FIRST
)
{
bdiff
=
pdiff
=
tdiff
=
65536
.
0
;
bdiff
=
pdiff
=
tdiff
=
65536
.
0
;
}
else
{
}
else
{
const
int
ns
=
new
->
linesize
[
0
];
const
int
os
=
old
->
linesize
[
0
];
const
uint8_t
*
nptr
=
new
->
data
[
0
];
const
uint8_t
*
optr
=
old
->
data
[
0
];
const
int
h
=
new
->
height
;
const
int
w
=
new
->
width
;
int
bdif
,
tdif
,
pdif
;
double
scale
;
int
top
=
0
,
t
;
int
top
=
0
,
t
;
const
uint8_t
*
rend
,
*
end
=
nptr
+
(
h
-
2
)
*
ns
;
const
uint8_t
*
rend
,
*
end
=
nptr
+
(
h
-
2
)
*
ns
;
...
...
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