libgpac
Documentation of the core library of GPAC
dmx_mpegps.c File Reference
#include <gpac/filters.h>
#include <gpac/constants.h>
#include <gpac/thread.h>
#include <gpac/list.h>
#include <gpac/bitstream.h>
#include "../media_tools/mpeg2_ps.h"
#include <gpac/media_tools.h>
+ Include dependency graph for dmx_mpegps.c:

Data Structures

struct  M2PSStream
 
struct  GF_M2PSDmxCtx
 

Functions

static void m2psdmx_setup (GF_Filter *filter, GF_M2PSDmxCtx *ctx)
 
GF_Err m2psdmx_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
 
static Bool m2psdmx_process_event (GF_Filter *filter, const GF_FilterEvent *evt)
 
GF_Err m2psdmx_process (GF_Filter *filter)
 
GF_Err m2psdmx_initialize (GF_Filter *filter)
 
void m2psdmx_finalize (GF_Filter *filter)
 
static const char * m2psdmx_probe_data (const u8 *data, u32 size, GF_FilterProbeScore *score)
 
const GF_FilterRegister * m2psdmx_register (GF_FilterSession *session)
 

Variables

static const GF_FilterCapability M2PSDmxCaps []
 
GF_FilterRegister M2PSDmxRegister
 

Data Structure Documentation

◆ M2PSStream

struct M2PSStream
Data Fields
GF_FilterPid * opid
u32 stream_type
u32 stream_num
Bool in_use
u64 last_dts

◆ GF_M2PSDmxCtx

struct GF_M2PSDmxCtx
+ Collaboration diagram for GF_M2PSDmxCtx:
Data Fields
GF_FilterPid * ipid
const char * src_url
mpeg2ps_t * ps
Double start_range
u64 first_dts
u32 nb_playing
GF_Fraction64 duration
Bool in_seek
GF_List * streams
Bool initial_play_done

Function Documentation

◆ m2psdmx_setup()

static void m2psdmx_setup ( GF_Filter *  filter,
GF_M2PSDmxCtx ctx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ m2psdmx_configure_pid()

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

◆ m2psdmx_process_event()

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

◆ m2psdmx_process()

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

◆ m2psdmx_initialize()

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

◆ m2psdmx_finalize()

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

◆ m2psdmx_probe_data()

static const char* m2psdmx_probe_data ( const u8 data,
u32  size,
GF_FilterProbeScore score 
)
static

◆ m2psdmx_register()

const GF_FilterRegister* m2psdmx_register ( GF_FilterSession *  session)

Variable Documentation

◆ M2PSDmxCaps

const GF_FilterCapability M2PSDmxCaps[]
static
Initial value:
=
{
CAP_STRING(GF_CAPS_INPUT, GF_PROP_PID_MIME, "video/mpeg|audio/mpeg|video/mpegps"),
}
@ GF_CODECID_RAW
Definition: constants.h:600
@ GF_STREAM_AUDIO
Definition: constants.h:66
@ GF_STREAM_FILE
Definition: constants.h:104
@ GF_STREAM_VISUAL
Definition: constants.h:64
#define GF_CAPS_OUTPUT
Definition: filters.h:2232
#define CAP_UINT(_f, _a, _b)
Definition: filters.h:2172
#define CAP_STRING(_f, _a, _b)
Definition: filters.h:2194
#define GF_CAPS_OUTPUT_EXCLUDED
Definition: filters.h:2236
#define GF_CAPS_INPUT
Definition: filters.h:2220
@ GF_PROP_PID_CODECID
Definition: filters.h:1116
@ GF_PROP_PID_FILEPATH
Definition: filters.h:1187
@ GF_PROP_PID_STREAM_TYPE
Definition: filters.h:1112
@ GF_PROP_PID_FILE_EXT
Definition: filters.h:1190
@ GF_PROP_PID_MIME
Definition: filters.h:1189

◆ M2PSDmxRegister

GF_FilterRegister M2PSDmxRegister
Initial value:
= {
.name = "m2psdmx",
.private_size = sizeof(GF_M2PSDmxCtx),
.initialize = m2psdmx_initialize,
.finalize = m2psdmx_finalize,
.configure_pid = m2psdmx_configure_pid,
.process = m2psdmx_process,
.process_event = m2psdmx_process_event,
.probe_data = m2psdmx_probe_data,
.priority = 255,
.hint_class_type = GF_FS_CLASS_DEMULTIPLEXER
}
GF_Err m2psdmx_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
Definition: dmx_mpegps.c:201
static const GF_FilterCapability M2PSDmxCaps[]
Definition: dmx_mpegps.c:464
GF_Err m2psdmx_process(GF_Filter *filter)
Definition: dmx_mpegps.c:310
static const char * m2psdmx_probe_data(const u8 *data, u32 size, GF_FilterProbeScore *score)
Definition: dmx_mpegps.c:454
static Bool m2psdmx_process_event(GF_Filter *filter, const GF_FilterEvent *evt)
Definition: dmx_mpegps.c:251
void m2psdmx_finalize(GF_Filter *filter)
Definition: dmx_mpegps.c:442
GF_Err m2psdmx_initialize(GF_Filter *filter)
Definition: dmx_mpegps.c:435
Definition: dmx_mpegps.c:47
#define SETCAPS(__struct)
Definition: filters.h:2364
@ GF_FS_CLASS_DEMULTIPLEXER
Definition: filters.h:2461