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
c2ea7069
Commit
c2ea7069
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: re-use yuv/yuvu/yuvv vars in diff
parent
9cb1d81a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vf_signalstats.c
libavfilter/vf_signalstats.c
+3
-3
No files found.
libavfilter/vf_signalstats.c
View file @
c2ea7069
...
@@ -413,7 +413,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
...
@@ -413,7 +413,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
for
(
i
=
0
;
i
<
link
->
w
;
i
++
)
{
for
(
i
=
0
;
i
<
link
->
w
;
i
++
)
{
const
int
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
(
yuv
-
prev
->
data
[
0
][
pw
+
i
]);
}
}
w
+=
in
->
linesize
[
0
];
w
+=
in
->
linesize
[
0
];
pw
+=
prev
->
linesize
[
0
];
pw
+=
prev
->
linesize
[
0
];
...
@@ -425,9 +425,9 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
...
@@ -425,9 +425,9 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
const
int
yuvu
=
in
->
data
[
1
][
cw
+
i
];
const
int
yuvu
=
in
->
data
[
1
][
cw
+
i
];
const
int
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
(
yuvu
-
prev
->
data
[
1
][
cpw
+
i
]);
histv
[
yuvv
]
++
;
histv
[
yuvv
]
++
;
difv
+=
abs
(
in
->
data
[
2
][
cw
+
i
]
-
prev
->
data
[
2
][
cpw
+
i
]);
difv
+=
abs
(
yuvv
-
prev
->
data
[
2
][
cpw
+
i
]);
histsat
[
p_sat
[
i
]]
++
;
histsat
[
p_sat
[
i
]]
++
;
histhue
[((
int16_t
*
)
p_hue
)[
i
]]
++
;
histhue
[((
int16_t
*
)
p_hue
)[
i
]]
++
;
...
...
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