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

Macros

#define SAMPLE_INDEX_OFFSET   129
 

Functions

static u32 rgb_48_to_32 (char *val)
 
GF_EXPORT GF_Err gf_isom_get_text_description (GF_ISOFile *movie, u32 trackNumber, u32 descriptionIndex, GF_TextSampleDescriptor **out_desc)
 
GF_EXPORT GF_Err gf_isom_new_text_description (GF_ISOFile *movie, u32 trackNumber, GF_TextSampleDescriptor *desc, const char *URLname, const char *URNname, u32 *outDescriptionIndex)
 
GF_EXPORT GF_Err gf_isom_text_add_text (GF_TextSample *samp, char *text_data, u32 text_len)
 
GF_EXPORT GF_Err gf_isom_text_add_style (GF_TextSample *samp, GF_StyleRecord *rec)
 
GF_EXPORT GF_Err gf_isom_text_add_highlight (GF_TextSample *samp, u16 start_char, u16 end_char)
 
GF_EXPORT GF_Err gf_isom_text_set_highlight_color (GF_TextSample *samp, u32 argb)
 
GF_EXPORT GF_Err gf_isom_text_add_karaoke (GF_TextSample *samp, u32 start_time)
 
GF_EXPORT GF_Err gf_isom_text_set_karaoke_segment (GF_TextSample *samp, u32 end_time, u16 start_char, u16 end_char)
 
GF_EXPORT GF_Err gf_isom_text_set_scroll_delay (GF_TextSample *samp, u32 scroll_delay)
 
GF_EXPORT GF_Err gf_isom_text_add_hyperlink (GF_TextSample *samp, char *URL, char *altString, u16 start_char, u16 end_char)
 
GF_EXPORT GF_Err gf_isom_text_set_box (GF_TextSample *samp, s16 top, s16 left, s16 bottom, s16 right)
 
GF_EXPORT GF_Err gf_isom_text_add_blink (GF_TextSample *samp, u16 start_char, u16 end_char)
 
GF_EXPORT GF_Err gf_isom_text_set_wrap (GF_TextSample *samp, u8 wrap_flags)
 
GF_EXPORT GF_Err gf_isom_text_set_forced (GF_TextSample *samp, Bool is_forced)
 
static GFINLINE GF_Err gpp_write_modifier (GF_BitStream *bs, GF_Box *a)
 
GF_EXPORT GF_Err gf_isom_text_sample_write_bs (const GF_TextSample *samp, GF_BitStream *bs)
 
GF_EXPORT GF_ISOSamplegf_isom_text_to_sample (const GF_TextSample *samp)
 
u32 gf_isom_text_sample_size (GF_TextSample *samp)
 
GF_EXPORT GF_TextSample * gf_isom_new_text_sample ()
 
GF_EXPORT GF_Err gf_isom_text_reset_styles (GF_TextSample *samp)
 
GF_EXPORT GF_Err gf_isom_text_reset (GF_TextSample *samp)
 
GF_EXPORT void gf_isom_delete_text_sample (GF_TextSample *tx_samp)
 
GF_EXPORT GF_TextSample * gf_isom_parse_text_sample (GF_BitStream *bs)
 
static void gf_isom_write_tx3g (GF_Tx3gSampleEntryBox *_a, GF_BitStream *bs, u32 sidx, u32 sidx_offset)
 
GF_Err gf_isom_get_ttxt_esd (GF_MediaBox *mdia, GF_ESD **out_esd)
 
GF_Err gf_isom_rewrite_text_sample (GF_ISOSample *samp, u32 sampleDescriptionIndex, u32 sample_dur)
 
GF_Err gf_isom_text_get_encoded_tx3g (GF_ISOFile *file, u32 track, u32 sidx, u32 sidx_offset, u8 **tx3g, u32 *tx3g_size)
 
GF_Err gf_isom_set_forced_text (GF_ISOFile *file, u32 track, u32 stsd_idx, u32 flags)
 

Macro Definition Documentation

◆ SAMPLE_INDEX_OFFSET

#define SAMPLE_INDEX_OFFSET   129

Function Documentation

◆ rgb_48_to_32()

static u32 rgb_48_to_32 ( char *  val)
static
+ Here is the caller graph for this function:

◆ gpp_write_modifier()

static GFINLINE GF_Err gpp_write_modifier ( GF_BitStream *  bs,
GF_Box a 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_isom_parse_text_sample()

GF_EXPORT GF_TextSample* gf_isom_parse_text_sample ( GF_BitStream *  bs)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_isom_write_tx3g()

static void gf_isom_write_tx3g ( GF_Tx3gSampleEntryBox _a,
GF_BitStream *  bs,
u32  sidx,
u32  sidx_offset 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_isom_get_ttxt_esd()

GF_Err gf_isom_get_ttxt_esd ( GF_MediaBox mdia,
GF_ESD **  out_esd 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_isom_rewrite_text_sample()

GF_Err gf_isom_rewrite_text_sample ( GF_ISOSample samp,
u32  sampleDescriptionIndex,
u32  sample_dur 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: