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
9cb1d81a
Commit
9cb1d81a
authored
Nov 22, 2014
by
Clément Bœsch
Committed by
Clément Bœsch
Nov 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/signalstats: localize a few variables
parent
82dda8e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
vf_signalstats.c
libavfilter/vf_signalstats.c
+3
-4
No files found.
libavfilter/vf_signalstats.c
View file @
9cb1d81a
...
@@ -360,7 +360,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
...
@@ -360,7 +360,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
int
i
,
j
;
int
i
,
j
;
int
w
=
0
,
cw
=
0
,
// in
int
w
=
0
,
cw
=
0
,
// in
pw
=
0
,
cpw
=
0
;
// prev
pw
=
0
,
cpw
=
0
;
// prev
int
yuv
,
yuvu
,
yuvv
;
int
fil
;
int
fil
;
char
metabuf
[
128
];
char
metabuf
[
128
];
unsigned
int
histy
[
DEPTH
]
=
{
0
},
unsigned
int
histy
[
DEPTH
]
=
{
0
},
...
@@ -412,7 +411,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
...
@@ -412,7 +411,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
// Calculate luma histogram and difference with previous frame or field.
// Calculate luma histogram and difference with previous frame or field.
for
(
j
=
0
;
j
<
link
->
h
;
j
++
)
{
for
(
j
=
0
;
j
<
link
->
h
;
j
++
)
{
for
(
i
=
0
;
i
<
link
->
w
;
i
++
)
{
for
(
i
=
0
;
i
<
link
->
w
;
i
++
)
{
yuv
=
in
->
data
[
0
][
w
+
i
];
const
int
yuv
=
in
->
data
[
0
][
w
+
i
];
histy
[
yuv
]
++
;
histy
[
yuv
]
++
;
dify
+=
abs
(
in
->
data
[
0
][
w
+
i
]
-
prev
->
data
[
0
][
pw
+
i
]);
dify
+=
abs
(
in
->
data
[
0
][
w
+
i
]
-
prev
->
data
[
0
][
pw
+
i
]);
}
}
...
@@ -423,8 +422,8 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
...
@@ -423,8 +422,8 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
// Calculate chroma histogram and difference with previous frame or field.
// Calculate chroma histogram and difference with previous frame or field.
for
(
j
=
0
;
j
<
s
->
chromah
;
j
++
)
{
for
(
j
=
0
;
j
<
s
->
chromah
;
j
++
)
{
for
(
i
=
0
;
i
<
s
->
chromaw
;
i
++
)
{
for
(
i
=
0
;
i
<
s
->
chromaw
;
i
++
)
{
yuvu
=
in
->
data
[
1
][
cw
+
i
];
const
int
yuvu
=
in
->
data
[
1
][
cw
+
i
];
yuvv
=
in
->
data
[
2
][
cw
+
i
];
const
int
yuvv
=
in
->
data
[
2
][
cw
+
i
];
histu
[
yuvu
]
++
;
histu
[
yuvu
]
++
;
difu
+=
abs
(
in
->
data
[
1
][
cw
+
i
]
-
prev
->
data
[
1
][
cpw
+
i
]);
difu
+=
abs
(
in
->
data
[
1
][
cw
+
i
]
-
prev
->
data
[
1
][
cpw
+
i
]);
histv
[
yuvv
]
++
;
histv
[
yuvv
]
++
;
...
...
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