43 int64_t sleep = pts - now + s->
delta;
51 "time discontinuity detected: %"PRIi64
" us, resetting\n",
58 for (; sleep > 600000000; sleep -= 600000000)
66 #define OFFSET(x) offsetof(RealtimeContext, x) 67 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM 74 #if CONFIG_REALTIME_FILTER 75 #define realtime_options options 78 static const AVFilterPad avfilter_vf_realtime_inputs[] = {
87 static const AVFilterPad avfilter_vf_realtime_outputs[] = {
99 .priv_class = &realtime_class,
100 .
inputs = avfilter_vf_realtime_inputs,
101 .
outputs = avfilter_vf_realtime_outputs,
105 #if CONFIG_AREALTIME_FILTER 107 #define arealtime_options options 131 .priv_class = &arealtime_class,
132 .
inputs = arealtime_inputs,
This structure describes decoded (raw) audio or video data.
#define AV_LOG_WARNING
Something somehow does not look correct.
Main libavfilter public API header.
int av_usleep(unsigned usec)
Sleep for a period of time.
const char * name
Pad name.
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
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
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
AVRational time_base
Define the time base used by the PTS of the frames/samples which will pass through this link...
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 the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a frame
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
static const AVFilterPad outputs[]
#define AV_TIME_BASE_Q
Internal time base represented as fractional value.
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
Describe the class of an AVClass context structure.
const char * name
Filter name.
AVFilterLink ** outputs
array of pointers to output links
int64_t av_gettime_relative(void)
Get the current time in microseconds since some unspecified starting point.
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
static const AVOption options[]
AVFilterContext * dst
dest filter
#define AVFILTER_DEFINE_CLASS(fname)
#define AV_NOPTS_VALUE
Undefined timestamp value.