michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "OMXVideoCodec.h" michael@0: michael@0: #ifdef WEBRTC_GONK michael@0: #include "WebrtcOMXH264VideoCodec.h" michael@0: #endif michael@0: michael@0: namespace mozilla { michael@0: michael@0: VideoEncoder* michael@0: OMXVideoCodec::CreateEncoder(CodecType aCodecType) michael@0: { michael@0: if (aCodecType == CODEC_H264) { michael@0: return new WebrtcOMXH264VideoEncoder(); michael@0: } michael@0: return nullptr; michael@0: } michael@0: michael@0: VideoDecoder* michael@0: OMXVideoCodec::CreateDecoder(CodecType aCodecType) { michael@0: if (aCodecType == CODEC_H264) { michael@0: return new WebrtcOMXH264VideoDecoder(); michael@0: } michael@0: return nullptr; michael@0: } michael@0: michael@0: }