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 AMRBOX_h_ michael@0: #define AMRBOX_h_ michael@0: michael@0: #include "nsTArray.h" michael@0: #include "MuxerOperation.h" michael@0: michael@0: namespace mozilla { michael@0: michael@0: class ISOControl; michael@0: michael@0: // 3GPP TS 26.244 6.7 'AMRSpecificBox field for AMRSampleEntry box' michael@0: // Box type: 'damr' michael@0: class AMRSpecificBox : public Box { michael@0: public: michael@0: // 3GPP members michael@0: nsTArray amrDecSpecInfo; michael@0: michael@0: // MuxerOperation methods michael@0: nsresult Generate(uint32_t* aBoxSize) MOZ_OVERRIDE; michael@0: nsresult Write() MOZ_OVERRIDE; michael@0: michael@0: // AMRSpecificBox methods michael@0: AMRSpecificBox(ISOControl* aControl); michael@0: ~AMRSpecificBox(); michael@0: }; michael@0: michael@0: // 3GPP TS 26.244 6.5 'AMRSampleEntry box' michael@0: // Box type: 'sawb' michael@0: class AMRSampleEntry : public AudioSampleEntry { michael@0: public: michael@0: // 3GPP members michael@0: nsRefPtr amr_special_box; michael@0: michael@0: // MuxerOperation methods michael@0: nsresult Generate(uint32_t* aBoxSize) MOZ_OVERRIDE; michael@0: nsresult Write() MOZ_OVERRIDE; michael@0: michael@0: // AMRSampleEntry methods michael@0: AMRSampleEntry(ISOControl* aControl); michael@0: ~AMRSampleEntry(); michael@0: }; michael@0: michael@0: } michael@0: michael@0: #endif // AMRBOX_h_