changeset 1142:e3a585883bbd libavformat

Move initialisations and internal symbols in allformats.h, patch by Diego "Flameeyes" Petteno flameeyes AA gentoo PP org Original thread: Date: Jun 30, 2006 2:07 AM Subject: [Ffmpeg-devel] [PATCH] Move initialisations and internal symbols in allformats.h
author gpoirier
date Fri, 30 Jun 2006 07:41:25 +0000
parents ef9bf68071d3
children 8bae9057478c
files aiff.c allformats.c au.c avformat.h mmf.c sol.c utils.c wav.c
diffstat 8 files changed, 7 insertions(+), 176 deletions(-) [+]
line wrap: on
line diff
--- a/aiff.c	Thu Jun 29 19:42:34 2006 +0000
+++ b/aiff.c	Fri Jun 30 07:41:25 2006 +0000
@@ -17,6 +17,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 #include "avformat.h"
+#include "allformats.h"
 #include "avi.h"
 #include "intfloat_readwrite.h"
 
--- a/allformats.c	Thu Jun 29 19:42:34 2006 +0000
+++ b/allformats.c	Fri Jun 30 07:41:25 2006 +0000
@@ -17,6 +17,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 #include "avformat.h"
+#include "allformats.h"
 
 /* If you do not call this function, then you can select exactly which
    formats you want to support */
--- a/au.c	Thu Jun 29 19:42:34 2006 +0000
+++ b/au.c	Fri Jun 30 07:41:25 2006 +0000
@@ -26,6 +26,7 @@
  */
 
 #include "avformat.h"
+#include "allformats.h"
 #include "avi.h"
 
 /* if we don't know the size in advance */
--- a/avformat.h	Thu Jun 29 19:42:34 2006 +0000
+++ b/avformat.h	Fri Jun 30 07:41:25 2006 +0000
@@ -390,186 +390,10 @@
 int av_write_image(ByteIOContext *pb, AVImageFormat *fmt, AVImageInfo *img);
 
 extern AVImageFormat *first_image_format;
-#if 0
-extern AVImageFormat pnm_image_format;
-extern AVImageFormat pbm_image_format;
-extern AVImageFormat pgm_image_format;
-extern AVImageFormat ppm_image_format;
-extern AVImageFormat pam_image_format;
-extern AVImageFormat pgmyuv_image_format;
-extern AVImageFormat yuv_image_format;
-#ifdef CONFIG_ZLIB
-extern AVImageFormat png_image_format;
-#endif
-extern AVImageFormat jpeg_image_format;
-#endif
-extern AVImageFormat gif_image_format;
-//extern AVImageFormat sgi_image_format; //broken in itself
 
 /* XXX: use automatic init with either ELF sections or C file parser */
 /* modules */
 
-/* mpeg.c */
-extern AVInputFormat mpegps_demux;
-int mpegps_init(void);
-
-/* mpegts.c */
-extern AVInputFormat mpegts_demux;
-int mpegts_init(void);
-
-/* rm.c */
-int rm_init(void);
-
-/* crc.c */
-int crc_init(void);
-
-/* img.c */
-int img_init(void);
-
-/* img2.c */
-int img2_init(void);
-
-/* asf.c */
-int asf_init(void);
-
-/* avienc.c */
-int avienc_init(void);
-
-/* avidec.c */
-int avidec_init(void);
-
-/* swf.c */
-int swf_init(void);
-
-/* mov.c */
-int mov_init(void);
-
-/* movenc.c */
-int movenc_init(void);
-
-/* flvenc.c */
-int flvenc_init(void);
-
-/* flvdec.c */
-int flvdec_init(void);
-
-/* jpeg.c */
-int jpeg_init(void);
-
-/* gif.c */
-int gif_init(void);
-
-/* au.c */
-int au_init(void);
-
-/* amr.c */
-int amr_init(void);
-
-/* wav.c */
-int ff_wav_init(void);
-
-/* mmf.c */
-int ff_mmf_init(void);
-
-/* raw.c */
-int pcm_read_seek(AVFormatContext *s,
-                  int stream_index, int64_t timestamp, int flags);
-int raw_init(void);
-
-/* mp3.c */
-int mp3_init(void);
-
-/* yuv4mpeg.c */
-int yuv4mpeg_init(void);
-
-/* ogg2.c */
-int ogg_init(void);
-
-/* ogg.c */
-int libogg_init(void);
-
-/* dv.c */
-int ff_dv_init(void);
-
-/* ffm.c */
-int ffm_init(void);
-
-/* rtsp.c */
-extern AVInputFormat redir_demux;
-int redir_open(AVFormatContext **ic_ptr, ByteIOContext *f);
-
-/* 4xm.c */
-int fourxm_init(void);
-
-/* psxstr.c */
-int str_init(void);
-
-/* idroq.c */
-int roq_init(void);
-
-/* ipmovie.c */
-int ipmovie_init(void);
-
-/* nut.c */
-int nut_init(void);
-
-/* wc3movie.c */
-int wc3_init(void);
-
-/* westwood.c */
-int westwood_init(void);
-
-/* segafilm.c */
-int film_init(void);
-
-/* idcin.c */
-int idcin_init(void);
-
-/* flic.c */
-int flic_init(void);
-
-/* sierravmd.c */
-int vmd_init(void);
-
-/* matroska.c */
-int matroska_init(void);
-
-/* sol.c */
-int sol_init(void);
-
-/* electronicarts.c */
-int ea_init(void);
-
-/* nsvdec.c */
-int nsvdec_init(void);
-
-/* daud.c */
-int daud_init(void);
-
-/* nuv.c */
-int nuv_init(void);
-
-/* aiff.c */
-int ff_aiff_init(void);
-
-/* voc.c */
-int voc_init(void);
-
-/* tta.c */
-int tta_init(void);
-
-/* adts.c */
-int ff_adts_init(void);
-
-/* mm.c */
-int mm_init(void);
-
-/* avs.c */
-int avs_init(void);
-
-/* smacker.c */
-int smacker_init(void);
-
 #include "rtp.h"
 
 #include "rtsp.h"
--- a/mmf.c	Thu Jun 29 19:42:34 2006 +0000
+++ b/mmf.c	Fri Jun 30 07:41:25 2006 +0000
@@ -17,6 +17,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 #include "avformat.h"
+#include "allformats.h"
 #include "avi.h"
 
 typedef struct {
--- a/sol.c	Thu Jun 29 19:42:34 2006 +0000
+++ b/sol.c	Fri Jun 30 07:41:25 2006 +0000
@@ -22,6 +22,7 @@
  */
 
 #include "avformat.h"
+#include "allformats.h"
 #include "avi.h"
 #include "bswap.h"
 
--- a/utils.c	Thu Jun 29 19:42:34 2006 +0000
+++ b/utils.c	Fri Jun 30 07:41:25 2006 +0000
@@ -17,6 +17,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 #include "avformat.h"
+#include "allformats.h"
 
 #undef NDEBUG
 #include <assert.h>
--- a/wav.c	Thu Jun 29 19:42:34 2006 +0000
+++ b/wav.c	Fri Jun 30 07:41:25 2006 +0000
@@ -17,6 +17,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 #include "avformat.h"
+#include "allformats.h"
 #include "avi.h"
 
 const CodecTag codec_wav_tags[] = {