vf_aspect.c File Reference

aspect ratio modification video filters More...

#include <float.h>
#include "libavutil/common.h"
#include "libavutil/eval.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"
Include dependency graph for vf_aspect.c:

Go to the source code of this file.

Data Structures

struct  AspectContext
 

Macros

#define OFFSET(x)   offsetof(AspectContext, x)
 
#define FLAGS   AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 

Functions

static av_cold int init (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *link, AVFrame *frame)
 
static void compute_dar (AVRational *dar, AVRational sar, int w, int h)
 

Detailed Description

aspect ratio modification video filters

Definition in file vf_aspect.c.

Macro Definition Documentation

Definition at line 87 of file vf_aspect.c.

Referenced by compute_dar().

#define OFFSET (   x)    offsetof(AspectContext, x)

Definition at line 86 of file vf_aspect.c.

Referenced by compute_dar().

Function Documentation

static void compute_dar ( AVRational dar,
AVRational  sar,
int  w,
int  h 
)
inlinestatic

Definition at line 89 of file vf_aspect.c.

static int filter_frame ( AVFilterLink link,
AVFrame frame 
)
static

Definition at line 78 of file vf_aspect.c.

Referenced by compute_dar().

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 48 of file vf_aspect.c.

Referenced by compute_dar().