libgpac
Documentation of the core library of GPAC
text_to_bifs.c File Reference
#include <gpac/constants.h>
#include <gpac/utf.h>
#include <gpac/xml.h>
#include <gpac/internal/media_dev.h>
#include <gpac/scene_manager.h>
+ Include dependency graph for text_to_bifs.c:

Macros

#define REM_TRAIL_MARKS(__str, __sep)
 

Enumerations

enum  {
  GF_TEXT_IMPORT_NONE = 0 , GF_TEXT_IMPORT_SRT , GF_TEXT_IMPORT_SUB , GF_TEXT_IMPORT_TTXT ,
  GF_TEXT_IMPORT_TEXML
}
 

Functions

static GF_Err gf_text_guess_format (char *filename, u32 *fmt)
 
static GF_Err gf_text_import_srt_bifs (GF_SceneManager *ctx, GF_ESD *src, GF_MuxInfo *mux)
 
static GF_Err gf_text_import_sub_bifs (GF_SceneManager *ctx, GF_ESD *src, GF_MuxInfo *mux)
 
GF_EXPORT GF_Err gf_sm_import_bifs_subtitle (GF_SceneManager *ctx, GF_ESD *src, GF_MuxInfo *mux)
 

Macro Definition Documentation

◆ REM_TRAIL_MARKS

#define REM_TRAIL_MARKS (   __str,
  __sep 
)
Value:
while (1) { \
u32 _len = (u32) strlen(__str); \
if (!_len) break; \
_len--; \
if (strchr(__sep, __str[_len])) __str[_len] = 0; \
else break; \
} \
uint32_t u32
Definition: setup.h:326

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
GF_TEXT_IMPORT_NONE 
GF_TEXT_IMPORT_SRT 
GF_TEXT_IMPORT_SUB 
GF_TEXT_IMPORT_TTXT 
GF_TEXT_IMPORT_TEXML 

Function Documentation

◆ gf_text_guess_format()

static GF_Err gf_text_guess_format ( char *  filename,
u32 fmt 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_text_import_srt_bifs()

static GF_Err gf_text_import_srt_bifs ( GF_SceneManager ctx,
GF_ESD src,
GF_MuxInfo mux 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_text_import_sub_bifs()

static GF_Err gf_text_import_sub_bifs ( GF_SceneManager ctx,
GF_ESD src,
GF_MuxInfo mux 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function: