#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "libavutil/file.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.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 | Command |
struct | Interval |
struct | SendCmdContext |
Defines | |
#define | COMMAND_FLAG_ENTER 1 |
#define | COMMAND_FLAG_LEAVE 2 |
#define | OFFSET(x) offsetof(SendCmdContext, x) |
#define | SPACES " \f\t\n\r" |
#define | COMMAND_DELIMS " \f\t\n\r,;" |
#define | DELIMS " \f\t\n\r,;" |
#define | WITHIN_INTERVAL(ts, start_ts, end_ts) ((ts) >= (start_ts) && (ts) < (end_ts)) |
Functions | |
static char * | make_command_flags_str (AVBPrint *pbuf, int flags) |
AVFILTER_DEFINE_CLASS (sendcmd) | |
static void | skip_comments (const char **buf) |
static int | parse_command (Command *cmd, int cmd_count, int interval_count, const char **buf, void *log_ctx) |
static int | parse_commands (Command **cmds, int *nb_cmds, int interval_count, const char **buf, void *log_ctx) |
static int | parse_interval (Interval *interval, int interval_count, const char **buf, void *log_ctx) |
static int | parse_intervals (Interval **intervals, int *nb_intervals, const char *buf, void *log_ctx) |
static int | cmp_intervals (const void *a, const void *b) |
static av_cold int | init (AVFilterContext *ctx, const char *args) |
static void av_cold | uninit (AVFilterContext *ctx) |
static int | process_frame (AVFilterLink *inlink, AVFilterBufferRef *ref) |
Variables | |
static const AVOption | sendcmd_options [] |
Definition in file f_sendcmd.c.
#define COMMAND_DELIMS " \f\t\n\r,;" |
#define COMMAND_FLAG_ENTER 1 |
#define COMMAND_FLAG_LEAVE 2 |
#define DELIMS " \f\t\n\r,;" |
#define OFFSET | ( | x | ) | offsetof(SendCmdContext, x) |
Definition at line 82 of file f_sendcmd.c.
#define SPACES " \f\t\n\r" |
Definition at line 94 of file f_sendcmd.c.
Referenced by parse_command(), parse_commands(), parse_interval(), parse_intervals(), and skip_comments().
#define WITHIN_INTERVAL | ( | ts, | |||
start_ts, | |||||
end_ts | ) | ((ts) >= (start_ts) && (ts) < (end_ts)) |
Referenced by process_frame().
AVFILTER_DEFINE_CLASS | ( | sendcmd | ) |
static int cmp_intervals | ( | const void * | a, | |
const void * | b | |||
) | [static] |
static av_cold int init | ( | AVFilterContext * | ctx, | |
const char * | args | |||
) | [static] |
Definition at line 373 of file f_sendcmd.c.
Definition at line 40 of file f_sendcmd.c.
Referenced by init(), parse_commands(), and process_frame().
static int process_frame | ( | AVFilterLink * | inlink, | |
AVFilterBufferRef * | ref | |||
) | [static] |
Definition at line 452 of file f_sendcmd.c.
static void skip_comments | ( | const char ** | buf | ) | [static] |
static void av_cold uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 432 of file f_sendcmd.c.
const AVOption sendcmd_options[] [static] |
Initial value:
{ { "commands", "set commands", OFFSET(commands_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 }, { "c", "set commands", OFFSET(commands_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 }, { "filename", "set commands file", OFFSET(commands_filename), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 }, { "f", "set commands file", OFFSET(commands_filename), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 }, {NULL}, }
Definition at line 84 of file f_sendcmd.c.