[PATCH] changes Ext2Fourcc into image_Ext2Fourcc and exports it =

Joseph Tulou brezhoneg1 at yahoo.fr
Sun Jan 4 16:28:27 CET 2009


for reuse within vlc=0A=
=0A=
---=0A=
 include/vlc_image.h |    2 ++=0A=
 src/libvlccore.sym  |    1 +=0A=
 src/misc/image.c    |    8 ++++----=0A=
 3 files changed, 7 insertions(+), 4 deletions(-)=0A=
=0A=
diff --git a/include/vlc_image.h b/include/vlc_image.h=0A=
index a7ab94c..b8785ae 100644=0A=
--- a/include/vlc_image.h=0A=
+++ b/include/vlc_image.h=0A=
@@ -70,6 +70,8 @@ VLC_EXPORT( void, image_HandlerDelete, ( =
image_handler_t * ) );=0A=
 #define image_Convert( a, b, c, d ) a->pf_convert( a, b, c, d )=0A=
 #define image_Filter( a, b, c, d ) a->pf_filter( a, b, c, d )=0A=
 =0A=
+VLC_EXPORT( vlc_fourcc_t, image_Ext2Fourcc, ( const char *psz_name ) );=0A=
+=0A=
 # ifdef __cplusplus=0A=
 }=0A=
 # endif=0A=
diff --git a/src/libvlccore.sym b/src/libvlccore.sym=0A=
index 9dcf2d9..6e60cf6 100644=0A=
--- a/src/libvlccore.sym=0A=
+++ b/src/libvlccore.sym=0A=
@@ -153,6 +153,7 @@ httpd_UrlNew=0A=
 httpd_UrlNewUnique=0A=
 __image_HandlerCreate=0A=
 image_HandlerDelete=0A=
+image_Ext2Fourcc=0A=
 InitMD5=0A=
 input_Control=0A=
 input_CreateFilename=0A=
diff --git a/src/misc/image.c b/src/misc/image.c=0A=
index e50bdc9..acee3b8 100644=0A=
--- a/src/misc/image.c=0A=
+++ b/src/misc/image.c=0A=
@@ -70,7 +70,7 @@ static filter_t *CreateFilter( vlc_object_t *, =
es_format_t *,=0A=
                                video_format_t *, const char * );=0A=
 static void DeleteFilter( filter_t * );=0A=
 =0A=
-static vlc_fourcc_t Ext2Fourcc( const char * );=0A=
+vlc_fourcc_t image_Ext2Fourcc( const char * );=0A=
 /*static const char *Fourcc2Ext( vlc_fourcc_t );*/=0A=
 =0A=
 /**=0A=
@@ -239,7 +239,7 @@ static picture_t *ImageReadUrl( image_handler_t =
*p_image, const char *psz_url,=0A=
     if( !p_fmt_in->i_chroma )=0A=
     {=0A=
         /* Try to guess format from file name */=0A=
-        p_fmt_in->i_chroma =3D Ext2Fourcc( psz_url );=0A=
+        p_fmt_in->i_chroma =3D image_Ext2Fourcc( psz_url );=0A=
     }=0A=
 =0A=
     p_pic =3D ImageRead( p_image, p_block, p_fmt_in, p_fmt_out );=0A=
@@ -351,7 +351,7 @@ static int ImageWriteUrl( image_handler_t *p_image, =
picture_t *p_pic,=0A=
     if( !p_fmt_out->i_chroma )=0A=
     {=0A=
         /* Try to guess format from file name */=0A=
-        p_fmt_out->i_chroma =3D Ext2Fourcc( psz_url );=0A=
+        p_fmt_out->i_chroma =3D image_Ext2Fourcc( psz_url );=0A=
     }=0A=
 =0A=
     file =3D utf8_fopen( psz_url, "wb" );=0A=
@@ -533,7 +533,7 @@ static const struct=0A=
     { 0, NULL }=0A=
 };=0A=
 =0A=
-static vlc_fourcc_t Ext2Fourcc( const char *psz_name )=0A=
+vlc_fourcc_t image_Ext2Fourcc( const char *psz_name )=0A=
 {=0A=
     int i;=0A=
 =0A=
-- =0A=
1.5.2.5=0A=
=0A=

------=_NextPart_000_0001_01C96E92.FB7C7CD0
Content-Type: application/octet-stream;
	name="0003-ignore-list-updated-to-allow-jpg-and-gif-images-to-b.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="0003-ignore-list-updated-to-allow-jpg-and-gif-images-to-b.patch"



More information about the vlc-devel mailing list