[DEV] build but not runable

This commit is contained in:
Edouard DUPIN 2016-09-20 23:29:22 +02:00
parent 8a98d8acb8
commit 1ad8a4d46f
14 changed files with 4545 additions and 1 deletions

31
authors.txt Normal file
View File

@ -0,0 +1,31 @@
Alexander Strasser <>
Anssi Hannula <>
Ash Hughes <>
Attila Kinali <>
Baptiste Coudurier <>
Ben Littler <>
Benoit Fouet <>
Clément Bœsch <>
Daniel Verkamp <>
Ganesh Ajjanagadde <>
Gwenole Beauchesne <>
Jaikrishnan Menon <>
Jean Delvare <>
Loren Merritt <>
Lou Logan <>
Michael Niedermayer <>
Nicolas George <>
Panagiotis Issaris <>
Peter Ross <>
Philip Langdale <>
Reimar Doeffinger <>
Reinhard Tartler <>
Reynaldo H. Verdejo Pinochet <>
Robert Swain <>
Sascha Sommer <>
Stefano Sabatini <>
Stephan Hilb <>
Tiancheng "Timothy" Gu <>
Tim Nicholson <>
Tomas Härdin <>
Wei Gao <>

2
ffmpeg

@ -1 +1 @@
Subproject commit d3426fb5921d069cd950e43504b005bfbb1686d2 Subproject commit ce36e74e75751c721185fbebaa4ee8714b44c5a5

2181
generated/config.h Normal file

File diff suppressed because it is too large Load Diff

887
lutin_ffmpeg-avcodec.py Normal file
View File

