FFmpeg
Data Structures | Macros | Functions | Variables
f_realtime.c File Reference
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "avfilter.h"
#include "internal.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
 

Functions

static int filter_frame (AVFilterLink *inlink, AVFrame *frame)
 

Variables

static const AVOption options []
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 66 of file f_realtime.c.

◆ FLAGS

Definition at line 67 of file f_realtime.c.

Function Documentation

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 35 of file f_realtime.c.

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 68 of file f_realtime.c.

AV_OPT_TYPE_DURATION
@ AV_OPT_TYPE_DURATION
Definition: opt.h:237
AV_OPT_TYPE_DOUBLE
@ AV_OPT_TYPE_DOUBLE
Definition: opt.h:225
NULL
#define NULL
Definition: coverity.c:32
FLAGS
#define FLAGS
Definition: f_realtime.c:67
OFFSET
#define OFFSET(x)
Definition: f_realtime.c:66