FFmpeg
Data Structures | Macros | Functions
f_segment.c File Reference
#include "config_components.h"
#include <stdint.h>
#include "libavutil/avstring.h"
#include "libavutil/log.h"
#include "libavutil/mathematics.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "avfilter.h"
#include "filters.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  SegmentContext
 

Macros

#define OFFSET(x)   offsetof(SegmentContext, x)
 
#define COMMON_OPTS   { "timestamps", "timestamps of input at which to split input", OFFSET(timestamps_str), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, FLAGS }, \
 

Functions

static void count_points (char *item_str, int *nb_items)
 
static int parse_points (AVFilterContext *ctx, char *item_str, int nb_points, int64_t *points)
 
static av_cold int init (AVFilterContext *ctx, enum AVMediaType type)
 
static int config_input (AVFilterLink *inlink)
 
static int current_segment_finished (AVFilterContext *ctx, AVFrame *frame)
 
static int activate (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 262 of file f_segment.c.

◆ COMMON_OPTS

#define COMMON_OPTS   { "timestamps", "timestamps of input at which to split input", OFFSET(timestamps_str), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, FLAGS }, \

Definition at line 263 of file f_segment.c.

Function Documentation

◆ count_points()

static void count_points ( char *  item_str,
int nb_items 
)
static

Definition at line 48 of file f_segment.c.

Referenced by init().

◆ parse_points()

static int parse_points ( AVFilterContext ctx,
char *  item_str,
int  nb_points,
int64_t points 
)
static

Definition at line 62 of file f_segment.c.

Referenced by init().

◆ init()

static av_cold int init ( AVFilterContext ctx,
enum AVMediaType  type 
)
static

Definition at line 100 of file f_segment.c.

◆ config_input()

static int config_input ( AVFilterLink inlink)
static

Definition at line 147 of file f_segment.c.

◆ current_segment_finished()

static int current_segment_finished ( AVFilterContext ctx,
AVFrame frame 
)
static

Definition at line 161 of file f_segment.c.

Referenced by activate().

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 183 of file f_segment.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 255 of file f_segment.c.