FFmpeg
Data Structures | Macros | Functions
f_segment.c File Reference
#include "config_components.h"
#include <stdint.h>
#include "libavutil/avstring.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/log.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/samplefmt.h"
#include "audio.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 265 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 266 of file f_segment.c.

Function Documentation

◆ count_points()

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

Definition at line 51 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 65 of file f_segment.c.

Referenced by init().

◆ init()

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

Definition at line 103 of file f_segment.c.

◆ config_input()

static int config_input ( AVFilterLink inlink)
static

Definition at line 150 of file f_segment.c.

◆ current_segment_finished()

static int current_segment_finished ( AVFilterContext ctx,
AVFrame frame 
)
static

Definition at line 164 of file f_segment.c.

Referenced by activate().

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 186 of file f_segment.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 258 of file f_segment.c.