Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
bde25912
Commit
bde25912
authored
Nov 08, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter: document callbacks
parent
2cebf81e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
57 deletions
+46
-57
include/vlc_filter.h
include/vlc_filter.h
+46
-57
No files found.
include/vlc_filter.h
View file @
bde25912
...
...
@@ -84,69 +84,58 @@ struct filter_t
union
{
struct
{
picture_t
*
(
*
pf_filter
)
(
filter_t
*
,
picture_t
*
);
void
(
*
pf_flush
)(
filter_t
*
);
/* Filter mouse state.
*
* If non-NULL, you must convert from output to input formats:
* - If VLC_SUCCESS is returned, the mouse state is propagated.
* - Otherwise, the mouse change is not propagated.
* If NULL, the mouse state is considered unchanged and will be
* propagated.
*/
int
(
*
pf_mouse
)(
filter_t
*
,
vlc_mouse_t
*
,
const
vlc_mouse_t
*
p_old
,
const
vlc_mouse_t
*
p_new
);
}
video
;
#define pf_video_filter u.video.pf_filter
#define pf_video_flush u.video.pf_flush
#define pf_video_mouse u.video.pf_mouse
/** Filter a picture (video filter) */
picture_t
*
(
*
pf_video_filter
)(
filter_t
*
,
picture_t
*
);
struct
{
block_t
*
(
*
pf_filter
)
(
filter_t
*
,
block_t
*
);
void
(
*
pf_flush
)
(
filter_t
*
);
block_t
*
(
*
pf_drain
)
(
filter_t
*
);
}
audio
;
#define pf_audio_filter u.audio.pf_filter
#define pf_audio_flush u.audio.pf_flush
#define pf_audio_drain u.audio.pf_drain
/** Filter an audio block (audio filter) */
block_t
*
(
*
pf_audio_filter
)(
filter_t
*
,
block_t
*
);
struct
{
void
(
*
pf_blend
)
(
filter_t
*
,
picture_t
*
,
const
picture_t
*
,
int
,
int
,
int
);
}
blend
;
#define pf_video_blend u.blend.pf_blend
/** Blend a subpicture onto a picture (blend) */
void
(
*
pf_video_blend
)(
filter_t
*
,
picture_t
*
,
const
picture_t
*
,
int
,
int
,
int
);
struct
{
subpicture_t
*
(
*
pf_source
)
(
filter_t
*
,
mtime_t
);
int
(
*
pf_mouse
)
(
filter_t
*
,
const
vlc_mouse_t
*
p_old
,
const
vlc_mouse_t
*
p_new
,
const
video_format_t
*
);
}
sub
;
#define pf_sub_source u.sub.pf_source
#define pf_sub_mouse u.sub.pf_mouse
/** Generate a subpicture (sub source) */
subpicture_t
*
(
*
pf_sub_source
)(
filter_t
*
,
mtime_t
);
struct
{
subpicture_t
*
(
*
pf_filter
)
(
filter_t
*
,
subpicture_t
*
);
}
subf
;
#define pf_sub_filter u.subf.pf_filter
/** Filter a subpicture (sub filter) */
subpicture_t
*
(
*
pf_sub_filter
)(
filter_t
*
,
subpicture_t
*
);
struct
{
int
(
*
pf_render
)
(
filter_t
*
,
subpicture_region_t
*
,
subpicture_region_t
*
,
const
vlc_fourcc_t
*
);
}
render
;
#define pf_render u.render.pf_render
/** Render text (text render) */
int
(
*
pf_render
)(
filter_t
*
,
subpicture_region_t
*
,
subpicture_region_t
*
,
const
vlc_fourcc_t
*
);
};
union
{
/* TODO: video filter drain */
/** Drain (audio filter) */
block_t
*
(
*
pf_audio_drain
)
(
filter_t
*
);
};
/** Flush
*
* Flush (i.e. discard) any internal buffer in a video or audio filter.
*/
void
(
*
pf_flush
)(
filter_t
*
);
#define pf_video_flush pf_flush
#define pf_audio_flush pf_flush
}
u
;
union
{
/** Filter mouse state (video filter).
*
* If non-NULL, you must convert from output to input formats:
* - If VLC_SUCCESS is returned, the mouse state is propagated.
* - Otherwise, the mouse change is not propagated.
* If NULL, the mouse state is considered unchanged and will be
* propagated. */
int
(
*
pf_video_mouse
)(
filter_t
*
,
vlc_mouse_t
*
,
const
vlc_mouse_t
*
p_old
,
const
vlc_mouse_t
*
p_new
);
int
(
*
pf_sub_mouse
)(
filter_t
*
,
const
vlc_mouse_t
*
p_old
,
const
vlc_mouse_t
*
p_new
,
const
video_format_t
*
);
};
/* Input attachments
* XXX use filter_GetInputAttachments */
...
...
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