FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
trim.c File Reference
#include <float.h>
#include <math.h>
#include <stdint.h>
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/log.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  TrimContext
 

Macros

#define OFFSET(x)   offsetof(TrimContext, x)
 
#define COMMON_OPTS
 
#define COMPAT_OPTS
 

Functions

static av_cold int init (AVFilterContext *ctx)
 
static int config_input (AVFilterLink *inlink)
 
static int config_output (AVFilterLink *outlink)
 

Macro Definition Documentation

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

Definition at line 123 of file trim.c.

#define COMMON_OPTS
Value:
{ "starti", "Timestamp of the first frame that " \
"should be passed", OFFSET(start_time), AV_OPT_TYPE_DURATION, { .i64 = INT64_MAX }, INT64_MIN, INT64_MAX, FLAGS }, \
{ "endi", "Timestamp of the first frame that " \
"should be dropped again", OFFSET(end_time), AV_OPT_TYPE_DURATION, { .i64 = INT64_MAX }, INT64_MIN, INT64_MAX, FLAGS }, \
{ "start_pts", "Timestamp of the first frame that should be " \
" passed", OFFSET(start_pts), AV_OPT_TYPE_INT64, { .i64 = AV_NOPTS_VALUE }, INT64_MIN, INT64_MAX, FLAGS }, \
{ "end_pts", "Timestamp of the first frame that should be " \
"dropped again", OFFSET(end_pts), AV_OPT_TYPE_INT64, { .i64 = AV_NOPTS_VALUE }, INT64_MIN, INT64_MAX, FLAGS }, \
{ "durationi", "Maximum duration of the output", OFFSET(duration), AV_OPT_TYPE_DURATION, { .i64 = 0 }, 0, INT64_MAX, FLAGS },
#define FLAGS
Definition: cmdutils.c:532
#define OFFSET(x)
Definition: trim.c:123
static int64_t start_time
Definition: ffplay.c:320
static int64_t duration
Definition: ffplay.c:321
#define AV_NOPTS_VALUE
Undefined timestamp value.
Definition: avutil.h:241

Definition at line 124 of file trim.c.

#define COMPAT_OPTS
Value:
{ "start", "Timestamp in seconds of the first frame that " \
"should be passed", OFFSET(start_time_dbl),AV_OPT_TYPE_DOUBLE, { .dbl = DBL_MAX }, -DBL_MAX, DBL_MAX, FLAGS }, \
{ "end", "Timestamp in seconds of the first frame that " \
"should be dropped again", OFFSET(end_time_dbl), AV_OPT_TYPE_DOUBLE, { .dbl = DBL_MAX }, -DBL_MAX, DBL_MAX, FLAGS }, \
{ "duration", "Maximum duration of the output in seconds", OFFSET(duration_dbl), AV_OPT_TYPE_DOUBLE, { .dbl = 0 }, 0, DBL_MAX, FLAGS },
#define FLAGS
Definition: cmdutils.c:532
#define OFFSET(x)
Definition: trim.c:123

Definition at line 135 of file trim.c.

Function Documentation

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 78 of file trim.c.

static int config_input ( AVFilterLink inlink)
static

Definition at line 87 of file trim.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 117 of file trim.c.