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 #ifndef ATOMUTILS_H_INCLUDED 22 #include "atomutils.h" 23 #endif 24 25 class BoxRecord 26 { 27 28 public: 29 BoxRecord(MP4_FF_FILE *fp); // Default constructor 30 BoxRecord(uint8 *&buf); // Default constructor 31 virtual ~BoxRecord() {}; // Destructor 32 33 int16 getBoxTop() 34 { 35 return _top; 36 } 37 38 int16 getBoxLeft() 39 { 40 return _left; 41 } 42 43 int16 getBoxBottom() 44 { 45 return _bottom; 46 } 47 48 int16 getBoxRight() 49 { 50 return _right; 51 } 52 53 bool MP4Success() 54 { 55 return _success; 56 } 57 58 int32 GetMP4Error() 59 { 60 return _mp4ErrorCode; 61 } 62 63 private: 64 int16 _top; 65 int16 _left; 66 int16 _bottom; 67 int16 _right; 68 69 bool _success; 70 int32 _mp4ErrorCode; 71 }; 72 73 #endif // BOXRECORD_H_INCLUDED 74 75