Commit f7b8bffe authored by Ramiro Polla's avatar Ramiro Polla

Treat dc1394 as a library

Originally committed as revision 10292 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 80a16ccf
...@@ -77,13 +77,13 @@ show_help(){ ...@@ -77,13 +77,13 @@ show_help(){
echo echo
echo "External library support:" echo "External library support:"
echo " --enable-sunmlib use Sun medialib [default=no]" 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-liba52 enable GPLed liba52 support [default=no]"
echo " --enable-liba52bin open liba52.so.0 at runtime [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-avisynth allow reading AVISynth script files [default=no]"
echo " --enable-libamr-nb enable libamr-nb floating point audio codec" echo " --enable-libamr-nb enable libamr-nb floating point audio codec"
echo " --enable-libamr-wb enable libamr-wb 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-libfaac enable FAAC support via libfaac [default=no]"
echo " --enable-libfaad enable FAAD support via libfaad [default=no]" echo " --enable-libfaad enable FAAD support via libfaad [default=no]"
echo " --enable-libfaadbin open libfaad.so.0 at runtime [default=no]" echo " --enable-libfaadbin open libfaad.so.0 at runtime [default=no]"
...@@ -592,7 +592,6 @@ CONFIG_LIST=" ...@@ -592,7 +592,6 @@ CONFIG_LIST="
avisynth avisynth
beos_netserver beos_netserver
bktr bktr
dc1394
ffmpeg ffmpeg
ffplay ffplay
ffserver ffserver
...@@ -605,6 +604,7 @@ CONFIG_LIST=" ...@@ -605,6 +604,7 @@ CONFIG_LIST="
libamr libamr
libamr_nb libamr_nb
libamr_wb libamr_wb
libdc1394
libfaac libfaac
libfaad libfaad
libfaadbin libfaadbin
...@@ -780,8 +780,8 @@ libxvid_encoder_deps="libxvid" ...@@ -780,8 +780,8 @@ libxvid_encoder_deps="libxvid"
ac3_demuxer_deps="ac3_parser" ac3_demuxer_deps="ac3_parser"
audio_demuxer_deps_any="audio_oss audio_beos" audio_demuxer_deps_any="audio_oss audio_beos"
audio_muxer_deps_any="audio_oss audio_beos" audio_muxer_deps_any="audio_oss audio_beos"
dc1394_demuxer_deps="dc1394"
dv1394_demuxer_deps="dv1394" dv1394_demuxer_deps="dv1394"
libdc1394_demuxer_deps="libdc1394"
libnut_demuxer_deps="libnut" libnut_demuxer_deps="libnut"
libnut_muxer_deps="libnut" libnut_muxer_deps="libnut"
mp3_demuxer_deps="mpegaudio_parser" mp3_demuxer_deps="mpegaudio_parser"
...@@ -1576,6 +1576,7 @@ enabled_any libamr_nb libamr_wb && enable libamr ...@@ -1576,6 +1576,7 @@ enabled_any libamr_nb libamr_wb && enable libamr
enabled liba52 && require liba52 a52dec/a52.h a52_init -la52 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_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 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 libgsm && require libgsm gsm.h gsm_create -lgsm
enabled libmp3lame && require LAME lame/lame.h lame_init -lmp3lame -lm enabled libmp3lame && require LAME lame/lame.h lame_init -lmp3lame -lm
enabled libtheora && require libtheora theora/theora.h theora_info_init -ltheora -logg 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 ...@@ -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 libnut && require libnut libnut.h nut_demuxer_init -lnut
enabled libx264 && require x264 x264.h x264_encoder_open -lx264 enabled libx264 && require x264 x264.h x264_encoder_open -lx264
enabled libxvid && require Xvid xvid.h xvid_global -lxvidcore 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 mlib && require mediaLib mlib_types.h mlib_VectorSub_S16_U8_Mod -lmlib
enabled libfaac && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaac enabled libfaac && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaac
enabled libfaad && require2 libfaad faad.h faacDecOpen -lfaad enabled libfaad && require2 libfaad faad.h faacDecOpen -lfaad
...@@ -1792,10 +1792,10 @@ enabled_any $THREADS_LIST && enable threads ...@@ -1792,10 +1792,10 @@ enabled_any $THREADS_LIST && enable threads
check_deps $CONFIG_LIST $HAVE_LIST $DECODER_LIST $ENCODER_LIST $PARSER_LIST \ check_deps $CONFIG_LIST $HAVE_LIST $DECODER_LIST $ENCODER_LIST $PARSER_LIST \
$BSF_LIST $DEMUXER_LIST $MUXER_LIST $PROTOCOL_LIST $BSF_LIST $DEMUXER_LIST $MUXER_LIST $PROTOCOL_LIST
enabled libdc1394 && append pkg_requires "libraw1394"
enabled libogg && append pkg_requires "ogg >= 1.1" enabled libogg && append pkg_requires "ogg >= 1.1"
enabled libtheora && append pkg_requires "theora" enabled libtheora && append pkg_requires "theora"
enabled libvorbis && append pkg_requires "vorbis vorbisenc" enabled libvorbis && append pkg_requires "vorbis vorbisenc"
enabled dc1394 && append pkg_requires "libraw1394"
echo "install prefix $PREFIX" echo "install prefix $PREFIX"
echo "source path $source_path" echo "source path $source_path"
...@@ -1854,6 +1854,7 @@ echo "liba52 support ${liba52-no}" ...@@ -1854,6 +1854,7 @@ echo "liba52 support ${liba52-no}"
echo "liba52 dlopened ${liba52bin-no}" echo "liba52 dlopened ${liba52bin-no}"
echo "libamr-nb support ${libamr_nb-no}" echo "libamr-nb support ${libamr_nb-no}"
echo "libamr-wb support ${libamr_wb-no}" echo "libamr-wb support ${libamr_wb-no}"
echo "libdc1394 support ${libdc1394-no}"
echo "libfaac enabled ${libfaac-no}" echo "libfaac enabled ${libfaac-no}"
echo "libfaad enabled ${libfaad-no}" echo "libfaad enabled ${libfaad-no}"
echo "libfaad dlopened ${libfaadbin-no}" echo "libfaad dlopened ${libfaadbin-no}"
......
...@@ -35,7 +35,6 @@ OBJS-$(CONFIG_BETHSOFTVID_DEMUXER) += bethsoftvid.o ...@@ -35,7 +35,6 @@ OBJS-$(CONFIG_BETHSOFTVID_DEMUXER) += bethsoftvid.o
OBJS-$(CONFIG_C93_DEMUXER) += c93.o vocdec.o voc.o OBJS-$(CONFIG_C93_DEMUXER) += c93.o vocdec.o voc.o
OBJS-$(CONFIG_CRC_MUXER) += crc.o OBJS-$(CONFIG_CRC_MUXER) += crc.o
OBJS-$(CONFIG_DAUD_DEMUXER) += daud.o OBJS-$(CONFIG_DAUD_DEMUXER) += daud.o
OBJS-$(CONFIG_DC1394_DEMUXER) += dc1394.o
OBJS-$(CONFIG_DSICIN_DEMUXER) += dsicin.o OBJS-$(CONFIG_DSICIN_DEMUXER) += dsicin.o
OBJS-$(CONFIG_DTS_DEMUXER) += raw.o OBJS-$(CONFIG_DTS_DEMUXER) += raw.o
OBJS-$(CONFIG_DV_DEMUXER) += dv.o OBJS-$(CONFIG_DV_DEMUXER) += dv.o
...@@ -153,6 +152,7 @@ OBJS-$(CONFIG_YUV4MPEGPIPE_MUXER) += yuv4mpeg.o ...@@ -153,6 +152,7 @@ OBJS-$(CONFIG_YUV4MPEGPIPE_MUXER) += yuv4mpeg.o
OBJS-$(CONFIG_YUV4MPEGPIPE_DEMUXER) += yuv4mpeg.o OBJS-$(CONFIG_YUV4MPEGPIPE_DEMUXER) += yuv4mpeg.o
# external libraries # external libraries
OBJS-$(CONFIG_LIBDC1394_DEMUXER) += dc1394.o
OBJS-$(CONFIG_LIBNUT_DEMUXER) += libnut.o riff.o OBJS-$(CONFIG_LIBNUT_DEMUXER) += libnut.o riff.o
OBJS-$(CONFIG_LIBNUT_MUXER) += libnut.o riff.o OBJS-$(CONFIG_LIBNUT_MUXER) += libnut.o riff.o
......
...@@ -65,7 +65,6 @@ void av_register_all(void) ...@@ -65,7 +65,6 @@ void av_register_all(void)
REGISTER_DEMUXER (C93, c93); REGISTER_DEMUXER (C93, c93);
REGISTER_MUXER (CRC, crc); REGISTER_MUXER (CRC, crc);
REGISTER_DEMUXER (DAUD, daud); REGISTER_DEMUXER (DAUD, daud);
REGISTER_DEMUXER (DC1394, dc1394);
REGISTER_DEMUXER (DSICIN, dsicin); REGISTER_DEMUXER (DSICIN, dsicin);
REGISTER_DEMUXER (DTS, dts); REGISTER_DEMUXER (DTS, dts);
REGISTER_MUXDEMUX(DV, dv); REGISTER_MUXDEMUX(DV, dv);
...@@ -88,6 +87,7 @@ void av_register_all(void) ...@@ -88,6 +87,7 @@ void av_register_all(void)
REGISTER_MUXDEMUX(IMAGE2PIPE, image2pipe); REGISTER_MUXDEMUX(IMAGE2PIPE, image2pipe);
REGISTER_DEMUXER (INGENIENT, ingenient); REGISTER_DEMUXER (INGENIENT, ingenient);
REGISTER_DEMUXER (IPMOVIE, ipmovie); REGISTER_DEMUXER (IPMOVIE, ipmovie);
REGISTER_DEMUXER (LIBDC1394, libdc1394);
if (!ENABLE_NUT_DEMUXER) REGISTER_DEMUXER (LIBNUT, libnut); if (!ENABLE_NUT_DEMUXER) REGISTER_DEMUXER (LIBNUT, libnut);
if (!ENABLE_NUT_MUXER) REGISTER_MUXER (LIBNUT, libnut); if (!ENABLE_NUT_MUXER) REGISTER_MUXER (LIBNUT, libnut);
REGISTER_MUXDEMUX(M4V, m4v); REGISTER_MUXDEMUX(M4V, m4v);
......
...@@ -38,7 +38,6 @@ extern AVInputFormat avs_demuxer; ...@@ -38,7 +38,6 @@ extern AVInputFormat avs_demuxer;
extern AVInputFormat bethsoftvid_demuxer; extern AVInputFormat bethsoftvid_demuxer;
extern AVInputFormat c93_demuxer; extern AVInputFormat c93_demuxer;
extern AVInputFormat daud_demuxer; extern AVInputFormat daud_demuxer;
extern AVInputFormat dc1394_demuxer;
extern AVInputFormat dsicin_demuxer; extern AVInputFormat dsicin_demuxer;
extern AVInputFormat dts_demuxer; extern AVInputFormat dts_demuxer;
extern AVInputFormat dv1394_demuxer; extern AVInputFormat dv1394_demuxer;
...@@ -62,6 +61,7 @@ extern AVInputFormat image_demuxer; ...@@ -62,6 +61,7 @@ extern AVInputFormat image_demuxer;
extern AVInputFormat imagepipe_demuxer; extern AVInputFormat imagepipe_demuxer;
extern AVInputFormat ingenient_demuxer; extern AVInputFormat ingenient_demuxer;
extern AVInputFormat ipmovie_demuxer; extern AVInputFormat ipmovie_demuxer;
extern AVInputFormat libdc1394_demuxer;
extern AVInputFormat libnut_demuxer; extern AVInputFormat libnut_demuxer;
extern AVInputFormat m4v_demuxer; extern AVInputFormat m4v_demuxer;
extern AVInputFormat matroska_demuxer; extern AVInputFormat matroska_demuxer;
......
...@@ -182,7 +182,7 @@ static int dc1394_close(AVFormatContext * context) ...@@ -182,7 +182,7 @@ static int dc1394_close(AVFormatContext * context)
return 0; return 0;
} }
AVInputFormat dc1394_demuxer = { AVInputFormat libdc1394_demuxer = {
.name = "dc1394", .name = "dc1394",
.long_name = "dc1394 A/V grab", .long_name = "dc1394 A/V grab",
.priv_data_size = sizeof(struct dc1394_data), .priv_data_size = sizeof(struct dc1394_data),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment