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,
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
This structure describes decoded (raw) audio or video data.
int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt)
Main libavfilter public API header.
int h
agreed upon image height
const char * name
Pad name.
AVFilterLink ** inputs
array of pointers to input links
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).
#define AVERROR_EOF
End of file.
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.
AVRational frame_rate
Frame rate of the stream on the link, or 1/0 if unknown or variable; if left to 0/0, will be automatically copied from the first input of the source filter if it exists.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void * priv
private data for use by the filter
AVRational time_base
Define the time base used by the PTS of the frames/samples which will pass through this link...
int w
agreed upon image width
AVFilterContext * src
source filter
static const AVFilterPad outputs[]
AVFrame * av_frame_clone(const AVFrame *src)
Create a new frame that references the same data as src.
int format
agreed upon media format
static const AVFilterPad inputs[]
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
const char * name
Filter name.
static int request_frame(AVFilterLink *outlink)
AVFilterLink ** outputs
array of pointers to output links
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
AVFilter ff_vf_separatefields
int top_field_first
If the content is interlaced, is top field displayed first.
AVFilterContext * dst
dest filter
int ff_request_frame(AVFilterLink *link)
Request an input frame from the filter at the other end of the link.
#define AV_NOPTS_VALUE
Undefined timestamp value.