• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 FONTRECORD_H_INCLUDED
19 #define FONTRECORD_H_INCLUDED
20 
21 #ifndef OSCL_BASE_H_INCLUDE
22 #include "oscl_base.h"
23 #endif
24 
25 class MP4_FF_FILE;
26 
27 class FontRecord
28 {
29 
30     public:
31         FontRecord(MP4_FF_FILE *fp);  // Default constructor
32         virtual ~FontRecord();  // Destructor
33 
getFontID()34         uint16 getFontID()
35         {
36             return _fontID;
37         }
38 
getFontLength()39         int8   getFontLength()
40         {
41             return _fontLength;
42         }
43 
getFontName()44         uint8* getFontName()
45         {
46             return _pFontName;
47         }
48 
GetMP4Success()49         bool GetMP4Success()
50         {
51             return _success;
52         }
53 
GetMP4Error()54         int32 GetMP4Error()
55         {
56             return _mp4ErrorCode;
57         }
58 
59     private:
60         uint16 _fontID;
61         int8   _fontLength;
62         uint8  *_pFontName;
63 
64         bool  _success;
65         int32 _mp4ErrorCode;
66 };
67 
68 
69 #endif // FONTRECORD_H_INCLUDED
70 
71