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 #ifndef BOXRECORD_H_INCLUDED 19 #define BOXRECORD_H_INCLUDED 20 21 22 #include "atom.h" 23 #include "atomutils.h" 24 #include "oscl_file_io.h" 25 26 //This class is specific to the Timed text file format 27 //It holds the information of the dimensions of text box in which text will be rendered 28 //on the screen. 29 class PVA_FF_BoxRecord : public PVA_FF_Atom 30 { 31 32 public: 33 PVA_FF_BoxRecord(); // Default constructor 34 PVA_FF_BoxRecord(int16 Top, int16 Bottom, int16 Left, int16 Right); 35 virtual ~PVA_FF_BoxRecord() {}; // Destructor 36 37 void setBoxTop(int16 top1); 38 void setBoxLeft(int16 left1); 39 void setBoxBottom(int16 bottom1); 40 void setBoxRight(int16 right1); 41 virtual bool renderToFileStream(MP4_AUTHOR_FF_FILE_IO_WRAP *fp); 42 virtual void recomputeSize(); 43 virtual uint32 getSize(); 44 45 private: 46 uint8* _sample; 47 int16 _top; 48 int16 _left; 49 int16 _bottom; 50 int16 _right; 51 52 }; 53 54 55 #endif // BOXRECORD_H_INCLUDED 56