libgpac
Documentation of the core library of GPAC
|
Enumerations | |
enum | GF_ISOOpenMode { GF_ISOM_OPEN_READ_DUMP = 0 , GF_ISOM_OPEN_READ , GF_ISOM_OPEN_WRITE , GF_ISOM_OPEN_EDIT , GF_ISOM_WRITE_EDIT , GF_ISOM_OPEN_KEEP_FRAGMENTS , GF_ISOM_OPEN_READ_EDIT , GF_ISOM_OPEN_READ_DUMP_NO_COMP } |
Functions | |
u32 | gf_isom_probe_file (const char *fileName) |
u32 | gf_isom_probe_file_range (const char *fileName, u64 start_range, u64 end_range) |
u32 | gf_isom_probe_data (const u8 *inBuf, u32 inSize) |
GF_ISOFile * | gf_isom_open (const char *fileName, GF_ISOOpenMode OpenMode, const char *tmp_dir) |
GF_Err | gf_isom_close (GF_ISOFile *isom_file) |
void | gf_isom_delete (GF_ISOFile *isom_file) |
GF_Err | gf_isom_last_error (GF_ISOFile *isom_file) |
u8 | gf_isom_get_mode (GF_ISOFile *isom_file) |
Bool | gf_isom_is_JPEG2000 (GF_ISOFile *isom_file) |
Bool | gf_isom_is_video_handler_type (u32 mtype) |
u32 | gf_isom_get_num_supported_boxes () |
u32 | gf_isom_get_supported_box_type (u32 idx) |
GF_Err | gf_isom_dump_supported_box (u32 idx, FILE *trace) |
Generic API functions
enum GF_ISOOpenMode |
Movie file opening modes
u32 gf_isom_probe_file | ( | const char * | fileName | ) |
indicates if target file is an IsoMedia file
fileName | the target local file name or path to probe, gmem:// or gfio:// resource |
indicates if target file is an IsoMedia file
fileName | the target local file name or path to probe, gmem:// or gfio:// resource |
start_range | the offset in the file to start probing from |
end_range | the offset in the file at which probing shall stop |
indicates if target file is an IsoMedia file
inBuf | the buffer to probe |
inSize | the sizeo of the buffer to probe |
GF_ISOFile* gf_isom_open | ( | const char * | fileName, |
GF_ISOOpenMode | OpenMode, | ||
const char * | tmp_dir | ||
) |
opens an isoMedia File.
fileName | name of the file to open, , gmem:// or gfio:// resource. The special name "_gpac_isobmff_redirect" is used to indicate that segment shall be written to a memory buffer passed to callback function set through gf_isom_set_write_callback. SHALL not be NULL. |
OpenMode | file opening mode |
tmp_dir | for the 2 edit modes only, specifies a location for temp file. If NULL, the library will use the default libgpac temporary file management schemes. |
GF_Err gf_isom_close | ( | GF_ISOFile * | isom_file | ) |
closes the file, write it if new/edited or if pending fragment
isom_file | the target ISO file |
void gf_isom_delete | ( | GF_ISOFile * | isom_file | ) |
deletes the movie without saving it
isom_file | the target ISO file |
GF_Err gf_isom_last_error | ( | GF_ISOFile * | isom_file | ) |
gets the last fatal error that occured in the file ANY FUNCTION OF THIS API WON'T BE PROCESSED IF THE FILE HAS AN ERROR
isom_file | the target ISO file |
u8 gf_isom_get_mode | ( | GF_ISOFile * | isom_file | ) |
gets the mode of an open file
isom_file | the target ISO file |
Bool gf_isom_is_JPEG2000 | ( | GF_ISOFile * | isom_file | ) |
checks if file is J2K image
isom_file | the target ISO file |
checks if a given four character code matches a known video handler type (vide, auxv, pict, ...)
mtype | the four character code to check |
u32 gf_isom_get_num_supported_boxes | ( | ) |
gets number of implemented boxes in (including the internal unknown box wrapper).
gets four character code of box given its index. Index 0 is GPAC internal unknown box handler
idx | 0-based index of the box |