62 sscanf(args,
"%255[^:]", settb->
tb_expr);
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);
AVFilter avfilter_vf_settb
int h
agreed upon image height
static int av_cmp_q(AVRational a, AVRational b)
Compare two rationals.
AVFilterLink ** inputs
array of pointers to input links
void avfilter_null_end_frame(AVFilterLink *link)
end_frame() handler for filters which simply pass video along
static double av_q2d(AVRational a)
Convert rational to double.
int64_t pts
presentation timestamp.
A filter pad used for either input or output.
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 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
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,...)
size_t av_strlcpy(char *dst, const char *src, size_t size)
Copy the string src to dst, but no more than size - 1 bytes, and null-terminate dst.
int w
agreed upon image width
AVRational av_d2q(double d, int max)
Convert a double precision floating point number to a rational.
static int config_output_props(AVFilterLink *outlink)
AVFilterContext * src
source filter
void avfilter_unref_buffer(AVFilterBufferRef *ref)
Remove a reference to a buffer.
A reference to an AVFilterBuffer.
#define AV_TIME_BASE_Q
Internal time base represented as fractional value.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
AVFilterBufferRef * avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask)
Add a new reference to a buffer.
rational number numerator/denominator
void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
Notify the next filter of the start of a frame.
const char * name
filter name
AVFilterBufferRef * avfilter_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
get_video_buffer() handler for filters which simply pass video along
AVFilterLink ** outputs
array of pointers to output links
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
static const char * var_names[]
static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
AVFilterContext * dst
dest filter
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
double var_values[VAR_VARS_NB]
simple arithmetic expression evaluator