History

Merge commit 'ffea3b00c39caa8ad78456ae08c8353929974dfd'

* commit 'ffea3b00c39caa8ad78456ae08c8353929974dfd': vf_settb: switch to an AVOptions-based system. Conflicts: doc/filters.texi libavfilter/f_settb.c

Michael Niedermayer committed 13 years ago

Commit 6a2fb5b2 parents 8695d9d ffea3b03 files · +13 −8Browse files

Unified · Split

3 files
  1. doc/filters.texi +10 −5
  2. libavfilter/avfilter.c +1 −0
  3. libavfilter/f_settb.c +2 −3
doc/filters.texi+10−5
@@ -6915,9 +6915,14 @@ ffmpeg -nostats -i input.mp3 -filter_complex ebur128 -f null - · 6914 unmodified lines
69156915 Set the timebase to use for the output frames timestamps.
69166916 It is mainly useful for testing timebase configuration.
69176917
6918−This filter accepts a single option @option{tb}, which can be
6919−specified either by setting @option{tb}=@var{VALUE} or setting the
6920−value alone.
6918+This filter accepts the following options:
6919+
6920+@table @option
6921+
6922+@item expr
6923+The expression which is evaluated into the output timebase.
6924+
6925+@end table
69216926
69226927 The value for @option{tb} is an arithmetic expression representing a
69236928 rational. The expression can contain the constants "AVTB" (the default
@@ -6930,13 +6935,13 @@ audio only). Default value is "intb". · 6 unmodified lines
69306935 @item
69316936 Set the timebase to 1/25:
69326937 @example
6933−settb=1/25
6938+settb=expr=1/25
69346939 @end example
69356940
69366941 @item
69376942 Set the timebase to 1/10:
69386943 @example
6939−settb=0.1
6944+settb=expr=0.1
69406945 @end example
69416946
69426947 @item
libavfilter/avfilter.c+1−0
@@ -691,6 +691,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 690 unmodified lines
691691 !strcmp(filter->filter->name, "aperms") ||
692692 !strcmp(filter->filter->name, "resample") ||
693693 !strcmp(filter->filter->name, "setpts" ) ||
694+ !strcmp(filter->filter->name, "settb" ) ||
694695 !strcmp(filter->filter->name, "showspectrum") ||
695696 !strcmp(filter->filter->name, "silencedetect") ||
696697 !strcmp(filter->filter->name, "smartblur") ||
libavfilter/f_settb.c+2−3
@@ -60,7 +60,7 @@ typedef struct { · 59 unmodified lines
6060 #define OFFSET(x) offsetof(SetTBContext, x)
6161 #define DEFINE_OPTIONS(filt_name, filt_type) \
6262 static const AVOption filt_name##_options[] = { \
63− { "tb", "set timebase expression", OFFSET(tb_expr), AV_OPT_TYPE_STRING, {.str="intb"}, \
63+ { "tb", "Expression determining the output timebase", OFFSET(tb_expr), AV_OPT_TYPE_STRING, {.str="intb"}, \
6464 .flags=AV_OPT_FLAG_##filt_type##_PARAM|AV_OPT_FLAG_FILTERING_PARAM }, \
6565 { NULL } \
6666 }
@@ -149,11 +149,10 @@ AVFilter avfilter_vf_settb = { · 82 unmodified lines
149149 .description = NULL_IF_CONFIG_SMALL("Set timebase for the video output link."),
150150
151151 .priv_size = sizeof(SetTBContext),
152+ .priv_class = &settb_class,
152153
153154 .inputs = avfilter_vf_settb_inputs,
154155 .outputs = avfilter_vf_settb_outputs,
155− .priv_class = &settb_class,
156− .shorthand = shorthand,
157156 };
158157 #endif
159158

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