Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
云duo
FFmpeg
提交
01a4259b
F
FFmpeg
项目概览
云duo
/
FFmpeg
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
FFmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
01a4259b
编写于
2月 03, 2011
作者:
A
Anton Khirnov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lavc: remove the FF_API_USE_LPC cruft.
上级
db4d3a74
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
0 addition
and
27 deletion
+0
-27
libavcodec/avcodec.h
libavcodec/avcodec.h
+0
-10
libavcodec/flacenc.c
libavcodec/flacenc.c
+0
-11
libavcodec/options.c
libavcodec/options.c
+0
-3
libavcodec/version.h
libavcodec/version.h
+0
-3
未找到文件。
libavcodec/avcodec.h
浏览文件 @
01a4259b
...
...
@@ -2531,16 +2531,6 @@ typedef struct AVCodecContext {
int
compression_level
;
#define FF_COMPRESSION_DEFAULT -1
#if FF_API_USE_LPC
/**
* Sets whether to use LPC mode - used by FLAC encoder.
* - encoding: Set by user.
* - decoding: unused
* @deprecated Deprecated in favor of lpc_type and lpc_passes.
*/
int
use_lpc
;
#endif
/**
* LPC coefficient precision - used by FLAC encoder
* - encoding: Set by user.
...
...
libavcodec/flacenc.c
浏览文件 @
01a4259b
...
...
@@ -285,17 +285,6 @@ static av_cold int flac_encode_init(AVCodecContext *avctx)
s
->
options
.
max_partition_order
=
((
int
[]){
2
,
2
,
3
,
3
,
3
,
8
,
8
,
8
,
8
,
8
,
8
,
8
,
8
})[
level
];
/* set compression option overrides from AVCodecContext */
#if FF_API_USE_LPC
/* for compatibility with deprecated AVCodecContext.use_lpc */
if
(
avctx
->
use_lpc
==
0
)
{
s
->
options
.
lpc_type
=
AV_LPC_TYPE_FIXED
;
}
else
if
(
avctx
->
use_lpc
==
1
)
{
s
->
options
.
lpc_type
=
AV_LPC_TYPE_LEVINSON
;
}
else
if
(
avctx
->
use_lpc
>
1
)
{
s
->
options
.
lpc_type
=
AV_LPC_TYPE_CHOLESKY
;
s
->
options
.
lpc_passes
=
avctx
->
use_lpc
-
1
;
}
#endif
if
(
avctx
->
lpc_type
>
AV_LPC_TYPE_DEFAULT
)
{
if
(
avctx
->
lpc_type
>
AV_LPC_TYPE_CHOLESKY
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"unknown lpc type: %d
\n
"
,
avctx
->
lpc_type
);
...
...
libavcodec/options.c
浏览文件 @
01a4259b
...
...
@@ -396,9 +396,6 @@ static const AVOption options[]={
{
"ivlc"
,
"intra vlc table"
,
0
,
FF_OPT_TYPE_CONST
,
CODEC_FLAG2_INTRA_VLC
,
INT_MIN
,
INT_MAX
,
V
|
E
,
"flags2"
},
{
"b_sensitivity"
,
"adjusts sensitivity of b_frame_strategy 1"
,
OFFSET
(
b_sensitivity
),
FF_OPT_TYPE_INT
,
40
,
1
,
INT_MAX
,
V
|
E
},
{
"compression_level"
,
NULL
,
OFFSET
(
compression_level
),
FF_OPT_TYPE_INT
,
FF_COMPRESSION_DEFAULT
,
INT_MIN
,
INT_MAX
,
V
|
A
|
E
},
#if FF_API_USE_LPC
{
"use_lpc"
,
"sets whether to use LPC mode (FLAC)"
,
OFFSET
(
use_lpc
),
FF_OPT_TYPE_INT
,
-
1
,
INT_MIN
,
INT_MAX
,
A
|
E
},
#endif
{
"lpc_coeff_precision"
,
"LPC coefficient precision (FLAC)"
,
OFFSET
(
lpc_coeff_precision
),
FF_OPT_TYPE_INT
,
DEFAULT
,
0
,
INT_MAX
,
A
|
E
},
{
"min_prediction_order"
,
NULL
,
OFFSET
(
min_prediction_order
),
FF_OPT_TYPE_INT
,
-
1
,
INT_MIN
,
INT_MAX
,
A
|
E
},
{
"max_prediction_order"
,
NULL
,
OFFSET
(
max_prediction_order
),
FF_OPT_TYPE_INT
,
-
1
,
INT_MIN
,
INT_MAX
,
A
|
E
},
...
...
libavcodec/version.h
浏览文件 @
01a4259b
...
...
@@ -41,9 +41,6 @@
#ifndef FF_API_PALETTE_CONTROL
#define FF_API_PALETTE_CONTROL (LIBAVCODEC_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_USE_LPC
#define FF_API_USE_LPC (LIBAVCODEC_VERSION_MAJOR < 53)
#endif
#ifndef FF_API_SET_STRING_OLD
#define FF_API_SET_STRING_OLD (LIBAVCODEC_VERSION_MAJOR < 53)
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录