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/*
19
20 Pathname: s_ProgConfig.h
21
22------------------------------------------------------------------------------
23 REVISION HISTORY
24
25 Who:                       Date:
26 Description:
27
28------------------------------------------------------------------------------
29 INCLUDE DESCRIPTION
30
31 This include file defines the structure, ProgConfig
32
33------------------------------------------------------------------------------
34*/
35
36/*----------------------------------------------------------------------------
37; CONTINUE ONLY IF NOT ALREADY DEFINED
38----------------------------------------------------------------------------*/
39#ifndef S_PROGCONFIG_H
40#define S_PROGCONFIG_H
41
42/*----------------------------------------------------------------------------
43; INCLUDES
44----------------------------------------------------------------------------*/
45#include "pv_audio_type_defs.h"
46#include "s_mixdown.h"
47#include "s_elelist.h"
48
49/*----------------------------------------------------------------------------
50; MACROS
51; Define module specific macros here
52----------------------------------------------------------------------------*/
53
54/*----------------------------------------------------------------------------
55; DEFINES
56; Include all pre-processor statements here.
57----------------------------------------------------------------------------*/
58
59/*----------------------------------------------------------------------------
60; EXTERNAL VARIABLES REFERENCES
61; Declare variables used in this module but defined elsewhere
62----------------------------------------------------------------------------*/
63
64/*----------------------------------------------------------------------------
65; SIMPLE TYPEDEF'S
66----------------------------------------------------------------------------*/
67
68/*----------------------------------------------------------------------------
69; ENUMERATED TYPEDEF'S
70----------------------------------------------------------------------------*/
71
72/*----------------------------------------------------------------------------
73; STRUCTURES TYPEDEF'S
74----------------------------------------------------------------------------*/
75typedef struct
76{
77    Int     profile;
78    Int     sampling_rate_idx;
79    EleList front;
80    EleList side;
81    EleList back;
82    EleList lfe;
83    EleList data;
84    EleList coupling;
85    MIXdown mono_mix;
86    MIXdown stereo_mix;
87    MIXdown matrix_mix;
88
89    Char    comments[(1<<LEN_PC_COMM)+1]; /* TO BE DELETED */
90
91    Int32   buffer_fullness;    /* put this transport level info here */
92    Bool    file_is_adts;       /* For ADTS use only */
93    Int32   headerless_frames;  /* For ADTS use only */
94    Int32   frame_length;       /* For use by ADTS only */
95    Int32   CRC_absent;         /* For use by ADTS only */
96    UInt32  CRC_check;          /* For use by ADTS only */
97
98} ProgConfig;
99
100/*----------------------------------------------------------------------------
101; GLOBAL FUNCTION DEFINITIONS
102; Function Prototype declaration
103----------------------------------------------------------------------------*/
104
105/*----------------------------------------------------------------------------
106; END
107----------------------------------------------------------------------------*/
108#endif
109