Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
libaec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Mathis Rosenhauer
libaec
Commits
ece3bd3d
Commit
ece3bd3d
authored
12 years ago
by
Mathis Rosenhauer
Browse files
Options
Downloads
Patches
Plain Diff
unused var and trivial function
parent
ef5de19b
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
src/decode.c
+4
-10
4 additions, 10 deletions
src/decode.c
with
4 additions
and
10 deletions
src/decode.c
+
4
−
10
View file @
ece3bd3d
...
...
@@ -74,7 +74,7 @@
static void flush_##KIND(struct aec_stream *strm) \
{ \
uint32_t *bp, *flush_end; \
int64_t d, m
, th2;
\
int64_t d, m
;
\
int64_t data, med, half_d, xmin, xmax; \
struct internal_state *state = strm->state; \
\
...
...
@@ -222,7 +222,6 @@ static inline void fill_acc(struct aec_stream *strm)
strm
->
state
->
bitp
+=
b
<<
3
;
switch
(
b
)
{
case
(
7
):
strm
->
state
->
acc
=
(
strm
->
state
->
acc
<<
8
)
|
*
strm
->
next_in
++
;
case
(
6
):
...
...
@@ -333,11 +332,6 @@ static inline uint32_t fs_ask(struct aec_stream *strm)
return
1
;
}
static
inline
uint32_t
fs_get
(
struct
aec_stream
*
strm
)
{
return
strm
->
state
->
fs
;
}
static
inline
void
fs_drop
(
struct
aec_stream
*
strm
)
{
strm
->
state
->
fs
=
0
;
...
...
@@ -399,7 +393,7 @@ static int m_split_fs(struct aec_stream *strm)
do
{
if
(
fs_ask
(
strm
)
==
0
)
return
M_EXIT
;
state
->
rsip
[
state
->
i
]
=
fs_get
(
strm
)
<<
k
;
state
->
rsip
[
state
->
i
]
=
state
->
fs
<<
k
;
fs_drop
(
strm
);
}
while
(
++
state
->
i
<
state
->
n
);
...
...
@@ -466,7 +460,7 @@ static int m_zero_block(struct aec_stream *strm)
if
(
fs_ask
(
strm
)
==
0
)
return
M_EXIT
;
zero_blocks
=
fs_get
(
strm
)
+
1
;
zero_blocks
=
state
->
fs
+
1
;
fs_drop
(
strm
);
if
(
zero_blocks
==
ROS
)
{
...
...
@@ -505,7 +499,7 @@ static int m_se_decode(struct aec_stream *strm)
while
(
state
->
i
<
strm
->
block_size
)
{
if
(
fs_ask
(
strm
)
==
0
)
return
M_EXIT
;
m
=
fs_get
(
strm
)
;
m
=
state
->
fs
;
d1
=
m
-
state
->
se_table
[
2
*
m
+
1
];
if
((
state
->
i
&
1
)
==
0
)
{
...
...
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