]> git.sesse.net Git - vlc/commitdiff
changes Ext2Fourcc into image_Ext2Fourcc and exports it for reuse within vlc
authorJoseph Tulou <brezhoneg1@yahoo.fr>
Sun, 4 Jan 2009 15:28:27 +0000 (16:28 +0100)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 4 Jan 2009 18:48:39 +0000 (19:48 +0100)
Signed-off-by: Antoine Cellerier <dionoea@videolan.org>
include/vlc_image.h
src/libvlccore.sym
src/misc/image.c

index a7ab94cef5519080a233c87d5eb883ab8641ac03..b8785aeabc0e6bf6812404f584f481facec2ba43 100644 (file)
@@ -70,6 +70,8 @@ VLC_EXPORT( void, image_HandlerDelete, ( image_handler_t * ) );
 #define image_Convert( a, b, c, d ) a->pf_convert( a, b, c, d )
 #define image_Filter( a, b, c, d ) a->pf_filter( a, b, c, d )
 
+VLC_EXPORT( vlc_fourcc_t, image_Ext2Fourcc, ( const char *psz_name ) );
+
 # ifdef __cplusplus
 }
 # endif
index 228abdb6680661efa985c56876601c1dbf8211c1..ac5e6e6ab68ac7a5f35a6a7e337b15713bb3408b 100644 (file)
@@ -153,6 +153,7 @@ httpd_UrlNew
 httpd_UrlNewUnique
 __image_HandlerCreate
 image_HandlerDelete
+image_Ext2Fourcc
 InitMD5
 input_Control
 input_CreateFilename
index e50bdc9ed281cf1b2b4828f756db2268e58a6987..acee3b8ce3593e6e9670b98c88b094450b4cdff5 100644 (file)
@@ -70,7 +70,7 @@ static filter_t *CreateFilter( vlc_object_t *, es_format_t *,
                                video_format_t *, const char * );
 static void DeleteFilter( filter_t * );
 
-static vlc_fourcc_t Ext2Fourcc( const char * );
+vlc_fourcc_t image_Ext2Fourcc( const char * );
 /*static const char *Fourcc2Ext( vlc_fourcc_t );*/
 
 /**
@@ -239,7 +239,7 @@ static picture_t *ImageReadUrl( image_handler_t *p_image, const char *psz_url,
     if( !p_fmt_in->i_chroma )
     {
         /* Try to guess format from file name */
-        p_fmt_in->i_chroma = Ext2Fourcc( psz_url );
+        p_fmt_in->i_chroma = image_Ext2Fourcc( psz_url );
     }
 
     p_pic = ImageRead( p_image, p_block, p_fmt_in, p_fmt_out );
@@ -351,7 +351,7 @@ static int ImageWriteUrl( image_handler_t *p_image, picture_t *p_pic,
     if( !p_fmt_out->i_chroma )
     {
         /* Try to guess format from file name */
-        p_fmt_out->i_chroma = Ext2Fourcc( psz_url );
+        p_fmt_out->i_chroma = image_Ext2Fourcc( psz_url );
     }
 
     file = utf8_fopen( psz_url, "wb" );
@@ -533,7 +533,7 @@ static const struct
     { 0, NULL }
 };
 
-static vlc_fourcc_t Ext2Fourcc( const char *psz_name )
+vlc_fourcc_t image_Ext2Fourcc( const char *psz_name )
 {
     int i;