libgpac
Documentation of the core library of GPAC
in_route_repair.c File Reference
#include "in_route.h"
+ Include dependency graph for in_route_repair.c:

Macros

#define SAFETY_ERASE_BYTES   32
 

Functions

static void update_first_frag (GF_ROUTEEventFileInfo *finfo)
 
static Bool routein_repair_segment_ts_local (ROUTEInCtx *ctx, u32 service_id, GF_ROUTEEventFileInfo *finfo, Bool repair_start_only)
 
static u32 next_top_level_box (GF_ROUTEEventFileInfo *finfo, u8 *data, u32 size, u32 *cur_pos, u32 *box_size)
 
static void routein_repair_segment_isobmf_local (ROUTEInCtx *ctx, u32 service_id, GF_ROUTEEventFileInfo *finfo, Bool repair_start_only)
 
static void route_repair_build_ranges_full (ROUTEInCtx *ctx, RepairSegmentInfo *rsi, GF_ROUTEEventFileInfo *finfo)
 
static Bool routein_repair_local (ROUTEInCtx *ctx, GF_ROUTEEventType evt, u32 evt_param, GF_ROUTEEventFileInfo *finfo, Bool start_only)
 
void routein_queue_repair (ROUTEInCtx *ctx, GF_ROUTEEventType evt, u32 evt_param, GF_ROUTEEventFileInfo *finfo)
 
static void repair_session_unqueue (ROUTEInCtx *ctx, RouteRepairSession *rsess, RepairSegmentInfo *rsi)
 
static void repair_session_done (ROUTEInCtx *ctx, RouteRepairSession *rsess, GF_Err res_code)
 
static void repair_session_run (ROUTEInCtx *ctx, RouteRepairSession *rsess)
 
GF_Err routein_do_repair (ROUTEInCtx *ctx)
 
void routein_repair_mark_file (ROUTEInCtx *ctx, u32 service_id, const char *filename, Bool is_delete)
 

Variables

static const u32 top_codes []
 
static u32 nb_top_codes = GF_ARRAY_LENGTH(top_codes)
 

Macro Definition Documentation

◆ SAFETY_ERASE_BYTES

#define SAFETY_ERASE_BYTES   32

Function Documentation

◆ update_first_frag()

static void update_first_frag ( GF_ROUTEEventFileInfo finfo)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ routein_repair_segment_ts_local()

static Bool routein_repair_segment_ts_local ( ROUTEInCtx ctx,
u32  service_id,
GF_ROUTEEventFileInfo finfo,
Bool  repair_start_only 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ next_top_level_box()

static u32 next_top_level_box ( GF_ROUTEEventFileInfo finfo,
u8 data,
u32  size,
u32 cur_pos,
u32 box_size 
)
static
+ Here is the caller graph for this function:

◆ routein_repair_segment_isobmf_local()

static void routein_repair_segment_isobmf_local ( ROUTEInCtx ctx,
u32  service_id,
GF_ROUTEEventFileInfo finfo,
Bool  repair_start_only 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ route_repair_build_ranges_full()

static void route_repair_build_ranges_full ( ROUTEInCtx ctx,
RepairSegmentInfo *  rsi,
GF_ROUTEEventFileInfo finfo 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ routein_repair_local()

static Bool routein_repair_local ( ROUTEInCtx ctx,
GF_ROUTEEventType  evt,
u32  evt_param,
GF_ROUTEEventFileInfo finfo,
Bool  start_only 
)
static
+ 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:

◆ repair_session_unqueue()

static void repair_session_unqueue ( ROUTEInCtx ctx,
RouteRepairSession rsess,
RepairSegmentInfo *  rsi 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ repair_session_done()

static void repair_session_done ( ROUTEInCtx ctx,
RouteRepairSession rsess,
GF_Err  res_code 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ repair_session_run()

static void repair_session_run ( ROUTEInCtx ctx,
RouteRepairSession rsess 
)
static
+ 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_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:

Variable Documentation

◆ top_codes

const u32 top_codes[]
static
Initial value:
= {
GF_4CC('m', 'o', 'o', 'f'),
GF_4CC('m', 'd', 'a', 't'),
GF_4CC('p', 'r', 'f', 't'),
GF_4CC('e', 'm', 's', 'g'),
GF_4CC('s', 't', 'y', 'p'),
GF_4CC('f', 'r', 'e', 'e'),
GF_4CC('s', 'i', 'd', 'x'),
}
#define GF_4CC(a, b, c, d)
Definition: constants.h:137

◆ nb_top_codes

u32 nb_top_codes = GF_ARRAY_LENGTH(top_codes)
static