Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
libaec
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mathis Rosenhauer
libaec
Commits
8ef1c385
Commit
8ef1c385
authored
Jan 28, 2016
by
Mathis Rosenhauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Type changes
parent
38591879
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/decode.c
src/decode.c
+2
-2
src/encode.c
src/encode.c
+5
-5
No files found.
src/decode.c
View file @
8ef1c385
...
@@ -458,7 +458,7 @@ static int m_split_fs(struct aec_stream *strm)
...
@@ -458,7 +458,7 @@ static int m_split_fs(struct aec_stream *strm)
static
int
m_split
(
struct
aec_stream
*
strm
)
static
int
m_split
(
struct
aec_stream
*
strm
)
{
{
uint32
_t
i
,
k
;
size
_t
i
,
k
;
struct
internal_state
*
state
=
strm
->
state
;
struct
internal_state
*
state
=
strm
->
state
;
if
(
BUFFERSPACE
(
strm
))
{
if
(
BUFFERSPACE
(
strm
))
{
...
@@ -654,7 +654,7 @@ static int m_uncomp_copy(struct aec_stream *strm)
...
@@ -654,7 +654,7 @@ static int m_uncomp_copy(struct aec_stream *strm)
static
int
m_uncomp
(
struct
aec_stream
*
strm
)
static
int
m_uncomp
(
struct
aec_stream
*
strm
)
{
{
uint32
_t
i
;
size
_t
i
;
struct
internal_state
*
state
=
strm
->
state
;
struct
internal_state
*
state
=
strm
->
state
;
if
(
BUFFERSPACE
(
strm
))
{
if
(
BUFFERSPACE
(
strm
))
{
...
...
src/encode.c
View file @
8ef1c385
...
@@ -117,7 +117,7 @@ static inline void copy64(uint8_t *dst, uint64_t src)
...
@@ -117,7 +117,7 @@ static inline void copy64(uint8_t *dst, uint64_t src)
static
inline
void
emitblock_fs
(
struct
aec_stream
*
strm
,
int
k
,
int
ref
)
static
inline
void
emitblock_fs
(
struct
aec_stream
*
strm
,
int
k
,
int
ref
)
{
{
uint32
_t
i
;
size
_t
i
;
uint32_t
used
;
/* used bits in 64 bit accumulator */
uint32_t
used
;
/* used bits in 64 bit accumulator */
uint64_t
acc
;
/* accumulator */
uint64_t
acc
;
/* accumulator */
struct
internal_state
*
state
=
strm
->
state
;
struct
internal_state
*
state
=
strm
->
state
;
...
@@ -316,7 +316,7 @@ static inline uint64_t block_fs(struct aec_stream *strm, int k)
...
@@ -316,7 +316,7 @@ static inline uint64_t block_fs(struct aec_stream *strm, int k)
Sum FS of all samples in block for given splitting position.
Sum FS of all samples in block for given splitting position.
*/
*/
uint32
_t
i
;
size
_t
i
;
uint64_t
fs
=
0
;
uint64_t
fs
=
0
;
struct
internal_state
*
state
=
strm
->
state
;
struct
internal_state
*
state
=
strm
->
state
;
...
@@ -417,7 +417,7 @@ static uint32_t assess_se_option(struct aec_stream *strm)
...
@@ -417,7 +417,7 @@ static uint32_t assess_se_option(struct aec_stream *strm)
If length is above limit just return UINT32_MAX.
If length is above limit just return UINT32_MAX.
*/
*/
uint32
_t
i
;
size
_t
i
;
uint64_t
len
,
d
;
uint64_t
len
,
d
;
struct
internal_state
*
state
=
strm
->
state
;
struct
internal_state
*
state
=
strm
->
state
;
uint32_t
*
block
=
state
->
block
;
uint32_t
*
block
=
state
->
block
;
...
@@ -546,7 +546,7 @@ static int m_encode_uncomp(struct aec_stream *strm)
...
@@ -546,7 +546,7 @@ static int m_encode_uncomp(struct aec_stream *strm)
static
int
m_encode_se
(
struct
aec_stream
*
strm
)
static
int
m_encode_se
(
struct
aec_stream
*
strm
)
{
{
uint32
_t
i
;
size
_t
i
;
uint32_t
d
;
uint32_t
d
;
struct
internal_state
*
state
=
strm
->
state
;
struct
internal_state
*
state
=
strm
->
state
;
...
@@ -620,7 +620,7 @@ static int m_check_zero_block(struct aec_stream *strm)
...
@@ -620,7 +620,7 @@ static int m_check_zero_block(struct aec_stream *strm)
end of a segment or RSI.
end of a segment or RSI.
*/
*/
uint32
_t
i
;
size
_t
i
;
struct
internal_state
*
state
=
strm
->
state
;
struct
internal_state
*
state
=
strm
->
state
;
uint32_t
*
p
=
state
->
block
;
uint32_t
*
p
=
state
->
block
;
...
...
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