Issue #80 - De-unify dom/media part 1 (updated reland)

This de-unifies up to and including dom/media/platforms with the exception of
dom/media/platforms/wmf, because that one throws weird errors in the Win
SDK which don't have a clear cause (yet)
This commit is contained in:
Moonchild 2020-04-22 02:32:20 +00:00 • committed by Roy Tam
commit 527ad10c12
41 changed files with 81 additions and 50 deletions

View file

@ -7,6 +7,7 @@
#if !defined(PlatformDecoderModule_h_)
#define PlatformDecoderModule_h_
#include "ImageContainer.h"
#include "MediaDecoderReader.h"
#include "MediaInfo.h"
#include "mozilla/MozPromise.h"

View file

@ -10,6 +10,7 @@
#include "nsError.h"
#include "TimeUnits.h"
#include "mozilla/PodOperations.h"
#include "mozilla/SyncRunnable.h"
#include <algorithm>

View file

@ -11,7 +11,7 @@ EXPORTS += [
'SamplesWaitingForKey.h',
]
UNIFIED_SOURCES += [
SOURCES += [
'EMEAudioDecoder.cpp',
'EMEDecoderModule.cpp',
'EMEVideoDecoder.cpp',

View file

@ -10,6 +10,7 @@
#include "prsystem.h"
#include "MediaData.h"
#include "GMPDecoderModule.h"
#include "MP4Decoder.h"
#include "VPXDecoder.h"
namespace mozilla {

View file

@ -11,7 +11,7 @@ EXPORTS += [
'MediaDataDecoderProxy.h',
]
UNIFIED_SOURCES += [
SOURCES += [
'GMPAudioDecoder.cpp',
'GMPDecoderModule.cpp',
'GMPVideoDecoder.cpp',

View file

@ -16,6 +16,7 @@
#include "FFmpegVideoDecoder.h"
#include "FFmpegLog.h"
#include "mozilla/PodOperations.h"
#include "prsystem.h" // for PR_GetNumberOfProcessors
#include "libavutil/pixfmt.h"
#if LIBAVCODEC_VERSION_MAJOR < 54

View file

@ -4,7 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
UNIFIED_SOURCES += [
SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',

View file

@ -4,7 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
UNIFIED_SOURCES += [
SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',

View file

@ -9,7 +9,7 @@ EXPORTS += [
'FFVPXRuntimeLinker.h',
]
UNIFIED_SOURCES += [
SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',

View file

@ -4,7 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
UNIFIED_SOURCES += [
SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',

View file

@ -4,7 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
UNIFIED_SOURCES += [
SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',

View file

@ -4,7 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
UNIFIED_SOURCES += [
SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',

View file

@ -16,7 +16,7 @@ DIRS += [
'ffmpeg58',
]
UNIFIED_SOURCES += [
SOURCES += [
'FFmpegRuntimeLinker.cpp',
]

View file

@ -16,7 +16,7 @@ EXPORTS += [
'wrappers/H264Converter.h'
]
UNIFIED_SOURCES += [
SOURCES += [
'agnostic/AgnosticDecoderModule.cpp',
'agnostic/BlankDecoderModule.cpp',
'agnostic/OpusDecoder.cpp',
@ -42,7 +42,7 @@ if CONFIG['MOZ_WMF']:
if CONFIG['MOZ_FFVPX'] or CONFIG['MOZ_FFMPEG']:
# common code to either FFmpeg or FFVPX
UNIFIED_SOURCES += [
SOURCES += [
'ffmpeg/FFmpegLibWrapper.cpp',
]
@ -60,7 +60,7 @@ if CONFIG['MOZ_AV1']:
EXPORTS += [
'agnostic/AOMDecoder.h',
]
UNIFIED_SOURCES += [
SOURCES += [
'agnostic/AOMDecoder.cpp',
]
@ -68,7 +68,7 @@ if CONFIG['MOZ_APPLEMEDIA']:
EXPORTS += [
'apple/AppleDecoderModule.h',
]
UNIFIED_SOURCES += [
SOURCES += [
'apple/AppleATDecoder.cpp',
'apple/AppleCMLinker.cpp',
'apple/AppleDecoderModule.cpp',
@ -85,7 +85,7 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
EXPORTS += [
'android/AndroidDecoderModule.h',
]
UNIFIED_SOURCES += [
SOURCES += [
'android/AndroidDecoderModule.cpp',
'android/MediaCodecDataDecoder.cpp',
'android/RemoteDataDecoder.cpp',

View file

@ -6,6 +6,8 @@
#include "OmxPlatformLayer.h"
#include "OmxDataDecoder.h"
#include "OMX_VideoExt.h" // For VP8.
#include "VPXDecoder.h"

View file

@ -7,6 +7,7 @@
#if !defined(OmxPlatformLayer_h_)
#define OmxPlatformLayer_h_
#include "OMX_Component.h"
#include "OMX_Core.h"
#include "OMX_Types.h"

View file

@ -8,7 +8,7 @@ EXPORTS += [
'OmxDecoderModule.h',
]
UNIFIED_SOURCES += [
SOURCES += [
'OmxDataDecoder.cpp',
'OmxDecoderModule.cpp',
'OmxPlatformLayer.cpp',

View file

@ -14,6 +14,7 @@ EXPORTS += [
'WMFUtils.h',
'WMFVideoMFTManager.h',
]
UNIFIED_SOURCES += [
'DXVA2Manager.cpp',
'MFTDecoder.cpp',

View file

@ -6,6 +6,8 @@
#include "FuzzingWrapper.h"
#include "mozilla/SharedThreadPool.h"
mozilla::LogModule* GetFuzzingWrapperLog() {
static mozilla::LazyLogModule log("MediaFuzzingWrapper");
return log;

View file

@ -6,9 +6,11 @@
#include "mozilla/TaskQueue.h"
#include "DecoderDoctorDiagnostics.h"
#include "H264Converter.h"
#include "ImageContainer.h"
#include "MediaInfo.h"
#include "PDMFactory.h"
#include "mp4_demuxer/AnnexB.h"
#include "mp4_demuxer/H264.h"