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
56591567
Commit
56591567
authored
Sep 07, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics: whitespace/linebreaks
Originally committed as revision 15246 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
c8e0861e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
mace.c
libavcodec/mace.c
+18
-12
No files found.
libavcodec/mace.c
View file @
56591567
...
...
@@ -246,7 +246,7 @@ typedef struct MACEContext {
static
void
chomp3
(
ChannelData
*
ctx
,
int16_t
*
output
,
uint8_t
val
,
const
uint16_t
tab1
[],
const
uint16_t
tab2
[][
8
],
uint32_t
numChannels
)
const
uint16_t
tab2
[][
8
],
uint32_t
numChannels
)
{
short
current
;
...
...
@@ -268,7 +268,7 @@ static void chomp3(ChannelData *ctx, int16_t *output, uint8_t val,
static
void
chomp6
(
ChannelData
*
ctx
,
int16_t
*
output
,
uint8_t
val
,
const
uint16_t
tab1
[],
const
uint16_t
tab2
[][
8
],
uint32_t
numChannels
)
const
uint16_t
tab2
[][
8
],
uint32_t
numChannels
)
{
short
current
;
...
...
@@ -318,8 +318,8 @@ static av_cold int mace_decode_init(AVCodecContext * avctx)
}
static
int
mace3_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
const
uint8_t
*
buf
,
int
buf_size
)
void
*
data
,
int
*
data_size
,
const
uint8_t
*
buf
,
int
buf_size
)
{
short
*
samples
=
data
;
MACEContext
*
ctx
=
avctx
->
priv_data
;
...
...
@@ -331,11 +331,14 @@ static int mace3_decode_frame(AVCodecContext *avctx,
for
(
j
=
0
;
j
<
buf_size
/
2
/
avctx
->
channels
;
j
++
)
for
(
k
=
0
;
k
<
2
;
k
++
)
{
uint8_t
pkt
=
buf
[
i
*
2
+
j
*
2
*
avctx
->
channels
+
k
];
chomp3
(
&
ctx
->
chd
[
i
],
output
,
pkt
&
7
,
MACEtab1
,
MACEtab2
,
avctx
->
channels
);
chomp3
(
&
ctx
->
chd
[
i
],
output
,
pkt
&
7
,
MACEtab1
,
MACEtab2
,
avctx
->
channels
);
output
+=
avctx
->
channels
;
chomp3
(
&
ctx
->
chd
[
i
],
output
,(
pkt
>>
3
)
&
3
,
MACEtab3
,
MACEtab4
,
avctx
->
channels
);
chomp3
(
&
ctx
->
chd
[
i
],
output
,(
pkt
>>
3
)
&
3
,
MACEtab3
,
MACEtab4
,
avctx
->
channels
);
output
+=
avctx
->
channels
;
chomp3
(
&
ctx
->
chd
[
i
],
output
,
pkt
>>
5
,
MACEtab1
,
MACEtab2
,
avctx
->
channels
);
chomp3
(
&
ctx
->
chd
[
i
],
output
,
pkt
>>
5
,
MACEtab1
,
MACEtab2
,
avctx
->
channels
);
output
+=
avctx
->
channels
;
}
}
...
...
@@ -346,8 +349,8 @@ static int mace3_decode_frame(AVCodecContext *avctx,
}
static
int
mace6_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
const
uint8_t
*
buf
,
int
buf_size
)
void
*
data
,
int
*
data_size
,
const
uint8_t
*
buf
,
int
buf_size
)
{
short
*
samples
=
data
;
MACEContext
*
ctx
=
avctx
->
priv_data
;
...
...
@@ -359,11 +362,14 @@ static int mace6_decode_frame(AVCodecContext *avctx,
for
(
j
=
0
;
j
<
buf_size
/
avctx
->
channels
;
j
++
)
{
uint8_t
pkt
=
buf
[
i
+
j
*
avctx
->
channels
];
chomp6
(
&
ctx
->
chd
[
i
],
output
,
pkt
>>
5
,
MACEtab1
,
MACEtab2
,
avctx
->
channels
);
chomp6
(
&
ctx
->
chd
[
i
],
output
,
pkt
>>
5
,
MACEtab1
,
MACEtab2
,
avctx
->
channels
);
output
+=
avctx
->
channels
<<
1
;
chomp6
(
&
ctx
->
chd
[
i
],
output
,(
pkt
>>
3
)
&
3
,
MACEtab3
,
MACEtab4
,
avctx
->
channels
);
chomp6
(
&
ctx
->
chd
[
i
],
output
,(
pkt
>>
3
)
&
3
,
MACEtab3
,
MACEtab4
,
avctx
->
channels
);
output
+=
avctx
->
channels
<<
1
;
chomp6
(
&
ctx
->
chd
[
i
],
output
,
pkt
&
7
,
MACEtab1
,
MACEtab2
,
avctx
->
channels
);
chomp6
(
&
ctx
->
chd
[
i
],
output
,
pkt
&
7
,
MACEtab1
,
MACEtab2
,
avctx
->
channels
);
output
+=
avctx
->
channels
<<
1
;
}
}
...
...
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