42 if (sscanf(args,
"%lf%c", &ratio, &c) == 1)
47 "Invalid string '%s' for aspect ratio.\n", args);
73 #if CONFIG_SETDAR_FILTER
102 .config_props = setdar_config_props,
114 #if CONFIG_SETSAR_FILTER
135 .config_props = setsar_config_props,
AVFilterBufferRefVideoProps * video
video buffer specific properties
int h
agreed upon image height
static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
void avfilter_null_end_frame(AVFilterLink *link)
end_frame() handler for filters which simply pass video along
AVRational pixel_aspect
pixel aspect ratio
A filter pad used for either input or output.
A link between two filters.
#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
int64_t av_gcd(int64_t a, int64_t b)
Return the greatest common divisor of a and b.
void av_log(void *avcl, int level, const char *fmt,...)
int w
agreed upon image width
int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
Reduce a fraction.
struct AVRational AVRational
rational number numerator/denominator
AVRational av_d2q(double d, int max)
Convert a double precision floating point number to a rational.
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
A reference to an AVFilterBuffer.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
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
AVRational sample_aspect_ratio
agreed upon sample aspect ratio
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
AVFilterContext * dst
dest filter