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
56f7fda1
Commit
56f7fda1
authored
Jan 20, 2003
by
Nick Kurshev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverse
Originally committed as revision 1479 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
bfbc8de9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
+20
-20
a52dec.c
libavcodec/a52dec.c
+6
-6
a52.h
libavcodec/liba52/a52.h
+7
-7
parse.c
libavcodec/liba52/parse.c
+7
-7
No files found.
libavcodec/a52dec.c
View file @
56f7fda1
...
...
@@ -98,12 +98,12 @@ static int a52_decode_init(AVCodecContext *avctx)
#else
/* static linked version */
s
->
handle
=
0
;
s
->
a52_init
=
ff_
a52_init
;
s
->
a52_samples
=
ff_
a52_samples
;
s
->
a52_syncinfo
=
ff_
a52_syncinfo
;
s
->
a52_frame
=
ff_
a52_frame
;
s
->
a52_block
=
ff_
a52_block
;
s
->
a52_free
=
ff_
a52_free
;
s
->
a52_init
=
a52_init
;
s
->
a52_samples
=
a52_samples
;
s
->
a52_syncinfo
=
a52_syncinfo
;
s
->
a52_frame
=
a52_frame
;
s
->
a52_block
=
a52_block
;
s
->
a52_free
=
a52_free
;
#endif
s
->
state
=
s
->
a52_init
(
0
);
/* later use CPU flags */
s
->
samples
=
s
->
a52_samples
(
s
->
state
);
...
...
libavcodec/liba52/a52.h
View file @
56f7fda1
...
...
@@ -50,15 +50,15 @@ typedef struct a52_state_s a52_state_t;
#define A52_LFE 16
#define A52_ADJUST_LEVEL 32
extern
a52_state_t
*
ff_
a52_init
(
uint32_t
mm_accel
);
extern
sample_t
*
ff_
a52_samples
(
a52_state_t
*
state
);
extern
int
ff_
a52_syncinfo
(
uint8_t
*
buf
,
int
*
flags
,
a52_state_t
*
a52_init
(
uint32_t
mm_accel
);
sample_t
*
a52_samples
(
a52_state_t
*
state
);
int
a52_syncinfo
(
uint8_t
*
buf
,
int
*
flags
,
int
*
sample_rate
,
int
*
bit_rate
);
extern
int
ff_
a52_frame
(
a52_state_t
*
state
,
uint8_t
*
buf
,
int
*
flags
,
int
a52_frame
(
a52_state_t
*
state
,
uint8_t
*
buf
,
int
*
flags
,
sample_t
*
level
,
sample_t
bias
);
extern
void
ff_
a52_dynrng
(
a52_state_t
*
state
,
void
a52_dynrng
(
a52_state_t
*
state
,
sample_t
(
*
call
)
(
sample_t
,
void
*
),
void
*
data
);
extern
int
ff_
a52_block
(
a52_state_t
*
state
);
extern
void
ff_
a52_free
(
a52_state_t
*
state
);
int
a52_block
(
a52_state_t
*
state
);
void
a52_free
(
a52_state_t
*
state
);
#endif
/* A52_H */
libavcodec/liba52/parse.c
View file @
56f7fda1
...
...
@@ -45,7 +45,7 @@ typedef struct {
static
uint8_t
halfrate
[
12
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
2
,
3
};
a52_state_t
*
ff_
a52_init
(
uint32_t
mm_accel
)
a52_state_t
*
a52_init
(
uint32_t
mm_accel
)
{
a52_state_t
*
state
;
int
i
;
...
...
@@ -70,12 +70,12 @@ a52_state_t * ff_a52_init (uint32_t mm_accel)
return
state
;
}
sample_t
*
ff_
a52_samples
(
a52_state_t
*
state
)
sample_t
*
a52_samples
(
a52_state_t
*
state
)
{
return
state
->
samples
;
}
int
ff_
a52_syncinfo
(
uint8_t
*
buf
,
int
*
flags
,
int
a52_syncinfo
(
uint8_t
*
buf
,
int
*
flags
,
int
*
sample_rate
,
int
*
bit_rate
)
{
static
int
rate
[]
=
{
32
,
40
,
48
,
56
,
64
,
80
,
96
,
112
,
...
...
@@ -120,7 +120,7 @@ int ff_a52_syncinfo (uint8_t * buf, int * flags,
}
}
int
ff_
a52_frame
(
a52_state_t
*
state
,
uint8_t
*
buf
,
int
*
flags
,
int
a52_frame
(
a52_state_t
*
state
,
uint8_t
*
buf
,
int
*
flags
,
sample_t
*
level
,
sample_t
bias
)
{
static
sample_t
clev
[
4
]
=
{
LEVEL_3DB
,
LEVEL_45DB
,
LEVEL_6DB
,
LEVEL_45DB
};
...
...
@@ -192,7 +192,7 @@ int ff_a52_frame (a52_state_t * state, uint8_t * buf, int * flags,
return
0
;
}
void
ff_
a52_dynrng
(
a52_state_t
*
state
,
void
a52_dynrng
(
a52_state_t
*
state
,
sample_t
(
*
call
)
(
sample_t
,
void
*
),
void
*
data
)
{
state
->
dynrnge
=
0
;
...
...
@@ -512,7 +512,7 @@ static void coeff_get_coupling (a52_state_t * state, int nfchans,
}
}
int
ff_
a52_block
(
a52_state_t
*
state
)
int
a52_block
(
a52_state_t
*
state
)
{
static
const
uint8_t
nfchans_tbl
[]
=
{
2
,
1
,
2
,
3
,
3
,
4
,
4
,
5
,
1
,
1
,
2
};
static
int
rematrix_band
[
4
]
=
{
25
,
37
,
61
,
253
};
...
...
@@ -887,7 +887,7 @@ int ff_a52_block (a52_state_t * state)
return
0
;
}
void
ff_
a52_free
(
a52_state_t
*
state
)
void
a52_free
(
a52_state_t
*
state
)
{
free
(
state
->
samples
);
free
(
state
);
...
...
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