Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
176c922e
Unverified
Commit
176c922e
authored
Mar 22, 2024
by
Lynne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacsbr: constify the only SBR table
parent
03cf1016
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
163 additions
and
11 deletions
+163
-11
aacsbr_template.c
libavcodec/aacsbr_template.c
+0
-10
aacsbrdata.h
libavcodec/aacsbrdata.h
+163
-1
No files found.
libavcodec/aacsbr_template.c
View file @
176c922e
...
...
@@ -49,18 +49,8 @@ static inline SpectralBandReplication *get_sbr(ChannelElement *ch)
return
&
((
ExtChannelElement
*
)
ch
)
->
sbr
;
}
static
av_cold
void
aacsbr_tableinit
(
void
)
{
int
n
;
for
(
n
=
0
;
n
<
320
;
n
++
)
sbr_qmf_window_ds
[
n
]
=
sbr_qmf_window_us
[
2
*
n
];
}
av_cold
void
AAC_RENAME
(
ff_aac_sbr_init
)(
void
)
{
aacsbr_tableinit
();
AAC_RENAME
(
ff_ps_init
)();
}
...
...
libavcodec/aacsbrdata.h
View file @
176c922e
...
...
@@ -42,7 +42,169 @@ static const int8_t sbr_offset[6][16] = {
};
///< window coefficients for analysis/synthesis QMF banks
static
DECLARE_ALIGNED
(
32
,
INTFLOAT
,
sbr_qmf_window_ds
)[
320
];
static
const
DECLARE_ALIGNED
(
32
,
INTFLOAT
,
sbr_qmf_window_ds
)[
320
]
=
{
Q31
(
0
.
0000000000
f
),
Q31
(
-
0
.
00056176
92
f
),
Q31
(
-
0
.
0004
875227
f
),
Q31
(
-
0
.
0005040714
f
),
Q31
(
-
0
.
0005466565
f
),
Q31
(
-
0
.
0005
870930
f
),
Q31
(
-
0
.
00063124
93
f
),
Q31
(
-
0
.
00067776
90
f
),
Q31
(
-
0
.
0007157736
f
),
Q31
(
-
0
.
0007440
941
f
),
Q31
(
-
0
.
00076
81371
f
),
Q31
(
-
0
.
0007
834332
f
),
Q31
(
-
0
.
0007
803664
f
),
Q31
(
-
0
.
0007757
977
f
),
Q31
(
-
0
.
0007530001
f
),
Q31
(
-
0
.
00072153
91
f
),
Q31
(
-
0
.
0006650415
f
),
Q31
(
-
0
.
0005
946118
f
),
Q31
(
-
0
.
0005145572
f
),
Q31
(
-
0
.
00040
95121
f
),
Q31
(
-
0
.
0002
896981
f
),
Q31
(
-
0
.
00014463
80
f
),
Q31
(
0
.
0000134
949
f
),
Q31
(
0
.
0002043017
f
),
Q31
(
0
.
0004026540
f
),
Q31
(
0
.
000623
9376
f
),
Q31
(
0
.
000
8608443
f
),
Q31
(
0
.
0011250155
f
),
Q31
(
0
.
0013
902494
f
),
Q31
(
0
.
0016
868083
f
),
Q31
(
0
.
001
9841140
f
),
Q31
(
0
.
0023017254
f
),
Q31
(
0
.
002620175
8
f
),
Q31
(
0
.
002
9469447
f
),
Q31
(
0
.
003273
9613
f
),
Q31
(
0
.
003600
8268
f
),
Q31
(
0
.
003
9207432
f
),
Q31
(
0
.
004226426
9
f
),
Q31
(
0
.
004520
9852
f
),
Q31
(
0
.
0047
932560
f
),
Q31
(
0
.
00503
93022
f
),
Q31
(
0
.
0052461166
f
),
Q31
(
0
.
00541
96775
f
),
Q31
(
0
.
0055475714
f
),
Q31
(
0
.
0056220643
f
),
Q31
(
0
.
00563
89199
f
),
Q31
(
0
.
0055
917128
f
),
Q31
(
0
.
00547537
83
f
),
Q31
(
0
.
005271575
8
f
),
Q31
(
0
.
004
9839687
f
),
Q31
(
0
.
004603
9530
f
),
Q31
(
0
.
0041251642
f
),
Q31
(
0
.
0035401246
f
),
Q31
(
0
.
002
8446757
f
),
Q31
(
0
.
0020274176
f
),
Q31
(
0
.
0010
902329
f
),
Q31
(
0
.
0000276045
f
),
Q31
(
-
0
.
001156
8135
f
),
Q31
(
-
0
.
0024
826723
f
),
Q31
(
-
0
.
003
9401124
f
),
Q31
(
-
0
.
0055337211
f
),
Q31
(
-
0
.
0072615
816
f
),
Q31
(
-
0
.
00
91325329
f
),
Q31
(
-
0
.
011131554
8
f
),
Q31
(
0
.
013271
8220
f
),
Q31
(
0
.
0155405553
f
),
Q31
(
0
.
017
9433381
f
),
Q31
(
0
.
02045317
93
f
),
Q31
(
0
.
02306
80169
f
),
Q31
(
0
.
0257
875847
f
),
Q31
(
0
.
02
86072173
f
),
Q31
(
0
.
031501760
8
f
),
Q31
(
0
.
0344620
948
f
),
Q31
(
0
.
0374
812850
f
),
Q31
(
0
.
040534
9170
f
),
Q31
(
0
.
04360
97542
f
),
Q31
(
0
.
0466
843027
f
),
Q31
(
0
.
04
97385755
f
),
Q31
(
0
.
0527630746
f
),
Q31
(
0
.
055717364
8
f
),
Q31
(
0
.
05
85915683
f
),
Q31
(
0
.
0613455171
f
),
Q31
(
0
.
063
9715898
f
),
Q31
(
0
.
0664367512
f
),
Q31
(
0
.
06
87043828
f
),
Q31
(
0
.
070762
8710
f
),
Q31
(
0
.
07256
82583
f
),
Q31
(
0
.
0741003642
f
),
Q31
(
0
.
0753137336
f
),
Q31
(
0
.
0761
992479
f
),
Q31
(
0
.
07670
93490
f
),
Q31
(
0
.
076
8230011
f
),
Q31
(
0
.
076505071
8
f
),
Q31
(
0
.
0757305756
f
),
Q31
(
0
.
07446643
94
f
),
Q31
(
0
.
0726774642
f
),
Q31
(
0
.
0703533073
f
),
Q31
(
0
.
0674525021
f
),
Q31
(
0
.
063
9444805
f
),
Q31
(
0
.
05
98166570
f
),
Q31
(
0
.
0550460034
f
),
Q31
(
0
.
04
95978676
f
),
Q31
(
0
.
043476
8782
f
),
Q31
(
0
.
036641
8116
f
),
Q31
(
0
.
02
90824006
f
),
Q31
(
0
.
0207
997072
f
),
Q31
(
0
.
0117623
832
f
),
Q31
(
0
.
001
9765601
f
),
Q31
(
-
0
.
00
85711749
f
),
Q31
(
-
0
.
01
98834129
f
),
Q31
(
-
0
.
031
9531274
f
),
Q31
(
-
0
.
0447
806821
f
),
Q31
(
-
0
.
05
83705326
f
),
Q31
(
-
0
.
0726
943300
f
),
Q31
(
-
0
.
0877547536
f
),
Q31
(
-
0
.
1035329531
f
),
Q31
(
-
0
.
1200077984
f
),
Q31
(
-
0
.
1371551761
f
),
Q31
(
-
0
.
1549607071
f
),
Q31
(
-
0
.
1733808172
f
),
Q31
(
-
0
.
1923966745
f
),
Q31
(
-
0
.
2119735853
f
),
Q31
(
-
0
.
2320690870
f
),
Q31
(
-
0
.
2526480309
f
),
Q31
(
-
0
.
2736634040
f
),
Q31
(
-
0
.
2950716717
f
),
Q31
(
-
0
.
3168278913
f
),
Q31
(
-
0
.
3388722693
f
),
Q31
(
0
.
3611589903
f
),
Q31
(
0
.
3836350013
f
),
Q31
(
0
.
4062317676
f
),
Q31
(
0
.
4289119920
f
),
Q31
(
0
.
4515996535
f
),
Q31
(
0
.
4742453214
f
),
Q31
(
0
.
4967708254
f
),
Q31
(
0
.
5191234970
f
),
Q31
(
0
.
5412553448
f
),
Q31
(
0
.
5630789140
f
),
Q31
(
0
.
5845403235
f
),
Q31
(
0
.
6055783538
f
),
Q31
(
0
.
6261242695
f
),
Q31
(
0
.
6461269695
f
),
Q31
(
0
.
6655139880
f
),
Q31
(
0
.
6842353293
f
),
Q31
(
0
.
7022388719
f
),
Q31
(
0
.
7194462634
f
),
Q31
(
0
.
7358211758
f
),
Q31
(
0
.
7513137456
f
),
Q31
(
0
.
7658674865
f
),
Q31
(
0
.
7794287519
f
),
Q31
(
0
.
7919735841
f
),
Q31
(
0
.
8034485751
f
),
Q31
(
0
.
8138191270
f
),
Q31
(
0
.
8230419890
f
),
Q31
(
0
.
8311038457
f
),
Q31
(
0
.
8379717337
f
),
Q31
(
0
.
8436238281
f
),
Q31
(
0
.
8480315777
f
),
Q31
(
0
.
8511971524
f
),
Q31
(
0
.
8531020949
f
),
Q31
(
0
.
8537385600
f
),
Q31
(
0
.
8531020949
f
),
Q31
(
0
.
8511971524
f
),
Q31
(
0
.
8480315777
f
),
Q31
(
0
.
8436238281
f
),
Q31
(
0
.
8379717337
f
),
Q31
(
0
.
8311038457
f
),
Q31
(
0
.
8230419890
f
),
Q31
(
0
.
8138191270
f
),
Q31
(
0
.
8034485751
f
),
Q31
(
0
.
7919735841
f
),
Q31
(
0
.
7794287519
f
),
Q31
(
0
.
7658674865
f
),
Q31
(
0
.
7513137456
f
),
Q31
(
0
.
7358211758
f
),
Q31
(
0
.
7194462634
f
),
Q31
(
0
.
7022388719
f
),
Q31
(
0
.
6842353293
f
),
Q31
(
0
.
6655139880
f
),
Q31
(
0
.
6461269695
f
),
Q31
(
0
.
6261242695
f
),
Q31
(
0
.
6055783538
f
),
Q31
(
0
.
5845403235
f
),
Q31
(
0
.
5630789140
f
),
Q31
(
0
.
5412553448
f
),
Q31
(
0
.
5191234970
f
),
Q31
(
0
.
4967708254
f
),
Q31
(
0
.
4742453214
f
),
Q31
(
0
.
4515996535
f
),
Q31
(
0
.
4289119920
f
),
Q31
(
0
.
4062317676
f
),
Q31
(
0
.
3836350013
f
),
-
Q31
(
0
.
3611589903
f
),
Q31
(
-
0
.
3388722693
f
),
Q31
(
-
0
.
3168278913
f
),
Q31
(
-
0
.
2950716717
f
),
Q31
(
-
0
.
2736634040
f
),
Q31
(
-
0
.
2526480309
f
),
Q31
(
-
0
.
2320690870
f
),
Q31
(
-
0
.
2119735853
f
),
Q31
(
-
0
.
1923966745
f
),
Q31
(
-
0
.
1733808172
f
),
Q31
(
-
0
.
1549607071
f
),
Q31
(
-
0
.
1371551761
f
),
Q31
(
-
0
.
1200077984
f
),
Q31
(
-
0
.
1035329531
f
),
Q31
(
-
0
.
0877547536
f
),
Q31
(
-
0
.
0726
943300
f
),
Q31
(
-
0
.
05
83705326
f
),
Q31
(
-
0
.
0447
806821
f
),
Q31
(
-
0
.
031
9531274
f
),
Q31
(
-
0
.
01
98834129
f
),
Q31
(
-
0
.
00
85711749
f
),
Q31
(
0
.
001
9765601
f
),
Q31
(
0
.
0117623
832
f
),
Q31
(
0
.
0207
997072
f
),
Q31
(
0
.
02
90824006
f
),
Q31
(
0
.
036641
8116
f
),
Q31
(
0
.
043476
8782
f
),
Q31
(
0
.
04
95978676
f
),
Q31
(
0
.
0550460034
f
),
Q31
(
0
.
05
98166570
f
),
Q31
(
0
.
063
9444805
f
),
Q31
(
0
.
0674525021
f
),
Q31
(
0
.
0703533073
f
),
Q31
(
0
.
0726774642
f
),
Q31
(
0
.
07446643
94
f
),
Q31
(
0
.
0757305756
f
),
Q31
(
0
.
076505071
8
f
),
Q31
(
0
.
076
8230011
f
),
Q31
(
0
.
07670
93490
f
),
Q31
(
0
.
0761
992479
f
),
Q31
(
0
.
0753137336
f
),
Q31
(
0
.
0741003642
f
),
Q31
(
0
.
07256
82583
f
),
Q31
(
0
.
070762
8710
f
),
Q31
(
0
.
06
87043828
f
),
Q31
(
0
.
0664367512
f
),
Q31
(
0
.
063
9715898
f
),
Q31
(
0
.
0613455171
f
),
Q31
(
0
.
05
85915683
f
),
Q31
(
0
.
055717364
8
f
),
Q31
(
0
.
0527630746
f
),
Q31
(
0
.
04
97385755
f
),
Q31
(
0
.
0466
843027
f
),
Q31
(
0
.
04360
97542
f
),
Q31
(
0
.
040534
9170
f
),
Q31
(
0
.
0374
812850
f
),
Q31
(
0
.
0344620
948
f
),
Q31
(
0
.
031501760
8
f
),
Q31
(
0
.
02
86072173
f
),
Q31
(
0
.
0257
875847
f
),
Q31
(
0
.
02306
80169
f
),
Q31
(
0
.
02045317
93
f
),
Q31
(
0
.
017
9433381
f
),
Q31
(
0
.
0155405553
f
),
-
Q31
(
0
.
013271
8220
f
),
Q31
(
-
0
.
011131554
8
f
),
Q31
(
-
0
.
00
91325329
f
),
Q31
(
-
0
.
0072615
816
f
),
Q31
(
-
0
.
0055337211
f
),
Q31
(
-
0
.
003
9401124
f
),
Q31
(
-
0
.
0024
826723
f
),
Q31
(
-
0
.
001156
8135
f
),
Q31
(
0
.
0000276045
f
),
Q31
(
0
.
0010
902329
f
),
Q31
(
0
.
0020274176
f
),
Q31
(
0
.
002
8446757
f
),
Q31
(
0
.
0035401246
f
),
Q31
(
0
.
0041251642
f
),
Q31
(
0
.
004603
9530
f
),
Q31
(
0
.
004
9839687
f
),
Q31
(
0
.
005271575
8
f
),
Q31
(
0
.
00547537
83
f
),
Q31
(
0
.
0055
917128
f
),
Q31
(
0
.
00563
89199
f
),
Q31
(
0
.
0056220643
f
),
Q31
(
0
.
0055475714
f
),
Q31
(
0
.
00541
96775
f
),
Q31
(
0
.
0052461166
f
),
Q31
(
0
.
00503
93022
f
),
Q31
(
0
.
0047
932560
f
),
Q31
(
0
.
004520
9852
f
),
Q31
(
0
.
004226426
9
f
),
Q31
(
0
.
003
9207432
f
),
Q31
(
0
.
003600
8268
f
),
Q31
(
0
.
003273
9613
f
),
Q31
(
0
.
002
9469447
f
),
Q31
(
0
.
002620175
8
f
),
Q31
(
0
.
0023017254
f
),
Q31
(
0
.
001
9841140
f
),
Q31
(
0
.
0016
868083
f
),
Q31
(
0
.
0013
902494
f
),
Q31
(
0
.
0011250155
f
),
Q31
(
0
.
000
8608443
f
),
Q31
(
0
.
000623
9376
f
),
Q31
(
0
.
0004026540
f
),
Q31
(
0
.
0002043017
f
),
Q31
(
0
.
0000134
949
f
),
Q31
(
-
0
.
00014463
80
f
),
Q31
(
-
0
.
0002
896981
f
),
Q31
(
-
0
.
00040
95121
f
),
Q31
(
-
0
.
0005145572
f
),
Q31
(
-
0
.
0005
946118
f
),
Q31
(
-
0
.
0006650415
f
),
Q31
(
-
0
.
00072153
91
f
),
Q31
(
-
0
.
0007530001
f
),
Q31
(
-
0
.
0007757
977
f
),
Q31
(
-
0
.
0007
803664
f
),
Q31
(
-
0
.
0007
834332
f
),
Q31
(
-
0
.
00076
81371
f
),
Q31
(
-
0
.
0007440
941
f
),
Q31
(
-
0
.
0007157736
f
),
Q31
(
-
0
.
00067776
90
f
),
Q31
(
-
0
.
00063124
93
f
),
Q31
(
-
0
.
0005
870930
f
),
Q31
(
-
0
.
0005466565
f
),
Q31
(
-
0
.
0005040714
f
),
Q31
(
-
0
.
0004
875227
f
),
Q31
(
-
0
.
00056176
92
f
),
};
/* This table contains redundancy: It is symmetric about the entry #320
* with the exception of entries 384 and 512 which are negated. */
static
const
DECLARE_ALIGNED
(
32
,
INTFLOAT
,
sbr_qmf_window_us
)[
640
]
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment