зеркало из https://github.com/mozilla/gecko-dev.git
5be22726b0
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 |
||
---|---|---|
.. | ||
ffmpeg57 | ||
ffmpeg58 | ||
ffvpx | ||
libav53 | ||
libav54 | ||
libav55 | ||
FFmpegAudioDecoder.cpp | ||
FFmpegAudioDecoder.h | ||
FFmpegDataDecoder.cpp | ||
FFmpegDataDecoder.h | ||
FFmpegDecoderModule.cpp | ||
FFmpegDecoderModule.h | ||
FFmpegLibWrapper.cpp | ||
FFmpegLibWrapper.h | ||
FFmpegLibs.h | ||
FFmpegLog.h | ||
FFmpegRDFTTypes.h | ||
FFmpegRuntimeLinker.cpp | ||
FFmpegRuntimeLinker.h | ||
FFmpegVideoDecoder.cpp | ||
FFmpegVideoDecoder.h | ||
README_mozilla | ||
moz.build |