Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
647148c6
Commit
647148c6
authored
Sep 04, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless comments
Originally committed as revision 15205 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
251d75f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
mace.c
libavcodec/mace.c
+0
-9
No files found.
libavcodec/mace.c
View file @
647148c6
...
@@ -233,14 +233,12 @@ static const uint16_t MACEtab4[][8] = {
...
@@ -233,14 +233,12 @@ static const uint16_t MACEtab4[][8] = {
{
0x38F0
,
0x7FFF
,
0x8000
,
0xC70F
,
0
,
0
,
0
,
0
},
{
0x3B7A
,
0x7FFF
,
0x8000
,
0xC485
,
0
,
0
,
0
,
0
},
{
0x38F0
,
0x7FFF
,
0x8000
,
0xC70F
,
0
,
0
,
0
,
0
},
{
0x3B7A
,
0x7FFF
,
0x8000
,
0xC485
,
0
,
0
,
0
,
0
},
{
0x3E22
,
0x7FFF
,
0x8000
,
0xC1DD
,
0
,
0
,
0
,
0
},
{
0x40E7
,
0x7FFF
,
0x8000
,
0xBF18
,
0
,
0
,
0
,
0
},
{
0x3E22
,
0x7FFF
,
0x8000
,
0xC1DD
,
0
,
0
,
0
,
0
},
{
0x40E7
,
0x7FFF
,
0x8000
,
0xBF18
,
0
,
0
,
0
,
0
},
};
};
/* end of constants */
typedef
struct
MACEContext
{
typedef
struct
MACEContext
{
short
index
,
lev
,
factor
,
prev2
,
previous
,
level
;
short
index
,
lev
,
factor
,
prev2
,
previous
,
level
;
short
*
outPtr
;
short
*
outPtr
;
}
MACEContext
;
}
MACEContext
;
/* /// "chomp3()" */
static
void
chomp3
(
MACEContext
*
ctx
,
uint8_t
val
,
const
uint16_t
tab1
[],
static
void
chomp3
(
MACEContext
*
ctx
,
uint8_t
val
,
const
uint16_t
tab1
[],
const
uint16_t
tab2
[][
8
],
uint32_t
numChannels
)
const
uint16_t
tab2
[][
8
],
uint32_t
numChannels
)
{
{
...
@@ -262,9 +260,7 @@ static void chomp3(MACEContext *ctx, uint8_t val, const uint16_t tab1[],
...
@@ -262,9 +260,7 @@ static void chomp3(MACEContext *ctx, uint8_t val, const uint16_t tab1[],
if
((
ctx
->
index
+=
tab1
[
val
]
-
(
ctx
->
index
>>
5
)
)
<
0
)
if
((
ctx
->
index
+=
tab1
[
val
]
-
(
ctx
->
index
>>
5
)
)
<
0
)
ctx
->
index
=
0
;
ctx
->
index
=
0
;
}
}
/* \\\ */
/* /// "Exp1to3()" */
static
void
Exp1to3
(
MACEContext
*
ctx
,
const
uint8_t
*
inBuffer
,
void
*
outBuffer
,
static
void
Exp1to3
(
MACEContext
*
ctx
,
const
uint8_t
*
inBuffer
,
void
*
outBuffer
,
uint32_t
cnt
,
uint32_t
numChannels
,
uint32_t
whichChannel
)
uint32_t
cnt
,
uint32_t
numChannels
,
uint32_t
whichChannel
)
{
{
...
@@ -303,9 +299,7 @@ static void Exp1to3(MACEContext *ctx, const uint8_t *inBuffer, void *outBuffer,
...
@@ -303,9 +299,7 @@ static void Exp1to3(MACEContext *ctx, const uint8_t *inBuffer, void *outBuffer,
}
}
*/
*/
}
}
/* \\\ */
/* /// "chomp6()" */
static
void
chomp6
(
MACEContext
*
ctx
,
uint8_t
val
,
const
uint16_t
tab1
[],
static
void
chomp6
(
MACEContext
*
ctx
,
uint8_t
val
,
const
uint16_t
tab1
[],
const
uint16_t
tab2
[][
8
],
uint32_t
numChannels
)
const
uint16_t
tab2
[][
8
],
uint32_t
numChannels
)
{
{
...
@@ -347,9 +341,7 @@ static void chomp6(MACEContext *ctx, uint8_t val, const uint16_t tab1[],
...
@@ -347,9 +341,7 @@ static void chomp6(MACEContext *ctx, uint8_t val, const uint16_t tab1[],
if
((
ctx
->
index
+=
tab1
[
val
]
-
(
ctx
->
index
>>
5
))
<
0
)
if
((
ctx
->
index
+=
tab1
[
val
]
-
(
ctx
->
index
>>
5
))
<
0
)
ctx
->
index
=
0
;
ctx
->
index
=
0
;
}
}
/* \\\ */
/* /// "Exp1to6()" */
static
void
Exp1to6
(
MACEContext
*
ctx
,
const
uint8_t
*
inBuffer
,
void
*
outBuffer
,
static
void
Exp1to6
(
MACEContext
*
ctx
,
const
uint8_t
*
inBuffer
,
void
*
outBuffer
,
uint32_t
cnt
,
uint32_t
numChannels
,
uint32_t
whichChannel
)
uint32_t
cnt
,
uint32_t
numChannels
,
uint32_t
whichChannel
)
{
{
...
@@ -390,7 +382,6 @@ static void Exp1to6(MACEContext *ctx, const uint8_t *inBuffer, void *outBuffer,
...
@@ -390,7 +382,6 @@ static void Exp1to6(MACEContext *ctx, const uint8_t *inBuffer, void *outBuffer,
}
}
*/
*/
}
}
/* \\\ */
static
av_cold
int
mace_decode_init
(
AVCodecContext
*
avctx
)
static
av_cold
int
mace_decode_init
(
AVCodecContext
*
avctx
)
{
{
...
...
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