History

avfiltergraph: add AVOption table

Michael Niedermayer committed 13 years ago

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

Unified · Split

libavfilter/avfiltergraph.c+10−0
@@ -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
38static 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
35static const AVClass filtergraph_class = {44static 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};

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