• 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 GPP_AMRDECODERSPECIFICINFO_H_INCLUDED
19 #define GPP_AMRDECODERSPECIFICINFO_H_INCLUDED
20 
21 #ifndef OSCL_STRING_CONTAINERS_H_INCLUDED
22 #include "oscl_string_containers.h"
23 #endif
24 
25 #ifndef ATOM_H_INCLUDED
26 #include "atom.h"
27 #endif
28 
29 #ifndef ATOMDEFS_H_INCLUDED
30 #include "atomdefs.h"
31 #endif
32 
33 #ifndef DECODERSPECIFICINFO_H_INCLUDED
34 #include "decoderspecificinfo.h"
35 #endif
36 
37 
38 class AMRSpecificAtom : public Atom
39 {
40 
41     public:
42         AMRSpecificAtom(MP4_FF_FILE *fp, uint32 size, uint32 type); // Default constructor
~AMRSpecificAtom()43         virtual ~AMRSpecificAtom() {}; // Destructor
44 
getVendorcode()45         uint32 getVendorcode()
46         {
47             return _VendorCode;
48         }
getDecoderVersion()49         uint8  getDecoderVersion()
50         {
51             return _decoder_version;
52         }
getModeSet()53         uint16 getModeSet()
54         {
55             return _mode_set;
56         }
getModeChangePeriod()57         uint8  getModeChangePeriod()
58         {
59             return _mode_change_period;
60         }
getFramesPerSample()61         uint8  getFramesPerSample()
62         {
63             return _frames_per_sample;
64         }
getBitRate()65         int32  getBitRate()
66         {
67             return _bitRate;
68         }
69 
70     private:
71         uint32        _VendorCode;
72         uint8         _decoder_version;
73         uint16        _mode_set;
74         uint8         _mode_change_period;
75         uint8         _frames_per_sample;
76         int32         _bitRate;
77 };
78 
79 #endif // GPP_AMRDECODERSPECIFICINFO_H_INCLUDED
80