FFmpeg
Data Structures | Functions | Variables
vf_repeatfields.c File Reference
#include "libavutil/imgutils.h"
#include "avfilter.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  RepeatFieldsContext
 

Functions

static av_cold void uninit (AVFilterContext *ctx)
 
static int config_input (AVFilterLink *inlink)
 
static void update_pts (AVFilterLink *link, AVFrame *f, int64_t pts, int fields)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 

Variables

static enum AVPixelFormat pixel_fmts_eq []
 
static const AVFilterPad repeatfields_inputs []
 
static const AVFilterPad repeatfields_outputs []
 
const AVFilter ff_vf_repeatfields
 

Function Documentation

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 34 of file vf_repeatfields.c.

◆ config_input()

static int config_input ( AVFilterLink inlink)
static

Definition at line 51 of file vf_repeatfields.c.

◆ update_pts()

static void update_pts ( AVFilterLink link,
AVFrame f,
int64_t  pts,
int  fields 
)
static

Definition at line 68 of file vf_repeatfields.c.

Referenced by filter_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 78 of file vf_repeatfields.c.

Variable Documentation

◆ pixel_fmts_eq

enum AVPixelFormat pixel_fmts_eq[]
static

◆ repeatfields_inputs

const AVFilterPad repeatfields_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_input,
},
}

Definition at line 158 of file vf_repeatfields.c.

◆ repeatfields_outputs

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

Definition at line 167 of file vf_repeatfields.c.

◆ ff_vf_repeatfields

const AVFilter ff_vf_repeatfields
Initial value:
= {
.name = "repeatfields",
.description = NULL_IF_CONFIG_SMALL("Hard repeat fields based on MPEG repeat field flag."),
.priv_size = sizeof(RepeatFieldsContext),
}

Definition at line 174 of file vf_repeatfields.c.

FILTER_PIXFMTS_ARRAY
#define FILTER_PIXFMTS_ARRAY(array)
Definition: internal.h:171
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_repeatfields.c:34
RepeatFieldsContext
Definition: vf_repeatfields.c:25
AV_PIX_FMT_YUV420P
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:191
AV_PIX_FMT_GRAY8
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
Definition: pixfmt.h:74
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:117
config_input
static int config_input(AVFilterLink *inlink)
Definition: vf_repeatfields.c:51
pixel_fmts_eq
static enum AVPixelFormat pixel_fmts_eq[]
Definition: vf_repeatfields.c:41
repeatfields_outputs
static const AVFilterPad repeatfields_outputs[]
Definition: vf_repeatfields.c:167
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
AV_PIX_FMT_YUV444P
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition: pixfmt.h:71
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_PIX_FMT_YUV422P
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:70
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_repeatfields.c:78
repeatfields_inputs
static const AVFilterPad repeatfields_inputs[]
Definition: vf_repeatfields.c:158
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:192
AV_PIX_FMT_YUV411P
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
Definition: pixfmt.h:73
AV_PIX_FMT_YUV410P
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
Definition: pixfmt.h:72