~diresu/blender/blender-command-port

« back to all changes in this revision

Viewing changes to extern/libmp3lame/l3side.h

  • Committer: theeth
  • Date: 2008-10-14 16:52:04 UTC
  • Revision ID: vcs-imports@canonical.com-20081014165204-r32w2gm6s0osvdhn
copy back trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *      Layer 3 side include file
 
3
 *
 
4
 *      Copyright (c) 1999 Mark Taylor
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Library General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Library General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Library General Public
 
17
 * License along with this library; if not, write to the
 
18
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
19
 * Boston, MA 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef LAME_L3SIDE_H
 
23
#define LAME_L3SIDE_H
 
24
 
 
25
#include "encoder.h"
 
26
#include "machine.h"
 
27
 
 
28
/* max scalefactor band, max(SBMAX_l, SBMAX_s*3, (SBMAX_s-3)*3+8) */
 
29
#define SFBMAX (SBMAX_s*3)
 
30
 
 
31
/* Layer III side information. */
 
32
typedef struct 
 
33
{
 
34
    int l[1+SBMAX_l];
 
35
    int s[1+SBMAX_s];
 
36
    int psfb21[1+PSFB21];
 
37
    int psfb12[1+PSFB12];
 
38
} scalefac_struct;
 
39
 
 
40
 
 
41
typedef struct {
 
42
    FLOAT       l[SBMAX_l];
 
43
    FLOAT       s[SBMAX_s][3];
 
44
} III_psy_xmin;
 
45
 
 
46
typedef struct {
 
47
    III_psy_xmin thm;
 
48
    III_psy_xmin en;
 
49
} III_psy_ratio;
 
50
 
 
51
typedef struct {
 
52
    FLOAT xr[576];
 
53
    int l3_enc[576];
 
54
    int scalefac[SFBMAX];
 
55
    FLOAT xrpow_max;
 
56
 
 
57
    int part2_3_length;
 
58
    int big_values;
 
59
    int count1;
 
60
    int global_gain;
 
61
    int scalefac_compress;
 
62
    int block_type;
 
63
    int mixed_block_flag;
 
64
    int table_select[3];
 
65
    int subblock_gain[3+1];
 
66
    int region0_count;
 
67
    int region1_count;
 
68
    int preflag;
 
69
    int scalefac_scale;
 
70
    int count1table_select;
 
71
 
 
72
    int part2_length;
 
73
    int sfb_lmax;
 
74
    int sfb_smin;
 
75
    int psy_lmax;
 
76
    int sfbmax;
 
77
    int psymax;
 
78
    int sfbdivide;
 
79
    int width[SFBMAX];
 
80
    int window[SFBMAX];
 
81
    int count1bits;
 
82
    /* added for LSF */
 
83
    const int *sfb_partition_table;
 
84
    int slen[4];
 
85
 
 
86
    int max_nonzero_coeff;
 
87
} gr_info;
 
88
 
 
89
typedef struct {
 
90
        gr_info tt[2][2];
 
91
        int main_data_begin; 
 
92
        int private_bits;
 
93
        int resvDrain_pre;
 
94
        int resvDrain_post;
 
95
        int scfsi[2][4];
 
96
} III_side_info_t;
 
97
 
 
98
#endif
 
99