libgpac
Documentation of the core library of GPAC
|
Data Structures | |
struct | GF_ImageItemOverlayOffset |
struct | GF_ImageItemProtection |
struct | GF_ImageItemProperties |
struct | GF_ItemExtentEntry |
Enumerations | |
enum | GF_TileItemMode { TILE_ITEM_NONE = 0 , TILE_ITEM_ALL_NO_BASE , TILE_ITEM_ALL_BASE , TILE_ITEM_ALL_GRID , TILE_ITEM_SINGLE } |
Functions | |
u32 | gf_isom_get_meta_type (GF_ISOFile *isom_file, Bool root_meta, u32 track_num) |
u32 | gf_isom_has_meta_xml (GF_ISOFile *isom_file, Bool root_meta, u32 track_num) |
GF_Err | gf_isom_extract_meta_xml (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, char *outName, Bool *is_binary) |
u32 | gf_isom_get_meta_item_count (GF_ISOFile *isom_file, Bool root_meta, u32 track_num) |
GF_Err | gf_isom_get_meta_item_info (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 item_num, u32 *itemID, u32 *type, u32 *protection_scheme, u32 *protection_scheme_version, Bool *is_self_reference, const char **item_name, const char **item_mime_type, const char **item_encoding, const char **item_url, const char **item_urn) |
u32 | gf_isom_get_meta_item_flags (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 item_num) |
u32 | gf_isom_get_meta_item_by_id (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 item_ID) |
GF_Err | gf_isom_extract_meta_item (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 item_num, const char *dump_file_name) |
GF_Err | gf_isom_extract_meta_item_mem (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 item_id, u8 **out_data, u32 *out_size, u32 *out_alloc_size, const char **mime_type, Bool use_annex_b) |
GF_Err | gf_isom_extract_meta_item_get_cenc_info (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 item_id, Bool *is_protected, u32 *skip_byte_block, u32 *crypt_byte_block, const u8 **key_info, u32 *key_info_size, u32 *aux_info_type_parameter, u8 **sai_out_data, u32 *sai_out_size, u32 *sai_out_alloc_size) |
u32 | gf_isom_get_meta_primary_item_id (GF_ISOFile *isom_file, Bool root_meta, u32 track_num) |
u32 | gf_isom_meta_get_item_ref_count (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 from_id, u32 type) |
u32 | gf_isom_meta_get_item_ref_id (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 from_id, u32 type, u32 ref_idx) |
u32 | gf_isom_meta_item_has_ref (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 to_id, u32 type) |
GF_Err | gf_isom_set_meta_type (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 metaType) |
GF_Err | gf_isom_remove_meta_xml (GF_ISOFile *isom_file, Bool root_meta, u32 track_num) |
GF_Err | gf_isom_set_meta_xml (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, char *XMLFileName, unsigned char *data, u32 data_size, Bool IsBinaryXML) |
GF_Err | gf_isom_meta_get_next_item_id (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 *item_id) |
GF_Err | gf_isom_add_meta_item (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, Bool self_reference, char *resource_path, const char *item_name, u32 item_id, u32 item_type, const char *mime_type, const char *content_encoding, const char *URL, const char *URN, GF_ImageItemProperties *image_props) |
GF_Err | gf_isom_add_meta_item_memory (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, const char *item_name, u32 *item_id, u32 item_type, const char *mime_type, const char *content_encoding, GF_ImageItemProperties *image_props, char *data, u32 data_len, GF_List *item_extent_refs) |
GF_Err | gf_isom_add_meta_item_sample_ref (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, const char *item_name, u32 *item_id, u32 item_type, const char *mime_type, const char *content_encoding, GF_ImageItemProperties *image_props, GF_ISOTrackID tk_id, u32 sample_num) |
GF_Err | gf_isom_iff_create_image_grid_item (GF_ISOFile *isom_file, Bool root_meta, u32 meta_track_number, const char *item_name, u32 item_id, GF_ImageItemProperties *image_props) |
GF_Err | gf_isom_iff_create_image_overlay_item (GF_ISOFile *isom_file, Bool root_meta, u32 meta_track_number, const char *item_name, u32 item_id, GF_ImageItemProperties *image_props) |
GF_Err | gf_isom_iff_create_image_identity_item (GF_ISOFile *isom_file, Bool root_meta, u32 meta_track_number, const char *item_name, u32 item_id, GF_ImageItemProperties *image_props) |
GF_Err | gf_isom_iff_create_image_item_from_track (GF_ISOFile *isom_file, Bool root_meta, u32 meta_track_number, u32 media_track, const char *item_name, u32 item_id, GF_ImageItemProperties *image_props, GF_List *item_extent_refs) |
GF_Err | gf_isom_remove_meta_item (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 item_num, Bool keep_refs, const char *keep_props) |
GF_Err | gf_isom_set_meta_primary_item (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 item_num) |
GF_Err | gf_isom_meta_add_item_ref (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 from_id, u32 to_id, u32 type, u64 *ref_index) |
GF_Err | gf_isom_meta_add_item_group (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 item_id, u32 group_id, u32 group_type) |
GF_Err | gf_isom_get_meta_image_props (GF_ISOFile *isom_file, Bool root_meta, u32 track_num, u32 item_id, GF_ImageItemProperties *out_image_props, GF_List *unmapped_props) |
struct GF_ImageItemOverlayOffset |
struct GF_ImageItemProtection |
struct GF_ImageItemProperties |
Image item properties
Data Fields | ||
---|---|---|
u32 | width |
width in pixels |
u32 | height |
height in pixless |
u32 | hSpacing |
pixel aspect ratio numerator |
u32 | vSpacing |
pixel aspect ratio denominator |
u32 | hOffset |
horizontal offset in pixels |
u32 | vOffset |
vertical offset in pixels |
u32 | angle |
angle in radians |
u32 | mirror |
mirroring axis: 0 = not set, 1 = vertical, 2 = horizontal |
Bool | hidden |
hidden flag |
u32 | clap_wnum |
clean aperture |
u32 | clap_wden | |
u32 | clap_hnum | |
u32 | clap_hden | |
u32 | clap_hoden | |
u32 | clap_voden | |
s32 | clap_honum | |
s32 | clap_vonum | |
void * | config |
pointer to configuration box |
GF_TileItemMode | tile_mode |
tile item mode |
u32 | single_tile_number |
tile number |
Double | time |
time for importing |
Double | end_time |
end time for importing |
Double | step_time |
step time between imports |
u32 | sample_num |
sample num for importing |
char | iccPath[GF_MAX_PATH] |
file containg iCC data for importing |
Bool | alpha |
is alpha |
Bool | depth |
is depth |
u8 | num_channels |
number of channels |
u32 | bits_per_channel[3] |
bits per channels in bits |
u32 | num_grid_columns |
number of columns in grid |
u32 | num_grid_rows |
number of rows in grid |
u32 | overlay_count |
number of overlayed images |
GF_ImageItemOverlayOffset * | overlay_offsets |
overlay offsets |
u32 | overlay_canvas_fill_value_r |
canvas overlay color |
u32 | overlay_canvas_fill_value_g | |
u32 | overlay_canvas_fill_value_b | |
u32 | overlay_canvas_fill_value_a | |
GF_ImageItemProtection * | cenc_info |
protection info, NULL if item is not protected |
Bool | use_reference |
If set, reference image from sample sample_num (same file data used for sample and item) |
u32 | item_ref_id | |
Bool | copy_props | |
GF_ISOFile * | src_file | |
Bool | auto_grid | |
Double | auto_grid_ratio | |
u32 | av1_layer_size[3] | |
u8 | av1_op_index | |
u8 | interlace_type | |
const char * | aux_urn | |
const u8 * | aux_data | |
u32 | aux_data_len | |
u8 * | config_ba | |
u32 | config_ba_size |
struct GF_ItemExtentEntry |
enum GF_TileItemMode |
gets meta type
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
checks if the meta has an XML container (note that XML data can also be included as items).
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
GF_Err gf_isom_extract_meta_xml | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
char * | outName, | ||
Bool * | is_binary | ||
) |
extracts XML (if any) from given meta
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
outName | output file path and location for writing |
is_binary | indicates if XML is Bim or regular XML |
checks the number of items in a meta
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
GF_Err gf_isom_get_meta_item_info | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | item_num, | ||
u32 * | itemID, | ||
u32 * | type, | ||
u32 * | protection_scheme, | ||
u32 * | protection_scheme_version, | ||
Bool * | is_self_reference, | ||
const char ** | item_name, | ||
const char ** | item_mime_type, | ||
const char ** | item_encoding, | ||
const char ** | item_url, | ||
const char ** | item_urn | ||
) |
gets item info for the given item
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_num | 1-based index of item to query |
itemID | set to item ID in file (optional, can be NULL) |
type | set to item 4CC type |
protection_scheme | set to 0 if not protected, or scheme type used if item is protected. If protected but scheme type not present, set to 'unkw' |
protection_scheme_version | set to 0 if not protected, or scheme version used if item is protected |
is_self_reference | set to item is the file itself |
item_name | set to the item name (optional, can be NULL) |
item_mime_type | set to the item mime type (optional, can be NULL) |
item_encoding | set to the item content encoding type (optional, can be NULL) |
item_url | set to the URL of external resource containing this item data if any. |
item_urn | set to the URN of external resource containing this item data if any. |
u32 gf_isom_get_meta_item_flags | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | item_num | ||
) |
gets item flags for the given item
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_num | 1-based index of item to query |
u32 gf_isom_get_meta_item_by_id | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | item_ID | ||
) |
gets item index from item ID
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_ID | ID of the item to search |
GF_Err gf_isom_extract_meta_item | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | item_num, | ||
const char * | dump_file_name | ||
) |
extracts an item from given meta
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_num | 1-based index of item to query |
dump_file_name | if NULL, uses item name for dumping, otherwise dumps in given file object (binary write mode) |
GF_Err gf_isom_extract_meta_item_mem | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | item_id, | ||
u8 ** | out_data, | ||
u32 * | out_size, | ||
u32 * | out_alloc_size, | ||
const char ** | mime_type, | ||
Bool | use_annex_b | ||
) |
extracts item from given meta in memory
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_id | the ID of the item to dump |
out_data | set to allocated buffer containing the item, shall be freeed by user |
out_size | set to the size of the allocated buffer |
out_alloc_size | set to the allocated size of the buffer (this allows passing an existing buffer without always reallocating it) |
mime_type | set to the mime type of the item |
use_annex_b | for image items based on NALU formats (AVC, HEVC) indicates to extract the data as Annex B format (with start codes) |
GF_Err gf_isom_extract_meta_item_get_cenc_info | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | item_id, | ||
Bool * | is_protected, | ||
u32 * | skip_byte_block, | ||
u32 * | crypt_byte_block, | ||
const u8 ** | key_info, | ||
u32 * | key_info_size, | ||
u32 * | aux_info_type_parameter, | ||
u8 ** | sai_out_data, | ||
u32 * | sai_out_size, | ||
u32 * | sai_out_alloc_size | ||
) |
fetch CENC info for an item
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_id | the ID of the item to dump |
is_protected | set to GF_TRUE if item is protected |
skip_byte_block | set to skip_byte_block or 0 if no pattern |
crypt_byte_block | set to crypt_byte_block or 0 if no pattern |
key_info | set to key info |
key_info_size | set to key info size |
aux_info_type_parameter | set to the CENC auxiliary type param of SAI data |
sai_out_data | set to allocated buffer containing the item, shall be freeed by user - may be NULL to only retrieve the info |
sai_out_size | set to the size of the allocated buffer - may be NULL if sai_out_data is NULL |
sai_out_alloc_size | set to the allocated size of the buffer (this allows passing an existing buffer without always reallocating it) - may be NULL if sai_out_data is NULL |
gets primary item ID
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
u32 gf_isom_meta_get_item_ref_count | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | from_id, | ||
u32 | type | ||
) |
gets number of references of a given type from a given item ID
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
from_id | item ID to check |
type | reference type to check |
u32 gf_isom_meta_get_item_ref_id | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | from_id, | ||
u32 | type, | ||
u32 | ref_idx | ||
) |
gets ID of reference of a given type and index from a given item ID
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
from_id | item ID to check |
type | reference type to check |
ref_idx | 1-based index of reference to check |
u32 gf_isom_meta_item_has_ref | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | to_id, | ||
u32 | type | ||
) |
gets number of references of a given type to a given item ID
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
to_id | item ID to check |
type | reference type to check |
GF_Err gf_isom_set_meta_type | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | metaType | ||
) |
sets meta type (four char int, eg "mp21", ...), creating a meta box if not found
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
metaType | the type of meta to create. If 0, removes the meta box |
removes meta XML info if any
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
GF_Err gf_isom_set_meta_xml | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
char * | XMLFileName, | ||
unsigned char * | data, | ||
u32 | data_size, | ||
Bool | IsBinaryXML | ||
) |
sets meta XML data from file or memory - erase any previously (Binary)XML info
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
XMLFileName | the XML file to import as XML item, or NULL if data is specified |
data | buffer containing XML data, or NULL if file is specified |
data_size | size of buffer in bytes, ignored if file is specified |
IsBinaryXML | indicates if the content of the XML file is binary XML (BIM) or not |
GF_Err gf_isom_meta_get_next_item_id | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 * | item_id | ||
) |
gets next available item ID in a meta
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_id | set to the next available item ID |
GF_Err gf_isom_add_meta_item | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
Bool | self_reference, | ||
char * | resource_path, | ||
const char * | item_name, | ||
u32 | item_id, | ||
u32 | item_type, | ||
const char * | mime_type, | ||
const char * | content_encoding, | ||
const char * | URL, | ||
const char * | URN, | ||
GF_ImageItemProperties * | image_props | ||
) |
adds an item to a meta box from file
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
self_reference | if GF_TRUE, indicates that the item is in fact the entire container file |
resource_path | path to the file to add |
item_name | name of the item |
item_id | ID of the item, can be 0 |
item_type | four character code of item type |
mime_type | mime type of the item, can be NULL |
content_encoding | content encoding of the item, can be NULL |
URL | URL of the item for external data reference (data is not contained in meta parent file) |
URN | URN of the item for external data reference (data is not contained in meta parent file) |
image_props | image properties information for image items |
GF_Err gf_isom_add_meta_item_memory | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
const char * | item_name, | ||
u32 * | item_id, | ||
u32 | item_type, | ||
const char * | mime_type, | ||
const char * | content_encoding, | ||
GF_ImageItemProperties * | image_props, | ||
char * | data, | ||
u32 | data_len, | ||
GF_List * | item_extent_refs | ||
) |
adds an item to a meta box from memory
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_name | name of the item |
item_id | ID of the item, can be NULL, can be 0 in input, set to item ID after call |
item_type | four character code of item type |
mime_type | mime type of the item, can be NULL |
content_encoding | content encoding of the item, can be NULL |
image_props | image properties information for image items |
data | buffer containing the item data |
data_len | size of item data buffer in bytes |
item_extent_refs | list of item extend description, or NULL |
GF_Err gf_isom_add_meta_item_sample_ref | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
const char * | item_name, | ||
u32 * | item_id, | ||
u32 | item_type, | ||
const char * | mime_type, | ||
const char * | content_encoding, | ||
GF_ImageItemProperties * | image_props, | ||
GF_ISOTrackID | tk_id, | ||
u32 | sample_num | ||
) |
adds an item to a meta box as a reference to a sample
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_name | name of the item |
item_id | ID of the item, can be 0 |
item_type | four character code of item type |
mime_type | mime type of the item, can be NULL |
content_encoding | content encoding of the item, can be NULL |
image_props | image properties information for image items |
tk_id | source track ID |
sample_num | number of sample to reference |
GF_Err gf_isom_iff_create_image_grid_item | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | meta_track_number, | ||
const char * | item_name, | ||
u32 | item_id, | ||
GF_ImageItemProperties * | image_props | ||
) |
creates an image grid item
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if meta_track_number is 0 |
meta_track_number | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_name | name of the item |
item_id | ID of the item, can be 0 |
image_props | image properties information for image items |
GF_Err gf_isom_iff_create_image_overlay_item | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | meta_track_number, | ||
const char * | item_name, | ||
u32 | item_id, | ||
GF_ImageItemProperties * | image_props | ||
) |
creates an image overlay item
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if meta_track_number is 0 |
meta_track_number | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_name | name of the item |
item_id | ID of the item, can be 0 |
image_props | image properties information for image items |
GF_Err gf_isom_iff_create_image_identity_item | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | meta_track_number, | ||
const char * | item_name, | ||
u32 | item_id, | ||
GF_ImageItemProperties * | image_props | ||
) |
creates an image identity item
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if meta_track_number is 0 |
meta_track_number | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_name | name of the item |
item_id | ID of the item, can be 0 |
image_props | image properties information for image items |
GF_Err gf_isom_iff_create_image_item_from_track | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | meta_track_number, | ||
u32 | media_track, | ||
const char * | item_name, | ||
u32 | item_id, | ||
GF_ImageItemProperties * | image_props, | ||
GF_List * | item_extent_refs | ||
) |
creates image item(s) from samples of a media track
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if meta_track_number is 0 |
meta_track_number | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
media_track | track number to import samples from |
item_name | name of the item |
item_id | ID of the item, can be 0 |
image_props | image properties information for image items |
item_extent_refs | list of item extend description, or NULL |
GF_Err gf_isom_remove_meta_item | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | item_num, | ||
Bool | keep_refs, | ||
const char * | keep_props | ||
) |
removes item from meta
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_num | 1-based index of the item to remove |
keep_refs | do not modify item reference, typically used when replacing an item |
keep_props | keep property association for properties with 4CC listed in keep_props (coma-seprated list) |
GF_Err gf_isom_set_meta_primary_item | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | item_num | ||
) |
sets the given item as the primary one
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_num | 1-based index of the item to remove |
GF_Err gf_isom_meta_add_item_ref | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | from_id, | ||
u32 | to_id, | ||
u32 | type, | ||
u64 * | ref_index | ||
) |
adds an item reference to another item
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
from_id | ID of item the reference is from |
to_id | ID of item the reference is to |
type | four character code of reference |
ref_index | set to the 1-based index of the reference |
GF_Err gf_isom_meta_add_item_group | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | item_id, | ||
u32 | group_id, | ||
u32 | group_type | ||
) |
adds the item to the given group
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_id | ID of item to add |
group_id | ID of group, 0 if needs to be determined from the file |
group_type | four character code of group |
GF_Err gf_isom_get_meta_image_props | ( | GF_ISOFile * | isom_file, |
Bool | root_meta, | ||
u32 | track_num, | ||
u32 | item_id, | ||
GF_ImageItemProperties * | out_image_props, | ||
GF_List * | unmapped_props | ||
) |
gets image item properties
isom_file | the target ISO file |
root_meta | if GF_TRUE uses meta at the file, otherwise uses meta at the movie level if track number is 0 |
track_num | if GF_TRUE and root_meta is GF_FALSE, uses meta at the track level |
item_id | ID of the item |
out_image_props | set to the image properties information of the item |
unmapped_props | will contain all properties (box) not mapped to image properties. May be NULL. DO NOT DESTROY the content of the list |