148 #define INTERLACE_TYPE_P 0 149 #define INTERLACE_TYPE_T 1 150 #define INTERLACE_TYPE_B 2 184 #define D2TS(d) (isnan(d) ? AV_NOPTS_VALUE : (int64_t)(d)) 185 #define TS2D(ts) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts)) 230 "Buffering limit reached, cannot cache more frames\n");
234 sizeof(frame),
NULL);
304 #define OFFSET(x) offsetof(SelectContext, x) 305 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM 346 .priv_class = &select_class,
static const char *const var_names[]
This structure describes decoded (raw) audio or video data.
static const AVFilterPad outputs[]
Main libavfilter public API header.
static int config_input(AVFilterLink *inlink)
AVFrame * ff_null_get_video_buffer(AVFilterLink *link, int w, int h)
int av_expr_parse(AVExpr **expr, const char *s, const char *const *const_names, const char *const *func1_names, double(*const *funcs1)(void *, double), const char *const *func2_names, double(*const *funcs2)(void *, double, double), int log_offset, void *log_ctx)
Parse an expression.
int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int(*func)(void *, void *, int))
Feed data from a user-supplied callback to an AVFifoBuffer.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
AVFilterLink ** inputs
array of pointers to input links
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
static av_always_inline av_const int isnan(float x)
static const AVOption options[]
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
static double av_q2d(AVRational a)
Convert rational to double.
void av_fifo_free(AVFifoBuffer *f)
Free an AVFifoBuffer.
int interlaced_frame
The content of the picture is interlaced.
A link between two filters.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static const AVFilterPad avfilter_vf_select_outputs[]
double var_values[VAR_VARS_NB]
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
#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
int av_fifo_generic_read(AVFifoBuffer *f, void *dest, int buf_size, void(*func)(void *, void *, int))
Feed data from an AVFifoBuffer to a user-supplied callback.
AVRational time_base
Define the time base used by the PTS of the frames/samples which will pass through this link...
void av_log(void *avcl, int level, const char *fmt,...)
common internal API header
enum AVPictureType pict_type
Picture type of the frame.
AVFilterContext * src
source filter
static const AVFilterPad avfilter_vf_select_inputs[]
static int poll_frame(AVFilterLink *outlink)
int av_fifo_space(AVFifoBuffer *f)
Return the amount of space in bytes in the AVFifoBuffer, that is the amount of data you can write int...
void av_expr_free(AVExpr *e)
Free a parsed expression previously created with av_expr_parse().
static av_cold int init(AVFilterContext *ctx)
a very simple circular buffer FIFO implementation
Describe the class of an AVClass context structure.
static const AVFilterPad inputs[]
static int select_frame(AVFilterContext *ctx, AVFrame *frame)
const char * name
Filter name.
AVFilterLink ** outputs
array of pointers to output links
static const AVClass select_class
int av_fifo_size(AVFifoBuffer *f)
Return the amount of data in bytes in the AVFifoBuffer, that is the amount of data you can read from ...
static av_cold void uninit(AVFilterContext *ctx)
struct AVFilterPad AVFilterPad
AVFifoBuffer * pending_frames
FIFO buffer of video frames.
static int request_frame(AVFilterLink *outlink)
AVFifoBuffer * av_fifo_alloc(unsigned int size)
Initialize an AVFifoBuffer.
int top_field_first
If the content is interlaced, is top field displayed first.
double av_expr_eval(AVExpr *e, const double *const_values, void *opaque)
Evaluate a previously parsed expression.
AVFilterContext * dst
dest filter
int ff_request_frame(AVFilterLink *link)
Request an input frame from the filter at the other end of the link.
int ff_poll_frame(AVFilterLink *link)
Poll a frame from the filter chain.
simple arithmetic expression evaluator