FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
f_zmq.c File Reference

receive commands through libzeromq and broker them to filters More...

#include <zmq.h>
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"
#include "avfiltergraph.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

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

Definition at line 44 of file f_zmq.c.

Definition at line 45 of file f_zmq.c.

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

Definition at line 93 of file f_zmq.c.

Referenced by parse_command().

Function Documentation

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 52 of file f_zmq.c.

static void av_cold uninit ( AVFilterContext ctx)
static

Definition at line 81 of file f_zmq.c.

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

Definition at line 95 of file f_zmq.c.

Referenced by filter_frame().

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

Definition at line 117 of file f_zmq.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink inlink,
AVFrame ref 
)
static

Definition at line 151 of file f_zmq.c.

Variable Documentation

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 }
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: f_zmq.c:44
#define FLAGS
Definition: f_zmq.c:45

Definition at line 46 of file f_zmq.c.