Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
3672d3a7
Commit
3672d3a7
authored
Sep 29, 2017
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci_filters: add callbacks to control a filter
parent
c41d3aa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/video_filter/ci_filters.m
modules/video_filter/ci_filters.m
+6
-0
No files found.
modules/video_filter/ci_filters.m
View file @
3672d3a7
...
...
@@ -110,6 +110,8 @@ struct filter_desc
}
ranges
[
2
];
int
vlc_type
;
}
const
param_descs
[
NUM_FILTER_PARAM_MAX
];
void
(
*
pf_init
)(
filter_t
*
filter
,
struct
filter_chain
*
fchain
);
void
(
*
pf_control
)(
filter_t
*
filter
,
struct
filter_chain
*
fchain
);
};
static
struct
filter_desc
filter_desc_table
[]
=
...
...
@@ -331,6 +333,8 @@ Filter(filter_t *filter, picture_t *src)
forKey:
ci_param_name
];
}
if
(
filter_desc_table
[
fchain
->
filter
].
pf_control
)
filter_desc_table
[
fchain
->
filter
].
pf_control
(
filter
,
fchain
);
ci_img
=
[
fchain
->
ci_filter
valueForKey
:
kCIOutputImageKey
];
}
...
...
@@ -419,6 +423,8 @@ Open_FilterInit(filter_t *filter, struct filter_chain *fchain)
var_AddCallback
(
filter
,
filter_param_descs
[
i
].
vlc
,
ParamsCallback
,
fchain
);
}
if
(
filter_desc_table
[
fchain
->
filter
].
pf_init
)
filter_desc_table
[
fchain
->
filter
].
pf_init
(
filter
,
fchain
);
return
VLC_SUCCESS
;
}
...
...
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