21 #ifndef AVFILTER_FRAMESYNC_H 22 #define AVFILTER_FRAMESYNC_H 24 #include "bufferqueue.h" 60 enum FFFrameSyncExtMode {
214 const AVClass *framesync_get_class(
void);
300 #define FRAMESYNC_DEFINE_CLASS(name, context, field) \ 301 static int name##_framesync_preinit(AVFilterContext *ctx) { \ 302 context *s = ctx->priv; \ 303 ff_framesync_preinit(&s->field); \ 306 static const AVClass *name##_child_class_next(const AVClass *prev) { \ 307 return prev ? NULL : framesync_get_class(); \ 309 static void *name##_child_next(void *obj, void *prev) { \ 311 s->fs.class = framesync_get_class(); \ 312 return prev ? NULL : &s->field; \ 314 static const AVClass name##_class = { \ 315 .class_name = #name, \ 316 .item_name = av_default_item_name, \ 317 .option = name##_options, \ 318 .version = LIBAVUTIL_VERSION_INT, \ 319 .category = AV_CLASS_CATEGORY_FILTER, \ 320 .child_class_next = name##_child_class_next, \ 321 .child_next = name##_child_next, \ This structure describes decoded (raw) audio or video data.
Definition: frame.h:218
int64_t pts
Timestamp of the current event.
Definition: framesync.h:167
enum FFFrameSyncExtMode before
Extrapolation mode for timestamps before the first frame.
Definition: framesync.h:86
AVFilterContext * parent
Parent filter context.
Definition: framesync.h:152
uint8_t have_next
Boolean flagging the next frame, for internal use.
Definition: framesync.h:121
unsigned sync_level
Synchronization level: only inputs with the same sync level are sync sources.
Definition: framesync.h:188
FFFrameSyncIn * in
Pointer to array of inputs.
Definition: framesync.h:203
enum FFFrameSyncExtMode after
Extrapolation mode for timestamps after the last frame.
Definition: framesync.h:91
Input stream structure.
Definition: framesync.h:81
AVFrame * frame_next
Next frame, for internal use.
Definition: framesync.h:106
Frame sync structure.
Definition: framesync.h:146
AVRational time_base
Time base for the incoming frames.
Definition: framesync.h:96
uint8_t eof
Flag indicating that output has reached EOF.
Definition: framesync.h:198
unsigned in_request
Index of the input that requires a request.
Definition: framesync.h:182
AVRational time_base
Time base for the output events.
Definition: framesync.h:162
void * opaque
Opaque pointer, not used by the API.
Definition: framesync.h:177
uint8_t state
State: before first, in stream or after EOF, for internal use.
Definition: framesync.h:126
unsigned sync
Synchronization level: frames on input at the highest sync level will generate output frame events...
Definition: framesync.h:139
Describe the class of an AVClass context structure.
Definition: log.h:67
Rational number (pair of numerator and denominator).
Definition: rational.h:58
unsigned nb_in
Number of input streams.
Definition: framesync.h:157
AVFrame * frame
Current frame, may be NULL before the first one or after EOF.
Definition: framesync.h:101
uint8_t frame_ready
Flag indicating that a frame event is ready.
Definition: framesync.h:193
int64_t pts
PTS of the current frame.
Definition: framesync.h:111
An instance of a filter.
Definition: avfilter.h:338
int64_t pts_next
PTS of the next frame, for internal use.
Definition: framesync.h:116