1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/signaling/src/media-conduit/OMXVideoCodec.cpp Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "OMXVideoCodec.h" 1.9 + 1.10 +#ifdef WEBRTC_GONK 1.11 +#include "WebrtcOMXH264VideoCodec.h" 1.12 +#endif 1.13 + 1.14 +namespace mozilla { 1.15 + 1.16 +VideoEncoder* 1.17 +OMXVideoCodec::CreateEncoder(CodecType aCodecType) 1.18 +{ 1.19 + if (aCodecType == CODEC_H264) { 1.20 + return new WebrtcOMXH264VideoEncoder(); 1.21 + } 1.22 + return nullptr; 1.23 +} 1.24 + 1.25 +VideoDecoder* 1.26 +OMXVideoCodec::CreateDecoder(CodecType aCodecType) { 1.27 + if (aCodecType == CODEC_H264) { 1.28 + return new WebrtcOMXH264VideoDecoder(); 1.29 + } 1.30 + return nullptr; 1.31 +} 1.32 + 1.33 +}