Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
00a1b3e0
Commit
00a1b3e0
authored
11 years ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
Converts the fixed-point silk_burg_modified() to use celt_pitch_xcorr()
bit-exact with original version
parent
6a7ee7fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
silk/fixed/burg_modified_FIX.c
+11
-2
11 additions, 2 deletions
silk/fixed/burg_modified_FIX.c
with
11 additions
and
2 deletions
silk/fixed/burg_modified_FIX.c
+
11
−
2
View file @
00a1b3e0
...
...
@@ -32,6 +32,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include
"SigProc_FIX.h"
#include
"define.h"
#include
"tuning_parameters.h"
#include
"pitch.h"
#define MAX_FRAME_SIZE 384
/* subfr_length * nb_subfr = ( 0.005 * 16000 + 16 ) * 4 = 384 */
...
...
@@ -60,6 +61,7 @@ void silk_burg_modified(
opus_int32
Af_QA
[
SILK_MAX_ORDER_LPC
];
opus_int32
CAf
[
SILK_MAX_ORDER_LPC
+
1
];
opus_int32
CAb
[
SILK_MAX_ORDER_LPC
+
1
];
opus_int32
xcorr
[
SILK_MAX_ORDER_LPC
];
silk_assert
(
subfr_length
*
nb_subfr
<=
MAX_FRAME_SIZE
);
...
...
@@ -93,10 +95,17 @@ void silk_burg_modified(
}
}
else
{
for
(
s
=
0
;
s
<
nb_subfr
;
s
++
)
{
int
i
;
opus_int32
d
;
x_ptr
=
x
+
s
*
subfr_length
;
celt_pitch_xcorr
(
x_ptr
,
x_ptr
+
1
,
xcorr
,
subfr_length
-
D
,
D
);
for
(
n
=
1
;
n
<
D
+
1
;
n
++
)
{
C_first_row
[
n
-
1
]
+=
silk_LSHIFT32
(
silk_inner_prod_aligned
(
x_ptr
,
x_ptr
+
n
,
subfr_length
-
n
),
-
rshifts
);
for
(
i
=
n
+
subfr_length
-
D
,
d
=
0
;
i
<
subfr_length
;
i
++
)
d
=
MAC16_16
(
d
,
x_ptr
[
i
],
x_ptr
[
i
-
n
]
);
xcorr
[
n
-
1
]
+=
d
;
}
for
(
n
=
1
;
n
<
D
+
1
;
n
++
)
{
C_first_row
[
n
-
1
]
+=
silk_LSHIFT32
(
xcorr
[
n
-
1
],
-
rshifts
);
}
}
}
...
...
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