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 This PVA_FF_DecoderSpecificInfo Class that holds the Mpeg4 VOL header for the 20 video stream 21 */ 22 23 #ifndef __DecoderSpecificInfo_H__ 24 #define __DecoderSpecificInfo_H__ 25 26 #include "basedescriptor.h" 27 #include "textsampledescinfo.h" 28 29 class PVA_FF_DecoderSpecificInfo : public PVA_FF_BaseDescriptor 30 { 31 32 public: 33 PVA_FF_DecoderSpecificInfo(); // Default constructor 34 35 PVA_FF_DecoderSpecificInfo(uint8 *pdata, uint32 size); // Constructor 36 PVA_FF_DecoderSpecificInfo(PVA_FF_TextSampleDescInfo *pdata, uint32 size); //Constructor for timed text case 37 38 virtual ~PVA_FF_DecoderSpecificInfo(); // Destructor 39 40 void addInfo(uint8 *info, uint32 size); 41 42 // Member get methods getInfoSize()43 uint32 getInfoSize() const 44 { 45 return _infoSize; // Returns the size of the info data 46 } getInfo()47 uint8 *getInfo() const 48 { 49 return _pinfo; // Returns the byte pointer to info 50 } 51 52 virtual bool renderToFileStream(MP4_AUTHOR_FF_FILE_IO_WRAP *fp); 53 virtual void recomputeSize(); 54 55 private: 56 uint32 _infoSize; 57 uint8 *_pinfo; 58 }; 59 60 #endif 61 62