libgpac
Documentation of the core library of GPAC
rewind.c File Reference
+ Include dependency graph for rewind.c:

Data Structures

struct  GF_RewindCtx
 

Macros

#define OFFS(_n)   #_n, offsetof(GF_RewindCtx, _n)
 

Functions

static GF_Err rewind_initialize (GF_Filter *filter)
 
static void rewind_finalize (GF_Filter *filter)
 
static GF_Err rewind_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
 
static GF_Err rewind_process_video (GF_RewindCtx *ctx, GF_FilterPacket *pck)
 
static GF_Err rewind_process (GF_Filter *filter)
 
static Bool rewind_process_event (GF_Filter *filter, const GF_FilterEvent *evt)
 
const GF_FilterRegister * rewind_register (GF_FilterSession *session)
 

Variables

static const GF_FilterCapability RewinderCaps []
 
static const GF_FilterArgs RewinderArgs []
 
GF_FilterRegister RewinderRegister
 

Data Structure Documentation

◆ GF_RewindCtx

struct GF_RewindCtx
Data Fields
u32 rbuffer
GF_FilterPid * ipid
GF_FilterPid * opid
u32 type
Bool passthrough
GF_List * frames
u32 nb_ch
u32 bytes_per_sample
Bool is_planar
Bool wait_for_next_sap

Macro Definition Documentation

◆ OFFS

#define OFFS (   _n)    #_n, offsetof(GF_RewindCtx, _n)

Function Documentation

◆ rewind_initialize()

static GF_Err rewind_initialize ( GF_Filter *  filter)
static
+ Here is the call graph for this function:

◆ rewind_finalize()

static void rewind_finalize ( GF_Filter *  filter)
static
+ Here is the call graph for this function:

◆ rewind_configure_pid()

static GF_Err rewind_configure_pid ( GF_Filter *  filter,
GF_FilterPid *  pid,
Bool  is_remove 
)
static
+ Here is the call graph for this function:

◆ rewind_process_video()

static GF_Err rewind_process_video ( GF_RewindCtx ctx,
GF_FilterPacket *  pck 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rewind_process()

static GF_Err rewind_process ( GF_Filter *  filter)
static
+ Here is the call graph for this function:

◆ rewind_process_event()

static Bool rewind_process_event ( GF_Filter *  filter,
const GF_FilterEvent *  evt 
)
static
+ Here is the call graph for this function:

◆ rewind_register()

const GF_FilterRegister* rewind_register ( GF_FilterSession *  session)

Variable Documentation

◆ RewinderCaps

const GF_FilterCapability RewinderCaps[]
static
Initial value:
=
{
{0},
}
@ GF_CODECID_RAW
Definition: constants.h:600
@ GF_STREAM_AUDIO
Definition: constants.h:66
@ GF_STREAM_VISUAL
Definition: constants.h:64
#define CAP_UINT(_f, _a, _b)
Definition: filters.h:2172
#define GF_CAPS_INPUT_OUTPUT
Definition: filters.h:2242
@ GF_PROP_PID_CODECID
Definition: filters.h:1116
@ GF_PROP_PID_STREAM_TYPE
Definition: filters.h:1112

◆ RewinderArgs

const GF_FilterArgs RewinderArgs[]
static
Initial value:
=
{
{ OFFS(rbuffer), "size of video rewind buffer in frames. If more frames than this, flush is performed", GF_PROP_UINT, "100", NULL, GF_FS_ARG_HINT_ADVANCED},
{0}
}
@ GF_FS_ARG_HINT_ADVANCED
Definition: filters.h:2102
@ GF_PROP_UINT
Definition: filters.h:852
#define OFFS(_n)
Definition: rewind.c:237

◆ RewinderRegister

GF_FilterRegister RewinderRegister
Initial value:
= {
.name = "rewind",
.private_size = sizeof(GF_RewindCtx),
.initialize = rewind_initialize,
.finalize = rewind_finalize,
.configure_pid = rewind_configure_pid,
.process = rewind_process,
.process_event = rewind_process_event,
.hint_class_type = GF_FS_CLASS_STREAM
}
#define SETCAPS(__struct)
Definition: filters.h:2364
@ GF_FS_REG_EXPLICIT_ONLY
Definition: filters.h:2393
@ GF_FS_CLASS_STREAM
Definition: filters.h:2445
attribute Array args
Definition: jsf.idl:24
static GF_Err rewind_initialize(GF_Filter *filter)
Definition: rewind.c:55
static const GF_FilterArgs RewinderArgs[]
Definition: rewind.c:238
static GF_Err rewind_process(GF_Filter *filter)
Definition: rewind.c:154
static const GF_FilterCapability RewinderCaps[]
Definition: rewind.c:228
static void rewind_finalize(GF_Filter *filter)
Definition: rewind.c:62
static Bool rewind_process_event(GF_Filter *filter, const GF_FilterEvent *evt)
Definition: rewind.c:218
static GF_Err rewind_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
Definition: rewind.c:69
Definition: rewind.c:34