libgpac
Documentation of the core library of GPAC
stbl_write.c File Reference
+ Include dependency graph for stbl_write.c:

Macros

#define ALLOC_INC(a)
 
#define CHECK_PACK(_e)
 

Functions

GF_Err stbl_AddDTS (GF_SampleTableBox *stbl, u64 DTS, u32 *sampleNumber, u32 LastAUDefDuration, u32 nb_pack)
 
GF_Err AddCompositionOffset (GF_CompositionOffsetBox *ctts, s32 offset)
 
GF_Err stbl_AddCTS (GF_SampleTableBox *stbl, u32 sampleNumber, s32 offset)
 
GF_Err stbl_repackCTS (GF_CompositionOffsetBox *ctts)
 
GF_Err stbl_unpackCTS (GF_SampleTableBox *stbl)
 
GF_Err stbl_AddSize (GF_SampleSizeBox *stsz, u32 sampleNumber, u32 size, u32 nb_pack)
 
GF_Err stbl_AddRAP (GF_SyncSampleBox *stss, u32 sampleNumber)
 
GF_Err stbl_AddRedundant (GF_SampleTableBox *stbl, u32 sampleNumber)
 
GF_Err stbl_SetDependencyType (GF_SampleTableBox *stbl, u32 sampleNumber, u32 isLeading, u32 dependsOn, u32 dependedOn, u32 redundant)
 
GF_Err stbl_AppendDependencyType (GF_SampleTableBox *stbl, u32 isLeading, u32 dependsOn, u32 dependedOn, u32 redundant)
 
GF_Err stbl_AddShadow (GF_ShadowSyncBox *stsh, u32 sampleNumber, u32 shadowNumber)
 
GF_Err stbl_AddChunkOffset (GF_MediaBox *mdia, u32 sampleNumber, u32 StreamDescIndex, u64 offset, u32 nb_pack)
 
GF_Err stbl_SetChunkOffset (GF_MediaBox *mdia, u32 sampleNumber, u64 offset)
 
GF_Err stbl_SetSampleCTS (GF_SampleTableBox *stbl, u32 sampleNumber, s32 offset)
 
GF_Err stbl_SetSampleSize (GF_SampleSizeBox *stsz, u32 SampleNumber, u32 size)
 
GF_Err stbl_SetSampleRAP (GF_SyncSampleBox *stss, u32 SampleNumber, u8 isRAP)
 
GF_Err stbl_SetRedundant (GF_SampleTableBox *stbl, u32 sampleNumber)
 
GF_Err stbl_SetSyncShadow (GF_ShadowSyncBox *stsh, u32 sampleNumber, u32 syncSample)
 
GF_Err stbl_RemoveDTS (GF_SampleTableBox *stbl, u32 sampleNumber, u32 nb_samples, u32 LastAUDefDuration)
 
GF_Err stbl_RemoveCTS (GF_SampleTableBox *stbl, u32 sampleNumber, u32 nb_samples)
 
GF_Err stbl_RemoveSize (GF_SampleTableBox *stbl, u32 sampleNumber, u32 nb_samples)
 
GF_Err stbl_RemoveChunk (GF_SampleTableBox *stbl, u32 sampleNumber, u32 nb_samples)
 
GF_Err stbl_RemoveRAP (GF_SampleTableBox *stbl, u32 sampleNumber)
 
GF_Err stbl_RemoveRAPs (GF_SampleTableBox *stbl, u32 nb_samples)
 
GF_Err stbl_RemoveRedundant (GF_SampleTableBox *stbl, u32 SampleNumber, u32 nb_samples)
 
GF_Err stbl_RemoveShadow (GF_SampleTableBox *stbl, u32 sampleNumber)
 
GF_Err stbl_SetPaddingBits (GF_SampleTableBox *stbl, u32 SampleNumber, u8 bits)
 
GF_Err stbl_RemovePaddingBits (GF_SampleTableBox *stbl, u32 SampleNumber)
 
GF_Err stbl_RemoveSubSample (GF_SampleTableBox *stbl, u32 SampleNumber)
 
GF_Err stbl_RemoveSampleGroup (GF_SampleTableBox *stbl, u32 SampleNumber)
 
GF_Err stbl_SampleSizeAppend (GF_SampleSizeBox *stsz, u32 data_size)
 
GF_Err stbl_AppendTime (GF_SampleTableBox *stbl, u32 duration, u32 nb_pack)
 
GF_Err stbl_AppendSize (GF_SampleTableBox *stbl, u32 size, u32 nb_pack)
 
GF_Err stbl_AppendChunk (GF_SampleTableBox *stbl, u64 offset)
 
