Showing the changes to libavfilter/avfiltergraph.c (1 of 1 file). Show all
Unified · Split
| @@ -25,6 +25,7 @@ · 24 unmodified lines | |||
| 25 | 25 | ||
| 26 | #include "libavutil/avassert.h" | 26 | #include "libavutil/avassert.h" |
| 27 | #include "libavutil/channel_layout.h" | 27 | #include "libavutil/channel_layout.h" |
| 28 | #include "libavutil/opt.h" | ||
| 28 | #include "libavutil/pixdesc.h" | 29 | #include "libavutil/pixdesc.h" |
| 29 | #include "libavcodec/avcodec.h" // avcodec_find_best_pix_fmt_of_2() | 30 | #include "libavcodec/avcodec.h" // avcodec_find_best_pix_fmt_of_2() |
| 30 | #include "avfilter.h" | 31 | #include "avfilter.h" |
| @@ -32,9 +33,18 @@ · 1 unmodified line | |||
| 32 | #include "formats.h" | 33 | #include "formats.h" |
| 33 | #include "internal.h" | 34 | #include "internal.h" |
| 34 | 35 | ||
| 36 | #define OFFSET(x) offsetof(AVFilterGraph,x) | ||
| 37 | |||
| 38 | static const AVOption options[]={ | ||
| 39 | {"scale_sws_opts" , "default scale filter options" , OFFSET(scale_sws_opts) , AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, 0 }, | ||
| 40 | {0} | ||
| 41 | }; | ||
| 42 | |||
| 43 | |||
| 35 | static const AVClass filtergraph_class = { | 44 | static const AVClass filtergraph_class = { |
| 36 | .class_name = "AVFilterGraph", | 45 | .class_name = "AVFilterGraph", |
| 37 | .item_name = av_default_item_name, | 46 | .item_name = av_default_item_name, |
| 47 | .option = options, | ||
| 38 | .version = LIBAVUTIL_VERSION_INT, | 48 | .version = LIBAVUTIL_VERSION_INT, |
| 39 | .category = AV_CLASS_CATEGORY_FILTER, | 49 | .category = AV_CLASS_CATEGORY_FILTER, |
| 40 | }; | 50 | }; |