Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
56f7fda1
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
56f7fda1
编写于
1月 20, 2003
作者:
N
Nick Kurshev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
reverse
Originally committed as revision 1479 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
bfbc8de9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
20 deletion
+20
-20
libavcodec/a52dec.c
libavcodec/a52dec.c
+6
-6
libavcodec/liba52/a52.h
libavcodec/liba52/a52.h
+7
-7
libavcodec/liba52/parse.c
libavcodec/liba52/parse.c
+7
-7
未找到文件。
libavcodec/a52dec.c
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录