GF_Err stbl_AppendSampleToChunk (GF_SampleTableBox *stbl, u32 DescIndex, u32 samplesInChunk)
 
GF_Err stbl_AppendRAP (GF_SampleTableBox *stbl, u8 isRap)
 
GF_Err stbl_AppendTrafMap (GF_ISOFile *mov, GF_SampleTableBox *stbl, Bool is_seg_start, u64 seg_start_offset, u64 frag_start_offset, u64 tfdt, u8 *moof_template, u32 moof_template_size, u64 sidx_start, u64 sidx_end, u32 nb_pack_samples)
 
GF_Err stbl_AppendPadding (GF_SampleTableBox *stbl, u8 padding)
 
GF_Err stbl_AppendCTSOffset (GF_SampleTableBox *stbl, s32 offset)
 
GF_Err stbl_AppendDegradation (GF_SampleTableBox *stbl, u16 DegradationPriority)
 
GF_Err stbl_UnpackOffsets (GF_SampleTableBox *stbl)
 
static GFINLINE GF_Err stbl_AddOffset (GF_SampleTableBox *stbl, GF_Box **old_stco, u64 offset)
 
GF_Err stbl_SetChunkAndOffset (GF_SampleTableBox *stbl, u32 sampleNumber, u32 StreamDescIndex, GF_SampleToChunkBox *the_stsc, GF_Box **the_stco, u64 data_offset, Bool forceNewChunk, u32 nb_samp)
 
GF_EXPORT GF_Err gf_isom_refresh_size_info (GF_ISOFile *file, u32 trackNumber)
 

Macro Definition Documentation

◆ ALLOC_INC

#define ALLOC_INC (   a)
Value:
{\
u32 new_a = ((a<10) ? 100 : (a*3)/2);\
if (new_a < a) return GF_OUT_OF_MEM;\
a = new_a;\
}
@ GF_OUT_OF_MEM
Definition: tools.h:137

◆ CHECK_PACK

