diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2007-09-04 22:03:32 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2007-09-04 22:03:32 +0000 |
commit | f7b8bffe476ba3e0cfd208dadde79ddeae6c4bdd (patch) | |
tree | eb6a7cba489965529cce7b9e28ae2ab309a83b3e | |
parent | 80a16ccf8249f43c84b6a4a12b1ee744d06fa4bc (diff) | |
download | ffmpeg-f7b8bffe476ba3e0cfd208dadde79ddeae6c4bdd.tar.gz |
Treat dc1394 as a library
Originally committed as revision 10292 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 13 | ||||
-rw-r--r-- | libavformat/Makefile | 2 | ||||
-rw-r--r-- | libavformat/allformats.c | 2 | ||||
-rw-r--r-- | libavformat/allformats.h | 2 | ||||
-rw-r--r-- | libavformat/dc1394.c | 2 |
5 files changed, 11 insertions, 10 deletions
@@ -77,13 +77,13 @@ show_help(){ echo echo "External library support:" echo " --enable-sunmlib use Sun medialib [default=no]" - echo " --enable-dc1394 enable IIDC-1394 grabbing using libdc1394" - echo " and libraw1394 [default=no]" echo " --enable-liba52 enable GPLed liba52 support [default=no]" echo " --enable-liba52bin open liba52.so.0 at runtime [default=no]" echo " --enable-avisynth allow reading AVISynth script files [default=no]" echo " --enable-libamr-nb enable libamr-nb floating point audio codec" echo " --enable-libamr-wb enable libamr-wb floating point audio codec" + echo " --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394" + echo " and libraw1394 [default=no]" echo " --enable-libfaac enable FAAC support via libfaac [default=no]" echo " --enable-libfaad enable FAAD support via libfaad [default=no]" echo " --enable-libfaadbin open libfaad.so.0 at runtime [default=no]" @@ -592,7 +592,6 @@ CONFIG_LIST=" avisynth beos_netserver bktr - dc1394 ffmpeg ffplay ffserver @@ -605,6 +604,7 @@ CONFIG_LIST=" libamr libamr_nb libamr_wb + libdc1394 libfaac libfaad libfaadbin @@ -780,8 +780,8 @@ libxvid_encoder_deps="libxvid" ac3_demuxer_deps="ac3_parser" audio_demuxer_deps_any="audio_oss audio_beos" audio_muxer_deps_any="audio_oss audio_beos" -dc1394_demuxer_deps="dc1394" dv1394_demuxer_deps="dv1394" +libdc1394_demuxer_deps="libdc1394" libnut_demuxer_deps="libnut" libnut_muxer_deps="libnut" mp3_demuxer_deps="mpegaudio_parser" @@ -1576,6 +1576,7 @@ enabled_any libamr_nb libamr_wb && enable libamr enabled liba52 && require liba52 a52dec/a52.h a52_init -la52 enabled libamr_nb && require libamrnb amrnb/interf_dec.h Speech_Decode_Frame_init -lamrnb -lm enabled libamr_wb && require libamrwb amrwb/dec_if.h D_IF_init -lamrwb -lm +enabled libdc1394 && require libdc1394 libdc1394/dc1394_control.h dc1394_create_handle -ldc1394_control -lraw1394 enabled libgsm && require libgsm gsm.h gsm_create -lgsm enabled libmp3lame && require LAME lame/lame.h lame_init -lmp3lame -lm enabled libtheora && require libtheora theora/theora.h theora_info_init -ltheora -logg @@ -1584,7 +1585,6 @@ enabled libogg && require libogg ogg/ogg.h ogg_sync_init -logg enabled libnut && require libnut libnut.h nut_demuxer_init -lnut enabled libx264 && require x264 x264.h x264_encoder_open -lx264 enabled libxvid && require Xvid xvid.h xvid_global -lxvidcore -enabled dc1394 && require libdc1394 libdc1394/dc1394_control.h dc1394_create_handle -ldc1394_control -lraw1394 enabled mlib && require mediaLib mlib_types.h mlib_VectorSub_S16_U8_Mod -lmlib enabled libfaac && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaac enabled libfaad && require2 libfaad faad.h faacDecOpen -lfaad @@ -1792,10 +1792,10 @@ enabled_any $THREADS_LIST && enable threads check_deps $CONFIG_LIST $HAVE_LIST $DECODER_LIST $ENCODER_LIST $PARSER_LIST \ $BSF_LIST $DEMUXER_LIST $MUXER_LIST $PROTOCOL_LIST +enabled libdc1394 && append pkg_requires "libraw1394" enabled libogg && append pkg_requires "ogg >= 1.1" enabled libtheora && append pkg_requires "theora" enabled libvorbis && append pkg_requires "vorbis vorbisenc" -enabled dc1394 && append pkg_requires "libraw1394" echo "install prefix $PREFIX" echo "source path $source_path" @@ -1854,6 +1854,7 @@ echo "liba52 support ${liba52-no}" echo "liba52 dlopened ${liba52bin-no}" echo "libamr-nb support ${libamr_nb-no}" echo "libamr-wb support ${libamr_wb-no}" +echo "libdc1394 support ${libdc1394-no}" echo "libfaac enabled ${libfaac-no}" echo "libfaad enabled ${libfaad-no}" echo "libfaad dlopened ${libfaadbin-no}" diff --git a/libavformat/Makefile b/libavformat/Makefile index 84e5a23675..11fd2cf652 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -35,7 +35,6 @@ OBJS-$(CONFIG_BETHSOFTVID_DEMUXER) += bethsoftvid.o OBJS-$(CONFIG_C93_DEMUXER) += c93.o vocdec.o voc.o OBJS-$(CONFIG_CRC_MUXER) += crc.o OBJS-$(CONFIG_DAUD_DEMUXER) += daud.o -OBJS-$(CONFIG_DC1394_DEMUXER) += dc1394.o OBJS-$(CONFIG_DSICIN_DEMUXER) += dsicin.o OBJS-$(CONFIG_DTS_DEMUXER) += raw.o OBJS-$(CONFIG_DV_DEMUXER) += dv.o @@ -153,6 +152,7 @@ OBJS-$(CONFIG_YUV4MPEGPIPE_MUXER) += yuv4mpeg.o OBJS-$(CONFIG_YUV4MPEGPIPE_DEMUXER) += yuv4mpeg.o # external libraries +OBJS-$(CONFIG_LIBDC1394_DEMUXER) += dc1394.o OBJS-$(CONFIG_LIBNUT_DEMUXER) += libnut.o riff.o OBJS-$(CONFIG_LIBNUT_MUXER) += libnut.o riff.o diff --git a/libavformat/allformats.c b/libavformat/allformats.c index 468dd3e5f5..e18063531d 100644 --- a/libavformat/allformats.c +++ b/libavformat/allformats.c @@ -65,7 +65,6 @@ void av_register_all(void) REGISTER_DEMUXER (C93, c93); REGISTER_MUXER (CRC, crc); REGISTER_DEMUXER (DAUD, daud); - REGISTER_DEMUXER (DC1394, dc1394); REGISTER_DEMUXER (DSICIN, dsicin); REGISTER_DEMUXER (DTS, dts); REGISTER_MUXDEMUX(DV, dv); @@ -88,6 +87,7 @@ void av_register_all(void) REGISTER_MUXDEMUX(IMAGE2PIPE, image2pipe); REGISTER_DEMUXER (INGENIENT, ingenient); REGISTER_DEMUXER (IPMOVIE, ipmovie); + REGISTER_DEMUXER (LIBDC1394, libdc1394); if (!ENABLE_NUT_DEMUXER) REGISTER_DEMUXER (LIBNUT, libnut); if (!ENABLE_NUT_MUXER) REGISTER_MUXER (LIBNUT, libnut); REGISTER_MUXDEMUX(M4V, m4v); diff --git a/libavformat/allformats.h b/libavformat/allformats.h index 73e942a436..4ae01e6e28 100644 --- a/libavformat/allformats.h +++ b/libavformat/allformats.h @@ -38,7 +38,6 @@ extern AVInputFormat avs_demuxer; extern AVInputFormat bethsoftvid_demuxer; extern AVInputFormat c93_demuxer; extern AVInputFormat daud_demuxer; -extern AVInputFormat dc1394_demuxer; extern AVInputFormat dsicin_demuxer; extern AVInputFormat dts_demuxer; extern AVInputFormat dv1394_demuxer; @@ -62,6 +61,7 @@ extern AVInputFormat image_demuxer; extern AVInputFormat imagepipe_demuxer; extern AVInputFormat ingenient_demuxer; extern AVInputFormat ipmovie_demuxer; +extern AVInputFormat libdc1394_demuxer; extern AVInputFormat libnut_demuxer; extern AVInputFormat m4v_demuxer; extern AVInputFormat matroska_demuxer; diff --git a/libavformat/dc1394.c b/libavformat/dc1394.c index bf140c4664..1a05818994 100644 --- a/libavformat/dc1394.c +++ b/libavformat/dc1394.c @@ -182,7 +182,7 @@ static int dc1394_close(AVFormatContext * context) return 0; } -AVInputFormat dc1394_demuxer = { +AVInputFormat libdc1394_demuxer = { .name = "dc1394", .long_name = "dc1394 A/V grab", .priv_data_size = sizeof(struct dc1394_data), |