gecko-dev/dom/media/platforms/agnostic/AgnosticDecoderModule.h
Jean-Yves Avenard 572d9a0a80 Bug 1339748: P2. Let the MediaDataDecoder tells the format it wants. r=cpearce
MozReview-Commit-ID: 22GEUnwEacd

--HG--
extra : rebase_source : 019627d3ff0ef0430bcaf83a4098ffd62fc53b05
2017-02-17 22:19:55 +01:00

30 lines
743 B
C++

#if !defined(AgnosticDecoderModule_h_)
#define AgnosticDecoderModule_h_
#include "PlatformDecoderModule.h"
namespace mozilla {
class AgnosticDecoderModule : public PlatformDecoderModule
{
public:
AgnosticDecoderModule() = default;
bool SupportsMimeType(const nsACString& aMimeType,
DecoderDoctorDiagnostics* aDiagnostics) const override;
protected:
virtual ~AgnosticDecoderModule() = default;
// Decode thread.
already_AddRefed<MediaDataDecoder>
CreateVideoDecoder(const CreateDecoderParams& aParams) override;
// Decode thread.
already_AddRefed<MediaDataDecoder>
CreateAudioDecoder(const CreateDecoderParams& aParams) override;
};
} // namespace mozilla
#endif /* AgnosticDecoderModule_h_ */