libgpac
Documentation of the core library of GPAC
in_route.h File Reference
#include <gpac/filters.h>
#include <gpac/route.h>
#include <gpac/network.h>
#include <gpac/download.h>
#include <gpac/thread.h>
+ Include dependency graph for in_route.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  TSI_Output
 
struct  SegInfo
 
struct  RouteRepairRange
 
struct  RouteRepairServer
 
struct  RouteRepairSession
 
struct  ROUTEInCtx
 
struct  RepairSegmentInfo
 

Macros

#define REPAIR_BUF_SIZE   50000
 

Enumerations

enum  { TSIO_FILE_PROGRESS = 1 , TSIO_REPAIR_SCHEDULED = (1<<1) }
 
enum  { ROUTEIN_REPAIR_NO = 0 , ROUTEIN_REPAIR_SIMPLE , ROUTEIN_REPAIR_STRICT , ROUTEIN_REPAIR_FULL }
 
enum  RouteServerRangeSupport { RANGE_SUPPORT_NO = 0 , RANGE_SUPPORT_PROBE , RANGE_SUPPORT_YES }
 

Functions

void routein_repair_mark_file (ROUTEInCtx *ctx, u32 service_id, const char *filename, Bool is_delete)
 
void routein_queue_repair (ROUTEInCtx *ctx, GF_ROUTEEventType evt, u32 evt_param, GF_ROUTEEventFileInfo *finfo)
 
void routein_on_event_file (ROUTEInCtx *ctx, GF_ROUTEEventType evt, u32 evt_param, GF_ROUTEEventFileInfo *finfo, Bool is_defer_repair, Bool drop_if_first)
 
GF_Err routein_do_repair (ROUTEInCtx *ctx)
 
TSI_Outputroutein_get_tsio (ROUTEInCtx *ctx, u32 service_id, GF_ROUTEEventFileInfo *finfo)
 

Data Structure Documentation

◆ TSI_Output

struct TSI_Output
Data Fields
u32 sid
u32 tsi
GF_FilterPid * opid
u32 current_toi
u32 bytes_sent
char * dash_rep_id
GF_List * pending_repairs
u32 flags_progress
Bool delete_first

◆ SegInfo

struct SegInfo
Data Fields
GF_FilterPid * opid
char * seg_name

◆ RouteRepairRange

struct RouteRepairRange
Data Fields
u32 br_start
u32 br_end
u32 done
u32 priority

◆ RouteRepairServer

struct RouteRepairServer
Data Fields
char * url
RouteServerRangeSupport accept_ranges
Bool is_up
Bool support_h2
u32 nb_req_success
u32 nb_bytes
u32 latency

◆ RouteRepairSession

struct RouteRepairSession
+ Collaboration diagram for RouteRepairSession:
Data Fields
GF_DownloadSession * dld
RepairSegmentInfo * current_si
RouteRepairRange * range
RouteRepairServer * server
u32 initial_retry
u32 retry_in
char http_buf[REPAIR_BUF_SIZE]

◆ ROUTEInCtx

struct ROUTEInCtx
+ Collaboration diagram for ROUTEInCtx:
Data Fields
char * src
char * ifce
char * odir
Bool gcache
Bool kc
Bool skipr
Bool reorder
Bool fullseg
Bool cloop
Bool llmode
Bool dynsel
u32 buffer
u32 timeout
u32 stats
u32 max_segs
u32 tsidbg
u32 rtimeout
u32 nbcached
u32 repair
u32 max_sess
u32 range_merge
u32 minrecv
s32 tunein
s32 stsi
GF_PropStringList repair_urls
GF_Filter * filter
GF_DownloadManager * dm
char * clock_init_seg
GF_ROUTEDmx * route_dmx
u32 tune_service_id
u32 sync_tsi
u32 last_toi
u32 start_time
u32 tune_time
u32 last_timeout
GF_FilterPid * opid
GF_List * tsi_outs
u32 nb_stats
GF_List * received_seg_names
u32 nb_playing
Bool initial_play_forced
Bool evt_interrupt
RouteRepairSession * http_repair_sessions
GF_List * seg_repair_queue
GF_List * seg_repair_reservoir
GF_List * seg_range_reservoir
GF_List * repair_servers
Bool has_data
const char * log_name

◆ _route_repair_seg_info

struct _route_repair_seg_info
+ Collaboration diagram for RepairSegmentInfo:
Data Fields
GF_ROUTEEventFileInfo finfo
char * filename
GF_ROUTEEventType evt
u32 service_id
Bool removed
u32 pending
GF_List * ranges
u32 nb_errors
TSI_Output * tsio
Bool done
Bool local_repair

Macro Definition Documentation

◆ REPAIR_BUF_SIZE

#define REPAIR_BUF_SIZE   50000

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TSIO_FILE_PROGRESS 
TSIO_REPAIR_SCHEDULED 

◆ anonymous enum

anonymous enum
Enumerator
ROUTEIN_REPAIR_NO 
ROUTEIN_REPAIR_SIMPLE 
ROUTEIN_REPAIR_STRICT 
ROUTEIN_REPAIR_FULL 

◆ RouteServerRangeSupport

Enumerator
RANGE_SUPPORT_NO 
RANGE_SUPPORT_PROBE 
RANGE_SUPPORT_YES 

Function Documentation

◆ routein_repair_mark_file()

void routein_repair_mark_file ( ROUTEInCtx ctx,
u32  service_id,
const char *  filename,
Bool  is_delete 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ routein_queue_repair()

void routein_queue_repair ( ROUTEInCtx ctx,
GF_ROUTEEventType  evt,
u32  evt_param,
GF_ROUTEEventFileInfo finfo 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ routein_on_event_file()

void routein_on_event_file ( ROUTEInCtx ctx,
GF_ROUTEEventType  evt,
u32  evt_param,
GF_ROUTEEventFileInfo finfo,
Bool  is_defer_repair,
Bool  drop_if_first 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ routein_do_repair()

GF_Err routein_do_repair ( ROUTEInCtx ctx)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ routein_get_tsio()

TSI_Output* routein_get_tsio ( ROUTEInCtx ctx,
u32  service_id,
GF_ROUTEEventFileInfo finfo 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: