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: #ifndef OMX_VIDEO_CODEC_H_ michael@0: #define OMX_VIDEO_CODEC_H_ michael@0: michael@0: #include "MediaConduitInterface.h" michael@0: michael@0: namespace mozilla { michael@0: class OMXVideoCodec { michael@0: public: michael@0: enum CodecType { michael@0: CODEC_H264, michael@0: }; michael@0: michael@0: /** michael@0: * Create encoder object for codec type |aCodecType|. Return |nullptr| when michael@0: * failed. michael@0: */ michael@0: static VideoEncoder* CreateEncoder(CodecType aCodecType); michael@0: michael@0: /** michael@0: * Create decoder object for codec type |aCodecType|. Return |nullptr| when michael@0: * failed. michael@0: */ michael@0: static VideoDecoder* CreateDecoder(CodecType aCodecType); michael@0: }; michael@0: michael@0: } michael@0: michael@0: #endif // OMX_VIDEO_CODEC_H_