FFmpeg
Data Structures | Functions | Variables
vf_repeatfields.c File Reference
#include "libavutil/imgutils.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"
#include "video.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 []
 
const AVFilter ff_vf_repeatfields
 

Function Documentation

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 36 of file vf_repeatfields.c.

◆ config_input()

static int config_input ( AVFilterLink inlink)
static

Definition at line 53 of file vf_repeatfields.c.

◆ update_pts()

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

Definition at line 70 of file vf_repeatfields.c.

Referenced by filter_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 80 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 177 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 186 of file vf_repeatfields.c.

FILTER_PIXFMTS_ARRAY
#define FILTER_PIXFMTS_ARRAY(array)
Definition: internal.h:162
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_repeatfields.c:36
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:37
RepeatFieldsContext
Definition: vf_repeatfields.c:27
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:73
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:182
AV_PIX_FMT_GRAY8
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
Definition: pixfmt.h:81
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
config_input
static int config_input(AVFilterLink *inlink)
Definition: vf_repeatfields.c:53
pixel_fmts_eq
static enum AVPixelFormat pixel_fmts_eq[]
Definition: vf_repeatfields.c:43
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:72
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:78
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:77
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_repeatfields.c:80
repeatfields_inputs
static const AVFilterPad repeatfields_inputs[]
Definition: vf_repeatfields.c:177
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:183
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:80
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:79