[vlc-devel] [PATCH 04/15] video_filter:deinterlace: use a union to store phosphor and ivtc parameters
Steve Lhomme
robux4 at videolabs.io
Fri Jun 30 14:19:57 CEST 2017
since they are mutually exclusive
---
modules/video_filter/deinterlace/deinterlace.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/video_filter/deinterlace/deinterlace.h b/modules/video_filter/deinterlace/deinterlace.h
index 93ae1d255b..00fddb74ec 100644
--- a/modules/video_filter/deinterlace/deinterlace.h
+++ b/modules/video_filter/deinterlace/deinterlace.h
@@ -119,8 +119,10 @@ struct filter_sys_t
picture_t *pp_history[HISTORY_SIZE];
/* Algorithm-specific substructures */
- phosphor_sys_t phosphor; /**< Phosphor algorithm state. */
- ivtc_sys_t ivtc; /**< IVTC algorithm state. */
+ union {
+ phosphor_sys_t phosphor; /**< Phosphor algorithm state. */
+ ivtc_sys_t ivtc; /**< IVTC algorithm state. */
+ };
};
/*****************************************************************************
--
2.12.1
More information about the vlc-devel
mailing list