@ -0,0 +1,887 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
def get_type():
return "LIBRARY"
def get_desc():
return "FFMPEG library"
def get_licence():
return "LGPL-2.1"
def get_compagny_type():
return "org"
def get_compagny_name():
return "ffmpeg"
def get_maintainer():
return "authors.txt"
def get_version():
return "version.txt"
# create the module
# @param[in] target reference on the Target that is currently build
# @param[in] module_name Name of the module that is extract from the file name (to be generic)
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
# add the file to compile:
my_module.add_src_file([
'ffmpeg/libavcodec/012v.c',
'ffmpeg/libavcodec/4xm.c',
'ffmpeg/libavcodec/8bps.c',
'ffmpeg/libavcodec/8svx.c',
'ffmpeg/libavcodec/a64multienc.c',
'ffmpeg/libavcodec/aac_ac3_parser.c',
'ffmpeg/libavcodec/aac_adtstoasc_bsf.c',
'ffmpeg/libavcodec/aac_parser.c',
'ffmpeg/libavcodec/aacadtsdec.c',
'ffmpeg/libavcodec/aaccoder.c',
'ffmpeg/libavcodec/aacdec.c',
'ffmpeg/libavcodec/aacdec_fixed.c',
'ffmpeg/libavcodec/aacenc.c',
'ffmpeg/libavcodec/aacenc_is.c',
'ffmpeg/libavcodec/aacenc_ltp.c',
'ffmpeg/libavcodec/aacenc_pred.c',
'ffmpeg/libavcodec/aacenc_tns.c',
'ffmpeg/libavcodec/aacenctab.c',
'ffmpeg/libavcodec/aacps_fixed.c',
'ffmpeg/libavcodec/aacps_float.c',
'ffmpeg/libavcodec/aacpsdsp_fixed.c',
'ffmpeg/libavcodec/aacpsdsp_float.c',
'ffmpeg/libavcodec/aacpsy.c',
'ffmpeg/libavcodec/aacsbr.c',
'ffmpeg/libavcodec/aacsbr_fixed.c',
'ffmpeg/libavcodec/aactab.c',
'ffmpeg/libavcodec/aandcttab.c',
'ffmpeg/libavcodec/aasc.c',
'ffmpeg/libavcodec/ac3.c',
'ffmpeg/libavcodec/ac3_parser.c',
'ffmpeg/libavcodec/ac3dec_data.c',
'ffmpeg/libavcodec/ac3dec_fixed.c',
'ffmpeg/libavcodec/ac3dec_float.c',
'ffmpeg/libavcodec/ac3dsp.c',
'ffmpeg/libavcodec/ac3enc.c',
'ffmpeg/libavcodec/ac3enc_fixed.c',
'ffmpeg/libavcodec/ac3enc_float.c',
'ffmpeg/libavcodec/ac3tab.c',
'ffmpeg/libavcodec/acelp_filters.c',
'ffmpeg/libavcodec/acelp_pitch_delay.c',
'ffmpeg/libavcodec/acelp_vectors.c',
'ffmpeg/libavcodec/adpcm.c',
'ffmpeg/libavcodec/adpcm_data.c',
'ffmpeg/libavcodec/adpcmenc.c',
'ffmpeg/libavcodec/adx.c',
'ffmpeg/libavcodec/adx_parser.c',
'ffmpeg/libavcodec/adxdec.c',
'ffmpeg/libavcodec/adxenc.c',
'ffmpeg/libavcodec/aic.c',
'ffmpeg/libavcodec/alac.c',
'ffmpeg/libavcodec/alac_data.c',
'ffmpeg/libavcodec/alacdsp.c',
'ffmpeg/libavcodec/alacenc.c',
'ffmpeg/libavcodec/aliaspixdec.c',
'ffmpeg/libavcodec/aliaspixenc.c',
'ffmpeg/libavcodec/allcodecs.c',
'ffmpeg/libavcodec/alsdec.c',
'ffmpeg/libavcodec/amrnbdec.c',
'ffmpeg/libavcodec/amrwbdec.c',
'ffmpeg/libavcodec/anm.c',
'ffmpeg/libavcodec/ansi.c',
'ffmpeg/libavcodec/apedec.c',
'ffmpeg/libavcodec/ass.c',
'ffmpeg/libavcodec/ass_split.c',
'ffmpeg/libavcodec/assdec.c',
'ffmpeg/libavcodec/assenc.c',
'ffmpeg/libavcodec/asv.c',
'ffmpeg/libavcodec/asvdec.c',
'ffmpeg/libavcodec/asvenc.c',
'ffmpeg/libavcodec/atrac.c',
'ffmpeg/libavcodec/atrac1.c',
'ffmpeg/libavcodec/atrac3.c',
'ffmpeg/libavcodec/atrac3plus.c',
'ffmpeg/libavcodec/atrac3plusdec.c',
'ffmpeg/libavcodec/atrac3plusdsp.c',
'ffmpeg/libavcodec/audio_frame_queue.c',
'ffmpeg/libavcodec/audioconvert.c',
'ffmpeg/libavcodec/audiodsp.c',
'ffmpeg/libavcodec/aura.c',
'ffmpeg/libavcodec/avdct.c',
'ffmpeg/libavcodec/avfft.c',
'ffmpeg/libavcodec/avpacket.c',
'ffmpeg/libavcodec/avpicture.c',
'ffmpeg/libavcodec/avrndec.c',
'ffmpeg/libavcodec/avs.c',
'ffmpeg/libavcodec/avuidec.c',
'ffmpeg/libavcodec/avuienc.c',
'ffmpeg/libavcodec/bethsoftvideo.c',
'ffmpeg/libavcodec/bfi.c',
'ffmpeg/libavcodec/bgmc.c',
'ffmpeg/libavcodec/bink.c',
'ffmpeg/libavcodec/binkaudio.c',
'ffmpeg/libavcodec/binkdsp.c',
'ffmpeg/libavcodec/bintext.c',
'ffmpeg/libavcodec/bitstream.c',
'ffmpeg/libavcodec/bitstream_filter.c',
'ffmpeg/libavcodec/bitstream_filters.c',
'ffmpeg/libavcodec/blockdsp.c',
'ffmpeg/libavcodec/bmp.c',
'ffmpeg/libavcodec/bmp_parser.c',
'ffmpeg/libavcodec/bmpenc.c',
'ffmpeg/libavcodec/bmvaudio.c',
'ffmpeg/libavcodec/bmvvideo.c',
'ffmpeg/libavcodec/brenderpix.c',
'ffmpeg/libavcodec/bsf.c',
'ffmpeg/libavcodec/bswapdsp.c',
'ffmpeg/libavcodec/c93.c',
'ffmpeg/libavcodec/cabac.c',
'ffmpeg/libavcodec/canopus.c',
'ffmpeg/libavcodec/cavs.c',
'ffmpeg/libavcodec/cavs_parser.c',
'ffmpeg/libavcodec/cavsdata.c',
'ffmpeg/libavcodec/cavsdec.c',
'ffmpeg/libavcodec/cavsdsp.c',
'ffmpeg/libavcodec/cbrt_data.c',
'ffmpeg/libavcodec/cbrt_data_fixed.c',
'ffmpeg/libavcodec/ccaption_dec.c',
'ffmpeg/libavcodec/cdgraphics.c',
'ffmpeg/libavcodec/cdxl.c',
'ffmpeg/libavcodec/celp_filters.c',
'ffmpeg/libavcodec/celp_math.c',
'ffmpeg/libavcodec/cfhd.c',
'ffmpeg/libavcodec/cfhddata.c',
'ffmpeg/libavcodec/cga_data.c',
'ffmpeg/libavcodec/chomp_bsf.c',
'ffmpeg/libavcodec/cinepak.c',
'ffmpeg/libavcodec/cinepakenc.c',
'ffmpeg/libavcodec/cljrdec.c',
'ffmpeg/libavcodec/cljrenc.c',
'ffmpeg/libavcodec/cllc.c',
'ffmpeg/libavcodec/cngdec.c',
'ffmpeg/libavcodec/cngenc.c',
'ffmpeg/libavcodec/codec_desc.c',
'ffmpeg/libavcodec/cook.c',
'ffmpeg/libavcodec/cook_parser.c',
'ffmpeg/libavcodec/cpia.c',
'ffmpeg/libavcodec/cscd.c',
'ffmpeg/libavcodec/cyuv.c',
'ffmpeg/libavcodec/d3d11va.c',
'ffmpeg/libavcodec/dca.c',
'ffmpeg/libavcodec/dca_core.c',
'ffmpeg/libavcodec/dca_core_bsf.c',
'ffmpeg/libavcodec/dca_exss.c',
'ffmpeg/libavcodec/dca_lbr.c',
'ffmpeg/libavcodec/dca_parser.c',
'ffmpeg/libavcodec/dca_xll.c',
'ffmpeg/libavcodec/dcadata.c',
'ffmpeg/libavcodec/dcadct.c',
'ffmpeg/libavcodec/dcadec.c',
'ffmpeg/libavcodec/dcadsp.c',
'ffmpeg/libavcodec/dcaenc.c',
'ffmpeg/libavcodec/dcahuff.c',
'ffmpeg/libavcodec/dct.c',
'ffmpeg/libavcodec/dct32_fixed.c',
'ffmpeg/libavcodec/dct32_float.c',
'ffmpeg/libavcodec/dds.c',
'ffmpeg/libavcodec/dfa.c',
'ffmpeg/libavcodec/dirac.c',
'ffmpeg/libavcodec/dirac_arith.c',
'ffmpeg/libavcodec/dirac_dwt.c',
'ffmpeg/libavcodec/dirac_parser.c',
'ffmpeg/libavcodec/diracdec.c',
'ffmpeg/libavcodec/diracdsp.c',
'ffmpeg/libavcodec/diractab.c',
'ffmpeg/libavcodec/dnxhd_parser.c',
'ffmpeg/libavcodec/dnxhddata.c',
'ffmpeg/libavcodec/dnxhddec.c',
'ffmpeg/libavcodec/dnxhdenc.c',
'ffmpeg/libavcodec/dpcm.c',
'ffmpeg/libavcodec/dpx.c',
'ffmpeg/libavcodec/dpx_parser.c',
'ffmpeg/libavcodec/dpxenc.c',
'ffmpeg/libavcodec/dsd.c',
'ffmpeg/libavcodec/dsddec.c',
'ffmpeg/libavcodec/dsicinaudio.c',
'ffmpeg/libavcodec/dsicinvideo.c',
'ffmpeg/libavcodec/dss_sp.c',
'ffmpeg/libavcodec/dstdec.c',
'ffmpeg/libavcodec/dump_extradata_bsf.c',
'ffmpeg/libavcodec/dv.c',
'ffmpeg/libavcodec/dv_profile.c',
'ffmpeg/libavcodec/dvaudio_parser.c',
'ffmpeg/libavcodec/dvaudiodec.c',
'ffmpeg/libavcodec/dvbsub.c',
'ffmpeg/libavcodec/dvbsub_parser.c',
'ffmpeg/libavcodec/dvbsubdec.c',
'ffmpeg/libavcodec/dvd_nav_parser.c',
'ffmpeg/libavcodec/dvdata.c',
'ffmpeg/libavcodec/dvdec.c',
'ffmpeg/libavcodec/dvdsub_parser.c',
'ffmpeg/libavcodec/dvdsubdec.c',
'ffmpeg/libavcodec/dvdsubenc.c',
'ffmpeg/libavcodec/dvenc.c',
'ffmpeg/libavcodec/dxa.c',
'ffmpeg/libavcodec/dxtory.c',
'ffmpeg/libavcodec/dxv.c',
'ffmpeg/libavcodec/eac3_data.c',
'ffmpeg/libavcodec/eac3enc.c',
'ffmpeg/libavcodec/eacmv.c',
'ffmpeg/libavcodec/eaidct.c',
'ffmpeg/libavcodec/eamad.c',
'ffmpeg/libavcodec/eatgq.c',
'ffmpeg/libavcodec/eatgv.c',
'ffmpeg/libavcodec/eatqi.c',
'ffmpeg/libavcodec/elbg.c',
'ffmpeg/libavcodec/elsdec.c',
'ffmpeg/libavcodec/error_resilience.c',
'ffmpeg/libavcodec/escape124.c',
'ffmpeg/libavcodec/escape130.c',
'ffmpeg/libavcodec/evrcdec.c',
'ffmpeg/libavcodec/exif.c',
'ffmpeg/libavcodec/exr.c',
'ffmpeg/libavcodec/faandct.c',
'ffmpeg/libavcodec/faanidct.c',
'ffmpeg/libavcodec/faxcompr.c',
'ffmpeg/libavcodec/fdctdsp.c',
'ffmpeg/libavcodec/fft_fixed.c',
'ffmpeg/libavcodec/fft_fixed_32.c',
'ffmpeg/libavcodec/fft_float.c',
'ffmpeg/libavcodec/fft_init_table.c',
'ffmpeg/libavcodec/ffv1.c',
'ffmpeg/libavcodec/ffv1dec.c',
'ffmpeg/libavcodec/ffv1enc.c',
'ffmpeg/libavcodec/ffwavesynth.c',
'ffmpeg/libavcodec/fic.c',
'ffmpeg/libavcodec/flac.c',
'ffmpeg/libavcodec/flac_parser.c',
'ffmpeg/libavcodec/flacdata.c',
'ffmpeg/libavcodec/flacdec.c',
'ffmpeg/libavcodec/flacdsp.c',
'ffmpeg/libavcodec/flacenc.c',
'ffmpeg/libavcodec/flashsv.c',
'ffmpeg/libavcodec/flashsv2enc.c',
'ffmpeg/libavcodec/flashsvenc.c',
'ffmpeg/libavcodec/flicvideo.c',
'ffmpeg/libavcodec/flvdec.c',
'ffmpeg/libavcodec/flvenc.c',
'ffmpeg/libavcodec/fmtconvert.c',
'ffmpeg/libavcodec/frame_thread_encoder.c',
'ffmpeg/libavcodec/fraps.c',
'ffmpeg/libavcodec/frwu.c',
'ffmpeg/libavcodec/g2meet.c',
'ffmpeg/libavcodec/g722.c',
'ffmpeg/libavcodec/g722dec.c',
'ffmpeg/libavcodec/g722dsp.c',
'ffmpeg/libavcodec/g722enc.c',
'ffmpeg/libavcodec/g723_1.c',
'ffmpeg/libavcodec/g723_1dec.c',
'ffmpeg/libavcodec/g723_1enc.c',
'ffmpeg/libavcodec/g726.c',
'ffmpeg/libavcodec/g729_parser.c',
'ffmpeg/libavcodec/g729dec.c',
'ffmpeg/libavcodec/g729postfilter.c',
'ffmpeg/libavcodec/gif.c',
'ffmpeg/libavcodec/gifdec.c',
'ffmpeg/libavcodec/golomb.c',
'ffmpeg/libavcodec/gsm_parser.c',
'ffmpeg/libavcodec/gsmdec.c',
'ffmpeg/libavcodec/gsmdec_data.c',
'ffmpeg/libavcodec/h261.c',
'ffmpeg/libavcodec/h261_parser.c',
'ffmpeg/libavcodec/h261data.c',
'ffmpeg/libavcodec/h261dec.c',
'ffmpeg/libavcodec/h261enc.c',
'ffmpeg/libavcodec/h263.c',
'ffmpeg/libavcodec/h263_parser.c',
'ffmpeg/libavcodec/h263data.c',
'ffmpeg/libavcodec/h263dec.c',
'ffmpeg/libavcodec/h263dsp.c',
'ffmpeg/libavcodec/h264.c',
'ffmpeg/libavcodec/h2645_parse.c',
'ffmpeg/libavcodec/h264_cabac.c',
'ffmpeg/libavcodec/h264_cavlc.c',
'ffmpeg/libavcodec/h264_direct.c',
'ffmpeg/libavcodec/h264_loopfilter.c',
'ffmpeg/libavcodec/h264_mb.c',
'ffmpeg/libavcodec/h264_mp4toannexb_bsf.c',
'ffmpeg/libavcodec/h264_parse.c',
'ffmpeg/libavcodec/h264_parser.c',
'ffmpeg/libavcodec/h264_picture.c',
'ffmpeg/libavcodec/h264_ps.c',
'ffmpeg/libavcodec/h264_refs.c',
'ffmpeg/libavcodec/h264_sei.c',
'ffmpeg/libavcodec/h264_slice.c',
'ffmpeg/libavcodec/h264chroma.c',
'ffmpeg/libavcodec/h264data.c',
'ffmpeg/libavcodec/h264dsp.c',
'ffmpeg/libavcodec/h264idct.c',
'ffmpeg/libavcodec/h264pred.c',
'ffmpeg/libavcodec/h264qpel.c',
'ffmpeg/libavcodec/hap.c',
'ffmpeg/libavcodec/hapdec.c',
'ffmpeg/libavcodec/hevc.c',
'ffmpeg/libavcodec/hevc_cabac.c',
'ffmpeg/libavcodec/hevc_data.c',
'ffmpeg/libavcodec/hevc_filter.c',
'ffmpeg/libavcodec/hevc_mp4toannexb_bsf.c',
'ffmpeg/libavcodec/hevc_mvs.c',
'ffmpeg/libavcodec/hevc_parser.c',
'ffmpeg/libavcodec/hevc_ps.c',
'ffmpeg/libavcodec/hevc_refs.c',
'ffmpeg/libavcodec/hevc_sei.c',
'ffmpeg/libavcodec/hevcdsp.c',
'ffmpeg/libavcodec/hevcpred.c',
'ffmpeg/libavcodec/hnm4video.c',
'ffmpeg/libavcodec/hpeldsp.c',
'ffmpeg/libavcodec/hq_hqa.c',
'ffmpeg/libavcodec/hq_hqadata.c',
'ffmpeg/libavcodec/hq_hqadsp.c',
'ffmpeg/libavcodec/hqx.c',
'ffmpeg/libavcodec/hqxdsp.c',
'ffmpeg/libavcodec/hqxvlc.c',
'ffmpeg/libavcodec/htmlsubtitles.c',
'ffmpeg/libavcodec/huffman.c',
'ffmpeg/libavcodec/huffyuv.c',
'ffmpeg/libavcodec/huffyuvdec.c',
'ffmpeg/libavcodec/huffyuvdsp.c',
'ffmpeg/libavcodec/huffyuvenc.c',
'ffmpeg/libavcodec/huffyuvencdsp.c',
'ffmpeg/libavcodec/idcinvideo.c',
'ffmpeg/libavcodec/idctdsp.c',
'ffmpeg/libavcodec/iff.c',
'ffmpeg/libavcodec/iirfilter.c',
'ffmpeg/libavcodec/imc.c',
'ffmpeg/libavcodec/imdct15.c',
'ffmpeg/libavcodec/imgconvert.c',
'ffmpeg/libavcodec/imx_dump_header_bsf.c',
'ffmpeg/libavcodec/indeo2.c',
'ffmpeg/libavcodec/indeo3.c',
'ffmpeg/libavcodec/indeo4.c',
'ffmpeg/libavcodec/indeo5.c',
'ffmpeg/libavcodec/intelh263dec.c',
'ffmpeg/libavcodec/interplayacm.c',
'ffmpeg/libavcodec/interplayvideo.c',
'ffmpeg/libavcodec/intrax8.c',
'ffmpeg/libavcodec/intrax8dsp.c',
'ffmpeg/libavcodec/ituh263dec.c',
'ffmpeg/libavcodec/ituh263enc.c',
'ffmpeg/libavcodec/ivi.c',
'ffmpeg/libavcodec/ivi_dsp.c',
'ffmpeg/libavcodec/j2kenc.c',
'ffmpeg/libavcodec/jacosubdec.c',
'ffmpeg/libavcodec/jfdctfst.c',
'ffmpeg/libavcodec/jfdctint.c',
'ffmpeg/libavcodec/jni.c',
'ffmpeg/libavcodec/jpeg2000.c',
'ffmpeg/libavcodec/jpeg2000dec.c',
'ffmpeg/libavcodec/jpeg2000dsp.c',
'ffmpeg/libavcodec/jpeg2000dwt.c',
'ffmpeg/libavcodec/jpegls.c',
'ffmpeg/libavcodec/jpeglsdec.c',
'ffmpeg/libavcodec/jpeglsenc.c',
'ffmpeg/libavcodec/jpegtables.c',
'ffmpeg/libavcodec/jrevdct.c',
'ffmpeg/libavcodec/jvdec.c',
'ffmpeg/libavcodec/kbdwin.c',
'ffmpeg/libavcodec/kgv1dec.c',
'ffmpeg/libavcodec/kmvc.c',
'ffmpeg/libavcodec/lagarith.c',
'ffmpeg/libavcodec/lagarithrac.c',
'ffmpeg/libavcodec/latm_parser.c',
'ffmpeg/libavcodec/lcldec.c',
'ffmpeg/libavcodec/lclenc.c',
'ffmpeg/libavcodec/ljpegenc.c',
'ffmpeg/libavcodec/loco.c',
'ffmpeg/libavcodec/lossless_audiodsp.c',
'ffmpeg/libavcodec/lossless_videodsp.c',
'ffmpeg/libavcodec/lpc.c',
'ffmpeg/libavcodec/lsp.c',
'ffmpeg/libavcodec/lzf.c',
'ffmpeg/libavcodec/lzw.c',
'ffmpeg/libavcodec/lzwenc.c',
'ffmpeg/libavcodec/m101.c',
'ffmpeg/libavcodec/mace.c',
'ffmpeg/libavcodec/magicyuv.c',
'ffmpeg/libavcodec/mathtables.c',
'ffmpeg/libavcodec/mdct_fixed.c',
'ffmpeg/libavcodec/mdct_fixed_32.c',
'ffmpeg/libavcodec/mdct_float.c',
'ffmpeg/libavcodec/mdec.c',
'ffmpeg/libavcodec/me_cmp.c',
'ffmpeg/libavcodec/metasound.c',
'ffmpeg/libavcodec/metasound_data.c',
'ffmpeg/libavcodec/microdvddec.c',
'ffmpeg/libavcodec/mimic.c',
'ffmpeg/libavcodec/mjpeg2jpeg_bsf.c',
'ffmpeg/libavcodec/mjpeg_parser.c',
'ffmpeg/libavcodec/mjpega_dump_header_bsf.c',
'ffmpeg/libavcodec/mjpegbdec.c',
'ffmpeg/libavcodec/mjpegdec.c',
'ffmpeg/libavcodec/mjpegenc.c',
'ffmpeg/libavcodec/mjpegenc_common.c',
'ffmpeg/libavcodec/mlp.c',
'ffmpeg/libavcodec/mlp_parser.c',
'ffmpeg/libavcodec/mlpdec.c',
'ffmpeg/libavcodec/mlpdsp.c',
'ffmpeg/libavcodec/mmvideo.c',
'ffmpeg/libavcodec/motion_est.c',
'ffmpeg/libavcodec/motionpixels.c',
'ffmpeg/libavcodec/movsub_bsf.c',
'ffmpeg/libavcodec/movtextdec.c',
'ffmpeg/libavcodec/movtextenc.c',
'ffmpeg/libavcodec/mp3_header_decompress_bsf.c',
'ffmpeg/libavcodec/mpc.c',
'ffmpeg/libavcodec/mpc7.c',
'ffmpeg/libavcodec/mpc8.c',
'ffmpeg/libavcodec/mpeg12.c',
'ffmpeg/libavcodec/mpeg12data.c',
'ffmpeg/libavcodec/mpeg12dec.c',
'ffmpeg/libavcodec/mpeg12enc.c',
'ffmpeg/libavcodec/mpeg4_unpack_bframes_bsf.c',
'ffmpeg/libavcodec/mpeg4audio.c',
'ffmpeg/libavcodec/mpeg4video.c',
'ffmpeg/libavcodec/mpeg4video_parser.c',
'ffmpeg/libavcodec/mpeg4videodec.c',
'ffmpeg/libavcodec/mpeg4videoenc.c',
'ffmpeg/libavcodec/mpeg_er.c',
'ffmpeg/libavcodec/mpegaudio.c',
'ffmpeg/libavcodec/mpegaudio_parser.c',
'ffmpeg/libavcodec/mpegaudiodata.c',
'ffmpeg/libavcodec/mpegaudiodec_fixed.c',
'ffmpeg/libavcodec/mpegaudiodec_float.c',
'ffmpeg/libavcodec/mpegaudiodecheader.c',
'ffmpeg/libavcodec/mpegaudiodsp.c',
'ffmpeg/libavcodec/mpegaudiodsp_data.c',
'ffmpeg/libavcodec/mpegaudiodsp_fixed.c',
'ffmpeg/libavcodec/mpegaudiodsp_float.c',
'ffmpeg/libavcodec/mpegaudioenc_fixed.c',
'ffmpeg/libavcodec/mpegaudioenc_float.c',
'ffmpeg/libavcodec/mpegpicture.c',
'ffmpeg/libavcodec/mpegutils.c',
'ffmpeg/libavcodec/mpegvideo.c',
'ffmpeg/libavcodec/mpegvideo_enc.c',
'ffmpeg/libavcodec/mpegvideo_motion.c',
'ffmpeg/libavcodec/mpegvideo_parser.c',
'ffmpeg/libavcodec/mpegvideodata.c',
'ffmpeg/libavcodec/mpegvideodsp.c',
'ffmpeg/libavcodec/mpegvideoencdsp.c',
'ffmpeg/libavcodec/mpl2dec.c',
'ffmpeg/libavcodec/mqc.c',
'ffmpeg/libavcodec/mqcdec.c',
'ffmpeg/libavcodec/mqcenc.c',
'ffmpeg/libavcodec/msgsmdec.c',
'ffmpeg/libavcodec/msmpeg4.c',
'ffmpeg/libavcodec/msmpeg4data.c',
'ffmpeg/libavcodec/msmpeg4dec.c',
'ffmpeg/libavcodec/msmpeg4enc.c',
'ffmpeg/libavcodec/msrle.c',
'ffmpeg/libavcodec/msrledec.c',
'ffmpeg/libavcodec/mss1.c',
'ffmpeg/libavcodec/mss12.c',
'ffmpeg/libavcodec/mss2.c',
'ffmpeg/libavcodec/mss2dsp.c',
'ffmpeg/libavcodec/mss3.c',
'ffmpeg/libavcodec/mss34dsp.c',
'ffmpeg/libavcodec/mss4.c',
'ffmpeg/libavcodec/msvideo1.c',
'ffmpeg/libavcodec/msvideo1enc.c',
'ffmpeg/libavcodec/mvcdec.c',
'ffmpeg/libavcodec/mxpegdec.c',
'ffmpeg/libavcodec/nellymoser.c',
'ffmpeg/libavcodec/nellymoserdec.c',
'ffmpeg/libavcodec/nellymoserenc.c',
'ffmpeg/libavcodec/noise_bsf.c',
'ffmpeg/libavcodec/nuv.c',
'ffmpeg/libavcodec/on2avc.c',
'ffmpeg/libavcodec/on2avcdata.c',
'ffmpeg/libavcodec/options.c',
'ffmpeg/libavcodec/opus.c',
'ffmpeg/libavcodec/opus_celt.c',
'ffmpeg/libavcodec/opus_parser.c',
'ffmpeg/libavcodec/opus_silk.c',
'ffmpeg/libavcodec/opusdec.c',
'ffmpeg/libavcodec/pafaudio.c',
'ffmpeg/libavcodec/pafvideo.c',
'ffmpeg/libavcodec/pamenc.c',
'ffmpeg/libavcodec/parser.c',
'ffmpeg/libavcodec/pcm-bluray.c',
'ffmpeg/libavcodec/pcm-dvd.c',
'ffmpeg/libavcodec/pcm.c',
'ffmpeg/libavcodec/pcx.c',
'ffmpeg/libavcodec/pcxenc.c',
'ffmpeg/libavcodec/pgssubdec.c',
'ffmpeg/libavcodec/pictordec.c',
'ffmpeg/libavcodec/pixblockdsp.c',
'ffmpeg/libavcodec/png.c',
'ffmpeg/libavcodec/png_parser.c',
'ffmpeg/libavcodec/pngdec.c',
'ffmpeg/libavcodec/pngdsp.c',
'ffmpeg/libavcodec/pngenc.c',
'ffmpeg/libavcodec/pnm.c',
'ffmpeg/libavcodec/pnm_parser.c',
'ffmpeg/libavcodec/pnmdec.c',
'ffmpeg/libavcodec/pnmenc.c',
'ffmpeg/libavcodec/profiles.c',
'ffmpeg/libavcodec/proresdata.c',
'ffmpeg/libavcodec/proresdec2.c',
'ffmpeg/libavcodec/proresdec_lgpl.c',
'ffmpeg/libavcodec/proresdsp.c',
'ffmpeg/libavcodec/proresenc_anatoliy.c',
'ffmpeg/libavcodec/proresenc_kostya.c',
'ffmpeg/libavcodec/psymodel.c',
'ffmpeg/libavcodec/pthread.c',
'ffmpeg/libavcodec/pthread_frame.c',
'ffmpeg/libavcodec/pthread_slice.c',
'ffmpeg/libavcodec/ptx.c',
'ffmpeg/libavcodec/qcelpdec.c',
'ffmpeg/libavcodec/qdm2.c',
'ffmpeg/libavcodec/qdrw.c',
'ffmpeg/libavcodec/qpeg.c',
'ffmpeg/libavcodec/qpeldsp.c',
'ffmpeg/libavcodec/qsv_api.c',
'ffmpeg/libavcodec/qtrle.c',
'ffmpeg/libavcodec/qtrleenc.c',
'ffmpeg/libavcodec/r210dec.c',
'ffmpeg/libavcodec/r210enc.c',
'ffmpeg/libavcodec/ra144.c',
'ffmpeg/libavcodec/ra144dec.c',
'ffmpeg/libavcodec/ra144enc.c',
'ffmpeg/libavcodec/ra288.c',
'ffmpeg/libavcodec/ralf.c',
'ffmpeg/libavcodec/rangecoder.c',
'ffmpeg/libavcodec/ratecontrol.c',
'ffmpeg/libavcodec/raw.c',
'ffmpeg/libavcodec/rawdec.c',
'ffmpeg/libavcodec/rawenc.c',
'ffmpeg/libavcodec/rdft.c',
'ffmpeg/libavcodec/realtextdec.c',
'ffmpeg/libavcodec/remove_extradata_bsf.c',
'ffmpeg/libavcodec/resample.c',
'ffmpeg/libavcodec/resample2.c',
'ffmpeg/libavcodec/rl.c',
'ffmpeg/libavcodec/rl2.c',
'ffmpeg/libavcodec/rle.c',
'ffmpeg/libavcodec/roqaudioenc.c',
'ffmpeg/libavcodec/roqvideo.c',
'ffmpeg/libavcodec/roqvideodec.c',
'ffmpeg/libavcodec/roqvideoenc.c',
'ffmpeg/libavcodec/rpza.c',
'ffmpeg/libavcodec/rscc.c',
'ffmpeg/libavcodec/rtjpeg.c',
'ffmpeg/libavcodec/rv10.c',
'ffmpeg/libavcodec/rv10enc.c',
'ffmpeg/libavcodec/rv20enc.c',
'ffmpeg/libavcodec/rv30.c',
'ffmpeg/libavcodec/rv30dsp.c',
'ffmpeg/libavcodec/rv34.c',
'ffmpeg/libavcodec/rv34_parser.c',
'ffmpeg/libavcodec/rv34dsp.c',
'ffmpeg/libavcodec/rv40.c',
'ffmpeg/libavcodec/rv40dsp.c',
'ffmpeg/libavcodec/s302m.c',
'ffmpeg/libavcodec/s302menc.c',
'ffmpeg/libavcodec/samidec.c',
'ffmpeg/libavcodec/sanm.c',
'ffmpeg/libavcodec/sbrdsp.c',
'ffmpeg/libavcodec/sbrdsp_fixed.c',
'ffmpeg/libavcodec/screenpresso.c',
'ffmpeg/libavcodec/sgidec.c',
'ffmpeg/libavcodec/sgienc.c',
'ffmpeg/libavcodec/sgirledec.c',
'ffmpeg/libavcodec/sheervideo.c',
'ffmpeg/libavcodec/shorten.c',
'ffmpeg/libavcodec/simple_idct.c',
'ffmpeg/libavcodec/sinewin.c',
'ffmpeg/libavcodec/sinewin_fixed.c',
'ffmpeg/libavcodec/sipr.c',
'ffmpeg/libavcodec/sipr16k.c',
'ffmpeg/libavcodec/smacker.c',
'ffmpeg/libavcodec/smc.c',
'ffmpeg/libavcodec/smvjpegdec.c',
'ffmpeg/libavcodec/snappy.c',
'ffmpeg/libavcodec/snow.c',
'ffmpeg/libavcodec/snow_dwt.c',
'ffmpeg/libavcodec/snowdec.c',
'ffmpeg/libavcodec/snowenc.c',
'ffmpeg/libavcodec/sonic.c',
'ffmpeg/libavcodec/sp5xdec.c',
'ffmpeg/libavcodec/srtdec.c',
'ffmpeg/libavcodec/srtenc.c',
'ffmpeg/libavcodec/startcode.c',
'ffmpeg/libavcodec/subviewerdec.c',
'ffmpeg/libavcodec/sunrast.c',
'ffmpeg/libavcodec/sunrastenc.c',
'ffmpeg/libavcodec/svq1.c',
'ffmpeg/libavcodec/svq13.c',
'ffmpeg/libavcodec/svq1dec.c',
'ffmpeg/libavcodec/svq1enc.c',
'ffmpeg/libavcodec/svq3.c',
'ffmpeg/libavcodec/synth_filter.c',
'ffmpeg/libavcodec/tak.c',
'ffmpeg/libavcodec/tak_parser.c',
'ffmpeg/libavcodec/takdec.c',
'ffmpeg/libavcodec/takdsp.c',
'ffmpeg/libavcodec/targa.c',
'ffmpeg/libavcodec/targa_y216dec.c',
'ffmpeg/libavcodec/targaenc.c',
'ffmpeg/libavcodec/tdsc.c',
'ffmpeg/libavcodec/textdec.c',
'ffmpeg/libavcodec/texturedsp.c',
'ffmpeg/libavcodec/tiertexseqv.c',
'ffmpeg/libavcodec/tiff.c',
'ffmpeg/libavcodec/tiff_common.c',
'ffmpeg/libavcodec/tiff_data.c',
'ffmpeg/libavcodec/tiffenc.c',
'ffmpeg/libavcodec/tmv.c',
'ffmpeg/libavcodec/tpeldsp.c',
'ffmpeg/libavcodec/truemotion1.c',
'ffmpeg/libavcodec/truemotion2.c',
'ffmpeg/libavcodec/truemotion2rt.c',
'ffmpeg/libavcodec/truespeech.c',
'ffmpeg/libavcodec/tscc.c',
'ffmpeg/libavcodec/tscc2.c',
'ffmpeg/libavcodec/tta.c',
'ffmpeg/libavcodec/ttadata.c',
'ffmpeg/libavcodec/ttadsp.c',
'ffmpeg/libavcodec/ttaenc.c',
'ffmpeg/libavcodec/twinvq.c',
'ffmpeg/libavcodec/twinvqdec.c',
'ffmpeg/libavcodec/txd.c',
'ffmpeg/libavcodec/ulti.c',
'ffmpeg/libavcodec/utils.c',
'ffmpeg/libavcodec/utvideo.c',
'ffmpeg/libavcodec/utvideodec.c',
'ffmpeg/libavcodec/utvideoenc.c',
'ffmpeg/libavcodec/v210dec.c',
'ffmpeg/libavcodec/v210enc.c',
'ffmpeg/libavcodec/v210x.c',
'ffmpeg/libavcodec/v308dec.c',
'ffmpeg/libavcodec/v308enc.c',
'ffmpeg/libavcodec/v408dec.c',
'ffmpeg/libavcodec/v408enc.c',
'ffmpeg/libavcodec/v410dec.c',
'ffmpeg/libavcodec/v410enc.c',
'ffmpeg/libavcodec/vb.c',
'ffmpeg/libavcodec/vble.c',
'ffmpeg/libavcodec/vc1.c',
'ffmpeg/libavcodec/vc1_block.c',
'ffmpeg/libavcodec/vc1_loopfilter.c',
'ffmpeg/libavcodec/vc1_mc.c',
'ffmpeg/libavcodec/vc1_parser.c',
'ffmpeg/libavcodec/vc1_pred.c',
'ffmpeg/libavcodec/vc1data.c',
'ffmpeg/libavcodec/vc1dec.c',
'ffmpeg/libavcodec/vc1dsp.c',
'ffmpeg/libavcodec/vc2enc.c',
'ffmpeg/libavcodec/vc2enc_dwt.c',
'ffmpeg/libavcodec/vcr1.c',
'ffmpeg/libavcodec/videodsp.c',
'ffmpeg/libavcodec/vima.c',
'ffmpeg/libavcodec/vmdaudio.c',
'ffmpeg/libavcodec/vmdvideo.c',
'ffmpeg/libavcodec/vmnc.c',
'ffmpeg/libavcodec/vorbis.c',
'ffmpeg/libavcodec/vorbis_data.c',
'ffmpeg/libavcodec/vorbis_parser.c',
'ffmpeg/libavcodec/vorbisdec.c',
'ffmpeg/libavcodec/vorbisdsp.c',
'ffmpeg/libavcodec/vorbisenc.c',
'ffmpeg/libavcodec/vp3.c',
'ffmpeg/libavcodec/vp3_parser.c',
'ffmpeg/libavcodec/vp3dsp.c',
'ffmpeg/libavcodec/vp5.c',
'ffmpeg/libavcodec/vp56.c',
'ffmpeg/libavcodec/vp56data.c',
'ffmpeg/libavcodec/vp56dsp.c',
'ffmpeg/libavcodec/vp56rac.c',
'ffmpeg/libavcodec/vp6.c',
'ffmpeg/libavcodec/vp6dsp.c',
'ffmpeg/libavcodec/vp8.c',
'ffmpeg/libavcodec/vp8_parser.c',
'ffmpeg/libavcodec/vp8dsp.c',
'ffmpeg/libavcodec/vp9.c',
'ffmpeg/libavcodec/vp9_parser.c',
'ffmpeg/libavcodec/vp9_superframe_bsf.c',
'ffmpeg/libavcodec/vp9dsp.c',
'ffmpeg/libavcodec/vp9dsp_10bpp.c',
'ffmpeg/libavcodec/vp9dsp_12bpp.c',
'ffmpeg/libavcodec/vp9dsp_8bpp.c',
'ffmpeg/libavcodec/vqavideo.c',
'ffmpeg/libavcodec/wavpack.c',
'ffmpeg/libavcodec/wavpackenc.c',
'ffmpeg/libavcodec/webp.c',
'ffmpeg/libavcodec/webvttdec.c',
'ffmpeg/libavcodec/webvttenc.c',
'ffmpeg/libavcodec/wma.c',
'ffmpeg/libavcodec/wma_common.c',
'ffmpeg/libavcodec/wma_freqs.c',
'ffmpeg/libavcodec/wmadec.c',
'ffmpeg/libavcodec/wmaenc.c',
'ffmpeg/libavcodec/wmalosslessdec.c',
'ffmpeg/libavcodec/wmaprodec.c',
'ffmpeg/libavcodec/wmavoice.c',
'ffmpeg/libavcodec/wmv2.c',
'ffmpeg/libavcodec/wmv2data.c',
'ffmpeg/libavcodec/wmv2dec.c',
'ffmpeg/libavcodec/wmv2dsp.c',
'ffmpeg/libavcodec/wmv2enc.c',
'ffmpeg/libavcodec/wnv1.c',
'ffmpeg/libavcodec/wrapped_avframe.c',
'ffmpeg/libavcodec/ws-snd1.c',
'ffmpeg/libavcodec/x86/aacpsdsp_init.c',
'ffmpeg/libavcodec/x86/ac3dsp_init.c',
'ffmpeg/libavcodec/x86/alacdsp_init.c',
'ffmpeg/libavcodec/x86/audiodsp_init.c',
'ffmpeg/libavcodec/x86/blockdsp_init.c',
'ffmpeg/libavcodec/x86/bswapdsp_init.c',
'ffmpeg/libavcodec/x86/cavsdsp.c',
'ffmpeg/libavcodec/x86/constants.c',
'ffmpeg/libavcodec/x86/dcadsp_init.c',
'ffmpeg/libavcodec/x86/dct_init.c',
'ffmpeg/libavcodec/x86/dirac_dwt_init.c',
'ffmpeg/libavcodec/x86/diracdsp_init.c',
'ffmpeg/libavcodec/x86/dnxhdenc_init.c',
'ffmpeg/libavcodec/x86/fdct.c',
'ffmpeg/libavcodec/x86/fdctdsp_init.c',
'ffmpeg/libavcodec/x86/fft_init.c',
'ffmpeg/libavcodec/x86/flacdsp_init.c',
'ffmpeg/libavcodec/x86/fmtconvert_init.c',
'ffmpeg/libavcodec/x86/g722dsp_init.c',
'ffmpeg/libavcodec/x86/h263dsp_init.c',
'ffmpeg/libavcodec/x86/h264_intrapred_init.c',
'ffmpeg/libavcodec/x86/h264_qpel.c',
'ffmpeg/libavcodec/x86/h264chroma_init.c',
'ffmpeg/libavcodec/x86/h264dsp_init.c',
'ffmpeg/libavcodec/x86/hevcdsp_init.c',
'ffmpeg/libavcodec/x86/hpeldsp_init.c',
'ffmpeg/libavcodec/x86/huffyuvdsp_init.c',
'ffmpeg/libavcodec/x86/huffyuvencdsp_mmx.c',
'ffmpeg/libavcodec/x86/idctdsp_init.c',
'ffmpeg/libavcodec/x86/jpeg2000dsp_init.c',
'ffmpeg/libavcodec/x86/lossless_audiodsp_init.c',
'ffmpeg/libavcodec/x86/lossless_videodsp_init.c',
'ffmpeg/libavcodec/x86/lpc.c',
'ffmpeg/libavcodec/x86/me_cmp_init.c',
'ffmpeg/libavcodec/x86/mlpdsp_init.c',
'ffmpeg/libavcodec/x86/mpegaudiodsp.c',
'ffmpeg/libavcodec/x86/mpegvideo.c',
'ffmpeg/libavcodec/x86/mpegvideodsp.c',
'ffmpeg/libavcodec/x86/mpegvideoenc.c',
'ffmpeg/libavcodec/x86/mpegvideoencdsp_init.c',
'ffmpeg/libavcodec/x86/pixblockdsp_init.c',
'ffmpeg/libavcodec/x86/pngdsp_init.c',
'ffmpeg/libavcodec/x86/proresdsp_init.c',
'ffmpeg/libavcodec/x86/qpeldsp_init.c',
'ffmpeg/libavcodec/x86/rv34dsp_init.c',
'ffmpeg/libavcodec/x86/rv40dsp_init.c',
'ffmpeg/libavcodec/x86/sbrdsp_init.c',
'ffmpeg/libavcodec/x86/simple_idct.c',
'ffmpeg/libavcodec/x86/snowdsp.c',
'ffmpeg/libavcodec/x86/svq1enc_init.c',
'ffmpeg/libavcodec/x86/synth_filter_init.c',
'ffmpeg/libavcodec/x86/takdsp_init.c',
'ffmpeg/libavcodec/x86/ttadsp_init.c',
'ffmpeg/libavcodec/x86/v210-init.c',
'ffmpeg/libavcodec/x86/v210enc_init.c',
'ffmpeg/libavcodec/x86/vc1dsp_init.c',
'ffmpeg/libavcodec/x86/vc1dsp_mmx.c',
'ffmpeg/libavcodec/x86/videodsp_init.c',
'ffmpeg/libavcodec/x86/vorbisdsp_init.c',
'ffmpeg/libavcodec/x86/vp3dsp_init.c',
'ffmpeg/libavcodec/x86/vp6dsp_init.c',
'ffmpeg/libavcodec/x86/vp8dsp_init.c',
'ffmpeg/libavcodec/x86/vp9dsp_init.c',
'ffmpeg/libavcodec/x86/vp9dsp_init_10bpp.c',
'ffmpeg/libavcodec/x86/vp9dsp_init_12bpp.c',
'ffmpeg/libavcodec/x86/vp9dsp_init_16bpp.c',
'ffmpeg/libavcodec/x86/xvididct_init.c',
'ffmpeg/libavcodec/xan.c',
'ffmpeg/libavcodec/xbmdec.c',
'ffmpeg/libavcodec/xbmenc.c',
'ffmpeg/libavcodec/xface.c',
'ffmpeg/libavcodec/xfacedec.c',
'ffmpeg/libavcodec/xfaceenc.c',
'ffmpeg/libavcodec/xiph.c',
'ffmpeg/libavcodec/xl.c',
'ffmpeg/libavcodec/xsubdec.c',
'ffmpeg/libavcodec/xsubenc.c',
'ffmpeg/libavcodec/xvididct.c',
'ffmpeg/libavcodec/xwddec.c',
'ffmpeg/libavcodec/xwdenc.c',
'ffmpeg/libavcodec/xxan.c',
'ffmpeg/libavcodec/y41pdec.c',
'ffmpeg/libavcodec/y41penc.c',
'ffmpeg/libavcodec/ylc.c',
'ffmpeg/libavcodec/yop.c',
'ffmpeg/libavcodec/yuv4dec.c',
'ffmpeg/libavcodec/yuv4enc.c',
'ffmpeg/libavcodec/zerocodec.c',
'ffmpeg/libavcodec/zmbv.c',
'ffmpeg/libavcodec/zmbvenc.c',
])
"""
my_module.add_optionnal_depend('vdpau', src_file=[
'ffmpeg/libavcodec/vdpau.c',
])
"""
my_module.compile_version("c", 1999, gnu=True)
my_module.add_path(os.path.join(tools.get_current_path(__file__), "ffmpeg"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "generated"))
my_module.add_flag('c', [
"-D_ISOC99_SOURCE",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-D_POSIX_C_SOURCE=200112",
"-D_XOPEN_SOURCE=600",
"-DZLIB_CONST",
"-DHAVE_AV_CONFIG_H",
"-D_GNU_SOURCE=1",
"-D_REENTRANT",
"-DPIC"
])
#-I/usr/include/SDL
my_module.add_flag('c', [
"-Wdeclaration-after-statement",
"-Wall",
"-Wdisabled-optimization",
"-Wpointer-arith",
"-Wredundant-decls",
"-Wwrite-strings",
"-Wtype-limits",
"-Wundef",
"-Wmissing-prototypes",
"-Wno-pointer-to-int-cast",
"-Wstrict-prototypes",
"-Wempty-body",
"-Wno-parentheses",
"-Wno-switch",
"-Wno-format-zero-length",
"-Wno-pointer-sign",
"-Wno-unused-const-variable",
"-fno-math-errno",
"-fno-signed-zeros",
"-Werror=format-security",
"-Werror=implicit-function-declaration",
"-Werror=missing-prototypes",
"-Werror=return-type",
"-Werror=vla",
"-Wformat",
"-fdiagnostics-color=auto",
"-Wno-maybe-uninitialized",
])
if "Linux" in target.get_type():
# TODO: Check the real impact ...
my_module.add_flag('link-dynamic', ["-Wl,-Bsymbolic"])
# add dependency of libraries:
my_module.add_depend('c')
my_module.add_depend('m')
my_module.add_depend('z')
my_module.add_depend('pthread')
return my_module