#define CHECK_PACK (   _e)
Value:
if (!nb_pack) nb_pack = 1; \
else if ((s32) nb_pack < 0) { \
GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[iso file] Too many samples %u in packed sample\n", nb_pack)); \
return _e; \
}
@ GF_LOG_CONTAINER
Definition: tools.h:780
@ GF_LOG_ERROR
Definition: tools.h:741
int32_t s32
Definition: setup.h:328

Function Documentation

◆ stbl_AddDTS()

GF_Err stbl_AddDTS ( GF_SampleTableBox stbl,
u64  DTS,
u32 sampleNumber,
u32  LastAUDefDuration,
u32  nb_pack 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddCompositionOffset()

GF_Err AddCompositionOffset ( GF_CompositionOffsetBox ctts,
s32  offset 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AddCTS()

GF_Err stbl_AddCTS ( GF_SampleTableBox stbl,
u32  sampleNumber,
s32  offset 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_repackCTS()

GF_Err stbl_repackCTS ( GF_CompositionOffsetBox ctts)
+ Here is the caller graph for this function:

◆ stbl_unpackCTS()

GF_Err stbl_unpackCTS ( GF_SampleTableBox stbl)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AddSize()

GF_Err stbl_AddSize ( GF_SampleSizeBox stsz,
u32  sampleNumber,
u32  size,
u32  nb_pack 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AddRAP()

GF_Err stbl_AddRAP ( GF_SyncSampleBox stss,
u32  sampleNumber 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AddRedundant()

GF_Err stbl_AddRedundant ( GF_SampleTableBox stbl,
u32  sampleNumber 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_SetDependencyType()

GF_Err stbl_SetDependencyType ( GF_SampleTableBox stbl,
u32  sampleNumber,
u32  isLeading,
u32  dependsOn,
u32  dependedOn,
u32  redundant 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AppendDependencyType()

GF_Err stbl_AppendDependencyType ( GF_SampleTableBox stbl,
u32  isLeading,
u32  dependsOn,
u32  dependedOn,
u32  redundant 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AddShadow()

GF_Err stbl_AddShadow ( GF_ShadowSyncBox stsh,
u32  sampleNumber,
u32  shadowNumber 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AddChunkOffset()

GF_Err stbl_AddChunkOffset ( GF_MediaBox mdia,
u32  sampleNumber,
u32  StreamDescIndex,
u64  offset,
u32  nb_pack 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_SetChunkOffset()

GF_Err stbl_SetChunkOffset ( GF_MediaBox mdia,
u32  sampleNumber,
u64  offset 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_SetSampleCTS()

GF_Err stbl_SetSampleCTS ( GF_SampleTableBox stbl,
u32  sampleNumber,
s32  offset 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_SetSampleSize()

GF_Err stbl_SetSampleSize ( GF_SampleSizeBox stsz,
u32  SampleNumber,
u32  size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_SetSampleRAP()

GF_Err stbl_SetSampleRAP ( GF_SyncSampleBox stss,
u32  SampleNumber,
u8  isRAP 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_SetRedundant()

GF_Err stbl_SetRedundant ( GF_SampleTableBox stbl,
u32  sampleNumber 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_SetSyncShadow()

GF_Err stbl_SetSyncShadow ( GF_ShadowSyncBox stsh,
u32  sampleNumber,
u32  syncSample 
)
+ Here is the call graph for this function:

◆ stbl_RemoveDTS()

GF_Err stbl_RemoveDTS ( GF_SampleTableBox stbl,
u32  sampleNumber,
u32  nb_samples,
u32  LastAUDefDuration 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_RemoveCTS()

GF_Err stbl_RemoveCTS ( GF_SampleTableBox stbl,
u32  sampleNumber,
u32  nb_samples 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_RemoveSize()

GF_Err stbl_RemoveSize ( GF_SampleTableBox stbl,
u32  sampleNumber,
u32  nb_samples 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_RemoveChunk()

GF_Err stbl_RemoveChunk ( GF_SampleTableBox stbl,
u32  sampleNumber,
u32  nb_samples 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_RemoveRAP()

GF_Err stbl_RemoveRAP ( GF_SampleTableBox stbl,
u32  sampleNumber 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_RemoveRAPs()

GF_Err stbl_RemoveRAPs ( GF_SampleTableBox stbl,
u32  nb_samples 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_RemoveRedundant()

GF_Err stbl_RemoveRedundant ( GF_SampleTableBox stbl,
u32  SampleNumber,
u32  nb_samples 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_RemoveShadow()

GF_Err stbl_RemoveShadow ( GF_SampleTableBox stbl,
u32  sampleNumber 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_SetPaddingBits()

GF_Err stbl_SetPaddingBits ( GF_SampleTableBox stbl,
u32  SampleNumber,
u8  bits 
)
+ Here is the call graph for this function:

◆ stbl_RemovePaddingBits()

GF_Err stbl_RemovePaddingBits ( GF_SampleTableBox stbl,
u32  SampleNumber 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_RemoveSubSample()

GF_Err stbl_RemoveSubSample ( GF_SampleTableBox stbl,
u32  SampleNumber 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_RemoveSampleGroup()

GF_Err stbl_RemoveSampleGroup ( GF_SampleTableBox stbl,
u32  SampleNumber 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_SampleSizeAppend()

GF_Err stbl_SampleSizeAppend ( GF_SampleSizeBox stsz,
u32  data_size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AppendTime()

GF_Err stbl_AppendTime ( GF_SampleTableBox stbl,
u32  duration,
u32  nb_pack 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AppendSize()

GF_Err stbl_AppendSize ( GF_SampleTableBox stbl,
u32  size,
u32  nb_pack 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AppendChunk()

GF_Err stbl_AppendChunk ( GF_SampleTableBox stbl,
u64  offset 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AppendSampleToChunk()

GF_Err stbl_AppendSampleToChunk ( GF_SampleTableBox stbl,
u32  DescIndex,
u32  samplesInChunk 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AppendRAP()

GF_Err stbl_AppendRAP ( GF_SampleTableBox stbl,
u8  isRap 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AppendTrafMap()

GF_Err stbl_AppendTrafMap ( GF_ISOFile *  mov,
GF_SampleTableBox stbl,
Bool  is_seg_start,
u64  seg_start_offset,
u64  frag_start_offset,
u64  tfdt,
u8 moof_template,
u32  moof_template_size,
u64  sidx_start,
u64  sidx_end,
u32  nb_pack_samples 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AppendPadding()

GF_Err stbl_AppendPadding ( GF_SampleTableBox stbl,
u8  padding 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AppendCTSOffset()

GF_Err stbl_AppendCTSOffset ( GF_SampleTableBox stbl,
s32  offset 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AppendDegradation()

GF_Err stbl_AppendDegradation ( GF_SampleTableBox stbl,
u16  DegradationPriority 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_UnpackOffsets()

GF_Err stbl_UnpackOffsets ( GF_SampleTableBox stbl)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_AddOffset()

static GFINLINE GF_Err stbl_AddOffset ( GF_SampleTableBox stbl,
GF_Box **  old_stco,
u64  offset 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stbl_SetChunkAndOffset()

GF_Err stbl_SetChunkAndOffset ( GF_SampleTableBox stbl,
u32  sampleNumber,
u32  StreamDescIndex,
GF_SampleToChunkBox the_stsc,
GF_Box **  the_stco,
u64  data_offset,
Bool  forceNewChunk,
u32  nb_samp 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: