[vlc-commits] deinterlace: privatize two functions

Rémi Denis-Courmont git at videolan.org
Tue Jun 11 22:35:10 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jun 11 23:10:38 2013 +0300| [d36f3bd678299b077464c86cc795db5dcfbbe427] | committer: Rémi Denis-Courmont

deinterlace: privatize two functions

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

 modules/video_filter/deinterlace/deinterlace.c |   29 +++++++++++++++++-----
 modules/video_filter/deinterlace/deinterlace.h |   31 ------------------------
 2 files changed, 23 insertions(+), 37 deletions(-)

diff --git a/modules/video_filter/deinterlace/deinterlace.c b/modules/video_filter/deinterlace/deinterlace.c
index 100cc19..4735462 100644
--- a/modules/video_filter/deinterlace/deinterlace.c
+++ b/modules/video_filter/deinterlace/deinterlace.c
@@ -134,7 +134,16 @@ static const char *const ppsz_filter_options[] = {
  * SetFilterMethod: setup the deinterlace method to use.
  *****************************************************************************/
 
-void SetFilterMethod( filter_t *p_filter, const char *psz_method )
+/**
+ * Setup the deinterlace method to use.
+ *
+ * FIXME: extract i_chroma from p_filter automatically?
+ *
+ * @param p_filter The filter instance.
+ * @param psz_method Desired method. See mode_list for available choices.
+ * @see mode_list
+ */
+static void SetFilterMethod( filter_t *p_filter, const char *psz_method )
 {
     filter_sys_t *p_sys = p_filter->p_sys;
 
@@ -206,11 +215,19 @@ void SetFilterMethod( filter_t *p_filter, const char *psz_method )
     msg_Dbg( p_filter, "using %s deinterlace method", psz_method );
 }
 
-/*****************************************************************************
- * GetOutputFormat: return which format the chosen algorithm outputs.
- *****************************************************************************/
-
-void GetOutputFormat( filter_t *p_filter,
+/**
+ * Get the output video format of the chosen deinterlace method
+ * for the given input video format.
+ *
+ * Note that each algorithm is allowed to specify its output format,
+ * which may (for some input formats) differ from the input format.
+ *
+ * @param p_filter The filter instance.
+ * @param[out] p_dst Output video format. The structure must be allocated by ca
+ * @param[in] p_src Input video format.
+ * @see SetFilterMethod()
+ */
+static void GetOutputFormat( filter_t *p_filter,
                       video_format_t *p_dst, const video_format_t *p_src )
 {
     filter_sys_t *p_sys = p_filter->p_sys;
diff --git a/modules/video_filter/deinterlace/deinterlace.h b/modules/video_filter/deinterlace/deinterlace.h
index 658e06b..7fc036d 100644
--- a/modules/video_filter/deinterlace/deinterlace.h
+++ b/modules/video_filter/deinterlace/deinterlace.h
@@ -124,37 +124,6 @@ struct filter_sys_t
 };
 
 /*****************************************************************************
- * Filter control related internal functions for the deinterlace filter
- *****************************************************************************/
-
-/**
- * Setup the deinterlace method to use.
- *
- * FIXME: extract i_chroma from p_filter automatically?
- *
- * @param p_filter The filter instance.
- * @param psz_method Desired method. See mode_list for available choices.
- * @see mode_list
- */
-void SetFilterMethod( filter_t *p_filter, const char *psz_method );
-
-/**
- * Get the output video format of the chosen deinterlace method
- * for the given input video format.
- *
- * Note that each algorithm is allowed to specify its output format,
- * which may (for some input formats) differ from the input format.
- *
- * @param p_filter The filter instance.
- * @param[out] p_dst Output video format. The structure must be allocated by caller.
- * @param[in] p_src Input video format.
- * @see SetFilterMethod()
- */
-void GetOutputFormat( filter_t *p_filter,
-                      video_format_t *p_dst,
-                      const video_format_t *p_src );
-
-/*****************************************************************************
  * video filter2 functions
  *****************************************************************************/
 



More information about the vlc-commits mailing list