151 Commits

Author SHA1 Message Date
Paul Adenot
dbb13352c1 Bug 1776429 - Compile and use ffvpx video decoder/fft code on Apple Silicon Macs. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D150250
2022-06-29 09:55:59 +00:00
stransky
7b0c28a7d1 Bug 1750663 [Linux] Move mozva library and va headers to media directory r=alwu,media-playback-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D136596
2022-01-24 10:19:51 +00:00
stransky
aba6d7beef Bug 1743750 Add missing VA-API 1.0 function wrappers r=alwu
Depends on D136473

Differential Revision: https://phabricator.services.mozilla.com/D136474
2022-01-22 17:44:11 +00:00
stransky
37704af5ee Bug 1743750 Build bundled ffvpx with VA-API 1.0 support r=alwu
Depends on D136472

Differential Revision: https://phabricator.services.mozilla.com/D136473
2022-01-22 17:44:10 +00:00
stransky
ae8cfbc77e Bug 1749852 [Linux] Don't build VA-API with MOZ_FFVPX_AUDIOONLY r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D135827
2022-01-17 08:40:41 +00:00
stransky
a56325e8da Bug 1744254 Export VA library routines needed for VA-API formats enumeration r=alwu
Depends on D135131

Differential Revision: https://phabricator.services.mozilla.com/D135132
2022-01-17 08:24:01 +00:00
Iulian Moraru
e545b0857f Backed out 5 changesets (bug 1744254) for causing build bustages on libxul.so. CLOSED TREE
Backed out changeset 0e7e39e68cb9 (bug 1744254)
Backed out changeset 16337f126487 (bug 1744254)
Backed out changeset 72c3b9812b35 (bug 1744254)
Backed out changeset 181370e93cab (bug 1744254)
Backed out changeset 3f107a153ad9 (bug 1744254)
2022-01-14 04:15:31 +02:00
stransky
16f046ffc6 Bug 1744254 Export VA library routines needed for VA-API formats enumeration r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D135132
2022-01-13 22:14:25 +00:00
stransky
2eb6e63d20 Bug 1745285 Build AV1 decoding support in ffvpx r=alwu,media-playback-reviewers
Enable DAV1D decoder in bundled ffvpx and build ffvpx with bundled DAV1D decoder.

Differential Revision: https://phabricator.services.mozilla.com/D135034
2022-01-12 19:33:45 +00:00
Norisz Fay
6f9865bac1 Backed out 4 changesets (bug 1745285) for causing av1 reftest failures
Backed out changeset 7656625bf5bf (bug 1745285)
Backed out changeset 96f726e72941 (bug 1745285)
Backed out changeset 9ccc8b7b3b73 (bug 1745285)
Backed out changeset b723d23e9056 (bug 1745285)
2022-01-11 22:56:14 +02:00
stransky
03ec7b6a39 Bug 1745285 Build AV1 decoding support in ffvpx r=alwu
Enable DAV1D decoder in bundled ffvpx and build ffvpx with bundled DAV1D decoder.

Differential Revision: https://phabricator.services.mozilla.com/D135034
2022-01-11 18:42:27 +00:00
Cristian Tuns
0374f3e145 Backed out 4 changesets (bug 1745285) for causing build bustages CLOSED TREE
Backed out changeset 77ab7af01642 (bug 1745285)
Backed out changeset ff4b2e9ee068 (bug 1745285)
Backed out changeset 817eb128f1ff (bug 1745285)
Backed out changeset c1c5a7d9a805 (bug 1745285)
2022-01-11 10:30:15 -05:00
stransky
ddd91c35ec Bug 1745285 Build AV1 decoding support in ffvpx r=alwu
Enable DAV1D decoder in bundled ffvpx and build ffvpx with bundled DAV1D decoder.

Differential Revision: https://phabricator.services.mozilla.com/D135034
2022-01-11 13:24:57 +00:00
stransky
18d9c6d0ee Bug 1652958 Update ffvpx build config to build AV1 VA-API playback when MOZ_WAYLAND is defined r=alwu
Depends on D133422

Differential Revision: https://phabricator.services.mozilla.com/D133423
2021-12-24 19:41:37 +00:00
stransky
a3dc09da29 Bug 1652958 Update bundled libavcodec library to 4.4.1 r=alwu
Depends on D133421

Differential Revision: https://phabricator.services.mozilla.com/D133422
2021-12-24 19:41:36 +00:00
stransky
c9604382fa Bug 1652958 Update bundled libavutil library to 4.4.1 r=alwu
Depends on D133420

Differential Revision: https://phabricator.services.mozilla.com/D133421
2021-12-24 19:41:35 +00:00
Cosmin Sabou
28706cdf1a Backed out 4 changesets (bug 1652958, bug 1745284) for causing osx libavutil related build bustages. CLOSED TREE
Backed out changeset 5b0b786c19a2 (bug 1745284)
Backed out changeset 0128019f5e7d (bug 1652958)
Backed out changeset 0539b77bcb0b (bug 1652958)
Backed out changeset 008fd283bb70 (bug 1652958)
2021-12-23 04:30:18 +02:00
stransky
a79dc0a99d Bug 1652958 Update ffvpx build config to build AV1 VA-API playback when MOZ_WAYLAND is defined r=alwu
Depends on D133422

Differential Revision: https://phabricator.services.mozilla.com/D133423
2021-12-22 21:52:14 +00:00
stransky
db65aaddb1 Bug 1652958 Update bundled libavcodec library to 4.4.1 r=alwu
Depends on D133421

Differential Revision: https://phabricator.services.mozilla.com/D133422
2021-12-22 21:52:13 +00:00
stransky
0151c0fb7f Bug 1652958 Update bundled libavutil library to 4.4.1 r=alwu
Depends on D133420

Differential Revision: https://phabricator.services.mozilla.com/D133421
2021-12-22 21:52:13 +00:00
stransky
07c3bd159f Bug 1745226 Update bundled libva headers to 1.13 in order to allow VA-API playback of AV1 r=alwu
Depends on D133419

Differential Revision: https://phabricator.services.mozilla.com/D133420
2021-12-22 13:20:52 +00:00
Iulian Moraru
258b6fac74 Backed out 5 changesets (bug 1652958, bug 1745226, bug 1745284) for causing multiple build bustages. CLOSED TREE
Backed out changeset 71c2b56628e2 (bug 1745284)
Backed out changeset 9a5c5dba4869 (bug 1652958)
Backed out changeset 851e98f06010 (bug 1652958)
Backed out changeset d24922f60614 (bug 1652958)
Backed out changeset 2c67764e3a80 (bug 1745226)
2021-12-22 14:02:09 +02:00
stransky
30f7cfac81 Bug 1652958 Update ffvpx build config to build AV1 VA-API playback when MOZ_WAYLAND is defined r=alwu
Depends on D133422

Differential Revision: https://phabricator.services.mozilla.com/D133423
2021-12-22 06:45:48 +00:00
stransky
3dd5960eb4 Bug 1652958 Update bundled libavcodec library to 4.4.1 r=alwu
Depends on D133421

Differential Revision: https://phabricator.services.mozilla.com/D133422
2021-12-22 06:45:47 +00:00
stransky
00194d2ef1 Bug 1652958 Update bundled libavutil library to 4.4.1 r=alwu
Depends on D133420

Differential Revision: https://phabricator.services.mozilla.com/D133421
2021-12-22 06:45:47 +00:00
stransky
4d33553f15 Bug 1745226 Update bundled libva headers to 1.13 in order to allow VA-API playback of AV1 r=alwu
Depends on D133419

Differential Revision: https://phabricator.services.mozilla.com/D133420
2021-12-22 06:45:46 +00:00
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