FFmpeg
Data Structures | Functions | Variables
vf_separatefields.c File Reference
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  SeparateFieldsContext
 

Functions

static int config_props_output (AVFilterLink *outlink)
 
static void extract_field (AVFrame *frame, int nb_planes, int type)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *inpicref)
 
static int flush_frame (AVFilterLink *outlink, int64_t pts, int64_t *out_pts)
 
static int activate (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVFilterPad separatefields_outputs []
 
const AVFilter ff_vf_separatefields
 

Function Documentation

◆ config_props_output()

static int config_props_output ( AVFilterLink outlink)
static

Definition at line 32 of file vf_separatefields.c.

◆ extract_field()

static void extract_field ( AVFrame frame,
int  nb_planes,
int  type 
)
static

Definition at line 55 of file vf_separatefields.c.

Referenced by filter_frame(), and flush_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame inpicref 
)
static

Definition at line 66 of file vf_separatefields.c.

Referenced by activate().

◆ flush_frame()

static int flush_frame ( AVFilterLink outlink,
int64_t  pts,
int64_t *  out_pts 
)
static

Definition at line 111 of file vf_separatefields.c.

Referenced by activate().

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 127 of file vf_separatefields.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 158 of file vf_separatefields.c.

Variable Documentation

◆ separatefields_outputs

const AVFilterPad separatefields_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_props_output,
},
}

Definition at line 165 of file vf_separatefields.c.

◆ ff_vf_separatefields

const AVFilter ff_vf_separatefields
Initial value:
= {
.name = "separatefields",
.description = NULL_IF_CONFIG_SMALL("Split input video frames into fields."),
.priv_size = sizeof(SeparateFieldsContext),
}

Definition at line 173 of file vf_separatefields.c.

ff_video_default_filterpad
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
Definition: video.c:36
activate
static int activate(AVFilterContext *ctx)
Definition: vf_separatefields.c:127
separatefields_outputs
static const AVFilterPad separatefields_outputs[]
Definition: vf_separatefields.c:165
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:192
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:106
SeparateFieldsContext
Definition: vf_separatefields.c:27
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_separatefields.c:158
config_props_output
static int config_props_output(AVFilterLink *outlink)
Definition: vf_separatefields.c:32
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:193