FFmpeg
Data Structures | Macros | Functions | Variables
f_zmq.c File Reference
#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)
 

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 43 of file f_zmq.c.

◆ FLAGS

Definition at line 44 of file f_zmq.c.

◆ SPACES

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

Definition at line 92 of file f_zmq.c.

Function Documentation

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 51 of file f_zmq.c.

◆ uninit()

static void av_cold uninit ( AVFilterContext ctx)
static

Definition at line 80 of file f_zmq.c.

◆ parse_command()

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

Definition at line 94 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 116 of file f_zmq.c.

Referenced by filter_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame ref 
)
static

Definition at line 150 of file f_zmq.c.

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 45 of file f_zmq.c.

NULL
#define NULL
Definition: coverity.c:32
FLAGS
#define FLAGS
Definition: f_zmq.c:44
AV_OPT_TYPE_STRING
@ AV_OPT_TYPE_STRING
Definition: opt.h:227
OFFSET
#define OFFSET(x)
Definition: f_zmq.c:43