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
dff826b4
Commit
dff826b4
authored
Oct 13, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/select/scene: move out convoluted sad variable init from loop.
parent
feaff427
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_select.c
libavfilter/vf_select.c
+2
-2
No files found.
libavfilter/vf_select.c
View file @
dff826b4
...
...
@@ -205,13 +205,13 @@ static double get_scene_score(AVFilterContext *ctx, AVFilterBufferRef *picref)
picref
->
video
->
w
==
prev_picref
->
video
->
w
&&
picref
->
linesize
[
0
]
==
prev_picref
->
linesize
[
0
])
{
int
x
,
y
;
int64_t
sad
;
int64_t
sad
=
0
;
double
mafd
,
diff
;
uint8_t
*
p1
=
picref
->
data
[
0
];
uint8_t
*
p2
=
prev_picref
->
data
[
0
];
const
int
linesize
=
picref
->
linesize
[
0
];
for
(
sad
=
y
=
0
;
y
<
picref
->
video
->
h
;
y
+=
8
)
for
(
y
=
0
;
y
<
picref
->
video
->
h
;
y
+=
8
)
for
(
x
=
0
;
x
<
linesize
;
x
+=
8
)
sad
+=
select
->
c
.
sad
[
1
](
select
,
p1
+
y
*
linesize
+
x
,
...
...
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