21 #include "libavutil/pixdesc.h"
47 outlink->
w = inlink->
w;
48 outlink->
h = inlink->
h / 2;
57 for (i = 0; i < nb_planes; i++) {
83 second->
pts += inpicref->
pts;
141 .
name =
"separatefields",
144 .
inputs = separatefields_inputs,
145 .
outputs = separatefields_outputs,
int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt)
This structure describes decoded (raw) audio or video data.
const char * name
Filter name.
void * priv
private data for use by the filter
static const AVFilterPad outputs[]
int h
agreed upon image height
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
const char * name
Pad name.
static int config_props_output(AVFilterLink *outlink)
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
static const AVFilterPad separatefields_outputs[]
static const AVFilterPad separatefields_inputs[]
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
int interlaced_frame
The content of the picture is interlaced.
static void extract_field(AVFrame *frame, int nb_planes, int type)
A filter pad used for either input or output.
A link between two filters.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
AVFilter avfilter_vf_separatefields
AVRational frame_rate
Frame rate of the stream on the link, or 1/0 if unknown; if left to 0/0, will be automatically be cop...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVRational time_base
Define the time base used by the PTS of the frames/samples which will pass through this link...
AVFilterContext * src
source filter
int w
agreed upon image width
int format
agreed upon media format
Main libavfilter public API header.
AVFilterLink ** outputs
array of pointers to output links
static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
static const AVFilterPad inputs[]
AVFilterLink ** inputs
array of pointers to input links
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
AVFilterContext * dst
dest filter
static int request_frame(AVFilterLink *outlink)
AVFrame * av_frame_clone(AVFrame *src)
Create a new frame that references the same data as src.
#define AVERROR_INVALIDDATA
int top_field_first
If the content is interlaced, is top field displayed first.
int ff_request_frame(AVFilterLink *link)
Request an input frame from the filter at the other end of the link.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
#define AV_NOPTS_VALUE
Undefined timestamp value.