71 av_usleep(av_clip(-diff / 2, 100, 1000000));
88 #define OFFSET(x) offsetof(CueContext, x)
89 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
98 #define cue_options options
121 .priv_class = &cue_class,
128 #if CONFIG_ACUE_FILTER
129 #define acue_options options
152 .priv_class = &acue_class,
int ff_inlink_consume_frame(AVFilterLink *link, AVFrame **rframe)
Take a frame from the link's FIFO and update the link's stats.
This structure describes decoded (raw) audio or video data.
Main libavfilter public API header.
#define FFERROR_NOT_READY
Filters implementation helper functions.
int av_usleep(unsigned usec)
Sleep for a period of time.
const char * name
Pad name.
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.
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
#define FF_FILTER_FORWARD_STATUS_BACK(outlink, inlink)
Forward the status on an output link to an input link.
A filter pad used for either input or output.
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
A link between two filters.
#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...
#define FF_FILTER_FORWARD_WANTED(outlink, inlink)
Forward the frame_wanted_out flag from an output link to an input link.
static const AVOption options[]
static int activate(AVFilterContext *ctx)
static const AVFilterPad inputs[]
AVFrame * ff_inlink_peek_frame(AVFilterLink *link, size_t idx)
Access a frame in the link fifo without consuming it.
static const AVFilterPad outputs[]
int64_t av_gettime(void)
Get the current time in microseconds.
#define AV_TIME_BASE_Q
Internal time base represented as fractional value.
Describe the class of an AVClass context structure.
const char * name
Filter name.
size_t ff_inlink_queued_frames(AVFilterLink *link)
Get the number of frames available on the link.
AVFilterLink ** outputs
array of pointers to output links
#define FF_FILTER_FORWARD_STATUS(inlink, outlink)
Acknowledge the status on an input link and forward it to an output link.
static av_always_inline int diff(const uint32_t a, const uint32_t b)
#define AVFILTER_DEFINE_CLASS(fname)