Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
ac84395d
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,发现更多精彩内容 >>
提交
ac84395d
编写于
1月 22, 2012
作者:
A
Anton Khirnov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lavc: remove disabled FF_API_PARSE_FRAME cruft.
上级
8b9b6041
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
0 addition
and
57 deletion
+0
-57
libavcodec/avcodec.h
libavcodec/avcodec.h
+0
-14
libavcodec/mpegaudiodec.c
libavcodec/mpegaudiodec.c
+0
-21
libavcodec/mpegaudiodec_float.c
libavcodec/mpegaudiodec_float.c
+0
-16
libavcodec/options.c
libavcodec/options.c
+0
-3
libavcodec/version.h
libavcodec/version.h
+0
-3
未找到文件。
libavcodec/avcodec.h
浏览文件 @
ac84395d
...
...
@@ -603,10 +603,6 @@ typedef struct RcOverride{
* assume the buffer was allocated by avcodec_default_get_buffer.
*/
#define CODEC_CAP_DR1 0x0002
#if FF_API_PARSE_FRAME
/* If 'parse_only' field is true, then avcodec_parse_frame() can be used. */
#define CODEC_CAP_PARSE_ONLY 0x0004
#endif
#define CODEC_CAP_TRUNCATED 0x0008
/* Codec can export data for HW decoding (XvMC). */
#define CODEC_CAP_HWACCEL 0x0010
...
...
@@ -1610,16 +1606,6 @@ typedef struct AVCodecContext {
*/
int
block_align
;
#if FF_API_PARSE_FRAME
/**
* If true, only parsing is done. The frame data is returned.
* Only MPEG audio decoders support this now.
* - encoding: unused
* - decoding: Set by user
*/
attribute_deprecated
int
parse_only
;
#endif
/**
* 0-> h263 quant 1-> mpeg quant
* - encoding: Set by user.
...
...
libavcodec/mpegaudiodec.c
浏览文件 @
ac84395d
...
...
@@ -1727,11 +1727,6 @@ static int decode_frame_adu(AVCodecContext *avctx, void *data,
s
->
frame_size
=
len
;
#if FF_API_PARSE_FRAME
if
(
avctx
->
parse_only
)
out_size
=
buf_size
;
else
#endif
out_size
=
mp_decode_frame
(
s
,
NULL
,
buf
,
buf_size
);
*
got_frame_ptr
=
1
;
...
...
@@ -1979,11 +1974,7 @@ AVCodec ff_mp1_decoder = {
.
priv_data_size
=
sizeof
(
MPADecodeContext
),
.
init
=
decode_init
,
.
decode
=
decode_frame
,
#if FF_API_PARSE_FRAME
.
capabilities
=
CODEC_CAP_PARSE_ONLY
|
CODEC_CAP_DR1
,
#else
.
capabilities
=
CODEC_CAP_DR1
,
#endif
.
flush
=
flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MP1 (MPEG audio layer 1)"
),
};
...
...
@@ -1996,11 +1987,7 @@ AVCodec ff_mp2_decoder = {
.
priv_data_size
=
sizeof
(
MPADecodeContext
),
.
init
=
decode_init
,
.
decode
=
decode_frame
,
#if FF_API_PARSE_FRAME
.
capabilities
=
CODEC_CAP_PARSE_ONLY
|
CODEC_CAP_DR1
,
#else
.
capabilities
=
CODEC_CAP_DR1
,
#endif
.
flush
=
flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MP2 (MPEG audio layer 2)"
),
};
...
...
@@ -2013,11 +2000,7 @@ AVCodec ff_mp3_decoder = {
.
priv_data_size
=
sizeof
(
MPADecodeContext
),
.
init
=
decode_init
,
.
decode
=
decode_frame
,
#if FF_API_PARSE_FRAME
.
capabilities
=
CODEC_CAP_PARSE_ONLY
|
CODEC_CAP_DR1
,
#else
.
capabilities
=
CODEC_CAP_DR1
,
#endif
.
flush
=
flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MP3 (MPEG audio layer 3)"
),
};
...
...
@@ -2030,11 +2013,7 @@ AVCodec ff_mp3adu_decoder = {
.
priv_data_size
=
sizeof
(
MPADecodeContext
),
.
init
=
decode_init
,
.
decode
=
decode_frame_adu
,
#if FF_API_PARSE_FRAME
.
capabilities
=
CODEC_CAP_PARSE_ONLY
|
CODEC_CAP_DR1
,
#else
.
capabilities
=
CODEC_CAP_DR1
,
#endif
.
flush
=
flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"ADU (Application Data Unit) MP3 (MPEG audio layer 3)"
),
};
...
...
libavcodec/mpegaudiodec_float.c
浏览文件 @
ac84395d
...
...
@@ -30,11 +30,7 @@ AVCodec ff_mp1float_decoder = {
.
priv_data_size
=
sizeof
(
MPADecodeContext
),
.
init
=
decode_init
,
.
decode
=
decode_frame
,
#if FF_API_PARSE_FRAME
.
capabilities
=
CODEC_CAP_PARSE_ONLY
|
CODEC_CAP_DR1
,
#else
.
capabilities
=
CODEC_CAP_DR1
,
#endif
.
flush
=
flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MP1 (MPEG audio layer 1)"
),
};
...
...
@@ -47,11 +43,7 @@ AVCodec ff_mp2float_decoder = {
.
priv_data_size
=
sizeof
(
MPADecodeContext
),
.
init
=
decode_init
,
.
decode
=
decode_frame
,
#if FF_API_PARSE_FRAME
.
capabilities
=
CODEC_CAP_PARSE_ONLY
|
CODEC_CAP_DR1
,
#else
.
capabilities
=
CODEC_CAP_DR1
,
#endif
.
flush
=
flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MP2 (MPEG audio layer 2)"
),
};
...
...
@@ -64,11 +56,7 @@ AVCodec ff_mp3float_decoder = {
.
priv_data_size
=
sizeof
(
MPADecodeContext
),
.
init
=
decode_init
,
.
decode
=
decode_frame
,
#if FF_API_PARSE_FRAME
.
capabilities
=
CODEC_CAP_PARSE_ONLY
|
CODEC_CAP_DR1
,
#else
.
capabilities
=
CODEC_CAP_DR1
,
#endif
.
flush
=
flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MP3 (MPEG audio layer 3)"
),
};
...
...
@@ -81,11 +69,7 @@ AVCodec ff_mp3adufloat_decoder = {
.
priv_data_size
=
sizeof
(
MPADecodeContext
),
.
init
=
decode_init
,
.
decode
=
decode_frame_adu
,
#if FF_API_PARSE_FRAME
.
capabilities
=
CODEC_CAP_PARSE_ONLY
|
CODEC_CAP_DR1
,
#else
.
capabilities
=
CODEC_CAP_DR1
,
#endif
.
flush
=
flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"ADU (Application Data Unit) MP3 (MPEG audio layer 3)"
),
};
...
...
libavcodec/options.c
浏览文件 @
ac84395d
...
...
@@ -181,9 +181,6 @@ static const AVOption options[]={
{
"explode"
,
"abort decoding on minor error detection"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
AV_EF_EXPLODE
},
INT_MIN
,
INT_MAX
,
V
|
D
,
"err_detect"
},
{
"has_b_frames"
,
NULL
,
OFFSET
(
has_b_frames
),
AV_OPT_TYPE_INT
,
{.
dbl
=
DEFAULT
},
INT_MIN
,
INT_MAX
},
{
"block_align"
,
NULL
,
OFFSET
(
block_align
),
AV_OPT_TYPE_INT
,
{.
dbl
=
DEFAULT
},
INT_MIN
,
INT_MAX
},
#if FF_API_PARSE_FRAME
{
"parse_only"
,
NULL
,
OFFSET
(
parse_only
),
AV_OPT_TYPE_INT
,
{.
dbl
=
DEFAULT
},
INT_MIN
,
INT_MAX
},
#endif
{
"mpeg_quant"
,
"use MPEG quantizers instead of H.263"
,
OFFSET
(
mpeg_quant
),
AV_OPT_TYPE_INT
,
{.
dbl
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
V
|
E
},
{
"stats_out"
,
NULL
,
OFFSET
(
stats_out
),
AV_OPT_TYPE_STRING
,
{.
str
=
NULL
},
CHAR_MIN
,
CHAR_MAX
},
{
"stats_in"
,
NULL
,
OFFSET
(
stats_in
),
AV_OPT_TYPE_STRING
,
{.
str
=
NULL
},
CHAR_MIN
,
CHAR_MAX
},
...
...
libavcodec/version.h
浏览文件 @
ac84395d
...
...
@@ -41,9 +41,6 @@
#ifndef FF_API_REQUEST_CHANNELS
#define FF_API_REQUEST_CHANNELS (LIBAVCODEC_VERSION_MAJOR < 55)
#endif
#ifndef FF_API_PARSE_FRAME
#define FF_API_PARSE_FRAME (LIBAVCODEC_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_INTERNAL_CONTEXT
#define FF_API_INTERNAL_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 54)
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录