History

Merge commit 'b5a138652ff8a5b987d3e1191e67fd9f6575527e'

* commit 'b5a138652ff8a5b987d3e1191e67fd9f6575527e': Give less generic names to global library option arrays Conflicts: libavcodec/options_table.h libavfilter/avfilter.c libavformat/options_table.h libswscale/options.c

Michael Niedermayer committed 13 years ago

Commit a8e96382 parents 8e970a5 b5a13869 files · +14 −14Browse files

Unified · Split

9 files
  1. doc/print_options.c +2 −2
  2. libavcodec/options.c +1 −1
  3. libavcodec/options_table.h +1 −1
  4. libavfilter/avfilter.c +2 −2
  5. libavformat/options.c +1 −1
  6. libavformat/options_table.h +1 −1
  7. libavresample/options.c +2 −2
  8. libavutil/opt.h +2 −2
  9. libswscale/options.c +2 −2
doc/print_options.c+2−2
@@ -99,7 +99,7 @@ static void show_format_opts(void) · 98 unmodified lines
9999 #include "libavformat/options_table.h"
100100
101101 printf("@section Format AVOptions\n");
102− show_opts(options, 0);
102+ show_opts(avformat_options, 0);
103103 }
104104
105105 static void show_codec_opts(void)
@@ -107,7 +107,7 @@ static void show_codec_opts(void) · 1 unmodified line
107107 #include "libavcodec/options_table.h"
108108
109109 printf("@section Codec AVOptions\n");
110− show_opts(options, 1);
110+ show_opts(avcodec_options, 1);
111111 }
112112
113113 int main(int argc, char **argv)
libavcodec/options.c+1−1
@@ -77,7 +77,7 @@ static AVClassCategory get_category(void *ptr) · 76 unmodified lines
7777 static const AVClass av_codec_context_class = {
7878 .class_name = "AVCodecContext",
7979 .item_name = context_to_name,
80− .option = options,
80+ .option = avcodec_options,
8181 .version = LIBAVUTIL_VERSION_INT,
8282 .log_level_offset_offset = offsetof(AVCodecContext, log_level_offset),
8383 .child_next = codec_child_next,
libavcodec/options_table.h+1−1
@@ -40,7 +40,7 @@ · 39 unmodified lines
4040
4141 #define AV_CODEC_DEFAULT_BITRATE 200*1000
4242
43−static const AVOption options[]={
43+static const AVOption avcodec_options[] = {
4444 {"b", "set bitrate (in bits/s)", OFFSET(bit_rate), AV_OPT_TYPE_INT, {.i64 = AV_CODEC_DEFAULT_BITRATE }, 0, INT_MAX, A|V|E},
4545 {"ab", "set bitrate (in bits/s)", OFFSET(bit_rate), AV_OPT_TYPE_INT, {.i64 = 128*1000 }, 0, INT_MAX, A|E},
4646 {"bt", "Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate tolerance specifies how far "
libavfilter/avfilter.c+2−2
@@ -539,7 +539,7 @@ static const AVClass *filter_child_class_next(const AVClass *prev) · 538 unmodified lines
539539
540540 #define OFFSET(x) offsetof(AVFilterContext, x)
541541 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM
542−static const AVOption options[] = {
542+static const AVOption avfilter_options[] = {
543543 { "thread_type", "Allowed thread types", OFFSET(thread_type), AV_OPT_TYPE_FLAGS,
544544 { .i64 = AVFILTER_THREAD_SLICE }, 0, INT_MAX, FLAGS, "thread_type" },
545545 { "slice", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AVFILTER_THREAD_SLICE }, .unit = "thread_type" },
@@ -554,7 +554,7 @@ static const AVClass avfilter_class = { · 8 unmodified lines
554554 .category = AV_CLASS_CATEGORY_FILTER,
555555 .child_next = filter_child_next,
556556 .child_class_next = filter_child_class_next,
557− .option = options,
557+ .option = avfilter_options,
558558 };
559559
560560 static int default_execute(AVFilterContext *ctx, action_func *func, void *arg,
libavformat/options.c+1−1
@@ -86,7 +86,7 @@ static AVClassCategory get_category(void *ptr) · 85 unmodified lines
8686 static const AVClass av_format_context_class = {
8787 .class_name = "AVFormatContext",
8888 .item_name = format_to_name,
89− .option = options,
89+ .option = avformat_options,
9090 .version = LIBAVUTIL_VERSION_INT,
9191 .child_next = format_child_next,
9292 .child_class_next = format_child_class_next,
libavformat/options_table.h+1−1
@@ -32,7 +32,7 @@ · 31 unmodified lines
3232 #define E AV_OPT_FLAG_ENCODING_PARAM
3333 #define D AV_OPT_FLAG_DECODING_PARAM
3434
35−static const AVOption options[]={
35+static const AVOption avformat_options[] = {
3636 {"avioflags", NULL, OFFSET(avio_flags), AV_OPT_TYPE_FLAGS, {.i64 = DEFAULT }, INT_MIN, INT_MAX, D|E, "avioflags"},
3737 {"direct", "reduce buffering", 0, AV_OPT_TYPE_CONST, {.i64 = AVIO_FLAG_DIRECT }, INT_MIN, INT_MAX, D|E, "avioflags"},
3838 {"probesize", "set probing size", OFFSET(probesize), AV_OPT_TYPE_INT, {.i64 = 5000000 }, 32, INT_MAX, D},
libavresample/options.c+2−2
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 #define OFFSET(x) offsetof(AVAudioResampleContext, x)
3434 #define PARAM AV_OPT_FLAG_AUDIO_PARAM
3535
36−static const AVOption options[] = {
36+static const AVOption avresample_options[] = {
3737 { "in_channel_layout", "Input Channel Layout", OFFSET(in_channel_layout), AV_OPT_TYPE_INT64, { .i64 = 0 }, INT64_MIN, INT64_MAX, PARAM },
3838 { "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 },
3939 { "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[] = { · 47 unmodified lines
8787 static const AVClass av_resample_context_class = {
8888 .class_name = "AVAudioResampleContext",
8989 .item_name = av_default_item_name,
90− .option = options,
90+ .option = avresample_options,
9191 .version = LIBAVUTIL_VERSION_INT,
9292 };
9393
libavutil/opt.h+2−2
@@ -64,7 +64,7 @@ · 63 unmodified lines
6464 * int bin_len;
6565 * } test_struct;
6666 *
67− * static const AVOption options[] = {
67+ * static const AVOption test_options[] = {
6868 * { "test_int", "This is a test option of int type.", offsetof(test_struct, int_opt),
6969 * AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX },
7070 * { "test_str", "This is a test option of string type.", offsetof(test_struct, str_opt),
@@ -77,7 +77,7 @@ · 6 unmodified lines
7777 * static const AVClass test_class = {
7878 * .class_name = "test class",
7979 * .item_name = av_default_item_name,
80− * .option = options,
80+ * .option = test_options,
8181 * .version = LIBAVUTIL_VERSION_INT,
8282 * };
8383 * @endcode
libswscale/options.c+2−2
@@ -33,7 +33,7 @@ static const char *sws_context_to_name(void *ptr) · 32 unmodified lines
3333 #define DEFAULT 0
3434 #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
3535
36−static const AVOption options[] = {
36+static const AVOption swscale_options[] = {
3737 { "sws_flags", "scaler flags", OFFSET(flags), AV_OPT_TYPE_FLAGS, { .i64 = DEFAULT }, 0, UINT_MAX, VE, "sws_flags" },
3838 { "fast_bilinear", "fast bilinear", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_FAST_BILINEAR }, INT_MIN, INT_MAX, VE, "sws_flags" },
3939 { "bilinear", "bilinear", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_BILINEAR }, INT_MIN, INT_MAX, VE, "sws_flags" },
@@ -75,7 +75,7 @@ static const AVOption options[] = { · 35 unmodified lines
7575 const AVClass sws_context_class = {
7676 .class_name = "SWScaler",
7777 .item_name = sws_context_to_name,
78− .option = options,
78+ .option = swscale_options,
7979 .category = AV_CLASS_CATEGORY_SWSCALER,
8080 .version = LIBAVUTIL_VERSION_INT,
8181 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t