diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-04-10 23:15:06 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-04-11 11:51:47 +0200 |
commit | 64a103138c04c1155adb5868a0ae176be3550723 (patch) | |
tree | aa5a6ef2602f63029c9b5537d3a093d094468da2 /libavfilter/vf_tile.c | |
parent | 35a27402ade928d78f8b7a89c8b4e8bf8b473215 (diff) | |
download | ffmpeg-64a103138c04c1155adb5868a0ae176be3550723.tar.gz |
lavfi/tile: switch to an AVOptions-based system.
Diffstat (limited to 'libavfilter/vf_tile.c')
-rw-r--r-- | libavfilter/vf_tile.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavfilter/vf_tile.c b/libavfilter/vf_tile.c index 64bf97076c..f92844b807 100644 --- a/libavfilter/vf_tile.c +++ b/libavfilter/vf_tile.c @@ -51,12 +51,12 @@ typedef struct { static const AVOption tile_options[] = { { "layout", "set grid size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "6x5"}, 0, 0, FLAGS }, + { "nb_frames", "set maximum number of frame to render", OFFSET(nb_frames), + AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, FLAGS }, { "margin", "set outer border margin in pixels", OFFSET(margin), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1024, FLAGS }, { "padding", "set inner border thickness in pixels", OFFSET(padding), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1024, FLAGS }, - { "nb_frames", "set maximum number of frame to render", OFFSET(nb_frames), - AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, FLAGS }, {NULL}, }; @@ -230,9 +230,6 @@ static const AVFilterPad tile_outputs[] = { { NULL } }; -static const char *const shorthand[] = - { "layout", "nb_frames", "margin", "padding", NULL }; - AVFilter avfilter_vf_tile = { .name = "tile", .description = NULL_IF_CONFIG_SMALL("Tile several successive frames together."), @@ -242,5 +239,4 @@ AVFilter avfilter_vf_tile = { .inputs = tile_inputs, .outputs = tile_outputs, .priv_class = &tile_class, - .shorthand = shorthand, }; |