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:
Steve Lhomme 2019-07-10 14:09:15 +02:00
parent 05cda638d7
commit d4db4b9067
1 changed files with 4 additions and 0 deletions

View File

@ -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 */