libavfilter/vf_setpts.c File Reference
video presentation timestamp (PTS) modification filter
More...
#include "libavutil/eval.h"
#include "avfilter.h"
Go to the source code of this file.
|
Data Structures |
struct | SetPTSContext |
Defines |
#define | D2TS(d) (isnan(d) ? AV_NOPTS_VALUE : (int64_t)(d)) |
#define | TS2D(ts) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts)) |
Enumerations |
enum | var_name {
VAR_E,
VAR_PHI,
VAR_PI,
VAR_IN_W,
VAR_IW,
VAR_IN_H,
VAR_IH,
VAR_OUT_W,
VAR_OW,
VAR_OUT_H,
VAR_OH,
VAR_X,
VAR_Y,
VAR_N,
VAR_POS,
VAR_T,
VAR_VARS_NB,
VAR_E,
VAR_PHI,
VAR_PI,
VAR_W,
VAR_H,
VAR_VAL,
VAR_MAXVAL,
VAR_MINVAL,
VAR_NEGVAL,
VAR_CLIPVAL,
VAR_VARS_NB,
VAR_E,
VAR_PHI,
VAR_PI,
VAR_MAIN_W,
VAR_MW,
VAR_MAIN_H,
VAR_MH,
VAR_OVERLAY_W,
VAR_OW,
VAR_OVERLAY_H,
VAR_OH,
VAR_VARS_NB,
VAR_PI,
VAR_PHI,
VAR_E,
VAR_IN_W,
VAR_IW,
VAR_IN_H,
VAR_IH,
VAR_OUT_W,
VAR_OW,
VAR_OUT_H,
VAR_OH,
VAR_X,
VAR_Y,
VAR_A,
VAR_HSUB,
VAR_VSUB,
VARS_NB,
VAR_PI,
VAR_PHI,
VAR_E,
VAR_IN_W,
VAR_IW,
VAR_IN_H,
VAR_IH,
VAR_OUT_W,
VAR_OW,
VAR_OUT_H,
VAR_OH,
VAR_A,
VAR_HSUB,
VAR_VSUB,
VARS_NB,
VAR_E,
VAR_PHI,
VAR_PI,
VAR_TB,
VAR_PTS,
VAR_START_PTS,
VAR_PREV_PTS,
VAR_PREV_SELECTED_PTS,
VAR_T,
VAR_START_T,
VAR_PREV_T,
VAR_PREV_SELECTED_T,
VAR_PICT_TYPE,
VAR_PICT_TYPE_I,
VAR_PICT_TYPE_P,
VAR_PICT_TYPE_B,
VAR_PICT_TYPE_S,
VAR_PICT_TYPE_SI,
VAR_PICT_TYPE_SP,
VAR_PICT_TYPE_BI,
VAR_INTERLACE_TYPE,
VAR_INTERLACE_TYPE_P,
VAR_INTERLACE_TYPE_T,
VAR_INTERLACE_TYPE_B,
VAR_N,
VAR_SELECTED_N,
VAR_PREV_SELECTED_N,
VAR_KEY,
VAR_POS,
VAR_VARS_NB,
VAR_E,
VAR_INTERLACED,
VAR_N,
VAR_PHI,
VAR_PI,
VAR_POS,
VAR_PREV_INPTS,
VAR_PREV_OUTPTS,
VAR_PTS,
VAR_STARTPTS,
VAR_TB,
VAR_VARS_NB,
VAR_E,
VAR_PHI,
VAR_PI,
VAR_AVTB,
VAR_INTB,
VAR_VARS_NB,
VAR_E,
VAR_PHI,
VAR_PI,
VAR_AVTB,
VAR_VARS_NB
} |
Functions |
static av_cold int | init (AVFilterContext *ctx, const char *args, void *opaque) |
static int | config_input (AVFilterLink *inlink) |
static void | start_frame (AVFilterLink *inlink, AVFilterBufferRef *inpicref) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables |
static const char * | var_names [] |
AVFilter | avfilter_vf_setpts |
Detailed Description
video presentation timestamp (PTS) modification filter
Definition in file vf_setpts.c.
Define Documentation
#define D2TS |
( |
d |
|
) |
(isnan(d) ? AV_NOPTS_VALUE : (int64_t)(d)) |
#define TS2D |
( |
ts |
|
) |
((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts)) |
Enumeration Type Documentation
- Enumerator:
-
VAR_E |
|
VAR_PHI |
|
VAR_PI |
|
VAR_IN_W |
|
VAR_IW |
|
VAR_IN_H |
|
VAR_IH |
|
VAR_OUT_W |
|
VAR_OW |
|
VAR_OUT_H |
|
VAR_OH |
|
VAR_X |
|
VAR_Y |
|
VAR_N |
|
VAR_POS |
|
VAR_T |
|
VAR_VARS_NB |
|
VAR_E |
|
VAR_PHI |
|
VAR_PI |
|
VAR_W |
|
VAR_H |
|
VAR_VAL |
|
VAR_MAXVAL |
|
VAR_MINVAL |
|
VAR_NEGVAL |
|
VAR_CLIPVAL |
|
VAR_VARS_NB |
|
VAR_E |
|
VAR_PHI |
|
VAR_PI |
|
VAR_MAIN_W |
|
VAR_MW |
|
VAR_MAIN_H |
|
VAR_MH |
|
VAR_OVERLAY_W |
|
VAR_OW |
|
VAR_OVERLAY_H |
|
VAR_OH |
|
VAR_VARS_NB |
|
VAR_PI |
|
VAR_PHI |
|
VAR_E |
|
VAR_IN_W |
|
VAR_IW |
|
VAR_IN_H |
|
VAR_IH |
|
VAR_OUT_W |
|
VAR_OW |
|
VAR_OUT_H |
|
VAR_OH |
|
VAR_X |
|
VAR_Y |
|
VAR_A |
|
VAR_HSUB |
|
VAR_VSUB |
|
VARS_NB |
|
VAR_PI |
|
VAR_PHI |
|
VAR_E |
|
VAR_IN_W |
|
VAR_IW |
|
VAR_IN_H |
|
VAR_IH |
|
VAR_OUT_W |
|
VAR_OW |
|
VAR_OUT_H |
|
VAR_OH |
|
VAR_A |
|
VAR_HSUB |
|
VAR_VSUB |
|
VARS_NB |
|
VAR_E |
|
VAR_PHI |
|
VAR_PI |
|
VAR_TB |
|
VAR_PTS |
|
VAR_START_PTS |
|
VAR_PREV_PTS |
|
VAR_PREV_SELECTED_PTS |
|
VAR_T |
|
VAR_START_T |
|
VAR_PREV_T |
|
VAR_PREV_SELECTED_T |
|
VAR_PICT_TYPE |
|
VAR_PICT_TYPE_I |
|
VAR_PICT_TYPE_P |
|
VAR_PICT_TYPE_B |
|
VAR_PICT_TYPE_S |
|
VAR_PICT_TYPE_SI |
|
VAR_PICT_TYPE_SP |
|
VAR_PICT_TYPE_BI |
|
VAR_INTERLACE_TYPE |
|
VAR_INTERLACE_TYPE_P |
|
VAR_INTERLACE_TYPE_T |
|
VAR_INTERLACE_TYPE_B |
|
VAR_N |
|
VAR_SELECTED_N |
|
VAR_PREV_SELECTED_N |
|
VAR_KEY |
|
VAR_POS |
|
VAR_VARS_NB |
|
VAR_E |
|
VAR_INTERLACED |
|
VAR_N |
|
VAR_PHI |
|
VAR_PI |
|
VAR_POS |
|
VAR_PREV_INPTS |
|
VAR_PREV_OUTPTS |
|
VAR_PTS |
|
VAR_STARTPTS |
|
VAR_TB |
|
VAR_VARS_NB |
|
VAR_E |
|
VAR_PHI |
|
VAR_PI |
|
VAR_AVTB |
|
VAR_INTB |
|
VAR_VARS_NB |
|
VAR_E |
|
VAR_PHI |
|
VAR_PI |
|
VAR_AVTB |
|
VAR_VARS_NB |
|
Definition at line 47 of file vf_setpts.c.
Function Documentation
static av_cold int init |
( |
AVFilterContext * |
ctx, |
|
|
const char * |
args, |
|
|
void * |
opaque | |
|
) |
| | [static] |
Variable Documentation
Initial value:
{
.name = "setpts",
.description = NULL_IF_CONFIG_SMALL("Set PTS for the output video frame."),
.init = init,
.uninit = uninit,
.priv_size = sizeof(SetPTSContext),
.inputs = (AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.get_video_buffer = avfilter_null_get_video_buffer,
.config_props = config_input,
.start_frame = start_frame, },
{ .name = NULL }},
.outputs = (AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO, },
{ .name = NULL}},
}
Definition at line 140 of file vf_setpts.c.
Initial value:
{
"E",
"INTERLACED",
"N",
"PHI",
"PI",
"POS",
"PREV_INPTS",
"PREV_OUTPTS",
"PTS",
"STARTPTS",
"TB",
NULL
}
Definition at line 32 of file vf_setpts.c.