gecko-dev/dom/media/platforms/ffmpeg
Jean-Yves Avenard 5be22726b0 Bug 1650696 - P4. Remove the expectation for a MediaDataDecoder to work on a specified TaskQueue. r=jolin
It will now be up to the caller to determine where the decoder is going to run. This allows to simplify the audio decoders so that they can run synchronously and be wrapped in a Wasm sandbox (which doesn't support multi-threading)

The structure guarantees that all MediaDataDecoder methods are called on the same thread it's been initialised.

To achieve this, wherever a MediaDataDecoder was created, we wrap it in a MediaDataDecoderProxy that ensures that all methods are running on the given thread.

We keep the behaviour of all methods in all MediaDataDecoder to assert that they are running on the expected thread for diagnostic purposes. It could go in the future.

Video decoders that could block excessingly the thread on which they are called are made to run on their own task queue.
The Apple decoder is mostly entirely asynchronous, with the exception of the drain method which could block.
We exclude the android and omx decoders are the framework they use is 100% asynchronous and already operate on another thread.

Differential Revision: https://phabricator.services.mozilla.com/D86929
2020-08-17 23:52:21 +00:00
..
ffmpeg57
ffmpeg58
ffvpx
libav53
libav54
libav55
FFmpegAudioDecoder.cpp Bug 1650696 - P4. Remove the expectation for a MediaDataDecoder to work on a specified TaskQueue. r=jolin 2020-08-17 23:52:21 +00:00
FFmpegAudioDecoder.h Bug 1650696 - P4. Remove the expectation for a MediaDataDecoder to work on a specified TaskQueue. r=jolin 2020-08-17 23:52:21 +00:00
FFmpegDataDecoder.cpp Bug 1650696 - P4. Remove the expectation for a MediaDataDecoder to work on a specified TaskQueue. r=jolin 2020-08-17 23:52:21 +00:00
FFmpegDataDecoder.h Bug 1650696 - P4. Remove the expectation for a MediaDataDecoder to work on a specified TaskQueue. r=jolin 2020-08-17 23:52:21 +00:00
FFmpegDecoderModule.cpp
FFmpegDecoderModule.h Bug 1650696 - P4. Remove the expectation for a MediaDataDecoder to work on a specified TaskQueue. r=jolin 2020-08-17 23:52:21 +00:00
FFmpegLibWrapper.cpp Bug 1649675 [Linux] Load vaGetDisplayDRM() from libva-drm.so.2 for VA-API DRM display, r=jya 2020-07-02 10:31:37 +00:00
FFmpegLibWrapper.h Bug 1649675 [Linux] Load vaGetDisplayDRM() from libva-drm.so.2 for VA-API DRM display, r=jya 2020-07-02 10:31:37 +00:00
FFmpegLibs.h
FFmpegLog.h
FFmpegRDFTTypes.h
FFmpegRuntimeLinker.cpp Bug 1649675 [Linux] Load vaGetDisplayDRM() from libva-drm.so.2 for VA-API DRM display, r=jya 2020-07-02 10:31:37 +00:00
FFmpegRuntimeLinker.h
FFmpegVideoDecoder.cpp Bug 1650696 - P4. Remove the expectation for a MediaDataDecoder to work on a specified TaskQueue. r=jolin 2020-08-17 23:52:21 +00:00
FFmpegVideoDecoder.h Bug 1650696 - P4. Remove the expectation for a MediaDataDecoder to work on a specified TaskQueue. r=jolin 2020-08-17 23:52:21 +00:00
README_mozilla
moz.build