144
lutin_ffmpeg-avdevice.py Normal file
View File

@ -0,0 +1,144 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
def get_type():
return "LIBRARY"
def get_desc():
return "FFMPEG library"
def get_licence():
return "LGPL-2.1"
def get_compagny_type():
return "org"
def get_compagny_name():
return "ffmpeg"
def get_maintainer():
return "authors.txt"
def get_version():
return "version.txt"
# create the module
# @param[in] target reference on the Target that is currently build
# @param[in] module_name Name of the module that is extract from the file name (to be generic)
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
# add the file to compile:
my_module.add_src_file([
'ffmpeg/libavdevice/alldevices.c',
])
my_module.add_optionnal_depend('alsa', src_file=[
'ffmpeg/libavdevice/alsa.c',
'ffmpeg/libavdevice/alsa_dec.c',
'ffmpeg/libavdevice/alsa_enc.c',
])
my_module.add_src_file([
'ffmpeg/libavdevice/avdevice.c',
])
my_module.add_src_file([
'ffmpeg/libavdevice/dv1394.c',
])
my_module.add_src_file([
'ffmpeg/libavdevice/fbdev_common.c',
'ffmpeg/libavdevice/fbdev_dec.c',
'ffmpeg/libavdevice/fbdev_enc.c',
])
my_module.add_optionnal_depend('jack', src_file=[
'ffmpeg/libavdevice/jack.c',
])
my_module.add_src_file([
'ffmpeg/libavdevice/lavfi.c',
])
my_module.add_src_file([
'ffmpeg/libavdevice/oss.c',
'ffmpeg/libavdevice/oss_dec.c',
'ffmpeg/libavdevice/oss_enc.c',
])
my_module.add_optionnal_depend('sdl', src_file=[
'ffmpeg/libavdevice/sdl.c',
])
my_module.add_src_file([
'ffmpeg/libavdevice/timefilter.c',
'ffmpeg/libavdevice/utils.c',
])
my_module.add_src_file([
'ffmpeg/libavdevice/v4l2-common.c',
'ffmpeg/libavdevice/v4l2.c',
'ffmpeg/libavdevice/v4l2enc.c',
])
my_module.add_optionnal_depend('xcb', src_file=[
'ffmpeg/libavdevice/xcbgrab.c'
])
my_module.add_optionnal_depend('X11', src_file=[
'ffmpeg/libavdevice/xv.c'
])
"""
my_module.add_header_file([
'module-name/file1.h',
'module-name/file2.h'
])
"""
my_module.compile_version("c", 1999, gnu=True)
my_module.add_path(os.path.join(tools.get_current_path(__file__), "ffmpeg"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "generated"))
my_module.add_flag('c', [
"-D_ISOC99_SOURCE",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-D_POSIX_C_SOURCE=200112",
"-D_XOPEN_SOURCE=600",
"-DZLIB_CONST",
"-DHAVE_AV_CONFIG_H",
"-D_GNU_SOURCE=1",
"-D_REENTRANT",
"-DPIC",
])
#-I/usr/include/SDL
my_module.add_flag('c', [
"-Wdeclaration-after-statement",
"-Wall",
"-Wdisabled-optimization",
"-Wpointer-arith",
"-Wredundant-decls",
"-Wwrite-strings",
"-Wtype-limits",
"-Wundef",
"-Wmissing-prototypes",
"-Wno-pointer-to-int-cast",
"-Wstrict-prototypes",
"-Wempty-body",
"-Wno-parentheses",
"-Wno-switch",
"-Wno-format-zero-length",
"-Wno-pointer-sign",
"-Wno-unused-const-variable",
"-fno-math-errno",
"-fno-signed-zeros",
"-Werror=format-security",
"-Werror=implicit-function-declaration",
"-Werror=missing-prototypes",
"-Werror=return-type",
"-Werror=vla",
"-Wformat",
"-fdiagnostics-color=auto",
"-Wno-maybe-uninitialized",
])
if "Linux" in target.get_type():
# TODO: Check the real impact ...
my_module.add_flag('link-dynamic', ["-Wl,-Bsymbolic"])
# add dependency of libraries:
my_module.add_depend('c')
my_module.add_depend('m')
my_module.add_depend('z')
my_module.add_depend('pthread')
return my_module

309
lutin_ffmpeg-avfilter.py Normal file
View File

@ -0,0 +1,309 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
def get_type():
return "LIBRARY"
def get_desc():
return "FFMPEG library"
def get_licence():
return "LGPL-2.1"
def get_compagny_type():
return "org"
def get_compagny_name():
return "ffmpeg"
def get_maintainer():
return "authors.txt"
def get_version():
return "version.txt"
# create the module
# @param[in] target reference on the Target that is currently build
# @param[in] module_name Name of the module that is extract from the file name (to be generic)
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
# add the file to compile:
my_module.add_src_file([
'ffmpeg/libavfilter/aeval.c',
'ffmpeg/libavfilter/af_adelay.c',
'ffmpeg/libavfilter/af_aecho.c',
'ffmpeg/libavfilter/af_aemphasis.c',
'ffmpeg/libavfilter/af_afade.c',
'ffmpeg/libavfilter/af_afftfilt.c',
'ffmpeg/libavfilter/af_aformat.c',
'ffmpeg/libavfilter/af_agate.c',
'ffmpeg/libavfilter/af_alimiter.c',
'ffmpeg/libavfilter/af_amerge.c',
'ffmpeg/libavfilter/af_amix.c',
'ffmpeg/libavfilter/af_anequalizer.c',
'ffmpeg/libavfilter/af_anull.c',
'ffmpeg/libavfilter/af_apad.c',
'ffmpeg/libavfilter/af_aphaser.c',
'ffmpeg/libavfilter/af_apulsator.c',
'ffmpeg/libavfilter/af_aresample.c',
'ffmpeg/libavfilter/af_asetnsamples.c',
'ffmpeg/libavfilter/af_asetrate.c',
'ffmpeg/libavfilter/af_ashowinfo.c',
'ffmpeg/libavfilter/af_astats.c',
'ffmpeg/libavfilter/af_atempo.c',
'ffmpeg/libavfilter/af_biquads.c',
'ffmpeg/libavfilter/af_channelmap.c',
'ffmpeg/libavfilter/af_channelsplit.c',
'ffmpeg/libavfilter/af_chorus.c',
'ffmpeg/libavfilter/af_compand.c',
'ffmpeg/libavfilter/af_compensationdelay.c',
'ffmpeg/libavfilter/af_dcshift.c',
'ffmpeg/libavfilter/af_dynaudnorm.c',
'ffmpeg/libavfilter/af_earwax.c',
'ffmpeg/libavfilter/af_extrastereo.c',
'ffmpeg/libavfilter/af_firequalizer.c',
'ffmpeg/libavfilter/af_flanger.c',
'ffmpeg/libavfilter/af_hdcd.c',
'ffmpeg/libavfilter/af_join.c',
'ffmpeg/libavfilter/af_pan.c',
'ffmpeg/libavfilter/af_replaygain.c',
'ffmpeg/libavfilter/af_sidechaincompress.c',
'ffmpeg/libavfilter/af_silencedetect.c',
'ffmpeg/libavfilter/af_silenceremove.c',
'ffmpeg/libavfilter/af_stereotools.c',
'ffmpeg/libavfilter/af_stereowiden.c',
'ffmpeg/libavfilter/af_tremolo.c',
'ffmpeg/libavfilter/af_vibrato.c',
'ffmpeg/libavfilter/af_volume.c',
'ffmpeg/libavfilter/af_volumedetect.c',
'ffmpeg/libavfilter/allfilters.c',
'ffmpeg/libavfilter/asink_anullsink.c',
'ffmpeg/libavfilter/asrc_anoisesrc.c',
'ffmpeg/libavfilter/asrc_anullsrc.c',
'ffmpeg/libavfilter/asrc_sine.c',
'ffmpeg/libavfilter/audio.c',
'ffmpeg/libavfilter/avf_ahistogram.c',
'ffmpeg/libavfilter/avf_aphasemeter.c',
'ffmpeg/libavfilter/avf_avectorscope.c',
'ffmpeg/libavfilter/avf_concat.c',
'ffmpeg/libavfilter/avf_showcqt.c',
'ffmpeg/libavfilter/avf_showfreqs.c',
'ffmpeg/libavfilter/avf_showspectrum.c',
'ffmpeg/libavfilter/avf_showvolume.c',
'ffmpeg/libavfilter/avf_showwaves.c',
'ffmpeg/libavfilter/avfilter.c',
'ffmpeg/libavfilter/avfiltergraph.c',
'ffmpeg/libavfilter/bbox.c',
'ffmpeg/libavfilter/buffersink.c',
'ffmpeg/libavfilter/buffersrc.c',
'ffmpeg/libavfilter/colorspacedsp.c',
'ffmpeg/libavfilter/drawutils.c',
'ffmpeg/libavfilter/dualinput.c',
'ffmpeg/libavfilter/f_bench.c',
'ffmpeg/libavfilter/f_drawgraph.c',
'ffmpeg/libavfilter/f_interleave.c',
'ffmpeg/libavfilter/f_loop.c',
'ffmpeg/libavfilter/f_metadata.c',
'ffmpeg/libavfilter/f_perms.c',
'ffmpeg/libavfilter/f_realtime.c',
'ffmpeg/libavfilter/f_reverse.c',
'ffmpeg/libavfilter/f_select.c',
'ffmpeg/libavfilter/f_sendcmd.c',
'ffmpeg/libavfilter/f_streamselect.c',
'ffmpeg/libavfilter/fifo.c',
'ffmpeg/libavfilter/formats.c',
'ffmpeg/libavfilter/framepool.c',
'ffmpeg/libavfilter/framesync.c',
'ffmpeg/libavfilter/generate_wave_table.c',
'ffmpeg/libavfilter/graphdump.c',
'ffmpeg/libavfilter/graphparser.c',
'ffmpeg/libavfilter/lavfutils.c',
'ffmpeg/libavfilter/lswsutils.c',
'ffmpeg/libavfilter/opencl_allkernels.c',
'ffmpeg/libavfilter/pthread.c',
'ffmpeg/libavfilter/setpts.c',
'ffmpeg/libavfilter/settb.c',
'ffmpeg/libavfilter/split.c',
'ffmpeg/libavfilter/src_movie.c',
'ffmpeg/libavfilter/transform.c',
'ffmpeg/libavfilter/trim.c',
'ffmpeg/libavfilter/vaf_spectrumsynth.c',
'ffmpeg/libavfilter/vf_alphamerge.c',
'ffmpeg/libavfilter/vf_aspect.c',
'ffmpeg/libavfilter/vf_atadenoise.c',
'ffmpeg/libavfilter/vf_bbox.c',
'ffmpeg/libavfilter/vf_blackdetect.c',
'ffmpeg/libavfilter/vf_blend.c',
'ffmpeg/libavfilter/vf_bwdif.c',
'ffmpeg/libavfilter/vf_chromakey.c',
'ffmpeg/libavfilter/vf_ciescope.c',
'ffmpeg/libavfilter/vf_codecview.c',
'ffmpeg/libavfilter/vf_colorbalance.c',
'ffmpeg/libavfilter/vf_colorchannelmixer.c',
'ffmpeg/libavfilter/vf_colorkey.c',
'ffmpeg/libavfilter/vf_colorlevels.c',
'ffmpeg/libavfilter/vf_colorspace.c',
'ffmpeg/libavfilter/vf_convolution.c',
'ffmpeg/libavfilter/vf_copy.c',
'ffmpeg/libavfilter/vf_crop.c',
'ffmpeg/libavfilter/vf_curves.c',
'ffmpeg/libavfilter/vf_datascope.c',
'ffmpeg/libavfilter/vf_dctdnoiz.c',
'ffmpeg/libavfilter/vf_deband.c',
'ffmpeg/libavfilter/vf_decimate.c',
'ffmpeg/libavfilter/vf_dejudder.c',
'ffmpeg/libavfilter/vf_deshake.c',
'ffmpeg/libavfilter/vf_detelecine.c',
'ffmpeg/libavfilter/vf_displace.c',
'ffmpeg/libavfilter/vf_drawbox.c',
'ffmpeg/libavfilter/vf_edgedetect.c',
'ffmpeg/libavfilter/vf_elbg.c',
'ffmpeg/libavfilter/vf_extractplanes.c',
'ffmpeg/libavfilter/vf_fade.c',
'ffmpeg/libavfilter/vf_fftfilt.c',
'ffmpeg/libavfilter/vf_field.c',
'ffmpeg/libavfilter/vf_fieldhint.c',
'ffmpeg/libavfilter/vf_fieldmatch.c',
'ffmpeg/libavfilter/vf_fieldorder.c',
'ffmpeg/libavfilter/vf_format.c',
'ffmpeg/libavfilter/vf_fps.c',
'ffmpeg/libavfilter/vf_framepack.c',
'ffmpeg/libavfilter/vf_framerate.c',
'ffmpeg/libavfilter/vf_framestep.c',
'ffmpeg/libavfilter/vf_gradfun.c',
'ffmpeg/libavfilter/vf_hflip.c',
'ffmpeg/libavfilter/vf_histogram.c',
'ffmpeg/libavfilter/vf_hqx.c',
'ffmpeg/libavfilter/vf_hue.c',
'ffmpeg/libavfilter/vf_hwdownload.c',
'ffmpeg/libavfilter/vf_hwupload.c',
'ffmpeg/libavfilter/vf_idet.c',
'ffmpeg/libavfilter/vf_il.c',
'ffmpeg/libavfilter/vf_lenscorrection.c',
'ffmpeg/libavfilter/vf_lut.c',
'ffmpeg/libavfilter/vf_lut3d.c',
'ffmpeg/libavfilter/vf_maskedmerge.c',
'ffmpeg/libavfilter/vf_mergeplanes.c',
'ffmpeg/libavfilter/vf_neighbor.c',
'ffmpeg/libavfilter/vf_noise.c',
'ffmpeg/libavfilter/vf_null.c',
'ffmpeg/libavfilter/vf_overlay.c',
'ffmpeg/libavfilter/vf_pad.c',
'ffmpeg/libavfilter/vf_palettegen.c',
'ffmpeg/libavfilter/vf_paletteuse.c',
'ffmpeg/libavfilter/vf_pixdesctest.c',
'ffmpeg/libavfilter/vf_psnr.c',
'ffmpeg/libavfilter/vf_qp.c',
'ffmpeg/libavfilter/vf_random.c',
'ffmpeg/libavfilter/vf_readvitc.c',
'ffmpeg/libavfilter/vf_remap.c',
'ffmpeg/libavfilter/vf_removegrain.c',
'ffmpeg/libavfilter/vf_removelogo.c',
'ffmpeg/libavfilter/vf_rotate.c',
'ffmpeg/libavfilter/vf_scale.c',
'ffmpeg/libavfilter/vf_selectivecolor.c',
'ffmpeg/libavfilter/vf_separatefields.c',
'ffmpeg/libavfilter/vf_setfield.c',
'ffmpeg/libavfilter/vf_showinfo.c',
'ffmpeg/libavfilter/vf_showpalette.c',
'ffmpeg/libavfilter/vf_shuffleframes.c',
'ffmpeg/libavfilter/vf_shuffleplanes.c',
'ffmpeg/libavfilter/vf_signalstats.c',
'ffmpeg/libavfilter/vf_ssim.c',
'ffmpeg/libavfilter/vf_stack.c',
'ffmpeg/libavfilter/vf_swaprect.c',
'ffmpeg/libavfilter/vf_swapuv.c',
'ffmpeg/libavfilter/vf_telecine.c',
'ffmpeg/libavfilter/vf_thumbnail.c',
'ffmpeg/libavfilter/vf_tile.c',
'ffmpeg/libavfilter/vf_transpose.c',
'ffmpeg/libavfilter/vf_unsharp.c',
'ffmpeg/libavfilter/vf_vectorscope.c',
'ffmpeg/libavfilter/vf_vflip.c',
'ffmpeg/libavfilter/vf_vignette.c',
'ffmpeg/libavfilter/vf_w3fdif.c',
'ffmpeg/libavfilter/vf_waveform.c',
'ffmpeg/libavfilter/vf_xbr.c',
'ffmpeg/libavfilter/vf_yadif.c',
'ffmpeg/libavfilter/vf_zoompan.c',
'ffmpeg/libavfilter/video.c',
'ffmpeg/libavfilter/vsink_nullsink.c',
'ffmpeg/libavfilter/vsrc_cellauto.c',
'ffmpeg/libavfilter/vsrc_life.c',
'ffmpeg/libavfilter/vsrc_mandelbrot.c',
'ffmpeg/libavfilter/vsrc_testsrc.c',
'ffmpeg/libavfilter/window_func.c',
'ffmpeg/libavfilter/x86/af_volume_init.c',
'ffmpeg/libavfilter/x86/avf_showcqt_init.c',
'ffmpeg/libavfilter/x86/colorspacedsp_init.c',
'ffmpeg/libavfilter/x86/vf_blend_init.c',
'ffmpeg/libavfilter/x86/vf_bwdif_init.c',
'ffmpeg/libavfilter/x86/vf_gradfun_init.c',
'ffmpeg/libavfilter/x86/vf_idet_init.c',
'ffmpeg/libavfilter/x86/vf_maskedmerge_init.c',
'ffmpeg/libavfilter/x86/vf_noise.c',
'ffmpeg/libavfilter/x86/vf_psnr_init.c',
'ffmpeg/libavfilter/x86/vf_removegrain_init.c',
'ffmpeg/libavfilter/x86/vf_ssim_init.c',
'ffmpeg/libavfilter/x86/vf_w3fdif_init.c',
'ffmpeg/libavfilter/x86/vf_yadif_init.c',
])
my_module.compile_version("c", 1999, gnu=True)
my_module.add_path(os.path.join(tools.get_current_path(__file__), "ffmpeg"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "generated"))
my_module.add_flag('c', [
"-D_ISOC99_SOURCE",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-D_POSIX_C_SOURCE=200112",
"-D_XOPEN_SOURCE=600",
"-DZLIB_CONST",
"-DHAVE_AV_CONFIG_H",
"-D_GNU_SOURCE=1",
"-D_REENTRANT",
"-DPIC",
])
#-I/usr/include/SDL
my_module.add_flag('c', [
"-Wdeclaration-after-statement",
"-Wall",
"-Wdisabled-optimization",
"-Wpointer-arith",
"-Wredundant-decls",
"-Wwrite-strings",
"-Wtype-limits",
"-Wundef",
"-Wmissing-prototypes",
"-Wno-pointer-to-int-cast",
"-Wstrict-prototypes",
"-Wempty-body",
"-Wno-parentheses",
"-Wno-switch",
"-Wno-format-zero-length",
"-Wno-pointer-sign",
"-Wno-unused-const-variable",
"-fno-math-errno",
"-fno-signed-zeros",
"-Werror=format-security",
"-Werror=implicit-function-declaration",
"-Werror=missing-prototypes",
"-Werror=return-type",
"-Werror=vla",
"-Wformat",
"-fdiagnostics-color=auto",
"-Wno-maybe-uninitialized",
])
if "Linux" in target.get_type():
# TODO: Check the real impact ...
my_module.add_flag('link-dynamic', ["-Wl,-Bsymbolic"])
# add dependency of libraries:
my_module.add_depend('c')
my_module.add_depend('m')
my_module.add_depend('z')
my_module.add_depend('pthread')
return my_module

517
lutin_ffmpeg-avformat.py Normal file
View File

@ -0,0 +1,517 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
def get_type():
return "LIBRARY"
def get_desc():
return "FFMPEG library"
def get_licence():
return "LGPL-2.1"
def get_compagny_type():
return "org"
def get_compagny_name():
return "ffmpeg"
def get_maintainer():
return "authors.txt"
def get_version():
return "version.txt"
# create the module
# @param[in] target reference on the Target that is currently build
# @param[in] module_name Name of the module that is extract from the file name (to be generic)
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
# add the file to compile:
my_module.add_src_file([
'ffmpeg/libavformat/3dostr.c',
'ffmpeg/libavformat/4xm.c',
'ffmpeg/libavformat/a64.c',
'ffmpeg/libavformat/aacdec.c',
'ffmpeg/libavformat/aadec.c',
'ffmpeg/libavformat/ac3dec.c',
'ffmpeg/libavformat/acm.c',
'ffmpeg/libavformat/act.c',
'ffmpeg/libavformat/adp.c',
'ffmpeg/libavformat/ads.c',
'ffmpeg/libavformat/adtsenc.c',
'ffmpeg/libavformat/adxdec.c',
'ffmpeg/libavformat/aea.c',
'ffmpeg/libavformat/afc.c',
'ffmpeg/libavformat/aiffdec.c',
'ffmpeg/libavformat/aiffenc.c',
'ffmpeg/libavformat/aixdec.c',
'ffmpeg/libavformat/allformats.c',
'ffmpeg/libavformat/amr.c',
'ffmpeg/libavformat/anm.c',
'ffmpeg/libavformat/apc.c',
'ffmpeg/libavformat/ape.c',
'ffmpeg/libavformat/apetag.c',
'ffmpeg/libavformat/apngdec.c',
'ffmpeg/libavformat/apngenc.c',
'ffmpeg/libavformat/aqtitledec.c',
'ffmpeg/libavformat/asf.c',
'ffmpeg/libavformat/asfcrypt.c',
'ffmpeg/libavformat/asfdec_f.c',
'ffmpeg/libavformat/asfdec_o.c',
'ffmpeg/libavformat/asfenc.c',
'ffmpeg/libavformat/assdec.c',
'ffmpeg/libavformat/assenc.c',
'ffmpeg/libavformat/ast.c',
'ffmpeg/libavformat/astdec.c',
'ffmpeg/libavformat/astenc.c',
'ffmpeg/libavformat/async.c',
'ffmpeg/libavformat/au.c',
'ffmpeg/libavformat/audiointerleave.c',
'ffmpeg/libavformat/avc.c',
'ffmpeg/libavformat/avidec.c',
'ffmpeg/libavformat/avienc.c',
'ffmpeg/libavformat/avio.c',
'ffmpeg/libavformat/aviobuf.c',
'ffmpeg/libavformat/avlanguage.c',
'ffmpeg/libavformat/avr.c',
'ffmpeg/libavformat/avs.c',
'ffmpeg/libavformat/bethsoftvid.c',
'ffmpeg/libavformat/bfi.c',
'ffmpeg/libavformat/bink.c',
'ffmpeg/libavformat/bintext.c',
'ffmpeg/libavformat/bit.c',
'ffmpeg/libavformat/bmv.c',
'ffmpeg/libavformat/boadec.c',
'ffmpeg/libavformat/brstm.c',
'ffmpeg/libavformat/c93.c',
'ffmpeg/libavformat/cache.c',
'ffmpeg/libavformat/caf.c',
'ffmpeg/libavformat/cafdec.c',
'ffmpeg/libavformat/cafenc.c',
'ffmpeg/libavformat/cavsvideodec.c',
'ffmpeg/libavformat/cdg.c',
'ffmpeg/libavformat/cdxl.c',
'ffmpeg/libavformat/cinedec.c',
'ffmpeg/libavformat/concat.c',
'ffmpeg/libavformat/concatdec.c',
'ffmpeg/libavformat/crcenc.c',
'ffmpeg/libavformat/crypto.c',
'ffmpeg/libavformat/cutils.c',
'ffmpeg/libavformat/dashenc.c',
'ffmpeg/libavformat/data_uri.c',
'ffmpeg/libavformat/dauddec.c',
'ffmpeg/libavformat/daudenc.c',
'ffmpeg/libavformat/dcstr.c',
'ffmpeg/libavformat/dfa.c',
'ffmpeg/libavformat/diracdec.c',
'ffmpeg/libavformat/dnxhddec.c',
'ffmpeg/libavformat/dsfdec.c',
'ffmpeg/libavformat/dsicin.c',
'ffmpeg/libavformat/dss.c',
'ffmpeg/libavformat/dtsdec.c',
'ffmpeg/libavformat/dtshddec.c',
'ffmpeg/libavformat/dump.c',
'ffmpeg/libavformat/dv.c',
'ffmpeg/libavformat/dvbsub.c',
'ffmpeg/libavformat/dvbtxt.c',
'ffmpeg/libavformat/dvenc.c',
'ffmpeg/libavformat/dxa.c',
'ffmpeg/libavformat/eacdata.c',
'ffmpeg/libavformat/electronicarts.c',
'ffmpeg/libavformat/epafdec.c',
'ffmpeg/libavformat/ffmdec.c',
'ffmpeg/libavformat/ffmenc.c',
'ffmpeg/libavformat/ffmetadec.c',
'ffmpeg/libavformat/ffmetaenc.c',
'ffmpeg/libavformat/file.c',
'ffmpeg/libavformat/filmstripdec.c',
'ffmpeg/libavformat/filmstripenc.c',
'ffmpeg/libavformat/flac_picture.c',
'ffmpeg/libavformat/flacdec.c',
'ffmpeg/libavformat/flacenc.c',
'ffmpeg/libavformat/flacenc_header.c',
'ffmpeg/libavformat/flic.c',
'ffmpeg/libavformat/flvdec.c',
'ffmpeg/libavformat/flvenc.c',
'ffmpeg/libavformat/format.c',
'ffmpeg/libavformat/framecrcenc.c',
'ffmpeg/libavformat/framehash.c',
'ffmpeg/libavformat/frmdec.c',
'ffmpeg/libavformat/fsb.c',
'ffmpeg/libavformat/ftp.c',
'ffmpeg/libavformat/g722.c',
'ffmpeg/libavformat/g723_1.c',
'ffmpeg/libavformat/g729dec.c',
'ffmpeg/libavformat/genh.c',
'ffmpeg/libavformat/gif.c',
'ffmpeg/libavformat/gifdec.c',
'ffmpeg/libavformat/gopher.c',
'ffmpeg/libavformat/gsmdec.c',
'ffmpeg/libavformat/gxf.c',
'ffmpeg/libavformat/gxfenc.c',
'ffmpeg/libavformat/h261dec.c',
'ffmpeg/libavformat/h263dec.c',
'ffmpeg/libavformat/h264dec.c',
'ffmpeg/libavformat/hashenc.c',
'ffmpeg/libavformat/hdsenc.c',
'ffmpeg/libavformat/hevc.c',
'ffmpeg/libavformat/hevcdec.c',
'ffmpeg/libavformat/hls.c',
'ffmpeg/libavformat/hlsenc.c',
'ffmpeg/libavformat/hlsproto.c',
'ffmpeg/libavformat/hnm.c',
'ffmpeg/libavformat/http.c',
'ffmpeg/libavformat/httpauth.c',
'ffmpeg/libavformat/icecast.c',
'ffmpeg/libavformat/icodec.c',
'ffmpeg/libavformat/icoenc.c',
'ffmpeg/libavformat/id3v1.c',
'ffmpeg/libavformat/id3v2.c',
'ffmpeg/libavformat/id3v2enc.c',
'ffmpeg/libavformat/idcin.c',
'ffmpeg/libavformat/idroqdec.c',
'ffmpeg/libavformat/idroqenc.c',
'ffmpeg/libavformat/iff.c',
'ffmpeg/libavformat/ilbc.c',
'ffmpeg/libavformat/img2.c',
'ffmpeg/libavformat/img2_alias_pix.c',
'ffmpeg/libavformat/img2_brender_pix.c',
'ffmpeg/libavformat/img2dec.c',
'ffmpeg/libavformat/img2enc.c',
'ffmpeg/libavformat/ingenientdec.c',
'ffmpeg/libavformat/ipmovie.c',
'ffmpeg/libavformat/ircam.c',
'ffmpeg/libavformat/ircamdec.c',
'ffmpeg/libavformat/ircamenc.c',
'ffmpeg/libavformat/isom.c',
'ffmpeg/libavformat/iss.c',
'ffmpeg/libavformat/iv8.c',
'ffmpeg/libavformat/ivfdec.c',
'ffmpeg/libavformat/ivfenc.c',
'ffmpeg/libavformat/jacosubdec.c',
'ffmpeg/libavformat/jacosubenc.c',
'ffmpeg/libavformat/jvdec.c',
'ffmpeg/libavformat/latmenc.c',
'ffmpeg/libavformat/lmlm4.c',
'ffmpeg/libavformat/loasdec.c',
'ffmpeg/libavformat/lrc.c',
'ffmpeg/libavformat/lrcdec.c',
'ffmpeg/libavformat/lrcenc.c',
'ffmpeg/libavformat/lvfdec.c',
'ffmpeg/libavformat/lxfdec.c',
'ffmpeg/libavformat/m4vdec.c',
'ffmpeg/libavformat/matroska.c',
'ffmpeg/libavformat/matroskadec.c',
'ffmpeg/libavformat/matroskaenc.c',
'ffmpeg/libavformat/md5proto.c',
'ffmpeg/libavformat/metadata.c',
'ffmpeg/libavformat/mgsts.c',
'ffmpeg/libavformat/microdvddec.c',
'ffmpeg/libavformat/microdvdenc.c',
'ffmpeg/libavformat/mkvtimestamp_v2.c',
'ffmpeg/libavformat/mlpdec.c',
'ffmpeg/libavformat/mlvdec.c',
'ffmpeg/libavformat/mm.c',
'ffmpeg/libavformat/mmf.c',
'ffmpeg/libavformat/mms.c',
'ffmpeg/libavformat/mmsh.c',
'ffmpeg/libavformat/mmst.c',
'ffmpeg/libavformat/mov.c',
'ffmpeg/libavformat/mov_chan.c',
'ffmpeg/libavformat/movenc.c',
'ffmpeg/libavformat/movenccenc.c',
'ffmpeg/libavformat/movenchint.c',
'ffmpeg/libavformat/mp3dec.c',
'ffmpeg/libavformat/mp3enc.c',
'ffmpeg/libavformat/mpc.c',
'ffmpeg/libavformat/mpc8.c',
'ffmpeg/libavformat/mpeg.c',
'ffmpeg/libavformat/mpegenc.c',
'ffmpeg/libavformat/mpegts.c',
'ffmpeg/libavformat/mpegtsenc.c',
'ffmpeg/libavformat/mpegvideodec.c',
'ffmpeg/libavformat/mpjpeg.c',
'ffmpeg/libavformat/mpjpegdec.c',
'ffmpeg/libavformat/mpl2dec.c',
'ffmpeg/libavformat/mpsubdec.c',
'ffmpeg/libavformat/msf.c',
'ffmpeg/libavformat/msnwc_tcp.c',
'ffmpeg/libavformat/mtaf.c',
'ffmpeg/libavformat/mtv.c',
'ffmpeg/libavformat/musx.c',
'ffmpeg/libavformat/mux.c',
'ffmpeg/libavformat/mvdec.c',
'ffmpeg/libavformat/mvi.c',
'ffmpeg/libavformat/mxf.c',
'ffmpeg/libavformat/mxfdec.c',
'ffmpeg/libavformat/mxfenc.c',
'ffmpeg/libavformat/mxg.c',
'ffmpeg/libavformat/ncdec.c',
'ffmpeg/libavformat/network.c',
'ffmpeg/libavformat/nistspheredec.c',
'ffmpeg/libavformat/nsvdec.c',
'ffmpeg/libavformat/nullenc.c',
'ffmpeg/libavformat/nut.c',
'ffmpeg/libavformat/nutdec.c',
'ffmpeg/libavformat/nutenc.c',
'ffmpeg/libavformat/nuv.c',
'ffmpeg/libavformat/oggdec.c',
'ffmpeg/libavformat/oggenc.c',
'ffmpeg/libavformat/oggparsecelt.c',
'ffmpeg/libavformat/oggparsedaala.c',
'ffmpeg/libavformat/oggparsedirac.c',
'ffmpeg/libavformat/oggparseflac.c',
'ffmpeg/libavformat/oggparseogm.c',
'ffmpeg/libavformat/oggparseopus.c',
'ffmpeg/libavformat/oggparseskeleton.c',
'ffmpeg/libavformat/oggparsespeex.c',
'ffmpeg/libavformat/oggparsetheora.c',
'ffmpeg/libavformat/oggparsevorbis.c',
'ffmpeg/libavformat/oggparsevp8.c',
'ffmpeg/libavformat/oma.c',
'ffmpeg/libavformat/omadec.c',
'ffmpeg/libavformat/omaenc.c',
'ffmpeg/libavformat/options.c',
'ffmpeg/libavformat/os_support.c',
'ffmpeg/libavformat/paf.c',
'ffmpeg/libavformat/pcm.c',
'ffmpeg/libavformat/pcmdec.c',
'ffmpeg/libavformat/pcmenc.c',
'ffmpeg/libavformat/pjsdec.c',
'ffmpeg/libavformat/pmpdec.c',
'ffmpeg/libavformat/protocols.c',
'ffmpeg/libavformat/psxstr.c',
'ffmpeg/libavformat/pva.c',
'ffmpeg/libavformat/pvfdec.c',
'ffmpeg/libavformat/qcp.c',
'ffmpeg/libavformat/qtpalette.c',
'ffmpeg/libavformat/r3d.c',
'ffmpeg/libavformat/rawdec.c',
'ffmpeg/libavformat/rawenc.c',
'ffmpeg/libavformat/rawutils.c',
'ffmpeg/libavformat/rawvideodec.c',
'ffmpeg/libavformat/rdt.c',
'ffmpeg/libavformat/realtextdec.c',
'ffmpeg/libavformat/redspark.c',
'ffmpeg/libavformat/replaygain.c',
'ffmpeg/libavformat/riff.c',
'ffmpeg/libavformat/riffdec.c',
'ffmpeg/libavformat/riffenc.c',
'ffmpeg/libavformat/rl2.c',
'ffmpeg/libavformat/rm.c',
'ffmpeg/libavformat/rmdec.c',
'ffmpeg/libavformat/rmenc.c',
'ffmpeg/libavformat/rmsipr.c',
'ffmpeg/libavformat/rpl.c',
'ffmpeg/libavformat/rsd.c',
'ffmpeg/libavformat/rso.c',
'ffmpeg/libavformat/rsodec.c',
'ffmpeg/libavformat/rsoenc.c',
'ffmpeg/libavformat/rtmphttp.c',
'ffmpeg/libavformat/rtmppkt.c',
'ffmpeg/libavformat/rtmpproto.c',
'ffmpeg/libavformat/rtp.c',
'ffmpeg/libavformat/rtpdec.c',
'ffmpeg/libavformat/rtpdec_ac3.c',
'ffmpeg/libavformat/rtpdec_amr.c',
'ffmpeg/libavformat/rtpdec_asf.c',
'ffmpeg/libavformat/rtpdec_dv.c',
'ffmpeg/libavformat/rtpdec_g726.c',
'ffmpeg/libavformat/rtpdec_h261.c',
'ffmpeg/libavformat/rtpdec_h263.c',
'ffmpeg/libavformat/rtpdec_h263_rfc2190.c',
'ffmpeg/libavformat/rtpdec_h264.c',
'ffmpeg/libavformat/rtpdec_hevc.c',
'ffmpeg/libavformat/rtpdec_ilbc.c',
'ffmpeg/libavformat/rtpdec_jpeg.c',
'ffmpeg/libavformat/rtpdec_latm.c',
'ffmpeg/libavformat/rtpdec_mpa_robust.c',
'ffmpeg/libavformat/rtpdec_mpeg12.c',
'ffmpeg/libavformat/rtpdec_mpeg4.c',
'ffmpeg/libavformat/rtpdec_mpegts.c',
'ffmpeg/libavformat/rtpdec_qcelp.c',
'ffmpeg/libavformat/rtpdec_qdm2.c',
'ffmpeg/libavformat/rtpdec_qt.c',
'ffmpeg/libavformat/rtpdec_svq3.c',
'ffmpeg/libavformat/rtpdec_vc2hq.c',
'ffmpeg/libavformat/rtpdec_vp8.c',
'ffmpeg/libavformat/rtpdec_vp9.c',
'ffmpeg/libavformat/rtpdec_xiph.c',
'ffmpeg/libavformat/rtpenc.c',
'ffmpeg/libavformat/rtpenc_aac.c',
'ffmpeg/libavformat/rtpenc_amr.c',
'ffmpeg/libavformat/rtpenc_chain.c',
'ffmpeg/libavformat/rtpenc_h261.c',
'ffmpeg/libavformat/rtpenc_h263.c',
'ffmpeg/libavformat/rtpenc_h263_rfc2190.c',
'ffmpeg/libavformat/rtpenc_h264_hevc.c',
'ffmpeg/libavformat/rtpenc_jpeg.c',
'ffmpeg/libavformat/rtpenc_latm.c',
'ffmpeg/libavformat/rtpenc_mpegts.c',
'ffmpeg/libavformat/rtpenc_mpv.c',
'ffmpeg/libavformat/rtpenc_vc2hq.c',
'ffmpeg/libavformat/rtpenc_vp8.c',
'ffmpeg/libavformat/rtpenc_vp9.c',
'ffmpeg/libavformat/rtpenc_xiph.c',
'ffmpeg/libavformat/rtpproto.c',
'ffmpeg/libavformat/rtsp.c',
'ffmpeg/libavformat/rtspdec.c',
'ffmpeg/libavformat/rtspenc.c',
'ffmpeg/libavformat/samidec.c',
'ffmpeg/libavformat/sapdec.c',
'ffmpeg/libavformat/sapenc.c',
'ffmpeg/libavformat/sauce.c',
'ffmpeg/libavformat/sbgdec.c',
'ffmpeg/libavformat/sdp.c',
'ffmpeg/libavformat/sdr2.c',
'ffmpeg/libavformat/segafilm.c',
'ffmpeg/libavformat/segment.c',
'ffmpeg/libavformat/shortendec.c',
'ffmpeg/libavformat/sierravmd.c',
'ffmpeg/libavformat/siff.c',
'ffmpeg/libavformat/smacker.c',
'ffmpeg/libavformat/smjpeg.c',
'ffmpeg/libavformat/smjpegdec.c',
'ffmpeg/libavformat/smjpegenc.c',
'ffmpeg/libavformat/smoothstreamingenc.c',
'ffmpeg/libavformat/smush.c',
'ffmpeg/libavformat/sol.c',
'ffmpeg/libavformat/soxdec.c',
'ffmpeg/libavformat/soxenc.c',
'ffmpeg/libavformat/spdif.c',
'ffmpeg/libavformat/spdifdec.c',
'ffmpeg/libavformat/spdifenc.c',
'ffmpeg/libavformat/srtdec.c',
'ffmpeg/libavformat/srtenc.c',
'ffmpeg/libavformat/srtp.c',
'ffmpeg/libavformat/srtpproto.c',
'ffmpeg/libavformat/stldec.c',
'ffmpeg/libavformat/subfile.c',
'ffmpeg/libavformat/subtitles.c',
'ffmpeg/libavformat/subviewer1dec.c',
'ffmpeg/libavformat/subviewerdec.c',
'ffmpeg/libavformat/supdec.c',
'ffmpeg/libavformat/svag.c',
'ffmpeg/libavformat/swf.c',
'ffmpeg/libavformat/swfdec.c',
'ffmpeg/libavformat/swfenc.c',
'ffmpeg/libavformat/takdec.c',
'ffmpeg/libavformat/tcp.c',
'ffmpeg/libavformat/tedcaptionsdec.c',
'ffmpeg/libavformat/tee.c',
'ffmpeg/libavformat/thp.c',
'ffmpeg/libavformat/tiertexseq.c',
'ffmpeg/libavformat/tmv.c',
'ffmpeg/libavformat/tta.c',
'ffmpeg/libavformat/tty.c',
'ffmpeg/libavformat/txd.c',
'ffmpeg/libavformat/udp.c',
'ffmpeg/libavformat/uncodedframecrcenc.c',
'ffmpeg/libavformat/unix.c',
'ffmpeg/libavformat/url.c',
'ffmpeg/libavformat/urldecode.c',
'ffmpeg/libavformat/utils.c',
'ffmpeg/libavformat/v210.c',
'ffmpeg/libavformat/vag.c',
'ffmpeg/libavformat/vc1dec.c',
'ffmpeg/libavformat/vc1test.c',
'ffmpeg/libavformat/vc1testenc.c',
'ffmpeg/libavformat/vivo.c',
'ffmpeg/libavformat/voc.c',
'ffmpeg/libavformat/voc_packet.c',
'ffmpeg/libavformat/vocdec.c',
'ffmpeg/libavformat/vocenc.c',
'ffmpeg/libavformat/vorbiscomment.c',
'ffmpeg/libavformat/vpcc.c',
'ffmpeg/libavformat/vpk.c',
'ffmpeg/libavformat/vplayerdec.c',
'ffmpeg/libavformat/vqf.c',
'ffmpeg/libavformat/w64.c',
'ffmpeg/libavformat/wavdec.c',
'ffmpeg/libavformat/wavenc.c',
'ffmpeg/libavformat/wc3movie.c',
'ffmpeg/libavformat/webm_chunk.c',
'ffmpeg/libavformat/webmdashenc.c',
'ffmpeg/libavformat/webpenc.c',
'ffmpeg/libavformat/webvttdec.c',
'ffmpeg/libavformat/webvttenc.c',
'ffmpeg/libavformat/westwood_aud.c',
'ffmpeg/libavformat/westwood_vqa.c',
'ffmpeg/libavformat/wsddec.c',
'ffmpeg/libavformat/wtv_common.c',
'ffmpeg/libavformat/wtvdec.c',
'ffmpeg/libavformat/wtvenc.c',
'ffmpeg/libavformat/wv.c',
'ffmpeg/libavformat/wvdec.c',
'ffmpeg/libavformat/wvedec.c',
'ffmpeg/libavformat/wvenc.c',
'ffmpeg/libavformat/xa.c',
'ffmpeg/libavformat/xmv.c',
'ffmpeg/libavformat/xvag.c',
'ffmpeg/libavformat/xwma.c',
'ffmpeg/libavformat/yop.c',
'ffmpeg/libavformat/yuv4mpegdec.c',
'ffmpeg/libavformat/yuv4mpegenc.c',
])
my_module.compile_version("c", 1999, gnu=True)
my_module.add_path(os.path.join(tools.get_current_path(__file__), "ffmpeg"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "generated"))
my_module.add_flag('c', [
"-D_ISOC99_SOURCE",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-D_POSIX_C_SOURCE=200112",
"-D_XOPEN_SOURCE=600",
"-DZLIB_CONST",
"-DHAVE_AV_CONFIG_H",
"-D_GNU_SOURCE=1",
"-D_REENTRANT",
"-DPIC",
])
#-I/usr/include/SDL
my_module.add_flag('c', [
"-Wdeclaration-after-statement",
"-Wall",
"-Wdisabled-optimization",
"-Wpointer-arith",
"-Wredundant-decls",
"-Wwrite-strings",
"-Wtype-limits",
"-Wundef",
"-Wmissing-prototypes",
"-Wno-pointer-to-int-cast",
"-Wstrict-prototypes",
"-Wempty-body",
"-Wno-parentheses",
"-Wno-switch",
"-Wno-format-zero-length",
"-Wno-pointer-sign",
"-Wno-unused-const-variable",
"-fno-math-errno",
"-fno-signed-zeros",
"-Werror=format-security",
"-Werror=implicit-function-declaration",
"-Werror=missing-prototypes",
"-Werror=return-type",
"-Werror=vla",
"-Wformat",
"-fdiagnostics-color=auto",
"-Wno-maybe-uninitialized",
])
if "Linux" in target.get_type():
# TODO: Check the real impact ...
my_module.add_flag('link-dynamic', ["-Wl,-Bsymbolic"])
# add dependency of libraries:
my_module.add_depend('c')
my_module.add_depend('m')
my_module.add_depend('z')
my_module.add_depend('pthread')
my_module.add_depend('rpc')
my_module.add_depend('arpa')
return my_module

