vlc | branch: master | Steve Lhomme <[email protected]> | Wed Jul 10 14:09:15 
2019 +0200| [d4db4b90675d7726a1966de6e103891322572256] | committer: Steve Lhomme

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d4db4b90675d7726a1966de6e103891322572256
---

 include/vlc_filter.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/vlc_filter.h b/include/vlc_filter.h
index 2a68f5e738..1cbb7ffed2 100644
--- a/include/vlc_filter.h
+++ b/include/vlc_filter.h
@@ -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 */

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to