Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
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
audiowmark
Commits
0cb4466e
Commit
0cb4466e
authored
Dec 19, 2018
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance improved trellis data structure initialization.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
e179ea3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
convcode.cc
src/convcode.cc
+3
-11
No files found.
src/convcode.cc
View file @
0cb4466e
...
...
@@ -76,17 +76,9 @@ conv_decode (const vector<int>& coded_bits)
};
vector
<
vector
<
StateEntry
>>
error_count
;
for
(
size_t
i
=
0
;
i
<
coded_bits
.
size
()
+
rate
;
i
+=
rate
)
/* 1 extra element */
{
vector
<
StateEntry
>
state_table
;
for
(
unsigned
s
=
0
;
s
<
state_count
;
s
++
)
{
if
(
s
==
0
&&
i
==
0
)
state_table
.
push_back
({
0
,
0
});
else
state_table
.
push_back
({
-
1
,
-
1
});
}
error_count
.
push_back
(
state_table
);
}
error_count
.
emplace_back
(
state_count
,
StateEntry
{
0
,
-
1
,
0
});
error_count
[
0
][
0
].
delta
=
0
;
/* start state */
/* precompute state -> output bits table */
vector
<
uint8_t
>
state2bits
;
...
...
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