![]() |
libgpac
Documentation of the core library of GPAC
|
Collaboration diagram for Generic API: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
| Enumerator | |
|---|---|
| GF_ISOM_OPEN_READ_DUMP | Opens file for dumping: same as read-only but keeps all movie fragments info untouched |
| GF_ISOM_OPEN_READ | Opens a file in READ ONLY mode |
| GF_ISOM_OPEN_WRITE | Opens a file in WRITE ONLY mode. Media Data is captured on the fly and storage mode is always flat (moov at end). In this mode, the editing functions are disabled. |
| GF_ISOM_OPEN_EDIT | Opens an existing file in EDIT mode |
| GF_ISOM_WRITE_EDIT | Creates a new file in EDIT mode |
| GF_ISOM_OPEN_KEEP_FRAGMENTS | Opens an existing file and keep fragment information |
| GF_ISOM_OPEN_READ_EDIT | Opens an existing file in READ ONLY mode but enables most of the file edit functions except fragmentation Samples may be added to the file in this mode, they will be stored in memory |
| GF_ISOM_OPEN_READ_DUMP_NO_COMP | same as GF_ISOM_OPEN_READ_DUMP but does not decompress boxes |
| 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 |
Here is the call graph for this function:
Here is the caller graph for this function: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 |
Here is the call graph for this function:
Here is the caller graph for this function:indicates if target file is an IsoMedia file
| inBuf | the buffer to probe |
| inSize | the sizeo of the buffer to probe |
Here is the call graph for this function:
Here is the caller graph for this function:| 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. |
Here is the call graph for this function:
Here is the caller graph for this function:| 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 |
Here is the call graph for this function:
Here is the caller graph for this function:| void gf_isom_delete | ( | GF_ISOFile * | isom_file | ) |
deletes the movie without saving it
| isom_file | the target ISO file |
Here is the call graph for this function:
Here is the caller graph for this function:| 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 |
Here is the caller graph for this function:| u8 gf_isom_get_mode | ( | GF_ISOFile * | isom_file | ) |
gets the mode of an open file
| isom_file | the target ISO file |
Here is the caller graph for this function:| Bool gf_isom_is_JPEG2000 | ( | GF_ISOFile * | isom_file | ) |
checks if file is J2K image
| isom_file | the target ISO file |
Here is the caller graph for this function:checks if a given four character code matches a known video handler type (vide, auxv, pict, ...)
| mtype | the four character code to check |
Here is the caller graph for this function:| u32 gf_isom_get_num_supported_boxes | ( | ) |
gets number of implemented boxes in (including the internal unknown box wrapper).
Here is the caller graph for this function:gets four character code of box given its index. Index 0 is GPAC internal unknown box handler
| idx | 0-based index of the box |
Here is the caller graph for this function:prints default box syntax of box given its index. Index 0 is GPAC internal unknown box handler
| idx | 0-based index of the box |
| trace | the file object to dump to |
Here is the call graph for this function:
Here is the caller graph for this function: