Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
83ce7ff6
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,发现更多精彩内容 >>
提交
83ce7ff6
编写于
6月 07, 2008
作者:
J
Justin Ruggles
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use macro constants for array sizes in decode context
Originally committed as revision 13700 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
22885960
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
11 deletion
+14
-11
libavcodec/ac3dec.h
libavcodec/ac3dec.h
+14
-11
未找到文件。
libavcodec/ac3dec.h
浏览文件 @
83ce7ff6
...
...
@@ -40,6 +40,9 @@
#define AC3_OUTPUT_LFEON 8
#define AC3_MAX_COEFS 256
#define AC3_BLOCK_SIZE 256
typedef
struct
{
AVCodecContext
*
avctx
;
///< parent context
GetBitContext
gbc
;
///< bitstream reader
...
...
@@ -97,7 +100,7 @@ typedef struct {
///@defgroup exponents exponents
int
num_exp_groups
[
AC3_MAX_CHANNELS
];
///< Number of exponent groups
int8_t
dexps
[
AC3_MAX_CHANNELS
][
256
];
///< decoded exponents
int8_t
dexps
[
AC3_MAX_CHANNELS
][
AC3_MAX_COEFS
];
///< decoded exponents
int
exp_strategy
[
AC3_MAX_CHANNELS
];
///< exponent strategies
///@}
...
...
@@ -105,8 +108,8 @@ typedef struct {
AC3BitAllocParameters
bit_alloc_params
;
///< bit allocation parameters
int
snr_offset
[
AC3_MAX_CHANNELS
];
///< signal-to-noise ratio offsets
int
fast_gain
[
AC3_MAX_CHANNELS
];
///< fast gain values (signal-to-mask ratio)
uint8_t
bap
[
AC3_MAX_CHANNELS
][
256
];
///< bit allocation pointers
int16_t
psd
[
AC3_MAX_CHANNELS
][
256
];
///< scaled exponents
uint8_t
bap
[
AC3_MAX_CHANNELS
][
AC3_MAX_COEFS
];
///< bit allocation pointers
int16_t
psd
[
AC3_MAX_CHANNELS
][
AC3_MAX_COEFS
];
///< scaled exponents
int16_t
band_psd
[
AC3_MAX_CHANNELS
][
50
];
///< interpolated exponents
int16_t
mask
[
AC3_MAX_CHANNELS
][
50
];
///< masking curve values
int
dba_mode
[
AC3_MAX_CHANNELS
];
///< delta bit allocation mode
...
...
@@ -134,16 +137,16 @@ typedef struct {
float
mul_bias
;
///< scaling for float_to_int16 conversion
///@}
int
fixed_coeffs
[
AC3_MAX_CHANNELS
][
256
];
///> fixed-point transform coefficients
int
fixed_coeffs
[
AC3_MAX_CHANNELS
][
AC3_MAX_COEFS
];
///> fixed-point transform coefficients
///@defgroup arrays aligned arrays
DECLARE_ALIGNED_16
(
float
,
transform_coeffs
[
AC3_MAX_CHANNELS
][
256
]);
///< transform coefficients
DECLARE_ALIGNED_16
(
float
,
delay
[
AC3_MAX_CHANNELS
][
256
]);
///< delay - added to the next block
DECLARE_ALIGNED_16
(
float
,
window
[
256
]);
///< window coefficients
DECLARE_ALIGNED_16
(
float
,
tmp_output
[
512
]);
///< temporary storage for output before windowing
DECLARE_ALIGNED_16
(
float
,
tmp_imdct
[
256
]);
///< temporary storage for imdct transform
DECLARE_ALIGNED_16
(
float
,
output
[
AC3_MAX_CHANNELS
][
256
]);
///< output after imdct transform and windowing
DECLARE_ALIGNED_16
(
short
,
int_output
[
AC3_MAX_CHANNELS
-
1
][
256
]);
///< final 16-bit integer output
DECLARE_ALIGNED_16
(
float
,
transform_coeffs
[
AC3_MAX_CHANNELS
][
AC3_MAX_COEFS
]);
///< transform coefficients
DECLARE_ALIGNED_16
(
float
,
delay
[
AC3_MAX_CHANNELS
][
AC3_BLOCK_SIZE
]);
///< delay - added to the next block
DECLARE_ALIGNED_16
(
float
,
window
[
AC3_BLOCK_SIZE
]);
///< window coefficients
DECLARE_ALIGNED_16
(
float
,
tmp_output
[
AC3_BLOCK_SIZE
*
2
]);
///< temporary storage for output before windowing
DECLARE_ALIGNED_16
(
float
,
tmp_imdct
[
AC3_BLOCK_SIZE
]);
///< temporary storage for imdct transform
DECLARE_ALIGNED_16
(
float
,
output
[
AC3_MAX_CHANNELS
][
AC3_BLOCK_SIZE
]);
///< output after imdct transform and windowing
DECLARE_ALIGNED_16
(
short
,
int_output
[
AC3_MAX_CHANNELS
-
1
][
AC3_BLOCK_SIZE
]);
///< final 16-bit integer output
///@}
}
AC3DecodeContext
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录