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
6915Set the timebase to use for the output frames timestamps.6915Set the timebase to use for the output frames timestamps.
6916It is mainly useful for testing timebase configuration.6916It is mainly useful for testing timebase configuration.
6917 6917
6918This filter accepts a single option @option{tb}, which can be6918This filter accepts the following options:
6919specified either by setting @option{tb}=@var{VALUE} or setting the6919
6920value alone.6920@table @option
6921
6922@item expr
6923The expression which is evaluated into the output timebase.
6924
6925@end table
6921 6926
6922The value for @option{tb} is an arithmetic expression representing a6927The value for @option{tb} is an arithmetic expression representing a
6923rational. The expression can contain the constants "AVTB" (the default6928rational. The expression can contain the constants "AVTB" (the default
@@ -6930,13 +6935,13 @@ audio only). Default value is "intb". · 6 unmodified lines
6930@item6935@item
6931Set the timebase to 1/25:6936Set the timebase to 1/25:
6932@example6937@example
6933settb=1/256938settb=expr=1/25
6934@end example6939@end example
6935 6940
6936@item6941@item
6937Set the timebase to 1/10:6942Set the timebase to 1/10:
6938@example6943@example
6939settb=0.16944settb=expr=0.1
6940@end example6945@end example
6941 6946
6942@item6947@item
libavfilter/avfilter.c+1−0
@@ -691,6 +691,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 690 unmodified lines
691 !strcmp(filter->filter->name, "aperms") ||691 !strcmp(filter->filter->name, "aperms") ||
692 !strcmp(filter->filter->name, "resample") ||692 !strcmp(filter->filter->name, "resample") ||
693 !strcmp(filter->filter->name, "setpts" ) ||693 !strcmp(filter->filter->name, "setpts" ) ||
694 !strcmp(filter->filter->name, "settb" ) ||
694 !strcmp(filter->filter->name, "showspectrum") ||695 !strcmp(filter->filter->name, "showspectrum") ||
695 !strcmp(filter->filter->name, "silencedetect") ||696 !strcmp(filter->filter->name, "silencedetect") ||
696 !strcmp(filter->filter->name, "smartblur") ||697 !strcmp(filter->filter->name, "smartblur") ||
libavfilter/f_settb.c+2−3
@@ -60,7 +60,7 @@ typedef struct { · 59 unmodified lines
60#define OFFSET(x) offsetof(SetTBContext, x)60#define OFFSET(x) offsetof(SetTBContext, x)
61#define DEFINE_OPTIONS(filt_name, filt_type) \61#define DEFINE_OPTIONS(filt_name, filt_type) \
62static const AVOption filt_name##_options[] = { \62static 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"}, \
64 .flags=AV_OPT_FLAG_##filt_type##_PARAM|AV_OPT_FLAG_FILTERING_PARAM }, \64 .flags=AV_OPT_FLAG_##filt_type##_PARAM|AV_OPT_FLAG_FILTERING_PARAM }, \
65 { NULL } \65 { NULL } \
66}66}
@@ -149,11 +149,10 @@ AVFilter avfilter_vf_settb = { · 82 unmodified lines
149 .description = NULL_IF_CONFIG_SMALL("Set timebase for the video output link."),149 .description = NULL_IF_CONFIG_SMALL("Set timebase for the video output link."),
150 150
151 .priv_size = sizeof(SetTBContext),151 .priv_size = sizeof(SetTBContext),
152 .priv_class = &settb_class,
152 153
153 .inputs = avfilter_vf_settb_inputs,154 .inputs = avfilter_vf_settb_inputs,
154 .outputs = avfilter_vf_settb_outputs,155 .outputs = avfilter_vf_settb_outputs,
155 .priv_class = &settb_class,
156 .shorthand = shorthand,
157};156};
158#endif157#endif
159 158

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