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++) {
110 .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.
static const AVFilterPad outputs[]
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
Describe the class of an AVClass context structure.
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
#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 char * name
Pad name.
static const AVFilterPad field_outputs[]
int h
agreed upon image height
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
int nb_planes
number of planes of the current format