[vlc-devel] [PATCH 06/19] image: move documentation from src/misc/image.c to vlc_image.h

Kartik Ohri kartikohri13 at gmail.com
Mon Jul 27 16:06:34 CEST 2020


---
 include/vlc_image.h | 9 +++++++++
 src/misc/image.c    | 8 --------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/include/vlc_image.h b/include/vlc_image.h
index 250974f368..7d967a43d9 100644
--- a/include/vlc_image.h
+++ b/include/vlc_image.h
@@ -60,8 +60,17 @@ struct image_handler_t
     picture_fifo_t *outfifo;
 };

+/**
+ * Create an image_handler_t instance
+ *
+ */
 VLC_API image_handler_t * image_HandlerCreate( vlc_object_t * ) VLC_USED;
 #define image_HandlerCreate( a ) image_HandlerCreate( VLC_OBJECT(a) )
+
+/**
+ * Delete the image_handler_t instance
+ *
+ */
 VLC_API void image_HandlerDelete( image_handler_t * );

 #define image_Read( a, b, c, d ) a->pf_read( a, b, c, d )
diff --git a/src/misc/image.c b/src/misc/image.c
index faa05d9b01..dbebdfb4fe 100644
--- a/src/misc/image.c
+++ b/src/misc/image.c
@@ -86,10 +86,6 @@ vlc_fourcc_t image_Ext2Fourcc( const char * );
 /*static const char *Fourcc2Ext( vlc_fourcc_t );*/

 #undef image_HandlerCreate
-/**
- * Create an image_handler_t instance
- *
- */
 image_handler_t *image_HandlerCreate( vlc_object_t *p_this )
 {
     image_handler_t *p_image = calloc( 1, sizeof(image_handler_t) );
@@ -109,10 +105,6 @@ image_handler_t *image_HandlerCreate( vlc_object_t *p_this )
     return p_image;
 }

-/**
- * Delete the image_handler_t instance
- *
- */
 void image_HandlerDelete( image_handler_t *p_image )
 {
     if( !p_image ) return;
--
2.25.1



More information about the vlc-devel mailing list