libgpac
Documentation of the core library of GPAC
saf.c File Reference
#include <gpac/internal/media_dev.h>
#include <gpac/bitstream.h>
#include <gpac/thread.h>
#include <gpac/list.h>
+ Include dependency graph for saf.c:

Data Structures

struct  GF_SAFSample
 
struct  GF_SAFStream
 
struct  GF_SAFMuxer
 

Enumerations

enum  {
  SAF_STREAM_HEADER = 1 , SAF_STREAM_HEADER_PERMANENT = 2 , SAF_END_OF_STREAM = 3 , SAF_ACCESS_UNIT = 4 ,
  SAF_END_OF_SESSION = 5 , SAF_CACHE_UNIT = 6 , SAF_REMOTE_STREAM_HEADER = 7
}
 

Functions

GF_SAFMuxer * gf_saf_mux_new ()
 
static void saf_stream_del (GF_SAFStream *str)
 
void gf_saf_mux_del (GF_SAFMuxer *mux)
 
static GFINLINE GF_SAFStreamsaf_get_stream (GF_SAFMuxer *mux, u32 stream_id)
 
GF_Err gf_saf_mux_stream_add (GF_SAFMuxer *mux, u32 stream_id, u32 ts_res, u32 buffersize_db, u8 stream_type, u8 object_type, char *mime_type, char *dsi, u32 dsi_len, char *remote_url)
 
GF_Err gf_saf_mux_add_au (GF_SAFMuxer *mux, u32 stream_id, u32 CTS, char *data, u32 data_len, Bool is_rap)
 
GF_Err gf_saf_mux_for_time (GF_SAFMuxer *mux, u32 time_ms, Bool force_end_of_session, u8 **out_data, u32 *out_size)
 

Data Structure Documentation

◆ GF_SAFSample

struct GF_SAFSample
Data Fields
char * data
u32 data_size
Bool is_rap
u32 ts

◆ GF_SAFStream

struct GF_SAFStream
Data Fields
GF_FilterPid * opid
u32 au_sn
u32 stream_id
u32 ts_res
u32 buffer_min
u32 ts_resolution
u32 buffersize_db
u8 stream_type
u8 object_type
char * mime_type
char * remote_url
char * dsi
u32 dsi_len
GF_List * aus
u32 state
u32 last_au_sn
u32 last_au_ts

◆ __saf_muxer

struct __saf_muxer

SAF Multiplexer object. The multiplexer supports concurencial (multi-threaded) access

Data Fields
GF_List * streams
u32 state
GF_Mutex * mx

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SAF_STREAM_HEADER 
SAF_STREAM_HEADER_PERMANENT 
SAF_END_OF_STREAM 
SAF_ACCESS_UNIT 
SAF_END_OF_SESSION 
SAF_CACHE_UNIT 
SAF_REMOTE_STREAM_HEADER 

Function Documentation

◆ saf_stream_del()

static void saf_stream_del ( GF_SAFStream str)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saf_get_stream()

static GFINLINE GF_SAFStream* saf_get_stream ( GF_SAFMuxer *  mux,
u32  stream_id 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function: