• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..31-Mar-2022-

compat/H31-Mar-2022-383245

libavcodec/H31-Mar-2022-108,03284,321

libavutil/H31-Mar-2022-39,34025,642

mozva/H31-Mar-2022-421370

va/H31-Mar-2022-5,3361,915

COPYING.LGPLv2.1H A D31-Mar-202225.9 KiB503418

COPYING.LGPLv3H A D31-Mar-20227.5 KiB166128

FILESH A D31-Mar-20229.1 KiB349348

README_MOZILLAH A D31-Mar-20223.2 KiB6146

changes.patchH A D31-Mar-20222.2 KiB7766

config.hH A D31-Mar-20221.5 KiB5543

config_aarch64_win64.hH A D31-Mar-202218.4 KiB681679

config_android32.hH A D31-Mar-202218.9 KiB680678

config_audio.hH A D31-Mar-202218.7 KiB681679

config_common.hH A D31-Mar-2022600 3126

config_darwin64.asmH A D31-Mar-202217.6 KiB665664

config_darwin64.hH A D31-Mar-202218.8 KiB681679

config_unix32.hH A D31-Mar-202218.8 KiB681679

config_unix64.asmH A D31-Mar-202217.7 KiB666665

config_unix64.hH A D31-Mar-202218.8 KiB681679

config_win32.asmH A D31-Mar-202217.6 KiB665664

config_win32.hH A D31-Mar-202218.8 KiB681679

config_win64.asmH A D31-Mar-202217.6 KiB664664

config_win64.hH A D31-Mar-202218.8 KiB681679

defaults_disabled.asmH A D31-Mar-202258.3 KiB1,8311,830

defaults_disabled.hH A D31-Mar-202258.3 KiB1,8311,830

ffvpxcommon.mozbuildH A D31-Mar-20222.3 KiB7263

libavutil_visibility.hH A D31-Mar-2022693 217

moz.buildH A D31-Mar-2022472 1915

README_MOZILLA

1This directory contains files used in gecko builds from FFmpeg
2(http://ffmpeg.org). The current files are from FFmpeg as of
3revision n4.2.2-1-g19bfd72126
4git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
5git checkout n4.2.2-1-g19bfd72126
6
7All source files match their path from the library's source archive.
8
9Currently, we only use the vp8, vp9, mp3, and flac portion of the library. If
10this changes, configuration files will most likely need to be updated.
11
12AVX2 must be disabled on Linux 32 bits due to the use of yasm 1.1 on the build bots.
13Once yasm is upgraded to 1.2 or later, AVX2 code could be re-enabled.
14Add --disable-avx2 to configure on those platforms.
15
16configuration files were generated as follow using the configure script:
17 ./configure --disable-all --enable-avcodec --enable-decoder=vp8,vp9,mp3,flac \
18             --enable-parser=vp8,vp9 --disable-static --enable-shared \
19             --disable-autodetect
20config*:
21replace: /HAVE_(MALLOC_H|ARC4RANDOM|LOCALTIME_R|MEMALIGN|POSIX_MEMALIGN)/d
22# sed -i bak -E '/HAVE_(MALLOC_H|ARC4RANDOM|LOCALTIME_R|MEMALIGN|POSIX_MEMALIGN)/d' config.h
23
24config_unix32.h:
25add to configure command: --disable-asm --disable-x86asm --cc='clang -m32'
26
27config_android32.h: Only mp3 and flac are enabled on this platform.
28./configure --disable-all --enable-avcodec --enable-decoder=mp3,flac \
29            --disable-static --enable-shared --disable-autodetect \
30            --enable-small --target-os=linux --arch=arm --enable-cross-compile \
31            --cc=$HOME/.mozbuild/android-ndk-r20/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi16-clang
32
33config_unix32.h/config_unix64.h/config_unix64.asm:
34replace: s/HAVE_SYSCTL 1/HAVE_SYSCTL 0
35
36config_win{32|64}.{h|asm}:
37add to configure command: --toolchain=msvc
38
39config_aarch64_win64.h: You will need to install cpp (either using msys or wsl)
40./configure --disable-all --enable-avcodec --enable-decoder=vp8,vp9,mp3,flac \
41            --enable-parser=vp8,vp9 --disable-static --enable-shared \
42            --disable-autodetect  --toolchain=msvc --enable-cross-compile \
43            --target-os=win32 --arch=arm64
44
45Regenerate defaults_disabled.{h,asm} with:
46$ grep -E ".*_(INDEV|OUTDEV|DECODER|ENCODER|DEMUXER|MUXER|PARSER|FILTER|HWACCEL|PROTOCOL|ENCODERS|DECODERS|HWACCELS|INDEVS|OUTDEVS|FILTERS|DEMUXERS|MUXERS|PROTOCOLS|BSF) 0" config.h | sort -d -u > ~/Work/Mozilla/mozilla-central/media/ffvpx/defaults_disabled.h
47$ grep -E ".*_(INDEV|OUTDEV|DECODER|ENCODER|DEMUXER|MUXER|PARSER|FILTER|HWACCEL|PROTOCOL|ENCODERS|DECODERS|HWACCELS|INDEVS|OUTDEVS|FILTERS|DEMUXERS|MUXERS|PROTOCOLS|BSF) 0" config.asm | sort -d -u > ~/Work/Mozilla/mozilla-central/media/ffvpx/defaults_disabled.asm
48
49The GNU comm utility is a useful tool to compare and extract only the changes.
50
51To update the source tree, perform a diff on the files listed in FILES.
52The diffs should typically apply to the ffvpx tree.
53e.g. something like this would do:
54Run in the ffmpeg original tree:
55$ for i in `cat $PATH_CENTRAL/media/ffvpx/FILES`; do git diff $REV_LASTSYNC HEAD >> patch.diff; done
56Then apply patch.diff on the ffvpx tree.
57
58Compilation will reveal if any files are missing.
59
60Apply linux-vaapi-build.patch patch to enable build VA-API support for Linux.
61