Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
97cfe1d8
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,发现更多精彩内容 >>
提交
97cfe1d8
编写于
6月 10, 2017
作者:
D
Diego Biurrun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Convert all AVClass struct declarations to designated initializers.
上级
98ea9806
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
98 addition
and
39 deletion
+98
-39
libavcodec/aacenc.c
libavcodec/aacenc.c
+4
-4
libavcodec/ac3enc_fixed.c
libavcodec/ac3enc_fixed.c
+7
-2
libavcodec/ac3enc_float.c
libavcodec/ac3enc_float.c
+7
-2
libavcodec/dnxhdenc.c
libavcodec/dnxhdenc.c
+4
-4
libavcodec/eac3enc.c
libavcodec/eac3enc.c
+7
-2
libavcodec/flacenc.c
libavcodec/flacenc.c
+4
-4
libavcodec/libfdk-aacdec.c
libavcodec/libfdk-aacdec.c
+4
-1
libavcodec/libfdk-aacenc.c
libavcodec/libfdk-aacenc.c
+4
-1
libavcodec/libilbc.c
libavcodec/libilbc.c
+8
-2
libavcodec/libopencore-amr.c
libavcodec/libopencore-amr.c
+4
-1
libavcodec/libopenh264enc.c
libavcodec/libopenh264enc.c
+4
-1
libavcodec/libvo-amrwbenc.c
libavcodec/libvo-amrwbenc.c
+4
-1
libavcodec/libvorbis.c
libavcodec/libvorbis.c
+6
-1
libavfilter/vf_drawtext.c
libavfilter/vf_drawtext.c
+3
-3
libavfilter/vsrc_movie.c
libavfilter/vsrc_movie.c
+3
-3
libavutil/eval.c
libavutil/eval.c
+8
-1
libavutil/file.c
libavutil/file.c
+6
-2
libavutil/imgutils.c
libavutil/imgutils.c
+8
-1
libavutil/tests/opt.c
libavutil/tests/opt.c
+3
-3
未找到文件。
libavcodec/aacenc.c
浏览文件 @
97cfe1d8
...
...
@@ -803,10 +803,10 @@ static const AVOption aacenc_options[] = {
};
static
const
AVClass
aacenc_class
=
{
"AAC encoder"
,
av_default_item_name
,
aacenc_options
,
LIBAVUTIL_VERSION_INT
,
.
class_name
=
"AAC encoder"
,
.
item_name
=
av_default_item_name
,
.
option
=
aacenc_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
AVCodec
ff_aac_encoder
=
{
...
...
libavcodec/ac3enc_fixed.c
浏览文件 @
97cfe1d8
...
...
@@ -35,8 +35,13 @@
#define AC3ENC_TYPE AC3ENC_TYPE_AC3_FIXED
#include "ac3enc_opts_template.c"
static
const
AVClass
ac3enc_class
=
{
"Fixed-Point AC-3 Encoder"
,
av_default_item_name
,
ac3_options
,
LIBAVUTIL_VERSION_INT
};
static
const
AVClass
ac3enc_class
=
{
.
class_name
=
"Fixed-Point AC-3 Encoder"
,
.
item_name
=
av_default_item_name
,
.
option
=
ac3_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
/*
* Normalize the input samples to use the maximum available precision.
...
...
libavcodec/ac3enc_float.c
浏览文件 @
97cfe1d8
...
...
@@ -36,8 +36,13 @@
#define AC3ENC_TYPE AC3ENC_TYPE_AC3
#include "ac3enc_opts_template.c"
static
const
AVClass
ac3enc_class
=
{
"AC-3 Encoder"
,
av_default_item_name
,
ac3_options
,
LIBAVUTIL_VERSION_INT
};
static
const
AVClass
ac3enc_class
=
{
.
class_name
=
"AC-3 Encoder"
,
.
item_name
=
av_default_item_name
,
.
option
=
ac3_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
/*
...
...
libavcodec/dnxhdenc.c
浏览文件 @
97cfe1d8
...
...
@@ -52,10 +52,10 @@ static const AVOption options[] = {
};
static
const
AVClass
class
=
{
"dnxhd"
,
av_default_item_name
,
options
,
LIBAVUTIL_VERSION_INT
.
class_name
=
"dnxhd"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
void
dnxhd_8bit_get_pixels_8x4_sym
(
int16_t
*
restrict
block
,
...
...
libavcodec/eac3enc.c
浏览文件 @
97cfe1d8
...
...
@@ -34,8 +34,13 @@
#define AC3ENC_TYPE AC3ENC_TYPE_EAC3
#include "ac3enc_opts_template.c"
static
const
AVClass
eac3enc_class
=
{
"E-AC-3 Encoder"
,
av_default_item_name
,
ac3_options
,
LIBAVUTIL_VERSION_INT
};
static
const
AVClass
eac3enc_class
=
{
.
class_name
=
"E-AC-3 Encoder"
,
.
item_name
=
av_default_item_name
,
.
option
=
ac3_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
/**
...
...
libavcodec/flacenc.c
浏览文件 @
97cfe1d8
...
...
@@ -1359,10 +1359,10 @@ static const AVOption options[] = {
};
static
const
AVClass
flac_encoder_class
=
{
"FLAC encoder"
,
av_default_item_name
,
options
,
LIBAVUTIL_VERSION_INT
,
.
class_name
=
"FLAC encoder"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
AVCodec
ff_flac_encoder
=
{
...
...
libavcodec/libfdk-aacdec.c
浏览文件 @
97cfe1d8
...
...
@@ -79,7 +79,10 @@ static const AVOption fdk_aac_dec_options[] = {
};
static
const
AVClass
fdk_aac_dec_class
=
{
"libfdk-aac decoder"
,
av_default_item_name
,
fdk_aac_dec_options
,
LIBAVUTIL_VERSION_INT
.
class_name
=
"libfdk-aac decoder"
,
.
item_name
=
av_default_item_name
,
.
option
=
fdk_aac_dec_options
,
.
version
=
LIBAVUTIL_VERSION_INT
};
static
int
get_stream_info
(
AVCodecContext
*
avctx
)
...
...
libavcodec/libfdk-aacenc.c
浏览文件 @
97cfe1d8
...
...
@@ -54,7 +54,10 @@ static const AVOption aac_enc_options[] = {
};
static
const
AVClass
aac_enc_class
=
{
"libfdk_aac"
,
av_default_item_name
,
aac_enc_options
,
LIBAVUTIL_VERSION_INT
.
class_name
=
"libfdk_aac"
,
.
item_name
=
av_default_item_name
,
.
option
=
aac_enc_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
const
char
*
aac_get_error
(
AACENC_ERROR
err
)
...
...
libavcodec/libilbc.c
浏览文件 @
97cfe1d8
...
...
@@ -51,7 +51,10 @@ static const AVOption ilbc_dec_options[] = {
};
static
const
AVClass
ilbc_dec_class
=
{
"libilbc"
,
av_default_item_name
,
ilbc_dec_options
,
LIBAVUTIL_VERSION_INT
.
class_name
=
"libilbc"
,
.
item_name
=
av_default_item_name
,
.
option
=
ilbc_dec_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
av_cold
int
ilbc_decode_init
(
AVCodecContext
*
avctx
)
...
...
@@ -126,7 +129,10 @@ static const AVOption ilbc_enc_options[] = {
};
static
const
AVClass
ilbc_enc_class
=
{
"libilbc"
,
av_default_item_name
,
ilbc_enc_options
,
LIBAVUTIL_VERSION_INT
.
class_name
=
"libilbc"
,
.
item_name
=
av_default_item_name
,
.
option
=
ilbc_enc_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
av_cold
int
ilbc_encode_init
(
AVCodecContext
*
avctx
)
...
...
libavcodec/libopencore-amr.c
浏览文件 @
97cfe1d8
...
...
@@ -184,7 +184,10 @@ static const AVOption options[] = {
};
static
const
AVClass
class
=
{
"libopencore_amrnb"
,
av_default_item_name
,
options
,
LIBAVUTIL_VERSION_INT
.
class_name
=
"libopencore_amrnb"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
av_cold
int
amr_nb_encode_init
(
AVCodecContext
*
avctx
)
...
...
libavcodec/libopenh264enc.c
浏览文件 @
97cfe1d8
...
...
@@ -75,7 +75,10 @@ static const AVOption options[] = {
};
static
const
AVClass
class
=
{
"libopenh264enc"
,
av_default_item_name
,
options
,
LIBAVUTIL_VERSION_INT
.
class_name
=
"libopenh264enc"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
av_cold
int
svc_encode_close
(
AVCodecContext
*
avctx
)
...
...
libavcodec/libvo-amrwbenc.c
浏览文件 @
97cfe1d8
...
...
@@ -46,7 +46,10 @@ static const AVOption options[] = {
};
static
const
AVClass
class
=
{
"libvo_amrwbenc"
,
av_default_item_name
,
options
,
LIBAVUTIL_VERSION_INT
.
class_name
=
"libvo_amrwbenc"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
int
get_wb_bitrate_mode
(
int
bitrate
,
void
*
log_ctx
)
...
...
libavcodec/libvorbis.c
浏览文件 @
97cfe1d8
...
...
@@ -72,7 +72,12 @@ static const AVCodecDefault defaults[] = {
{
NULL
},
};
static
const
AVClass
class
=
{
"libvorbis"
,
av_default_item_name
,
options
,
LIBAVUTIL_VERSION_INT
};
static
const
AVClass
class
=
{
.
class_name
=
"libvorbis"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
int
vorbis_error_to_averror
(
int
ov_err
)
...
...
libavfilter/vf_drawtext.c
浏览文件 @
97cfe1d8
...
...
@@ -209,9 +209,9 @@ static const char *drawtext_get_name(void *ctx)
}
static
const
AVClass
drawtext_class
=
{
"DrawTextContext"
,
drawtext_get_name
,
drawtext_options
.
class_name
=
"DrawTextContext"
,
.
item_name
=
drawtext_get_name
,
.
option
=
drawtext_options
,
};
#undef __FTERRORS_H__
...
...
libavfilter/vsrc_movie.c
浏览文件 @
97cfe1d8
...
...
@@ -81,9 +81,9 @@ static const char *movie_get_name(void *ctx)
}
static
const
AVClass
movie_class
=
{
"MovieContext"
,
movie_get_name
,
movie_options
.
class_name
=
"MovieContext"
,
.
item_name
=
movie_get_name
,
.
option
=
movie_options
,
};
static
av_cold
int
movie_init
(
AVFilterContext
*
ctx
)
...
...
libavutil/eval.c
浏览文件 @
97cfe1d8
...
...
@@ -52,7 +52,14 @@ typedef struct Parser {
double
var
[
VARS
];
}
Parser
;
static
const
AVClass
class
=
{
"Eval"
,
av_default_item_name
,
NULL
,
LIBAVUTIL_VERSION_INT
,
offsetof
(
Parser
,
log_offset
),
offsetof
(
Parser
,
log_ctx
)
};
static
const
AVClass
class
=
{
.
class_name
=
"Eval"
,
.
item_name
=
av_default_item_name
,
.
option
=
NULL
,
.
version
=
LIBAVUTIL_VERSION_INT
,
.
log_level_offset_offset
=
offsetof
(
Parser
,
log_offset
),
.
parent_log_context_offset
=
offsetof
(
Parser
,
log_ctx
),
};
static
const
int8_t
si_prefixes
[
'z'
-
'E'
+
1
]
=
{
[
'y'
-
'E'
]
=
-
24
,
...
...
libavutil/file.c
浏览文件 @
97cfe1d8
...
...
@@ -42,8 +42,12 @@ typedef struct FileLogContext {
}
FileLogContext
;
static
const
AVClass
file_log_ctx_class
=
{
"FILE"
,
av_default_item_name
,
NULL
,
LIBAVUTIL_VERSION_INT
,
offsetof
(
FileLogContext
,
log_offset
),
offsetof
(
FileLogContext
,
log_ctx
)
.
class_name
=
"FILE"
,
.
item_name
=
av_default_item_name
,
.
option
=
NULL
,
.
version
=
LIBAVUTIL_VERSION_INT
,
.
log_level_offset_offset
=
offsetof
(
FileLogContext
,
log_offset
),
.
parent_log_context_offset
=
offsetof
(
FileLogContext
,
log_ctx
),
};
int
av_file_map
(
const
char
*
filename
,
uint8_t
**
bufptr
,
size_t
*
size
,
...
...
libavutil/imgutils.c
浏览文件 @
97cfe1d8
...
...
@@ -219,7 +219,14 @@ typedef struct ImgUtils {
void
*
log_ctx
;
}
ImgUtils
;
static
const
AVClass
imgutils_class
=
{
"IMGUTILS"
,
av_default_item_name
,
NULL
,
LIBAVUTIL_VERSION_INT
,
offsetof
(
ImgUtils
,
log_offset
),
offsetof
(
ImgUtils
,
log_ctx
)
};
static
const
AVClass
imgutils_class
=
{
.
class_name
=
"IMGUTILS"
,
.
item_name
=
av_default_item_name
,
.
option
=
NULL
,
.
version
=
LIBAVUTIL_VERSION_INT
,
.
log_level_offset_offset
=
offsetof
(
ImgUtils
,
log_offset
),
.
parent_log_context_offset
=
offsetof
(
ImgUtils
,
log_ctx
),
};
int
av_image_check_size
(
unsigned
int
w
,
unsigned
int
h
,
int
log_offset
,
void
*
log_ctx
)
{
...
...
libavutil/tests/opt.c
浏览文件 @
97cfe1d8
...
...
@@ -59,9 +59,9 @@ static const char *test_get_name(void *ctx)
}
static
const
AVClass
test_class
=
{
"TestContext"
,
test_get_name
,
test_options
.
class_name
=
"TestContext"
,
.
item_name
=
test_get_name
,
.
option
=
test_options
,
};
int
main
(
void
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录