History

avfiltergraph: add AVOption table

Michael Niedermayer committed 13 years ago

Commit 8f507fe1 parent 48cbdae1 file · +10 −0Browse files

Showing the changes to libavfilter/avfiltergraph.c (1 of 1 file). Show all

Unified · Split

libavfilter/avfiltergraph.c+10−0
@@ -25,6 +25,7 @@ · 24 unmodified lines
2525
2626 #include "libavutil/avassert.h"
2727 #include "libavutil/channel_layout.h"
28+#include "libavutil/opt.h"
2829 #include "libavutil/pixdesc.h"
2930 #include "libavcodec/avcodec.h" // avcodec_find_best_pix_fmt_of_2()
3031 #include "avfilter.h"
@@ -32,9 +33,18 @@ · 1 unmodified line
3233 #include "formats.h"
3334 #include "internal.h"
3435
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+
3544 static const AVClass filtergraph_class = {
3645 .class_name = "AVFilterGraph",
3746 .item_name = av_default_item_name,
47+ .option = options,
3848 .version = LIBAVUTIL_VERSION_INT,
3949 .category = AV_CLASS_CATEGORY_FILTER,
4050 };

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