Go to the documentation of this file.
40 #define OFFSET(x) offsetof(FieldContext, x)
41 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
65 outlink->
w, outlink->
h);
78 for (
i = 0;
i <
field->nb_planes;
i++) {
108 .priv_class = &field_class,
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
static const AVFilterPad field_inputs[]
The exact code depends on how similar the blocks are and how related they are to the and needs to apply these operations to the correct inlink or outlink if there are several Macros are available to factor that when no extra processing is inlink
This structure describes decoded (raw) audio or video data.
#define AV_LOG_VERBOSE
Detailed information.
static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
const char * name
Filter name.
static const AVOption field_options[]
A link between two filters.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt)
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
A filter pad used for either input or output.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this field
#define FILTER_INPUTS(array)
Describe the class of an AVClass context structure.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int config_props_output(AVFilterLink *outlink)
int format
agreed upon media format
AVFilterContext * src
source filter
AVFILTER_DEFINE_CLASS(field)
int interlaced_frame
The content of the picture is interlaced.
#define i(width, name, range_min, range_max)
int w
agreed upon image width
const AVFilter ff_vf_field
const char * name
Pad name.
static const AVFilterPad field_outputs[]
int h
agreed upon image height
#define FILTER_OUTPUTS(array)
int linesize[AV_NUM_DATA_POINTERS]
For video, a positive or negative value, which is typically indicating the size in bytes of each pict...
int nb_planes
number of planes of the current format