Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
a8eb8de4
Commit
a8eb8de4
authored
15 years ago
by
Vitor Sessak
Browse files
Options
Downloads
Patches
Plain Diff
Add tables used by both AMR-NB and SIPR
Originally committed as revision 20897 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
da8af938
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavcodec/acelp_vectors.c
+29
-0
29 additions, 0 deletions
libavcodec/acelp_vectors.c
libavcodec/acelp_vectors.h
+20
-0
20 additions, 0 deletions
libavcodec/acelp_vectors.h
with
49 additions
and
0 deletions
libavcodec/acelp_vectors.c
+
29
−
0
View file @
a8eb8de4
...
@@ -103,6 +103,35 @@ static uint8_t gray_decode[32] =
...
@@ -103,6 +103,35 @@ static uint8_t gray_decode[32] =
};
};
#endif
#endif
const
float
ff_pow_0_7
[
10
]
=
{
0
.
700000
,
0
.
490000
,
0
.
343000
,
0
.
240100
,
0
.
168070
,
0
.
117649
,
0
.
082354
,
0
.
05764
8
,
0
.
040354
,
0
.
02
8248
};
const
float
ff_pow_0_75
[
10
]
=
{
0
.
750000
,
0
.
562500
,
0
.
421875
,
0
.
316406
,
0
.
237305
,
0
.
177979
,
0
.
133484
,
0
.
100113
,
0
.
0750
85
,
0
.
056314
};
const
float
ff_pow_0_55
[
10
]
=
{
0
.
550000
,
0
.
302500
,
0
.
166375
,
0
.
091506
,
0
.
05032
8
,
0
.
0276
81
,
0
.
015224
,
0
.
00
8373
,
0
.
004605
,
0
.
002533
};
const
float
ff_b60_sinc
[
61
]
=
{
0
.
898529
,
0
.
865051
,
0
.
769257
,
0
.
624054
,
0
.
448639
,
0
.
265289
,
0
.
0959167
,
-
0
.
04125
98
,
-
0
.
134338
,
-
0
.
178986
,
-
0
.
178528
,
-
0
.
142609
,
-
0
.
0849304
,
-
0
.
020507
8
,
0
.
036
9568
,
0
.
0773
926
,
0
.
0955200
,
0
.
0912781
,
0
.
06
89392
,
0
.
0357056
,
0
.
,
-
0
.
03054
81
,
-
0
.
0504150
,
-
0
.
057006
8
,
-
0
.
050
8423
,
-
0
.
0350037
,
-
0
.
0141602
,
0
.
006652
83
,
0
.
0230713
,
0
.
03234
86
,
0
.
03353
88
,
0
.
0275
879
,
0
.
0167
847
,
0
.
00411
987
,
-
0
.
007476
81
,
-
0
.
0156
860
,
-
0
.
01
93481
,
-
0
.
01
83716
,
-
0
.
0137634
,
-
0
.
00704
956
,
0
.
,
0
.
005
82886
,
0
.
00
939941
,
0
.
0103760
,
0
.
00
903320
,
0
.
0060424
8
,
0
.
0023
8037
,
-
0
.
0010
9863
,
-
0
.
00366211
,
-
0
.
004
97437
,
-
0
.
00503540
,
-
0
.
00402
832
,
-
0
.
002410
89
,
-
0
.
00057
9834
,
0
.
00103760
,
0
.
0022277
8
,
0
.
00277710
,
0
.
00271606
,
0
.
00213623
,
0
.
00115
967
,
0
.
};
void
ff_acelp_fc_pulse_per_track
(
void
ff_acelp_fc_pulse_per_track
(
int16_t
*
fc_v
,
int16_t
*
fc_v
,
const
uint8_t
*
tab1
,
const
uint8_t
*
tab1
,
...
...
This diff is collapsed.
Click to expand it.
libavcodec/acelp_vectors.h
+
20
−
0
View file @
a8eb8de4
...
@@ -111,6 +111,26 @@ extern const uint8_t ff_fc_2pulses_9bits_track1_gray[16];
...
@@ -111,6 +111,26 @@ extern const uint8_t ff_fc_2pulses_9bits_track1_gray[16];
*/
*/
extern
const
uint8_t
ff_fc_2pulses_9bits_track2_gray
[
32
];
extern
const
uint8_t
ff_fc_2pulses_9bits_track2_gray
[
32
];
/**
* b60 hamming windowed sinc function coefficients
*/
extern
const
float
ff_b60_sinc
[
61
];
/**
* Table of pow(0.7,n)
*/
extern
const
float
ff_pow_0_7
[
10
];
/**
* Table of pow(0.75,n)
*/
extern
const
float
ff_pow_0_75
[
10
];
/**
* Table of pow(0.55,n)
*/
extern
const
float
ff_pow_0_55
[
10
];
/**
/**
* Decode fixed-codebook vector (3.8 and D.5.8 of G.729, 5.7.1 of AMR).
* Decode fixed-codebook vector (3.8 and D.5.8 of G.729, 5.7.1 of AMR).
* @param fc_v [out] decoded fixed codebook vector (2.13)
* @param fc_v [out] decoded fixed codebook vector (2.13)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment