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
fa470384
Commit
fa470384
authored
Dec 03, 2017
by
Martin Vignali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_threshold : move context func init in ff_threshold_init
parent
42a22d01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
threshold.h
libavfilter/threshold.h
+1
-0
vf_threshold.c
libavfilter/vf_threshold.c
+7
-2
No files found.
libavfilter/threshold.h
View file @
fa470384
...
...
@@ -46,6 +46,7 @@ typedef struct ThresholdContext {
FFFrameSync
fs
;
}
ThresholdContext
;
void
ff_threshold_init
(
ThresholdContext
*
s
);
void
ff_threshold_init_x86
(
ThresholdContext
*
s
);
#endif
/* AVFILTER_THRESHOLD_H */
libavfilter/vf_threshold.c
View file @
fa470384
...
...
@@ -185,6 +185,13 @@ static int config_input(AVFilterLink *inlink)
s
->
width
[
0
]
=
s
->
width
[
3
]
=
inlink
->
w
;
s
->
depth
=
desc
->
comp
[
0
].
depth
;
ff_threshold_init
(
s
);
return
0
;
}
void
ff_threshold_init
(
ThresholdContext
*
s
)
{
if
(
s
->
depth
==
8
)
{
s
->
threshold
=
threshold8
;
s
->
bpc
=
1
;
...
...
@@ -195,8 +202,6 @@ static int config_input(AVFilterLink *inlink)
if
(
ARCH_X86
)
ff_threshold_init_x86
(
s
);
return
0
;
}
static
int
config_output
(
AVFilterLink
*
outlink
)
...
...
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