Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b5a13865
Commit
b5a13865
authored
Aug 01, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give less generic names to global library option arrays
parent
0d6fa397
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
14 additions
and
14 deletions
+14
-14
print_options.c
doc/print_options.c
+2
-2
options.c
libavcodec/options.c
+1
-1
options_table.h
libavcodec/options_table.h
+1
-1
avfilter.c
libavfilter/avfilter.c
+2
-2
options.c
libavformat/options.c
+1
-1
options_table.h
libavformat/options_table.h
+1
-1
options.c
libavresample/options.c
+2
-2
opt.h
libavutil/opt.h
+2
-2
options.c
libswscale/options.c
+2
-2
No files found.
doc/print_options.c
View file @
b5a13865
...
...
@@ -99,7 +99,7 @@ static void show_format_opts(void)
#include "libavformat/options_table.h"
printf
(
"@section Format AVOptions
\n
"
);
show_opts
(
options
,
0
);
show_opts
(
avformat_
options
,
0
);
}
static
void
show_codec_opts
(
void
)
...
...
@@ -107,7 +107,7 @@ static void show_codec_opts(void)
#include "libavcodec/options_table.h"
printf
(
"@section Codec AVOptions
\n
"
);
show_opts
(
options
,
1
);
show_opts
(
avcodec_
options
,
1
);
}
int
main
(
int
argc
,
char
**
argv
)
...
...
libavcodec/options.c
View file @
b5a13865
...
...
@@ -70,7 +70,7 @@ static const AVClass *codec_child_class_next(const AVClass *prev)
static
const
AVClass
av_codec_context_class
=
{
.
class_name
=
"AVCodecContext"
,
.
item_name
=
context_to_name
,
.
option
=
options
,
.
option
=
avcodec_
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
.
log_level_offset_offset
=
offsetof
(
AVCodecContext
,
log_level_offset
),
.
child_next
=
codec_child_next
,
...
...
libavcodec/options_table.h
View file @
b5a13865
...
...
@@ -39,7 +39,7 @@
#define AV_CODEC_DEFAULT_BITRATE 200*1000
static
const
AVOption
options
[]
=
{
static
const
AVOption
avcodec_options
[]
=
{
{
"b"
,
"set bitrate (in bits/s)"
,
OFFSET
(
bit_rate
),
AV_OPT_TYPE_INT
,
{.
i64
=
AV_CODEC_DEFAULT_BITRATE
},
INT_MIN
,
INT_MAX
,
V
|
A
|
E
},
{
"bt"
,
"Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate tolerance specifies how far "
"ratecontrol is willing to deviate from the target average bitrate value. This is not related "
...
...
libavfilter/avfilter.c
View file @
b5a13865
...
...
@@ -354,7 +354,7 @@ static const AVClass *filter_child_class_next(const AVClass *prev)
#define OFFSET(x) offsetof(AVFilterContext, x)
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM
static
const
AVOption
options
[]
=
{
static
const
AVOption
avfilter_
options
[]
=
{
{
"thread_type"
,
"Allowed thread types"
,
OFFSET
(
thread_type
),
AV_OPT_TYPE_FLAGS
,
{
.
i64
=
AVFILTER_THREAD_SLICE
},
0
,
INT_MAX
,
FLAGS
,
"thread_type"
},
{
"slice"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
AVFILTER_THREAD_SLICE
},
.
unit
=
"thread_type"
},
...
...
@@ -367,7 +367,7 @@ static const AVClass avfilter_class = {
.
version
=
LIBAVUTIL_VERSION_INT
,
.
child_next
=
filter_child_next
,
.
child_class_next
=
filter_child_class_next
,
.
option
=
options
,
.
option
=
avfilter_
options
,
};
static
int
default_execute
(
AVFilterContext
*
ctx
,
action_func
*
func
,
void
*
arg
,
...
...
libavformat/options.c
View file @
b5a13865
...
...
@@ -79,7 +79,7 @@ static const AVClass *format_child_class_next(const AVClass *prev)
static
const
AVClass
av_format_context_class
=
{
.
class_name
=
"AVFormatContext"
,
.
item_name
=
format_to_name
,
.
option
=
options
,
.
option
=
avformat_
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
.
child_next
=
format_child_next
,
.
child_class_next
=
format_child_class_next
,
...
...
libavformat/options_table.h
View file @
b5a13865
...
...
@@ -30,7 +30,7 @@
#define E AV_OPT_FLAG_ENCODING_PARAM
#define D AV_OPT_FLAG_DECODING_PARAM
static
const
AVOption
options
[]
=
{
static
const
AVOption
avformat_options
[]
=
{
{
"probesize"
,
"set probing size"
,
OFFSET
(
probesize
),
AV_OPT_TYPE_INT
,
{.
i64
=
5000000
},
32
,
INT_MAX
,
D
},
{
"packetsize"
,
"set packet size"
,
OFFSET
(
packet_size
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
0
,
INT_MAX
,
E
},
{
"fflags"
,
NULL
,
OFFSET
(
flags
),
AV_OPT_TYPE_FLAGS
,
{.
i64
=
DEFAULT
},
INT_MIN
,
INT_MAX
,
D
|
E
,
"fflags"
},
...
...
libavresample/options.c
View file @
b5a13865
...
...
@@ -33,7 +33,7 @@
#define OFFSET(x) offsetof(AVAudioResampleContext, x)
#define PARAM AV_OPT_FLAG_AUDIO_PARAM
static
const
AVOption
options
[]
=
{
static
const
AVOption
avresample_
options
[]
=
{
{
"in_channel_layout"
,
"Input Channel Layout"
,
OFFSET
(
in_channel_layout
),
AV_OPT_TYPE_INT64
,
{
.
i64
=
0
},
INT64_MIN
,
INT64_MAX
,
PARAM
},
{
"in_sample_fmt"
,
"Input Sample Format"
,
OFFSET
(
in_sample_fmt
),
AV_OPT_TYPE_INT
,
{
.
i64
=
AV_SAMPLE_FMT_S16
},
AV_SAMPLE_FMT_U8
,
AV_SAMPLE_FMT_NB
-
1
,
PARAM
},
{
"in_sample_rate"
,
"Input Sample Rate"
,
OFFSET
(
in_sample_rate
),
AV_OPT_TYPE_INT
,
{
.
i64
=
48000
},
1
,
INT_MAX
,
PARAM
},
...
...
@@ -87,7 +87,7 @@ static const AVOption options[] = {
static
const
AVClass
av_resample_context_class
=
{
.
class_name
=
"AVAudioResampleContext"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
option
=
avresample_
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
...
...
libavutil/opt.h
View file @
b5a13865
...
...
@@ -62,7 +62,7 @@
* int bin_len;
* } test_struct;
*
* static const AVOption options[] = {
* static const AVOption
test_
options[] = {
* { "test_int", "This is a test option of int type.", offsetof(test_struct, int_opt),
* AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX },
* { "test_str", "This is a test option of string type.", offsetof(test_struct, str_opt),
...
...
@@ -75,7 +75,7 @@
* static const AVClass test_class = {
* .class_name = "test class",
* .item_name = av_default_item_name,
* .option = options,
* .option =
test_
options,
* .version = LIBAVUTIL_VERSION_INT,
* };
* @endcode
...
...
libswscale/options.c
View file @
b5a13865
...
...
@@ -33,7 +33,7 @@ static const char *sws_context_to_name(void *ptr)
#define DEFAULT 0
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
static
const
AVOption
options
[]
=
{
static
const
AVOption
swscale_
options
[]
=
{
{
"sws_flags"
,
"scaler flags"
,
OFFSET
(
flags
),
AV_OPT_TYPE_FLAGS
,
{
.
i64
=
DEFAULT
},
0
,
UINT_MAX
,
VE
,
"sws_flags"
},
{
"fast_bilinear"
,
"fast bilinear"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
SWS_FAST_BILINEAR
},
INT_MIN
,
INT_MAX
,
VE
,
"sws_flags"
},
{
"bilinear"
,
"bilinear"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
SWS_BILINEAR
},
INT_MIN
,
INT_MAX
,
VE
,
"sws_flags"
},
...
...
@@ -66,7 +66,7 @@ static const AVOption options[] = {
{
NULL
}
};
const
AVClass
sws_context_class
=
{
"SWScaler"
,
sws_context_to_name
,
options
};
const
AVClass
sws_context_class
=
{
"SWScaler"
,
sws_context_to_name
,
swscale_
options
};
const
AVClass
*
sws_get_class
(
void
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment