FFmpeg
Data Structures | Macros | Functions | Variables
f_zmq.c File Reference
#include "config_components.h"
#include <zmq.h>
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"
#include "audio.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  ZMQContext
 
struct  Command
 

Macros

#define OFFSET(x)   offsetof(ZMQContext, x)
 
#define FLAGS   AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM
 
#define SPACES   " \f\t\n\r"
 

Functions

static av_cold int init (AVFilterContext *ctx)
 
static void av_cold uninit (AVFilterContext *ctx)
 
static int parse_command (Command *cmd, const char *command_str, void *log_ctx)
 
static int recv_msg (AVFilterContext *ctx, char **buf, int *buf_size)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *ref)
 
 AVFILTER_DEFINE_CLASS_EXT (zmq, "(a)zmq", options)
 

Variables

static const AVOption options []
 

Detailed Description

receive commands through libzeromq and broker them to filters

Definition in file f_zmq.c.

Macro Definition Documentation

◆ OFFSET

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

Definition at line 45 of file f_zmq.c.

◆ FLAGS

Definition at line 46 of file f_zmq.c.

◆ SPACES

#define SPACES   " \f\t\n\r"

Definition at line 94 of file f_zmq.c.

Function Documentation

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 53 of file f_zmq.c.

◆ uninit()

static void av_cold uninit ( AVFilterContext ctx)
static

Definition at line 82 of file f_zmq.c.

◆ parse_command()

static int parse_command ( Command cmd,
const char *  command_str,
void *  log_ctx 
)
static

Definition at line 96 of file f_zmq.c.

Referenced by filter_frame().

◆ recv_msg()

static int recv_msg ( AVFilterContext ctx,
char **  buf,
int buf_size 
)
static

Definition at line 118 of file f_zmq.c.

Referenced by filter_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame ref 
)
static

Definition at line 152 of file f_zmq.c.

◆ AVFILTER_DEFINE_CLASS_EXT()

AVFILTER_DEFINE_CLASS_EXT ( zmq  ,
"(a)zmq"  ,
options   
)

Variable Documentation

◆ options

const AVOption options[]
static
Initial value:
= {
{ "bind_address", "set bind address", OFFSET(bind_address), AV_OPT_TYPE_STRING, {.str = "tcp://*:5555"}, 0, 0, FLAGS },
{ "b", "set bind address", OFFSET(bind_address), AV_OPT_TYPE_STRING, {.str = "tcp://*:5555"}, 0, 0, FLAGS },
{ NULL }
}

Definition at line 47 of file f_zmq.c.

NULL
#define NULL
Definition: coverity.c:32
FLAGS
#define FLAGS
Definition: f_zmq.c:46
AV_OPT_TYPE_STRING
@ AV_OPT_TYPE_STRING
Definition: opt.h:229
OFFSET
#define OFFSET(x)
Definition: f_zmq.c:45