1 /* ------------------------------------------------------------------
2 * Copyright (C) 1998-2009 PacketVideo
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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
14 * See the License for the specific language governing permissions
15 * and limitations under the License.
16 * -------------------------------------------------------------------
20 Filename: s_sbr_header_data.h
23 ------------------------------------------------------------------------------
29 ------------------------------------------------------------------------------
32 ----------------------------------------------------------------------------
33 ; CONTINUE ONLY IF NOT ALREADY DEFINED
34 ----------------------------------------------------------------------------*/
35 #ifndef S_SBR_HEADER_DATA_H
36 #define S_SBR_HEADER_DATA_H
38 /*----------------------------------------------------------------------------
40 ----------------------------------------------------------------------------*/
41 #include "pv_audio_type_defs.h"
42 #include "e_sbr_header_status.h"
43 #include "e_sbr_master_status.h"
44 #include "e_sr_mode.h"
45 /*----------------------------------------------------------------------------
47 ; Define module specific macros here
48 ----------------------------------------------------------------------------*/
50 /*----------------------------------------------------------------------------
52 ; Include all pre-processor statements here.
53 ----------------------------------------------------------------------------*/
55 /*----------------------------------------------------------------------------
56 ; EXTERNAL VARIABLES REFERENCES
57 ; Declare variables used in this module but defined elsewhere
58 ----------------------------------------------------------------------------*/
60 /*----------------------------------------------------------------------------
62 ----------------------------------------------------------------------------*/
64 /*----------------------------------------------------------------------------
65 ; ENUMERATED TYPEDEF'S
66 ----------------------------------------------------------------------------*/
68 /*----------------------------------------------------------------------------
69 ; STRUCTURES TYPEDEF'S
70 ----------------------------------------------------------------------------*/
73 SBR_HEADER_STATUS status; /* the current status of the header */
74 SBR_MASTER_STATUS masterStatus;/* status of v_k_master freq table */
76 /* Changes in these variables indicates an error */
78 SR_MODE sampleRateMode;
81 /* Changes in these variables causes a reset of the decoder */
87 Int32 noise_bands; /* noise bands per octave, read from bitstream */
90 Int32 noNoiseBands; /* actual number of noise bands to read from the bitstream */
95 Int32 smoothingLength;
99 typedef SBR_HEADER_DATA *HANDLE_SBR_HEADER_DATA;
101 /*----------------------------------------------------------------------------
102 ; GLOBAL FUNCTION DEFINITIONS
103 ; Function Prototype declaration
104 ----------------------------------------------------------------------------*/
107 /*----------------------------------------------------------------------------
109 ----------------------------------------------------------------------------*/