1 /* ------------------------------------------------------------------ 2 * Copyright (C) 1998-2009 PacketVideo 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 13 * express or implied. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * ------------------------------------------------------------------- 17 */ 18 /*********************************************************************************/ 19 /* ------------------------------------------------------------------- */ 20 /* MPEG-4 HintMediaHeaderAtom Class */ 21 /* ------------------------------------------------------------------- */ 22 /*********************************************************************************/ 23 /* 24 This HintMediaHeaderAtom Class contains general information, 25 independent of protocol, for the hint tracks within the stream. 26 */ 27 28 29 #ifndef HINTMEDIAHEADERATOM_H_INCLUDED 30 #define HINTMEDIAHEADERATOM_H_INCLUDED 31 32 #ifndef OSCL_FILE_IO_H_INCLUDED 33 #include "oscl_file_io.h" 34 #endif 35 36 #ifndef MEDIAINFORMATIONHEADERATOM_H_INCLUDED 37 #include "mediainformationheaderatom.h" 38 #endif 39 40 class HintMediaHeaderAtom : public MediaInformationHeaderAtom 41 { 42 43 public: 44 HintMediaHeaderAtom(MP4_FF_FILE *fp, uint32 size, uint32 type); 45 virtual ~HintMediaHeaderAtom(); 46 47 virtual uint32 getMediaInformationHeaderType() const; 48 49 // Member gets 50 uint16 getMaxPDUSize() const 51 { 52 return _maxPDUSize; 53 } 54 uint16 getAvgPDUSize() const 55 { 56 return _avgPDUSize; 57 } 58 uint32 getMaxBitrate() const 59 { 60 return _maxBitrate; 61 } 62 uint32 getAvgBitrate() const 63 { 64 return _avgBitrate; 65 } 66 uint32 getSlidingAvgBitrate() const 67 { 68 return _slidingAvgBitrate; 69 } 70 71 private: 72 uint16 _maxPDUSize; 73 uint16 _avgPDUSize; 74 uint32 _maxBitrate; 75 uint32 _avgBitrate; 76 uint32 _slidingAvgBitrate; 77 }; 78 79 #endif // HINTMEDIAHEADERATOM_H_INCLUDED 80 81 82