FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
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"

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

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

Definition at line 88 of file vf_aspect.c.

Definition at line 89 of file vf_aspect.c.

Function Documentation

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 49 of file vf_aspect.c.

static int filter_frame ( AVFilterLink link,
AVFrame frame 
)
static

Definition at line 80 of file vf_aspect.c.

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

Definition at line 91 of file vf_aspect.c.