Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
227322b8
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,发现更多精彩内容 >>
提交
227322b8
编写于
6月 08, 2008
作者:
J
Justin Ruggles
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move rematrixing band table to ac3dec_data.c
Originally committed as revision 13716 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
7ed9a2ea
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
8 deletion
+11
-8
libavcodec/ac3dec.c
libavcodec/ac3dec.c
+3
-8
libavcodec/ac3dec_data.c
libavcodec/ac3dec_data.c
+6
-0
libavcodec/ac3dec_data.h
libavcodec/ac3dec_data.h
+2
-0
未找到文件。
libavcodec/ac3dec.c
浏览文件 @
227322b8
...
...
@@ -39,16 +39,11 @@
#include "bitstream.h"
#include "dsputil.h"
#include "ac3dec.h"
#include "ac3dec_data.h"
/** Maximum possible frame size when the specification limit is ignored */
#define AC3_MAX_FRAME_SIZE 21695
/**
* Table of bin locations for rematrixing bands
* reference: Section 7.5.2 Rematrixing : Frequency Band Definitions
*/
static
const
uint8_t
rematrix_band_tab
[
5
]
=
{
13
,
25
,
37
,
61
,
253
};
/** table for grouping exponents */
static
uint8_t
exp_ungroup_tab
[
128
][
3
];
...
...
@@ -579,8 +574,8 @@ static void do_rematrixing(AC3DecodeContext *s)
for
(
bnd
=
0
;
bnd
<
s
->
num_rematrixing_bands
;
bnd
++
)
{
if
(
s
->
rematrixing_flags
[
bnd
])
{
bndend
=
FFMIN
(
end
,
rematrix_band_tab
[
bnd
+
1
]);
for
(
i
=
rematrix_band_tab
[
bnd
];
i
<
bndend
;
i
++
)
{
bndend
=
FFMIN
(
end
,
ff_ac3_
rematrix_band_tab
[
bnd
+
1
]);
for
(
i
=
ff_ac3_
rematrix_band_tab
[
bnd
];
i
<
bndend
;
i
++
)
{
tmp0
=
s
->
fixed_coeffs
[
1
][
i
];
tmp1
=
s
->
fixed_coeffs
[
2
][
i
];
s
->
fixed_coeffs
[
1
][
i
]
=
tmp0
+
tmp1
;
...
...
libavcodec/ac3dec_data.c
浏览文件 @
227322b8
...
...
@@ -1109,3 +1109,9 @@ const uint8_t ff_eac3_frm_expstr[32][6] = {
*/
const
uint8_t
ff_eac3_default_cpl_band_struct
[
18
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
};
/**
* Table of bin locations for rematrixing bands
* reference: Section 7.5.2 Rematrixing : Frequency Band Definitions
*/
const
uint8_t
ff_ac3_rematrix_band_tab
[
5
]
=
{
13
,
25
,
37
,
61
,
253
};
libavcodec/ac3dec_data.h
浏览文件 @
227322b8
...
...
@@ -34,4 +34,6 @@ extern const int16_t (*ff_eac3_vq_hebap[8])[6];
extern
const
uint8_t
ff_eac3_frm_expstr
[
32
][
6
];
extern
const
uint8_t
ff_eac3_default_cpl_band_struct
[
18
];
extern
const
uint8_t
ff_ac3_rematrix_band_tab
[
5
];
#endif
/* FFMPEG_AC3DEC_DATA_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录