FFmpeg
Data Structures | Macros | Functions | Variables
f_realtime.c File Reference
#include "config_components.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"
#include <float.h>

Go to the source code of this file.

Data Structures

struct  RealtimeContext
 

Macros

#define OFFSET(x)   offsetof(RealtimeContext, x)
 
#define FLAGS   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_RUNTIME_PARAM
 

Functions

static int filter_frame (AVFilterLink *inlink, AVFrame *frame)
 
 AVFILTER_DEFINE_CLASS_EXT (realtime, "(a)realtime", options)
 

Variables

static const AVOption options []
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(RealtimeContext, x)

Definition at line 70 of file f_realtime.c.

◆ FLAGS

Definition at line 71 of file f_realtime.c.

Function Documentation

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 39 of file f_realtime.c.

◆ AVFILTER_DEFINE_CLASS_EXT()

AVFILTER_DEFINE_CLASS_EXT ( realtime  ,
"(a)realtime"  ,
options   
)

Variable Documentation

◆ options

const AVOption options[]
static
Initial value:
= {
{ "limit", "sleep time limit", OFFSET(limit), AV_OPT_TYPE_DURATION, { .i64 = 2000000 }, 0, INT64_MAX, FLAGS },
{ "speed", "speed factor", OFFSET(speed), AV_OPT_TYPE_DOUBLE, { .dbl = 1.0 }, DBL_MIN, DBL_MAX, FLAGS },
{ NULL }
}

Definition at line 72 of file f_realtime.c.

AV_OPT_TYPE_DURATION
@ AV_OPT_TYPE_DURATION
Definition: opt.h:249
AV_OPT_TYPE_DOUBLE
@ AV_OPT_TYPE_DOUBLE
Definition: opt.h:237
NULL
#define NULL
Definition: coverity.c:32
FLAGS
#define FLAGS
Definition: f_realtime.c:71
OFFSET
#define OFFSET(x)
Definition: f_realtime.c:70
limit
static double limit(double x)
Definition: vf_pseudocolor.c:142