Граф коммитов

125 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey ed44c83111 Bug 1692940 - Switch ffvpx build to nasm instead of yasm. r=firefox-build-system-reviewers,dmajor
nasm doesn't like compiling simple_idct10.asm on x86
(https://bugzilla.nasm.us/show_bug.cgi?id=3392738), which is empty once
preprocessed for x86, so exclude it there.

Differential Revision: https://phabricator.services.mozilla.com/D105429
2021-02-23 01:26:45 +00:00
Mike Hommey 346820ef1f Bug 1693215 - Always depend on yasm >= 1.2 for ffvpx. r=firefox-build-system-reviewers,dmajor
Yasm 1.2 was released in October 2011. Let's just assume everyone can
use that now.

Differential Revision: https://phabricator.services.mozilla.com/D105398
2021-02-22 22:11:25 +00:00
Martin Stransky 4f499c0c54 Bug 1660336 Build ffvpx FFmpegVideoDecoder module with VAAPI support, r=jya,glandium,jgilbert
- Remove MOZ_WAYLAND_CFLAGS and /ipc/chromium/chromium-config.mozbuild from ffmpeg58/moz.build
- Build ffvpx with vaapi support at ffvpx/moz.build
- Move gfx related headers from DMABUFSurfaceImage.h to DMABUFSurfaceImage.cpp and implement
  the gfx methods there.
- Remove GL headers from DMABufSurface.h and forward declare GLuint/GLContext there.
- Move mutex/MessageLoop/task related headers from nsWaylandDisplay.h to nsWaylandDisplay.cpp.
- Move mozva.cpp to mozva.c due to linking issues

Depends on D90556

Differential Revision: https://phabricator.services.mozilla.com/D90557
2020-12-08 15:26:09 +00:00
Martin Stransky 5fd3de4eb1 Bug 1660336 Add VP8/VP9 VAAPI HW decode code to bundled ffvpx and build it with MOZ_WAYLAND target, r=jya
- Update in-tree ffvpx library with VP8/VP9 VAAPI HW decode code from FFmpeg 4.2.
- Enable VP8/VP9 VAAPI HW decode on MOZ_WAYLAND target.

Differential Revision: https://phabricator.services.mozilla.com/D90554
2020-12-08 15:25:54 +00:00
Simon Giesecke 1c53236b70 Bug 1679272 - Include ScopeExit.h exactly where used. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D98888
2020-12-07 14:25:59 +00:00
Butkovits Atila 6772473e85 Backed out 4 changesets (bug 1660336) for causing build bustage on libmozavcodec.so. CLOSED TREE
Backed out changeset 13936ff79b4c (bug 1660336)
Backed out changeset 7315e7b327f7 (bug 1660336)
Backed out changeset b6ca98c5a3cc (bug 1660336)
Backed out changeset fb8fee4471de (bug 1660336)
2020-12-04 12:40:28 +02:00
Martin Stransky 6780cbc0cd Bug 1660336 Add VP8/VP9 VAAPI HW decode code to bundled ffvpx and build it with MOZ_WAYLAND target, r=jya
- Update in-tree ffvpx library with VP8/VP9 VAAPI HW decode code from FFmpeg 4.2.
- Enable VP8/VP9 VAAPI HW decode on MOZ_WAYLAND target.

Differential Revision: https://phabricator.services.mozilla.com/D90554
2020-12-04 09:41:38 +00:00
Martin Stransky b7046a3cea Bug 1660336 Provide libva headers to build Firefox without libva-devel installed, r=jya
Differential Revision: https://phabricator.services.mozilla.com/D97920
2020-12-02 10:30:29 +00:00
stransky d9caf57ec9 Bug 1660336 Provide libva wrapper to run Firefox on systems without libva installed, r=jya
Differential Revision: https://phabricator.services.mozilla.com/D94650
2020-12-02 10:30:21 +00:00
Razvan Maries 4d377757b2 Backed out 6 changesets (bug 1660336) for multiple perma failures. CLOSED TREE
Backed out changeset 0f7b1edcd999 (bug 1660336)
Backed out changeset b43bed57327d (bug 1660336)
Backed out changeset 6c74e8eef334 (bug 1660336)
Backed out changeset 5575575cc0c4 (bug 1660336)
Backed out changeset 6fb988919317 (bug 1660336)
Backed out changeset 04056b5c72d9 (bug 1660336)
2020-11-29 01:11:43 +02:00
Martin Stransky 819f14b784 Bug 1660336 Provide libva headers to build Firefox without libva-devel installed, r=jya
Depends on D94650

Differential Revision: https://phabricator.services.mozilla.com/D97920
2020-11-28 12:23:16 +00:00
stransky a40f19c2f0 Bug 1660336 Provide libva wrapper to run Firefox on systems without libva installed, r=jya
Differential Revision: https://phabricator.services.mozilla.com/D94650
2020-11-28 12:23:11 +00:00
Martin Stransky 26e046f145 Bug 1660336 Add VP8/VP9 VAAPI HW decode code to bundled ffvpx and build it with MOZ_WAYLAND target, r=jya
- Update in-tree ffvpx library with VP8/VP9 VAAPI HW decode code from FFmpeg 4.2.
- Enable VP8/VP9 VAAPI HW decode on MOZ_WAYLAND target.

Differential Revision: https://phabricator.services.mozilla.com/D90554
2020-11-28 09:43:51 +00:00
Csoregi Natalia 3bbe4dde1f Backed out 6 changesets (bug 1660336) for causing media related failures. CLOSED TREE
Backed out changeset 1aa6c9d65403 (bug 1660336)
Backed out changeset f1dadb052d3a (bug 1660336)
Backed out changeset bdf9d27bd4d2 (bug 1660336)
Backed out changeset 373a658bb281 (bug 1660336)
Backed out changeset 5ccda5ab6563 (bug 1660336)
Backed out changeset e6f396b25887 (bug 1660336)
2020-11-27 05:08:40 +02:00
Martin Stransky 59d04019a3 Bug 1660336 Provide libva headers to build Firefox without libva-devel installed, r=jya
Differential Revision: https://phabricator.services.mozilla.com/D97920
2020-11-26 21:26:05 +00:00
stransky c3c0341407 Bug 1660336 Provide libva wrapper to run Firefox on systems without libva installed, r=jya
Differential Revision: https://phabricator.services.mozilla.com/D94650
2020-11-26 21:25:59 +00:00
Martin Stransky 2b086a2366 Bug 1660336 Add VP8/VP9 VAAPI HW decode code to bundled ffvpx and build it with MOZ_WAYLAND target, r=jya
- Update in-tree ffvpx library with VP8/VP9 VAAPI HW decode code from FFmpeg 4.2.
- Enable VP8/VP9 VAAPI HW decode on MOZ_WAYLAND target.

Differential Revision: https://phabricator.services.mozilla.com/D90554
2020-11-26 21:25:32 +00:00
Butkovits Atila 44cba455b5 Backed out 2 changesets (bug 1660336) for bustages on hwcontext_vaapi.h. CLOSED TREE
Backed out changeset 1e094ee6647f (bug 1660336)
Backed out changeset a7089f76921f (bug 1660336)
2020-11-06 09:41:25 +02:00
Martin Stransky 06de9a615d Bug 1660336 Add VP8/VP9 VAAPI HW decode code to bundled ffvpx and build it with MOZ_WAYLAND target, r=jya
- Update in-tree ffvpx library with VP8/VP9 VAAPI HW decode code from FFmpeg 4.2.
- Enable VP8/VP9 VAAPI HW decode on MOZ_WAYLAND target.

Differential Revision: https://phabricator.services.mozilla.com/D90554
2020-11-05 16:08:34 +00:00
Cosmin Sabou e280184fdb Backed out 3 changesets (bug 1660336) for bustages on wcontext_vaapi.h.
Backed out changeset bc879f517930 (bug 1660336)
Backed out changeset a1fce14ac3a8 (bug 1660336)
Backed out changeset 1d4f4423422a (bug 1660336)
2020-11-05 17:30:26 +02:00
Martin Stransky 61a8669041 Bug 1660336 Add VP8/VP9 VAAPI HW decode code to bundled ffvpx and build it with MOZ_WAYLAND target, r=jya
- Update in-tree ffvpx library with VP8/VP9 VAAPI HW decode code from FFmpeg 4.2.
- Enable VP8/VP9 VAAPI HW decode on MOZ_WAYLAND target.

Differential Revision: https://phabricator.services.mozilla.com/D90554
2020-11-05 08:30:14 +00:00
smolnar c784367df9 Backed out 3 changesets (bug 1660336) for causing build bustages in vaapi. CLOSED TREE
Backed out changeset f53408903b5e (bug 1660336)
Backed out changeset 450b4f240ff5 (bug 1660336)
Backed out changeset 7694d9e2424b (bug 1660336)
2020-11-05 10:25:11 +02:00
Martin Stransky 84d22b3544 Bug 1660336 Add VP8/VP9 VAAPI HW decode code to bundled ffvpx and build it with MOZ_WAYLAND target, r=jya
- Update in-tree ffvpx library with VP8/VP9 VAAPI HW decode code from FFmpeg 4.2.
- Enable VP8/VP9 VAAPI HW decode on MOZ_WAYLAND target.

Differential Revision: https://phabricator.services.mozilla.com/D90554
2020-11-05 07:34:57 +00:00
Mike Hommey b043d52e4c Bug 1669888 - Enable ffvpx on all Mac platforms. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D92875
2020-10-08 05:28:28 +00:00
John Lin b7c5501eda Bug 1657321 - ffvpx: undo build error workarounds. r=jya
Revert bug 1412240. It was a workaround for a LLVM bug and only
relevant when icecc is involved. Since sccache-dist is preferred
now, it's no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D87891
2020-08-22 02:41:58 +00:00
Jean-Yves Avenard 6d9da8a736 Bug 1616736 - P2. Update ffmpeg copy to 4.2. r=jolin
Also fix AARCH64 build to be neon optimised where available, this leads to a 72% improvement in decoding speed.

Differential Revision: https://phabricator.services.mozilla.com/D64706

--HG--
extra : moz-landing-system : lando
2020-03-04 22:18:34 +00:00
Michael Froman a32233c9b1 Bug 1582271 - pt4 - add ffvpx mp3 decoding for android32. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D46426

--HG--
extra : moz-landing-system : lando
2019-09-25 14:50:02 +00:00
Michael Froman 456979ca99 Bug 1582271 - pt3 - add ffvpx mp3 decoding for aarch64. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D46425

--HG--
extra : moz-landing-system : lando
2019-09-24 21:02:26 +00:00
Michael Froman e290922048 Bug 1582271 - pt2 - add ffvpx mp3 decoding for linux/macOS/win. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D46424

--HG--
extra : moz-landing-system : lando
2019-09-24 21:18:24 +00:00
Michael Froman 36adeaea97 Bug 1582271 - pt1 - prep ffvpx files for adding mp3 support. r=jya
- Update README_MOZILLA for adding mp3 support, and add some clarifying text.
 - Clang-format config.h for easier reading since it is our file, not ffmpeg's.
 - Use sort -d -u to produce defaults_disabled.* files so linux and macOS
   produce same files.
 - Change MOZ_FFVPX_FLACONLY to MOZ_FFVPX_AUDIOONLY since it indicates flac
   and mp3 decoders.
 - Rename config_flac.h to config_audio.h

Differential Revision: https://phabricator.services.mozilla.com/D46423

--HG--
rename : media/ffvpx/config_flac.h => media/ffvpx/config_audio.h
extra : moz-landing-system : lando
2019-09-24 21:02:07 +00:00
Mike Hommey c53b03de07 Bug 1572986 - Link libmozavutil against libatomic when needed. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D41483

--HG--
extra : moz-landing-system : lando
2019-08-12 16:47:40 +00:00
David Major 0cf4cb8bae Bug 1489081 followup: remove the now-outdated comment. DONTBUILD 2019-07-23 09:12:57 -04:00
Jean-Yves Avenard 760c5da868 Bug 1489081 - Remove no longer necessary files. r=bryce
With the move to clang-cl as default compiler on Windows, those are no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D5128

--HG--
extra : moz-landing-system : lando
2019-07-22 07:47:20 +00:00
Christian Holler 8cfda79e0d Bug 1465407 - Add media fuzzing targets. r=jya
Depends on D35776

Differential Revision: https://phabricator.services.mozilla.com/D35777

--HG--
extra : moz-landing-system : lando
2019-07-16 14:50:17 +00:00
Dan Minor 0bf8dc6be1 Bug 1540760 - Build system changes for aarch64-win64 support in ffvpx; r=jya
Differential Revision: https://phabricator.services.mozilla.com/D27790

--HG--
extra : moz-landing-system : lando
2019-05-01 15:04:50 +00:00
Dan Minor 23afbbacd1 Bug 1540760 - Add missing aarch64 files for ffvpx; r=jya
Differential Revision: https://phabricator.services.mozilla.com/D27789

--HG--
extra : moz-landing-system : lando
2019-05-01 23:06:25 +00:00
Mike Hommey ef3ad686ee Bug 1512504 - Remove support for MSVC. r=froydnj
Consequently, this removes:
- MOZ_LIBPRIO, which is now always enabled.
- non_msvc_compiler, which is now always true.
- The cl.py wrapper, since it's not used anymore.
- CL_INCLUDES_PREFIX, which was only used for the cl.py wrapper.
- NONASCII, which was only there to ensure CL_INCLUDES_PREFIX still
  worked in non-ASCII cases.

This however keeps a large part of detecting and configuring for MSVC,
because we still do need it for at least headers, libraries, and midl.

Depends on D19614

Differential Revision: https://phabricator.services.mozilla.com/D19615

--HG--
extra : moz-landing-system : lando
2019-02-14 21:45:27 +00:00
Thomas Daede 3fcd2d85d2 Bug 1511224 - Add win64-nasm toolchain. r=ted,jya,glandium
Differential Revision: https://phabricator.services.mozilla.com/D13875

--HG--
extra : moz-landing-system : lando
2019-02-14 21:30:22 +00:00
Dorel Luca 72ca9e0f17 Backed out changeset fe264afc03aa (bug 1511224) for Fetch failures. CLOSED TREE 2019-02-14 20:44:38 +02:00
Thomas Daede ce727c14e7 Bug 1511224 - Add win64-nasm toolchain. r=ted,jya,glandium
Differential Revision: https://phabricator.services.mozilla.com/D13875

--HG--
extra : moz-landing-system : lando
2019-02-14 17:11:57 +00:00
Mike Hommey 7c72587da6 Bug 1519047 - Move FFVPX_ASFLAGS and related variables to python configure. r=nalexander
This also moves the corresponding ASFLAGS from moz.build to python
configure.

Differential Revision: https://phabricator.services.mozilla.com/D16320

--HG--
extra : moz-landing-system : lando
2019-01-11 18:17:36 +00:00
Jean-Yves Avenard 0855e7a7da Bug 1513511 - P1. Use new FFmpeg decode API with recent FFmpeg version. r=bryce
In libavcodec 58 and later, the old avcodec_decode_video2 is broken and only return the first visible frame found after a VP9 super-frame.

This resulted in some YouTube videos for about 10% of the frames to never be returned.

Only the new API properly behaves so we upgrade our code to use it.

Differential Revision: https://phabricator.services.mozilla.com/D14682

--HG--
extra : moz-landing-system : lando
2018-12-17 17:29:13 +00:00
Thomas Daede 9735214d9a Bug 1501796 - Use nasm when yasm is requested. r=firefox-build-system-reviewers,mshal
Includes changes to support nasm's stricter include paths.

Supports falling back to yasm if nasm is missing.

Differential Revision: https://phabricator.services.mozilla.com/D9972

--HG--
extra : moz-landing-system : lando
2018-11-16 01:20:58 +00:00
Jean-Yves Avenard 032d3b87d7 Bug 1488065 - Update ffvpx to version n4.0.2-6-g2be51cbeea. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D5041

--HG--
rename : media/ffvpx/libavcodec/null_bsf.c => media/ffvpx/libavcodec/mpegvideodata.h
extra : moz-landing-system : lando
2018-09-06 13:18:00 +00:00
Coroiu Cristina 79c7b523f8 Backed out changeset 29daa22239e9 (bug 1488065) for mda failures at dom/media/test/test_videoPlaybackQuality_totalFrames.html 2018-09-06 14:06:11 +03:00
Jean-Yves Avenard 38a3bd2e77 Bug 1488065 - Update ffvpx to version n4.0.2-6-g2be51cbeea. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D5041

--HG--
rename : media/ffvpx/libavcodec/null_bsf.c => media/ffvpx/libavcodec/mpegvideodata.h
extra : moz-landing-system : lando
2018-09-06 08:42:52 +00:00
Masatoshi Kimura b190c1c0b3 Bug 1482583 - Suppress clang-cl warnings in some third-party directories. r=mshal
--HG--
extra : rebase_source : 68621ca3ad2565e173f3350744125993f85f49f3
2018-08-11 06:05:19 +09:00
Karl Tomlinson b99ba5e660 bug 1476231 add ffmpeg floating point real FFT functions to ffvpx when MOZ_LIBAV_FFT is configured r=jya
New files are from ffmpeg n3.4-1-g587fadaef1.

MozReview-Commit-ID: E9eLPySCpCz

--HG--
rename : media/libav/libavcodec/avfft.c => media/ffvpx/libavcodec/avfft.c
rename : media/libav/libavcodec/avfft.h => media/ffvpx/libavcodec/avfft.h
rename : media/libav/libavcodec/dct.h => media/ffvpx/libavcodec/dct.h
rename : media/libav/libavcodec/fft-internal.h => media/ffvpx/libavcodec/fft-internal.h
rename : media/libav/libavcodec/fft.h => media/ffvpx/libavcodec/fft.h
rename : media/libav/libavcodec/fft_float.c => media/ffvpx/libavcodec/fft_float.c
rename : media/libav/libavcodec/fft_template.c => media/ffvpx/libavcodec/fft_template.c
rename : media/libav/libavcodec/rdft.c => media/ffvpx/libavcodec/rdft.c
rename : media/libav/libavcodec/rdft.h => media/ffvpx/libavcodec/rdft.h
rename : media/libav/libavcodec/x86/fft.asm => media/ffvpx/libavcodec/x86/fft.asm
rename : media/libav/libavcodec/x86/fft.h => media/ffvpx/libavcodec/x86/fft.h
rename : media/libav/libavcodec/x86/fft_init.c => media/ffvpx/libavcodec/x86/fft_init.c
extra : rebase_source : 35a960b3248bb23dbf56c19baad91b665094fbac
2018-07-15 20:08:27 +12:00
David Major 28ad88d8c4 Bug 1321651 - revert clang-cl changes from bug 1298418 that are no longer needed. r=froydnj 2018-01-05 14:16:08 -05:00
Sylvestre Ledru 4591d82b23 Bug 1394734 - Replace CONFIG['CLANG*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: HbF5oT5HW6f

--HG--
extra : rebase_source : eca479b6ae4bff7f600d1cdb39e11ac2057e4e79
2017-12-07 22:09:38 +01:00