• 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 AMRDECODERSPECIFICINFO_H_INCLUDED
19 #define AMRDECODERSPECIFICINFO_H_INCLUDED
20 
21 #ifndef OSCL_STRING_CONTAINERS_H_INCLUDED
22 #include "oscl_string_containers.h"
23 #endif
24 
25 #ifndef ATOMDEFS_H_INCLUDED
26 #include "atomdefs.h"
27 #endif
28 #ifndef DECODERSPECIFICINFO_H_INCLUDED
29 #include "decoderspecificinfo.h"
30 #endif
31 
32 
33 class AMRDecoderSpecificInfo : public DecoderSpecificInfo
34 {
35 
36     public:
37         AMRDecoderSpecificInfo(MP4_FF_FILE *fp, bool o3GPPTrack = false); // Default constructor
~AMRDecoderSpecificInfo()38         virtual ~AMRDecoderSpecificInfo() {}; // Destructor
39 
getVendorcode()40         int32 getVendorcode()
41         {
42             return _VendorCode;
43         }
getEncoderVersion()44         int8 getEncoderVersion()
45         {
46             return _codec_version;
47         }
getFrameType()48         uint8 getFrameType()
49         {
50             return (uint8)(_frame_type & 0x0f);
51         }
getModeSet()52         uint16 getModeSet()
53         {
54             return _mode_set;
55         }
getModeChangePeriod()56         uint8 getModeChangePeriod()
57         {
58             return _mode_change_period;
59         }
getModeChangeNeighbour()60         bool  getModeChangeNeighbour()
61         {
62             return _mode_change_neighbour;
63         }
getFramesPerSample()64         uint8 getFramesPerSample()
65         {
66             return _frames_per_sample;
67         }
68 
69         uint32        _VendorCode;
70         uint8         _codec_version;
71         uint8         _band_mode;
72         uint8         _frame_type;
73         uint16        _mode_set;
74         uint8         _mode_change_period;
75         bool          _mode_change_neighbour;
76         uint8         _frames_per_sample;
77 };
78 
79 #endif // AMRDECODERSPECIFICINFO_H_INCLUDED
80