View File

@ -0,0 +1,102 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
def get_type():
return "LIBRARY"
def get_desc():
return "FFMPEG library"
def get_licence():
return "LGPL-2.1"
def get_compagny_type():
return "org"
def get_compagny_name():
return "ffmpeg"
def get_maintainer():
return "authors.txt"
def get_version():
return "version.txt"
# create the module
# @param[in] target reference on the Target that is currently build
# @param[in] module_name Name of the module that is extract from the file name (to be generic)
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
# add the file to compile:
my_module.add_src_file([
'ffmpeg/libswresample/audioconvert.c',
'ffmpeg/libswresample/dither.c',
'ffmpeg/libswresample/options.c',
'ffmpeg/libswresample/rematrix.c',
'ffmpeg/libswresample/resample.c',
'ffmpeg/libswresample/resample_dsp.c',
'ffmpeg/libswresample/swresample.c',
'ffmpeg/libswresample/swresample_frame.c',
'ffmpeg/libswresample/x86/audio_convert_init.c',
'ffmpeg/libswresample/x86/rematrix_init.c',
'ffmpeg/libswresample/x86/resample_init.c',
])
my_module.compile_version("c", 1999, gnu=True)
my_module.add_path(os.path.join(tools.get_current_path(__file__), "ffmpeg"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "generated"))
my_module.add_flag('c', [
"-D_ISOC99_SOURCE",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-D_POSIX_C_SOURCE=200112",
"-D_XOPEN_SOURCE=600",
"-DZLIB_CONST",
"-DHAVE_AV_CONFIG_H",
"-D_GNU_SOURCE=1",
"-D_REENTRANT",
"-DPIC",
])
#-I/usr/include/SDL
my_module.add_flag('c', [
"-Wdeclaration-after-statement",
"-Wall",
"-Wdisabled-optimization",
"-Wpointer-arith",
"-Wredundant-decls",
"-Wwrite-strings",
"-Wtype-limits",
"-Wundef",
"-Wmissing-prototypes",
"-Wno-pointer-to-int-cast",
"-Wstrict-prototypes",
"-Wempty-body",
"-Wno-parentheses",
"-Wno-switch",
"-Wno-format-zero-length",
"-Wno-pointer-sign",
"-Wno-unused-const-variable",
"-fno-math-errno",
"-fno-signed-zeros",
"-Werror=format-security",
"-Werror=implicit-function-declaration",
"-Werror=missing-prototypes",
"-Werror=return-type",
"-Werror=vla",
"-Wformat",
"-fdiagnostics-color=auto",
"-Wno-maybe-uninitialized",
])
if "Linux" in target.get_type():
# TODO: Check the real impact ...
my_module.add_flag('link-dynamic', ["-Wl,-Bsymbolic"])
# add dependency of libraries:
my_module.add_depend('c')
my_module.add_depend('m')
my_module.add_depend('z')
my_module.add_depend('pthread')
return my_module

