Home | History | Annotate | Download | only in include
      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 STYLERECORD_H_INCLUDED
     19 #define STYLERECORD_H_INCLUDED
     20 
     21 #ifndef ATOMUTILS_H_INCLUDED
     22 #include "atomutils.h"
     23 #endif
     24 
     25 class StyleRecord
     26 {
     27 
     28     public:
     29         StyleRecord(MP4_FF_FILE *fp);  // Default constructor
     30         StyleRecord(uint8 *&buf);  // Default constructor
     31         virtual ~StyleRecord();  // Destructor
     32 
     33         uint16 getStartChar()
     34         {
     35             return _startChar;
     36         }
     37 
     38         uint16 getEndChar()
     39         {
     40             return _endChar;
     41         }
     42 
     43         uint16 getFontID()
     44         {
     45             return _fontID;
     46         }
     47 
     48         uint8 getFontStyleFlags()
     49         {
     50             return _fontStyleFlags;
     51         }
     52 
     53         uint8 getfontSize()
     54         {
     55             return _fontSize;
     56         }
     57 
     58         uint8 *getTextColourRGBA()
     59         {
     60             return _pRGBA;
     61         }
     62 
     63         bool MP4Success()
     64         {
     65             return _success;
     66         }
     67 
     68         int32 GetMP4Error()
     69         {
     70             return _mp4ErrorCode;
     71         }
     72 
     73     private:
     74         uint16 _startChar;
     75         uint16 _endChar;
     76         uint16 _fontID;
     77         uint8  _fontStyleFlags;
     78         uint8  _fontSize;
     79         uint8 *_pRGBA;
     80 
     81         bool  _success;
     82         int32 _mp4ErrorCode;
     83 };
     84 
     85 #endif // STYLERECORD_H_INCLUDED
     86 
     87 
     88