41 int64_t sleep = pts - now + s->
delta;
49 "time discontinuity detected: %"PRIi64
" us, resetting\n",
56 for (; sleep > 600000000; sleep -= 600000000)
64 #define OFFSET(x) offsetof(RealtimeContext, x) 65 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM 71 #if CONFIG_REALTIME_FILTER 72 #define realtime_options options 75 static const AVFilterPad avfilter_vf_realtime_inputs[] = {
84 static const AVFilterPad avfilter_vf_realtime_outputs[] = {
96 .priv_class = &realtime_class,
97 .
inputs = avfilter_vf_realtime_inputs,
98 .
outputs = avfilter_vf_realtime_outputs,
102 #if CONFIG_AREALTIME_FILTER 104 #define arealtime_options options 128 .priv_class = &arealtime_class,
129 .
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...
static const AVFilterPad inputs[]
static const AVFilterPad outputs[]
#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.
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.
static const AVOption options[]
AVFilterContext * dst
dest filter
#define AVFILTER_DEFINE_CLASS(fname)
#define AV_NOPTS_VALUE
Undefined timestamp value.