109
lutin_ffmpeg-avswscale.py Normal file
View File

@ -0,0 +1,109 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
def get_type():
return "LIBRARY"
def get_desc():
return "FFMPEG library"
def get_licence():
return "LGPL-2.1"
def get_compagny_type():
return "org"
def get_compagny_name():
return "ffmpeg"
def get_maintainer():
return "authors.txt"
def get_version():
return "version.txt"
# create the module
# @param[in] target reference on the Target that is currently build
# @param[in] module_name Name of the module that is extract from the file name (to be generic)
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
# add the file to compile:
my_module.add_src_file([
'ffmpeg/libswscale/alphablend.c',
'ffmpeg/libswscale/gamma.c',
'ffmpeg/libswscale/hscale.c',
'ffmpeg/libswscale/hscale_fast_bilinear.c',
'ffmpeg/libswscale/input.c',
'ffmpeg/libswscale/options.c',
'ffmpeg/libswscale/output.c',
'ffmpeg/libswscale/rgb2rgb.c',
'ffmpeg/libswscale/slice.c',
'ffmpeg/libswscale/swscale.c',
'ffmpeg/libswscale/swscale_unscaled.c',
'ffmpeg/libswscale/utils.c',
'ffmpeg/libswscale/vscale.c',
'ffmpeg/libswscale/x86/hscale_fast_bilinear_simd.c',
'ffmpeg/libswscale/x86/rgb2rgb.c',
'ffmpeg/libswscale/x86/swscale.c',
'ffmpeg/libswscale/x86/yuv2rgb.c',
'ffmpeg/libswscale/yuv2rgb.c',
])
my_module.compile_version("c", 1999, gnu=True)
my_module.add_path(os.path.join(tools.get_current_path(__file__), "ffmpeg"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "generated"))
my_module.add_flag('c', [
"-D_ISOC99_SOURCE",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-D_POSIX_C_SOURCE=200112",
"-D_XOPEN_SOURCE=600",
"-DZLIB_CONST",
"-DHAVE_AV_CONFIG_H",
"-D_GNU_SOURCE=1",
"-D_REENTRANT",
"-DPIC",
])
#-I/usr/include/SDL
my_module.add_flag('c', [
"-Wdeclaration-after-statement",
"-Wall",
"-Wdisabled-optimization",
"-Wpointer-arith",
"-Wredundant-decls",
"-Wwrite-strings",
"-Wtype-limits",
"-Wundef",
"-Wmissing-prototypes",
"-Wno-pointer-to-int-cast",
"-Wstrict-prototypes",
"-Wempty-body",
"-Wno-parentheses",
"-Wno-switch",
"-Wno-format-zero-length",
"-Wno-pointer-sign",
"-Wno-unused-const-variable",
"-fno-math-errno",
"-fno-signed-zeros",
"-Werror=format-security",
"-Werror=implicit-function-declaration",
"-Werror=missing-prototypes",
"-Werror=return-type",
"-Werror=vla",
"-Wformat",
"-fdiagnostics-color=auto",
"-Wno-maybe-uninitialized",
])
if "Linux" in target.get_type():
# TODO: Check the real impact ...
my_module.add_flag('link-dynamic', ["-Wl,-Bsymbolic"])
# add dependency of libraries:
my_module.add_depend('c')
my_module.add_depend('m')
my_module.add_depend('z')
my_module.add_depend('pthread')
return my_module

