[vlc-devel] [PATCH 09/36] filters: set the input/output video context on video filters
robux4 at ycbcr.xyz
Thu Nov 21 15:14:00 CET 2019
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.
include/vlc_filter.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/vlc_filter.h b/include/vlc_filter.h
index 2979224527d..a26083323ae 100644
@@ -28,6 +28,8 @@
+typedef struct vlc_video_context vlc_video_context;
* \defgroup filter Filters
* \ingroup output
@@ -75,9 +77,11 @@ struct filter_t
/* Input format */
+ vlc_video_context *vctx_in; // video filter, set by owner
/* Output format of filter */
+ vlc_video_context *vctx_out; // video filter, handled by the filter
/* Name of the "video filter" shortcut that is requested, can be NULL */
More information about the vlc-devel