Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-*/ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 4 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef AMRBOX_h_ |
michael@0 | 7 | #define AMRBOX_h_ |
michael@0 | 8 | |
michael@0 | 9 | #include "nsTArray.h" |
michael@0 | 10 | #include "MuxerOperation.h" |
michael@0 | 11 | |
michael@0 | 12 | namespace mozilla { |
michael@0 | 13 | |
michael@0 | 14 | class ISOControl; |
michael@0 | 15 | |
michael@0 | 16 | // 3GPP TS 26.244 6.7 'AMRSpecificBox field for AMRSampleEntry box' |
michael@0 | 17 | // Box type: 'damr' |
michael@0 | 18 | class AMRSpecificBox : public Box { |
michael@0 | 19 | public: |
michael@0 | 20 | // 3GPP members |
michael@0 | 21 | nsTArray<uint8_t> amrDecSpecInfo; |
michael@0 | 22 | |
michael@0 | 23 | // MuxerOperation methods |
michael@0 | 24 | nsresult Generate(uint32_t* aBoxSize) MOZ_OVERRIDE; |
michael@0 | 25 | nsresult Write() MOZ_OVERRIDE; |
michael@0 | 26 | |
michael@0 | 27 | // AMRSpecificBox methods |
michael@0 | 28 | AMRSpecificBox(ISOControl* aControl); |
michael@0 | 29 | ~AMRSpecificBox(); |
michael@0 | 30 | }; |
michael@0 | 31 | |
michael@0 | 32 | // 3GPP TS 26.244 6.5 'AMRSampleEntry box' |
michael@0 | 33 | // Box type: 'sawb' |
michael@0 | 34 | class AMRSampleEntry : public AudioSampleEntry { |
michael@0 | 35 | public: |
michael@0 | 36 | // 3GPP members |
michael@0 | 37 | nsRefPtr<AMRSpecificBox> amr_special_box; |
michael@0 | 38 | |
michael@0 | 39 | // MuxerOperation methods |
michael@0 | 40 | nsresult Generate(uint32_t* aBoxSize) MOZ_OVERRIDE; |
michael@0 | 41 | nsresult Write() MOZ_OVERRIDE; |
michael@0 | 42 | |
michael@0 | 43 | // AMRSampleEntry methods |
michael@0 | 44 | AMRSampleEntry(ISOControl* aControl); |
michael@0 | 45 | ~AMRSampleEntry(); |
michael@0 | 46 | }; |
michael@0 | 47 | |
michael@0 | 48 | } |
michael@0 | 49 | |
michael@0 | 50 | #endif // AMRBOX_h_ |