AndroidEncoderModule.h (998B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #ifndef DOM_MEDIA_PLATFORMS_ANDROID_ANDROIDENCODERMODULE_H_ 6 #define DOM_MEDIA_PLATFORMS_ANDROID_ANDROIDENCODERMODULE_H_ 7 8 #include "PlatformEncoderModule.h" 9 10 namespace mozilla { 11 12 class AndroidEncoderModule final : public PlatformEncoderModule { 13 public: 14 AndroidEncoderModule() = default; 15 virtual ~AndroidEncoderModule() = default; 16 // aCodec is the full codec string 17 media::EncodeSupportSet Supports(const EncoderConfig& aConfig) const override; 18 media::EncodeSupportSet SupportsCodec(CodecType aCodec) const override; 19 20 const char* GetName() const override { return "Android Encoder Module"; } 21 22 already_AddRefed<MediaDataEncoder> CreateVideoEncoder( 23 const EncoderConfig& aConfig, 24 const RefPtr<TaskQueue>& aTaskQueue) const override; 25 }; 26 27 } // namespace mozilla 28 29 #endif