82 outlink->
w = inlink->
w;
83 outlink->
h = inlink->
h;
90 time_base =
av_d2q(res, INT_MAX);
91 if (time_base.
num <= 0 || time_base.
den <= 0) {
93 "Invalid non-positive values for the timebase num:%d or den:%d.\n",
94 time_base.
num, time_base.
den);
112 int64_t orig_pts = frame->
pts;
115 inlink ->time_base.num, inlink ->
time_base.
den, orig_pts,
122 #define OFFSET(x) offsetof(SetTBContext, x) 123 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM 129 #if CONFIG_SETTB_FILTER 130 static const AVClass settb_class = {
137 static const AVFilterPad avfilter_vf_settb_inputs[] = {
147 static const AVFilterPad avfilter_vf_settb_outputs[] = {
161 .priv_class = &settb_class,
163 .
inputs = avfilter_vf_settb_inputs,
165 .
outputs = avfilter_vf_settb_outputs,
169 #if CONFIG_ASETTB_FILTER 170 static const AVClass asettb_class = {
177 static const AVFilterPad avfilter_af_asettb_inputs[] = {
187 static const AVFilterPad avfilter_af_asettb_outputs[] = {
200 .
inputs = avfilter_af_asettb_inputs,
201 .
outputs = avfilter_af_asettb_outputs,
202 .priv_class = &asettb_class,
This structure describes decoded (raw) audio or video data.
static const AVFilterPad outputs[]
Main libavfilter public API header.
int h
agreed upon image height
static const char *const var_names[]
AVFrame * ff_null_get_video_buffer(AVFilterLink *link, int w, int h)
static int av_cmp_q(AVRational a, AVRational b)
Compare two rationals.
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
AVFilterLink ** inputs
array of pointers to input links
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
static const AVOption options[]
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
static double av_q2d(AVRational a)
Convert rational to double.
#define AV_LOG_VERBOSE
Detailed information.
static int config_output_props(AVFilterLink *outlink)
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
A link between two filters.
int av_expr_parse_and_eval(double *d, const char *s, const char *const *const_names, const double *const_values, const char *const *func1_names, double(*const *funcs1)(void *, double), const char *const *func2_names, double(*const *funcs2)(void *, double, double), void *opaque, int log_offset, void *log_ctx)
Parse and evaluate an expression.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int sample_rate
samples per second
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void * priv
private data for use by the filter
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
AVRational time_base
Define the time base used by the PTS of the frames/samples which will pass through this link...
void av_log(void *avcl, int level, const char *fmt,...)
int w
agreed upon image width
common internal API header
AVRational av_d2q(double d, int max)
Convert a double precision floating point number to a rational.
AVFilterContext * src
source filter
AVFrame * ff_null_get_audio_buffer(AVFilterLink *link, int nb_samples)
get_audio_buffer() handler for filters which simply pass audio along
#define AV_TIME_BASE_Q
Internal time base represented as fractional value.
Describe the class of an AVClass context structure.
static const AVFilterPad inputs[]
rational number numerator/denominator
const char * name
Filter name.
AVFilterLink ** outputs
array of pointers to output links
struct AVFilterPad AVFilterPad
AVFilterContext * dst
dest filter
double var_values[VAR_VARS_NB]
simple arithmetic expression evaluator