michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-*/ 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 OMXCodecDescriptorUtil_h_ michael@0: #define OMXCodecDescriptorUtil_h_ michael@0: michael@0: #include michael@0: #include michael@0: michael@0: #include michael@0: michael@0: #include "OMXCodecWrapper.h" michael@0: michael@0: namespace android { michael@0: // Generate decoder config blob using aConfigData provided by encoder. michael@0: // The output will be stored in aOutputBuf. michael@0: // aFormat specifies the output format: AVC_MP4 is for MP4 file, and AVC_NAL is michael@0: // for RTP packet used by WebRTC. michael@0: status_t GenerateAVCDescriptorBlob(sp& aConfigData, michael@0: nsTArray* aOutputBuf, michael@0: OMXVideoEncoder::BlobFormat aFormat); michael@0: michael@0: } michael@0: michael@0: #endif // OMXCodecDescriptorUtil_h_