Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
c2d08dc0
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,发现更多精彩内容 >>
提交
c2d08dc0
编写于
6月 16, 2007
作者:
M
Måns Rullgård
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move a couple of macros and structs to mpegaudio.h
Originally committed as revision 9343 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
41e4c556
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
11 deletion
+11
-11
libavcodec/mpegaudio.h
libavcodec/mpegaudio.h
+11
-0
libavcodec/mpegaudiodec.c
libavcodec/mpegaudiodec.c
+0
-10
libavcodec/mpegaudioenc.c
libavcodec/mpegaudioenc.c
+0
-1
未找到文件。
libavcodec/mpegaudio.h
浏览文件 @
c2d08dc0
...
...
@@ -62,6 +62,10 @@
#define WFRAC_BITS 14
/* fractional bits for window */
#endif
#define FRAC_ONE (1 << FRAC_BITS)
#define FIX(a) ((int)((a) * FRAC_ONE))
#if defined(USE_HIGHPRECISION) && defined(CONFIG_AUDIO_NONSHORT)
typedef
int32_t
OUT_INT
;
#define OUT_MAX INT32_MAX
...
...
@@ -116,6 +120,13 @@ typedef struct MPADecodeContext {
AVCodecContext
*
avctx
;
}
MPADecodeContext
;
/* layer 3 huffman tables */
typedef
struct
HuffTable
{
int
xsize
;
const
uint8_t
*
bits
;
const
uint16_t
*
codes
;
}
HuffTable
;
int
ff_mpa_l2_select_table
(
int
bitrate
,
int
nb_channels
,
int
freq
,
int
lsf
);
int
ff_mpa_decode_header
(
AVCodecContext
*
avctx
,
uint32_t
head
,
int
*
sample_rate
);
void
ff_mpa_synth_init
(
MPA_INT
*
window
);
...
...
libavcodec/mpegaudiodec.c
浏览文件 @
c2d08dc0
...
...
@@ -46,9 +46,6 @@
#include "mathops.h"
#define FRAC_ONE (1 << FRAC_BITS)
#define FIX(a) ((int)((a) * FRAC_ONE))
/* WARNING: only correct for posititive numbers */
#define FIXR(a) ((int)((a) * FRAC_ONE + 0.5))
#define FRAC_RND(a) (((a) + (FRAC_ONE/2)) >> FRAC_BITS)
...
...
@@ -91,13 +88,6 @@ typedef struct GranuleDef {
#define MODE_EXT_MS_STEREO 2
#define MODE_EXT_I_STEREO 1
/* layer 3 huffman tables */
typedef
struct
HuffTable
{
int
xsize
;
const
uint8_t
*
bits
;
const
uint16_t
*
codes
;
}
HuffTable
;
#include "mpegaudiodata.h"
#include "mpegaudiodectab.h"
...
...
libavcodec/mpegaudioenc.c
浏览文件 @
c2d08dc0
...
...
@@ -31,7 +31,6 @@
/* currently, cannot change these constants (need to modify
quantization stage) */
#define MUL(a,b) (((int64_t)(a) * (int64_t)(b)) >> FRAC_BITS)
#define FIX(a) ((int)((a) * (1 << FRAC_BITS)))
#define SAMPLES_BUF_SIZE 4096
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录