[vlc-commits] Revert "video output: remove unused vout_IsDisplayFiltered"
Steve Lhomme
git at videolan.org
Mon Nov 4 10:27:37 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Oct 28 14:32:58 2019 +0100| [313df83e9d58e5d5274b7b770895778e1ef48b5b] | committer: Steve Lhomme
Revert "video output: remove unused vout_IsDisplayFiltered"
This reverts commit f7f39fcce6a10b06687516dd3433121dffb00185.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=313df83e9d58e5d5274b7b770895778e1ef48b5b
---
src/video_output/display.c | 7 +++++++
src/video_output/vout_wrapper.h | 4 ++++
2 files changed, 11 insertions(+)
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 2b856ffd37..99843fb2bf 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -402,6 +402,13 @@ picture_pool_t *vout_GetPool(vout_display_t *vd, unsigned count)
return osys->pool;
}
+bool vout_IsDisplayFiltered(vout_display_t *vd)
+{
+ vout_display_priv_t *osys = container_of(vd, vout_display_priv_t, display);
+
+ return osys->converters == NULL || !filter_chain_IsEmpty(osys->converters);
+}
+
picture_t *vout_ConvertForDisplay(vout_display_t *vd, picture_t *picture)
{
vout_display_priv_t *osys = container_of(vd, vout_display_priv_t, display);
diff --git a/src/video_output/vout_wrapper.h b/src/video_output/vout_wrapper.h
index b65f2bdcb5..d95a34359d 100644
--- a/src/video_output/vout_wrapper.h
+++ b/src/video_output/vout_wrapper.h
@@ -29,6 +29,10 @@
picture_pool_t *vout_GetPool(vout_display_t *vd, unsigned count);
+/**
+ * It destroy a vout managed display.
+ */
+bool vout_IsDisplayFiltered(vout_display_t *);
picture_t * vout_ConvertForDisplay(vout_display_t *, picture_t *);
void vout_FilterFlush(vout_display_t *);
More information about the vlc-commits
mailing list