Go to the documentation of this file.
133 int64_t new_ts, new_pts, new_dts;
146 s->var_values[
VAR_N] =
s->frame_number++;
158 s->var_values[
VAR_SR] =
ctx->par_in->sample_rate;
178 s->prev_outpts = new_pts;
179 s->prev_outdts = new_dts;
199 #define OFFSET(x) offsetof(SetTSContext, x)
200 #define FLAGS (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_SUBTITLE_PARAM|AV_OPT_FLAG_BSF_PARAM)
static const AVClass setts_class
const AVBitStreamFilter ff_setts_bsf
double var_values[VAR_VARS_NB]
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce then the filter should push the output frames on the output link immediately As an exception to the previous rule if the input frame is enough to produce several output frames then the filter needs output only at least one per link The additional frames can be left buffered in the filter
The bitstream filter state.
int av_expr_parse(AVExpr **expr, const char *s, const char *const *const_names, const char *const *func1_names, double(*const *funcs1)(void *, double), const char *const *func2_names, double(*const *funcs2)(void *, double, double), int log_offset, void *log_ctx)
Parse an expression.
static const AVOption options[]
void av_expr_free(AVExpr *e)
Free a parsed expression previously created with av_expr_parse().
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static double av_q2d(AVRational a)
Convert an AVRational to a double.
double av_expr_eval(AVExpr *e, const double *const_values, void *opaque)
Evaluate a previously parsed expression.
static int setts_init(AVBSFContext *ctx)
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
static void ts_str(char buffer[60], int64_t ts, AVRational base)
const char * av_default_item_name(void *ptr)
Return the context name.
#define AV_NOPTS_VALUE
Undefined timestamp value.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
static const char *const var_names[]
void * priv_data
Opaque filter-specific private data.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
static void setts_close(AVBSFContext *bsf)
static int setts_filter(AVBSFContext *ctx, AVPacket *pkt)
This structure stores compressed data.
int64_t pos
byte position in stream, -1 if unknown
int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
Called by bitstream filters to get packet for filtering.
void * priv_data
Format private data.