161
lutin_ffmpeg-avutil.py Normal file
View File

@ -0,0 +1,161 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
def get_type():
return "LIBRARY"
def get_desc():
return "FFMPEG library"
def get_licence():
return "LGPL-2.1"
def get_compagny_type():
return "org"
def get_compagny_name():
return "ffmpeg"
def get_maintainer():
return "authors.txt"
def get_version():
return "version.txt"
# create the module
# @param[in] target reference on the Target that is currently build
# @param[in] module_name Name of the module that is extract from the file name (to be generic)
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
# add the file to compile:
my_module.add_src_file([
'ffmpeg/libavutil/adler32.c',
'ffmpeg/libavutil/aes.c',
'ffmpeg/libavutil/aes_ctr.c',
'ffmpeg/libavutil/audio_fifo.c',
'ffmpeg/libavutil/avstring.c',
'ffmpeg/libavutil/base64.c',
'ffmpeg/libavutil/blowfish.c',
'ffmpeg/libavutil/bprint.c',
'ffmpeg/libavutil/buffer.c',
'ffmpeg/libavutil/camellia.c',
'ffmpeg/libavutil/cast5.c',
'ffmpeg/libavutil/channel_layout.c',
'ffmpeg/libavutil/color_utils.c',
'ffmpeg/libavutil/cpu.c',
'ffmpeg/libavutil/crc.c',
'ffmpeg/libavutil/des.c',
'ffmpeg/libavutil/dict.c',
'ffmpeg/libavutil/display.c',
'ffmpeg/libavutil/downmix_info.c',
'ffmpeg/libavutil/error.c',
'ffmpeg/libavutil/eval.c',
'ffmpeg/libavutil/fifo.c',
'ffmpeg/libavutil/file.c',
'ffmpeg/libavutil/file_open.c',
'ffmpeg/libavutil/fixed_dsp.c',
'ffmpeg/libavutil/float_dsp.c',
'ffmpeg/libavutil/frame.c',
'ffmpeg/libavutil/hash.c',
'ffmpeg/libavutil/hmac.c',
'ffmpeg/libavutil/hwcontext.c',
'ffmpeg/libavutil/imgutils.c',
'ffmpeg/libavutil/integer.c',
'ffmpeg/libavutil/intmath.c',
'ffmpeg/libavutil/lfg.c',
'ffmpeg/libavutil/lls.c',
'ffmpeg/libavutil/log.c',
'ffmpeg/libavutil/log2_tab.c',
'ffmpeg/libavutil/lzo.c',
'ffmpeg/libavutil/mastering_display_metadata.c',
'ffmpeg/libavutil/mathematics.c',
'ffmpeg/libavutil/md5.c',
'ffmpeg/libavutil/mem.c',
'ffmpeg/libavutil/murmur3.c',
'ffmpeg/libavutil/opt.c',
'ffmpeg/libavutil/parseutils.c',
'ffmpeg/libavutil/pixdesc.c',
'ffmpeg/libavutil/pixelutils.c',
'ffmpeg/libavutil/random_seed.c',
'ffmpeg/libavutil/rational.c',
'ffmpeg/libavutil/rc4.c',
'ffmpeg/libavutil/reverse.c',
'ffmpeg/libavutil/ripemd.c',
'ffmpeg/libavutil/samplefmt.c',
'ffmpeg/libavutil/sha.c',
'ffmpeg/libavutil/sha512.c',
'ffmpeg/libavutil/stereo3d.c',
'ffmpeg/libavutil/tea.c',
'ffmpeg/libavutil/threadmessage.c',
'ffmpeg/libavutil/time.c',
'ffmpeg/libavutil/timecode.c',
'ffmpeg/libavutil/tree.c',
'ffmpeg/libavutil/twofish.c',
'ffmpeg/libavutil/utils.c',
'ffmpeg/libavutil/x86/cpu.c',
'ffmpeg/libavutil/x86/fixed_dsp_init.c',
'ffmpeg/libavutil/x86/float_dsp_init.c',
'ffmpeg/libavutil/x86/lls_init.c',
'ffmpeg/libavutil/x86/pixelutils_init.c',
'ffmpeg/libavutil/xga_font_data.c',
'ffmpeg/libavutil/xtea.c',
])
my_module.compile_version("c", 1999, gnu=True)
my_module.add_path(os.path.join(tools.get_current_path(__file__), "ffmpeg"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "generated"))
my_module.add_flag('c', [
"-D_ISOC99_SOURCE",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-D_POSIX_C_SOURCE=200112",
"-D_XOPEN_SOURCE=600",
"-DZLIB_CONST",
"-DHAVE_AV_CONFIG_H",
"-D_GNU_SOURCE=1",
"-D_REENTRANT",
"-DPIC",
])
#-I/usr/include/SDL
my_module.add_flag('c', [
"-Wdeclaration-after-statement",
"-Wall",
"-Wdisabled-optimization",
"-Wpointer-arith",
"-Wredundant-decls",
"-Wwrite-strings",
"-Wtype-limits",
"-Wundef",
"-Wmissing-prototypes",
"-Wno-pointer-to-int-cast",
"-Wstrict-prototypes",
"-Wempty-body",
"-Wno-parentheses",
"-Wno-switch",
"-Wno-format-zero-length",
"-Wno-pointer-sign",
"-Wno-unused-const-variable",
"-fno-math-errno",
"-fno-signed-zeros",
"-Werror=format-security",
"-Werror=implicit-function-declaration",
"-Werror=missing-prototypes",
"-Werror=return-type",
"-Werror=vla",
"-Wformat",
"-fdiagnostics-color=auto",
"-Wno-maybe-uninitialized",
])
if "Linux" in target.get_type():
# TODO: Check the real impact ...
my_module.add_flag('link-dynamic', ["-Wl,-Bsymbolic"])
# add dependency of libraries:
my_module.add_depend('c')
my_module.add_depend('m')
my_module.add_depend('z')
my_module.add_depend('pthread')
return my_module

46
lutin_ffmpeg-libs.py Normal file
View File

@ -0,0 +1,46 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
def get_type():
return "LIBRARY"
def get_desc():
return "FFMPEG library"
def get_licence():
return "LGPL-2.1"
def get_compagny_type():
return "org"
def get_compagny_name():
return "ffmpeg"
def get_maintainer():
return "authors.txt"
def get_version():
return "version.txt"
# create the module
# @param[in] target reference on the Target that is currently build
# @param[in] module_name Name of the module that is extract from the file name (to be generic)
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
# or other user lib:
my_module.add_depend([
'ffmpeg-avcodec',
'ffmpeg-avfilter',
'ffmpeg-avswresample',
'ffmpeg-avutil',
'ffmpeg-avdevice',
'ffmpeg-avformat',
'ffmpeg-avswscale',
])
return my_module

0
lutin_ffmpeg-server.py Normal file
View File

56
lutin_ffmpeg.py Normal file
View File

@ -0,0 +1,56 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
def get_type():
return "BINARY_SHARED"
return "BINARY"
def get_desc():
return "FFMPEG main application"
def get_licence():
return "LGPL-2.1"
def get_compagny_type():
return "org"
def get_compagny_name():
return "ffmpeg"
def get_maintainer():
return "authors.txt"
def get_version():
return "version.txt"
# create the module
# @param[in] target reference on the Target that is currently build
# @param[in] module_name Name of the module that is extract from the file name (to be generic)
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
# add the file to compile:
my_module.add_src_file([
'ffmpeg/ffmpeg.c',
'ffmpeg/cmdutils.c',
'ffmpeg/ffmpeg_opt.c',
'ffmpeg/ffmpeg_filter.c',
'ffmpeg/ffmpeg_vaapi.c',
#'ffmpeg/ffmpeg_vdpau.c',
])
my_module.add_path(os.path.join(tools.get_current_path(__file__), "ffmpeg"))
my_module.add_path(os.path.join(tools.get_current_path(__file__), "generated"))
my_module.add_depend([
'ffmpeg-libs',
'va',
'vdpau',
])
my_module.add_flag("link-lib", ["Xv", "X11", "Xext", "vdpau", "va", "va-drm", "va", "va-x11", "va",
"xcb", "xcb-shm", "xcb-xfixes", "xcb-shape", "X11", "jack", "asound", "SDL", "pthread", "m", "lzma", "bz2", "z", "pthread"])
my_module.add_flag("link", "-Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common")
return my_module

1
version.txt Normal file
View File

@ -0,0 +1 @@
3.1.1