mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
filters: set the input/output video context on video filters
The input context pushed by the decoder (and soon by the preceding filter in chain). The output context is similar to the output video video context set by the decoder. The filter should hold a reference to the output video context and release it when it doesn't need it anymore.
This commit is contained in:
parent
05cda638d7
commit
d4db4b9067
@ -29,6 +29,8 @@
|
||||
#include <vlc_picture.h>
|
||||
#include <vlc_codec.h>
|
||||
|
||||
typedef struct vlc_video_context vlc_video_context;
|
||||
|
||||
/**
|
||||
* \defgroup filter Filters
|
||||
* \ingroup output
|
||||
@ -76,9 +78,11 @@ struct filter_t
|
||||
|
||||
/* Input format */
|
||||
es_format_t fmt_in;
|
||||
vlc_video_context *vctx_in; // video filter, set by owner
|
||||
|
||||
/* Output format of filter */
|
||||
es_format_t fmt_out;
|
||||
vlc_video_context *vctx_out; // video filter, handled by the filter
|
||||
bool b_allow_fmt_out_change;
|
||||
|
||||
/* Name of the "video filter" shortcut that is requested, can be NULL */
|
||||
|
Loading…
Reference in New Issue
Block a user