libgpac
Documentation of the core library of GPAC
Loading...
Searching...
No Matches
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  SampleDepInfo
 
struct  RepairSegmentInfo
 

Macros

#define REPAIR_BUF_SIZE   50000
 

Typedefs

typedef u32 ROUTEInRepairMode
 
typedef u32 ROUTEInRepairISO
 

Enumerations

enum  { TSIO_FILE_PROGRESS = 1 , TSIO_REPAIR_SCHEDULED = (1<<1) }
 
enum  ROUTEInRepairMode_t { ROUTEIN_REPAIR_NO = 0 , ROUTEIN_REPAIR_SIMPLE , ROUTEIN_REPAIR_STRICT , ROUTEIN_REPAIR_FULL }
 
enum  ROUTEInRepairISO_t {
  REPAIR_ISO_NO = 0 , REPAIR_ISO_SIMPLE , REPAIR_ISO_PARTIAL , REPAIR_ISO_DEPS ,
  REPAIR_ISO_DEPX
}
 
enum  RouteServerRangeSupport { RANGE_SUPPORT_NO = 0 , RANGE_SUPPORT_PROBE , RANGE_SUPPORT_YES }
 
enum  { REPAIR_ISO_STATUS_DONE = 0 , REPAIR_ISO_STATUS_INIT , REPAIR_ISO_STATUS_PATCH_TOP_LEVEL , REPAIR_ISO_STATUS_PATCH_MDAT }
 
enum  { SAMPLE_DROP = 1 , SAMPLE_DROP_DEP = 1<<1 }
 

Functions

RouteRepairServerroutein_push_repair_server (ROUTEInCtx *ctx, const char *url, u32 service_id)
 
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)
 
void routein_check_type (ROUTEInCtx *ctx, GF_ROUTEEventFileInfo *finfo, u32 service_id)
 
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 bytes_recv
u8 is_open
u8 priority

◆ RouteRepairServer

struct RouteRepairServer
Data Fields
char * url
u32 service_id
RouteServerRangeSupport accept_ranges
Bool support_h2
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
Bool ka
Bool chkiso
u32 buffer
u32 timeout
u32 stats
u32 max_segs
u32 tsidbg
u32 rtimeout
u32 nbcached
ROUTEInRepairISO riso
ROUTEInRepairMode 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 * sample_deps_reservoir
GF_List * repair_servers
Bool has_data
const char * log_name

◆ SampleDepInfo

struct SampleDepInfo
Data Fields
u32 sample_id
u32 nb_refs
u32 nb_refs_alloc
u32 * refs
u32 start_range
u32 end_range
u64 dts
u16 gop_id
u8 valid
u8 drop
u32 num_direct_dependencies
u32 num_indirect_dependencies

◆ _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
u32 isox_state
u32 total_size
Bool done
u32 max_dep_per_sample
GF_List * sample_deps

Macro Definition Documentation

◆ REPAIR_BUF_SIZE

#define REPAIR_BUF_SIZE   50000

Typedef Documentation

◆ ROUTEInRepairMode

◆ ROUTEInRepairISO

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TSIO_FILE_PROGRESS 
TSIO_REPAIR_SCHEDULED 

◆ ROUTEInRepairMode_t

Enumerator
ROUTEIN_REPAIR_NO 
ROUTEIN_REPAIR_SIMPLE 
ROUTEIN_REPAIR_STRICT 
ROUTEIN_REPAIR_FULL 

◆ ROUTEInRepairISO_t

Enumerator
REPAIR_ISO_NO 
REPAIR_ISO_SIMPLE 
REPAIR_ISO_PARTIAL 
REPAIR_ISO_DEPS 
REPAIR_ISO_DEPX 

◆ RouteServerRangeSupport

Enumerator
RANGE_SUPPORT_NO 
RANGE_SUPPORT_PROBE 
RANGE_SUPPORT_YES 

◆ anonymous enum

anonymous enum
Enumerator
REPAIR_ISO_STATUS_DONE 
REPAIR_ISO_STATUS_INIT 
REPAIR_ISO_STATUS_PATCH_TOP_LEVEL 
REPAIR_ISO_STATUS_PATCH_MDAT 

◆ anonymous enum

anonymous enum
Enumerator
SAMPLE_DROP 
SAMPLE_DROP_DEP 

Function Documentation

◆ routein_push_repair_server()

RouteRepairServer * routein_push_repair_server ( ROUTEInCtx ctx,
const char *  url,
u32  service_id 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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_check_type()

void routein_check_type ( ROUTEInCtx ctx,
GF_ROUTEEventFileInfo finfo,
u32  service_id 
)
+ 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: