libgpac
Documentation of the core library of GPAC
|
Data Structures | |
struct | GF_GenericSampleDescription |
struct | GF_3GPConfig |
struct | GF_DIMSDescription |
struct | GF_ISOM_Y3D_Info |
Functions | |
GF_GenericSampleDescription * | gf_isom_get_generic_sample_description (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_Err | gf_isom_get_jp2_config (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u8 **out_dsi, u32 *out_size) |
GF_Err | gf_isom_get_rvc_config (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u16 *rvc_predefined, u8 **data, u32 *size, const char **mime) |
GF_Err | gf_isom_set_rvc_config (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u16 rvc_predefined, char *mime, u8 *data, u32 size) |
GF_Err | gf_isom_update_video_sample_entry_fields (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u16 revision, u32 vendor, u32 temporalQ, u32 spatialQ, u32 horiz_res, u32 vert_res, u16 frames_per_sample, const char *compressor_name, s16 color_table_index) |
GF_Err | gf_isom_update_sample_description_from_template (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u8 *data, u32 size) |
GF_Err | gf_isom_new_generic_sample_description (GF_ISOFile *isom_file, u32 trackNumber, const char *URLname, const char *URNname, GF_GenericSampleDescription *udesc, u32 *outDescriptionIndex) |
GF_Err | gf_isom_clone_sample_description (GF_ISOFile *isom_file, u32 trackNumber, GF_ISOFile *orig_file, u32 orig_track, u32 orig_desc_index, const char *URLname, const char *URNname, u32 *outDescriptionIndex) |
GF_Err | gf_isom_get_stsd_template (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u8 **output, u32 *output_size) |
Bool | gf_isom_is_same_sample_description (GF_ISOFile *f1, u32 tk1, u32 sdesc_index1, GF_ISOFile *f2, u32 tk2, u32 sdesc_index2) |
GF_3GPConfig * | gf_isom_3gp_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_Err | gf_isom_3gp_config_new (GF_ISOFile *isom_file, u32 trackNumber, GF_3GPConfig *config, const char *URLname, const char *URNname, u32 *outDescriptionIndex) |
GF_Err | gf_isom_3gp_config_update (GF_ISOFile *isom_file, u32 trackNumber, GF_3GPConfig *config, u32 sampleDescriptionIndex) |
GF_AVCConfig * | gf_isom_avc_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_AVCConfig * | gf_isom_svc_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_AVCConfig * | gf_isom_mvc_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_ISOMAVCType | gf_isom_get_avc_svc_type (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_ISOMHEVCType | gf_isom_get_hevc_lhvc_type (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_HEVCConfig * | gf_isom_hevc_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_HEVCConfig * | gf_isom_lhvc_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_ISOMVVCType | gf_isom_get_vvc_type (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_VVCConfig * | gf_isom_vvc_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_AV1Config * | gf_isom_av1_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_VPConfig * | gf_isom_vp_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_DOVIDecoderConfigurationRecord * | gf_isom_dovi_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
Bool | gf_isom_needs_layer_reconstruction (GF_ISOFile *isom_file) |
GF_Err | gf_isom_set_nalu_extract_mode (GF_ISOFile *isom_file, u32 trackNumber, GF_ISONaluExtractMode nalu_extract_mode) |
GF_ISONaluExtractMode | gf_isom_get_nalu_extract_mode (GF_ISOFile *isom_file, u32 trackNumber) |
s32 | gf_isom_get_composition_offset_shift (GF_ISOFile *isom_file, u32 trackNumber) |
GF_Err | gf_isom_avc_config_new (GF_ISOFile *isom_file, u32 trackNumber, GF_AVCConfig *cfg, const char *URLname, const char *URNname, u32 *outDescriptionIndex) |
GF_Err | gf_isom_avc_config_update (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_AVCConfig *cfg) |
GF_Err | gf_isom_svc_config_new (GF_ISOFile *isom_file, u32 trackNumber, GF_AVCConfig *cfg, const char *URLname, const char *URNname, u32 *outDescriptionIndex) |
GF_Err | gf_isom_svc_config_update (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_AVCConfig *cfg, Bool is_additional) |
GF_Err | gf_isom_svc_config_del (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_Err | gf_isom_mvc_config_new (GF_ISOFile *isom_file, u32 trackNumber, GF_AVCConfig *cfg, const char *URLname, const char *URNname, u32 *outDescriptionIndex) |
GF_Err | gf_isom_mvc_config_update (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_AVCConfig *cfg, Bool is_additional) |
GF_Err | gf_isom_mvc_config_del (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_Err | gf_isom_avc_set_inband_config (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, Bool keep_xps) |
GF_Err | gf_isom_hevc_set_inband_config (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, Bool keep_xps) |
GF_Err | gf_isom_lhvc_force_inband_config (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_Err | gf_isom_hevc_set_tile_config (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_HEVCConfig *cfg, Bool is_base_track) |
GF_Err | gf_isom_hevc_config_new (GF_ISOFile *isom_file, u32 trackNumber, GF_HEVCConfig *cfg, const char *URLname, const char *URNname, u32 *outDescriptionIndex) |
GF_Err | gf_isom_hevc_config_update (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_HEVCConfig *cfg) |
GF_Err | gf_isom_lhvc_config_update (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_HEVCConfig *cfg, GF_ISOMLHEVCTrackType track_type) |
GF_Err | gf_isom_set_nalu_length_field (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u32 nalu_size_length) |
GF_Err | gf_isom_vvc_config_new (GF_ISOFile *isom_file, u32 trackNumber, GF_VVCConfig *cfg, const char *URLname, const char *URNname, u32 *outDescriptionIndex) |
GF_Err | gf_isom_vvc_set_inband_config (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, Bool keep_xps) |
GF_Err | gf_isom_vvc_config_update (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_VVCConfig *cfg) |
GF_Err | gf_isom_vp_config_new (GF_ISOFile *isom_file, u32 trackNumber, GF_VPConfig *cfg, const char *URLname, const char *URNname, u32 *outDescriptionIndex, u32 vpx_type) |
GF_Err | gf_isom_av1_config_new (GF_ISOFile *isom_file, u32 trackNumber, GF_AV1Config *cfg, const char *URLname, const char *URNname, u32 *outDescriptionIndex) |
GF_Err | gf_isom_get_dims_description (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_DIMSDescription *desc) |
GF_Err | gf_isom_new_dims_description (GF_ISOFile *isom_file, u32 trackNumber, GF_DIMSDescription *desc, const char *URLname, const char *URNname, u32 *outDescriptionIndex) |
GF_Err | gf_isom_get_udts_config (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_UDTSConfig *cfg) |
GF_AC3Config * | gf_isom_ac3_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex) |
GF_Err | gf_isom_ac3_config_new (GF_ISOFile *isom_file, u32 trackNumber, GF_AC3Config *cfg, const char *URLname, const char *URNname, u32 *outDescriptionIndex) |
GF_Err | gf_isom_ac3_config_update (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_AC3Config *cfg) |
GF_Err | gf_isom_truehd_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u32 *format_info, u32 *peak_data_rate) |
GF_Err | gf_isom_truehd_config_new (GF_ISOFile *isom_file, u32 trackNumber, char *URLname, char *URNname, u32 format_info, u32 peak_data_rate, u32 *outDescriptionIndex) |
GF_Err | gf_isom_flac_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u8 **dsi, u32 *dsi_size) |
GF_Err | gf_isom_flac_config_new (GF_ISOFile *isom_file, u32 trackNumber, u8 *metadata, u32 metadata_size, const char *URLname, const char *URNname, u32 *outDescriptionIndex) |
GF_Err | gf_isom_opus_config_get (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u8 **dsi, u32 *dsi_size) |
GF_Err | gf_isom_opus_config_get_desc (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_OpusConfig *opcfg) |
GF_Err | gf_isom_opus_config_new (GF_ISOFile *isom_file, u32 trackNumber, GF_OpusConfig *cfg, char *URLname, char *URNname, u32 *outDescriptionIndex) |
GF_Err | gf_isom_new_mj2k_description (GF_ISOFile *isom_file, u32 trackNumber, const char *URLname, const char *URNname, u32 *outDescriptionIndex, u8 *dsi, u32 dsi_len) |
GF_Err | gf_isom_tmcd_config_new (GF_ISOFile *isom_file, u32 trackNumber, u32 fps_num, u32 fps_den, s32 frames_per_counter_tick, Bool is_drop, Bool is_counter, u32 *outDescriptionIndex) |
GF_Err | gf_isom_get_tmcd_config (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u32 *tmcd_flags, u32 *tmcd_fps_num, u32 *tmcd_fps_den, u32 *tmcd_fpt) |
GF_Err | gf_isom_evte_config_new (GF_ISOFile *isom_file, u32 trackNumber, u32 *outDescriptionIndex) |
GF_Err | gf_isom_get_pcm_config (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u32 *flags, u32 *pcm_size) |
GF_Err | gf_isom_get_lpcm_config (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, Double *sample_rate, u32 *nb_channels, u32 *flags, u32 *pcm_size) |
GF_Err | gf_isom_new_mpha_description (GF_ISOFile *isom_file, u32 trackNumber, const char *URLname, const char *URNname, u32 *outDescriptionIndex, u8 *dsi, u32 dsi_size, u32 mha_subtype) |
const u8 * | gf_isom_get_mpegh_compatible_profiles (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, u32 *nb_compatible_profiles) |
GF_Err | gf_isom_set_mpegh_compatible_profiles (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, const u32 *profiles, u32 nb_compatible_profiles) |
GF_Err | gf_isom_get_y3d_info (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_ISOM_Y3D_Info *info) |
GF_Err | gf_isom_set_y3d_info (GF_ISOFile *isom_file, u32 trackNumber, u32 sampleDescriptionIndex, GF_ISOM_Y3D_Info *info) |
Sample Description functions are used to query and set codec parameters of a track
struct GF_GenericSampleDescription |
Unknown sample description
Data Fields | ||
---|---|---|
u32 | codec_tag |
codec tag is the containing box's tag, 0 if UUID is used |
bin128 | UUID |
entry UUID if no tag is used |
u16 | version |
codec version |
u16 | revision |
codec revision |
u32 | vendor_code |
vendor four character code |
u32 | temporal_quality |
temporal quality, video codecs only |
u32 | spatial_quality |
spatial quality, video codecs only |
u16 | width |
width in pixels, video codecs only |
u16 | height |
height in pixels, video codecs only |
u32 | h_res |
horizontal resolution as 16.16 fixed point, video codecs only |
u32 | v_res |
vertical resolution as 16.16 fixed point, video codecs only |
u16 | depth |
bit depth resolution in bits, video codecs only |
u16 | color_table_index |
color table, video codecs only |
char | compressor_name[33] |
compressor name, video codecs only |
u32 | samplerate |
sample rate, audio codecs only |
u16 | nb_channels |
number of channels, audio codecs only |
u16 | bits_per_sample |
bits per sample, audio codecs only |
Bool | is_qtff |
indicates if QTFF signaling should be used, audio codecs only |
u32 | lpcm_flags |
for lpcm only, indicates format flags |
u8 * | extension_buf | |
u32 | extension_buf_size | |
u32 | ext_box_wrap |
struct GF_3GPConfig |
struct GF_DIMSDescription |
Sample entry description for 3GPP DIMS
Data Fields | ||
---|---|---|
u8 | profile |
profile |
u8 | level |
level |
u8 | pathComponents |
number of components in path |
Bool | fullRequestHost |
full request |
Bool | streamType |
stream type |
u8 | containsRedundant |
has redundant sample (carousel) |
const char * | textEncoding |
text encoding string |
const char * | contentEncoding |
content encoding string |
const char * | content_script_types |
script string |
const char * | mime_type |
mime type string |
const char * | xml_schema_loc |
xml schema location string |
struct GF_ISOM_Y3D_Info |
structure holding youtube 360 video info
Data Fields | ||
---|---|---|
u32 | stereo_type |
stereo type holding youtube 360 video info |
u32 | projection_type |
0: unknown (not present), 1: cube map, 2: EQR, 3: mesh |
const char * | meta_data |
metadata about 3D software creator |
Bool | pose_present |
indicate default pause is present |
u32 | yaw |
default pause yaw as 16.16 fixed point |
u32 | pitch |
default pause pitch as 16.16 fixed point |
u32 | roll |
default pause roll as 16.16 fixed point |
u32 | layout |
cube map layout |
u32 | padding |
cube map padding |
u32 | top |
EQR top crop pos in frame, in pixels |
u32 | bottom |
EQR bottom crop pos in frame, in pixels |
u32 | left |
EQR left crop pos in frame, in pixels |
u32 | right |
EQR right crop pos in frame, in pixels |
enum GF_ISOMAVCType |
enum GF_ISOMHEVCType |
enum GF_ISOMVVCType |
NALU extract modes and flags
Updates L-HHVC config
GF_GenericSampleDescription* gf_isom_get_generic_sample_description | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets an unknown sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index (1-based) |
GF_Err gf_isom_get_jp2_config | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u8 ** | out_dsi, | ||
u32 * | out_size | ||
) |
gets the decoder configuration of a JP2 file
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index (1-based) |
out_dsi | set to the decoder configuration - shall be freed by user |
out_size | set to the decoder configuration size |
GF_Err gf_isom_get_rvc_config | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u16 * | rvc_predefined, | ||
u8 ** | data, | ||
u32 * | size, | ||
const char ** | mime | ||
) |
gets RVC (Reconvigurable Video Coding) config of a track for a given sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index (1-based) |
rvc_predefined | set to a predefined value of RVC |
data | set to the RVC config buffer if not predefined, NULL otherwise |
size | set to the RVC config buffer size |
mime | set to the associated mime type of the stream |
GF_Err gf_isom_set_rvc_config | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u16 | rvc_predefined, | ||
char * | mime, | ||
u8 * | data, | ||
u32 | size | ||
) |
sets the RVC config for the given track sample description
isom_file | the target ISO file |
trackNumber | the target track number |
sampleDescriptionIndex | the target sample description index |
rvc_predefined | the predefined RVC configuration code, 0 if not predefined |
mime | the associated mime type of the video |
data | the RVC configuration data; ignored if rvc_predefined is not 0 |
size | the size of the RVC configuration data; ignored if rvc_predefined is not 0 |
GF_Err gf_isom_update_video_sample_entry_fields | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u16 | revision, | ||
u32 | vendor, | ||
u32 | temporalQ, | ||
u32 | spatialQ, | ||
u32 | horiz_res, | ||
u32 | vert_res, | ||
u16 | frames_per_sample, | ||
const char * | compressor_name, | ||
s16 | color_table_index | ||
) |
updates fields of given visual sample description - these fields are reserved in ISOBMFF, this should only be used for QT, see QTFF
isom_file | the target ISO file |
trackNumber | the target track number |
sampleDescriptionIndex | the target sample description |
revision | revision of the sample description format |
vendor | four character code of the vendor |
temporalQ | temporal quality |
spatialQ | spatial quality |
horiz_res | horizontal resolution as 16.16 fixed point number |
vert_res | vertical resolution as 16.16 fixed point number |
frames_per_sample | number of frames per media samples |
compressor_name | human readable name for the compressor |
color_table_index | color table index, use -1 if no color table (most common case) |
GF_Err gf_isom_update_sample_description_from_template | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u8 * | data, | ||
u32 | size | ||
) |
updates a sample description from a serialized sample description box. Only child boxes are removed in the process
isom_file | the target ISO file |
trackNumber | the target track number |
sampleDescriptionIndex | the target sample description |
data | a serialized sample description box |
size | size of the serialized sample description |
GF_Err gf_isom_new_generic_sample_description | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
const char * | URLname, | ||
const char * | URNname, | ||
GF_GenericSampleDescription * | udesc, | ||
u32 * | outDescriptionIndex | ||
) |
creates a new unknown StreamDescription in the file.
isom_file | the target ISO file |
trackNumber | the target track |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
udesc | generic sample description information to use |
outDescriptionIndex | set to index of the new sample description |
GF_Err gf_isom_clone_sample_description | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_ISOFile * | orig_file, | ||
u32 | orig_track, | ||
u32 | orig_desc_index, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex | ||
) |
clones a sample description without inspecting media types
isom_file | the destination ISO file |
trackNumber | the destination track |
orig_file | the source ISO file |
orig_track | the source track |
orig_desc_index | the source sample description to clone |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to index of the new sample description |
GF_Err gf_isom_get_stsd_template | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u8 ** | output, | ||
u32 * | output_size | ||
) |
gets the sample description template of a track. This serializes sample description box
isom_file | the destination ISO file |
trackNumber | the destination track |
sampleDescriptionIndex | the target sample description |
output | will be set to a newly allocated buffer containing the serialized box - caller shall free it |
output_size | will be set to the size of the allocated buffer |
Bool gf_isom_is_same_sample_description | ( | GF_ISOFile * | f1, |
u32 | tk1, | ||
u32 | sdesc_index1, | ||
GF_ISOFile * | f2, | ||
u32 | tk2, | ||
u32 | sdesc_index2 | ||
) |
checks if sample descriptions are the same. This does include self-contained checking and reserved flags. The specific media cfg (DSI & co) is not analysed, only a memory comparaison is done
f1 | the first ISO file |
tk1 | the first track |
sdesc_index1 | the first sample description |
f2 | the second ISO file |
tk2 | the second track |
sdesc_index2 | the second sample description |
GF_3GPConfig* gf_isom_3gp_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets a 3GPP sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_Err gf_isom_3gp_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_3GPConfig * | config, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex | ||
) |
creates a 3GPP sample description
isom_file | the target ISO file |
trackNumber | the target track |
config | the 3GP config for this sample description |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_3gp_config_update | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_3GPConfig * | config, | ||
u32 | sampleDescriptionIndex | ||
) |
updates the 3GPP config - subtypes shall NOT differ
isom_file | the target ISO file |
trackNumber | the target track |
config | the 3GP config for this sample description |
sampleDescriptionIndex | the target sample description index |
GF_AVCConfig* gf_isom_avc_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets AVC config for a sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_AVCConfig* gf_isom_svc_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets SVC config for a sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_AVCConfig* gf_isom_mvc_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets MVC config for a sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_ISOMAVCType gf_isom_get_avc_svc_type | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets the AVC family type for a sample description
isom_file | the target ISO file |
trackNumber | the target hint track |
sampleDescriptionIndex | the target sample description index |
GF_ISOMHEVCType gf_isom_get_hevc_lhvc_type | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets the HEVC family type for a sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_HEVCConfig* gf_isom_hevc_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets HEVC config for a sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_HEVCConfig* gf_isom_lhvc_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets LHVC config for a sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_ISOMVVCType gf_isom_get_vvc_type | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets the VVC family type for a sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_VVCConfig* gf_isom_vvc_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets VVC config for a sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_AV1Config* gf_isom_av1_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets AV1 config for a sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_VPConfig* gf_isom_vp_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets VP8/9 config for a sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_DOVIDecoderConfigurationRecord* gf_isom_dovi_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets DOVI config for a sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
Bool gf_isom_needs_layer_reconstruction | ( | GF_ISOFile * | isom_file | ) |
checks if some tracks in file needs layer reconstruction
isom_file | the target ISO file |
GF_Err gf_isom_set_nalu_extract_mode | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_ISONaluExtractMode | nalu_extract_mode | ||
) |
sets the NALU extraction mode for this track
isom_file | the target ISO file |
trackNumber | the target track |
nalu_extract_mode | the NALU extraction mode to set |
GF_ISONaluExtractMode gf_isom_get_nalu_extract_mode | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber | ||
) |
gets the NALU extraction mode for this track
isom_file | the target ISO file |
trackNumber | the target track |
gets the composition offset shift if any for track using negative ctts
isom_file | the target ISO file |
trackNumber | the target track |
GF_Err gf_isom_avc_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_AVCConfig * | cfg, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex | ||
) |
creates a new AVC sample description
isom_file | the target ISO file |
trackNumber | the target track |
cfg | the AVC config for this sample description |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_avc_config_update | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_AVCConfig * | cfg | ||
) |
updates an AVC sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index to update |
cfg | the AVC config for this sample description |
GF_Err gf_isom_svc_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_AVCConfig * | cfg, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex | ||
) |
creates a new SVC sample description
isom_file | the target ISO file |
trackNumber | the target track |
cfg | the SVC config for this sample description |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_svc_config_update | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_AVCConfig * | cfg, | ||
Bool | is_additional | ||
) |
updates an SVC sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index to update |
cfg | the AVC config for this sample description |
is_additional | if set, the SVCConfig will be added to the AVC sample description, otherwise the sample description will be SVC-only |
GF_Err gf_isom_svc_config_del | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
deletes an SVC sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index to delete |
GF_Err gf_isom_mvc_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_AVCConfig * | cfg, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex | ||
) |
creates a new MVC sample description
isom_file | the target ISO file |
trackNumber | the target track |
cfg | the SVC config for this sample description |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_mvc_config_update | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_AVCConfig * | cfg, | ||
Bool | is_additional | ||
) |
updates an MVC sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index to update |
cfg | the AVC config for this sample description |
is_additional | if set, the MVCConfig will be added to the AVC sample description, otherwise the sample description will be MVC-only |
GF_Err gf_isom_mvc_config_del | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
deletes an MVC sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index to delete |
GF_Err gf_isom_avc_set_inband_config | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
Bool | keep_xps | ||
) |
sets avc3 entry type (inband SPS/PPS) instead of avc1 (SPS/PPS in avcC box)
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
keep_xps | if set to GF_TRUE, keeps parameter set in the configuration record otherwise removes them |
GF_Err gf_isom_hevc_set_inband_config | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
Bool | keep_xps | ||
) |
sets hev1 entry type (inband SPS/PPS) instead of hvc1 (SPS/PPS in hvcC box)
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
keep_xps | if set to GF_TRUE, keeps parameter set in the configuration record otherwise removes them |
GF_Err gf_isom_lhvc_force_inband_config | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
sets lhe1 entry type instead of lhc1 but keep lhcC box intact
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_Err gf_isom_hevc_set_tile_config | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_HEVCConfig * | cfg, | ||
Bool | is_base_track | ||
) |
sets hvt1 entry type (tile track) or hev2/hvc2 type if is_base_track is set. It is the use responsibility to set the tbas track reference to the base hevc track
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
cfg | may be set to the tile track configuration to indicate sub-profile of the tile, or NULL |
is_base_track | if set to GF_TRUE, indicates this is a tile base track, otherwise this is a tile track |
GF_Err gf_isom_hevc_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_HEVCConfig * | cfg, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex | ||
) |
creates a new HEVC sample description
isom_file | the target ISO file |
trackNumber | the target track |
cfg | the HEVC config for this sample description |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_hevc_config_update | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_HEVCConfig * | cfg | ||
) |
updates an HEVC sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index to update |
cfg | the HEVC config for this sample description |
GF_Err gf_isom_lhvc_config_update | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_HEVCConfig * | cfg, | ||
GF_ISOMLHEVCTrackType | track_type | ||
) |
updates an HEVC sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index to update |
cfg | the LHVC config for this sample description |
track_type | indicates the LHVC track type to set |
GF_Err gf_isom_set_nalu_length_field | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u32 | nalu_size_length | ||
) |
sets nalu size length
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index to update |
nalu_size_length | the new NALU size length in bytes |
GF_Err gf_isom_vvc_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_VVCConfig * | cfg, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex | ||
) |
creates a new VVC sample description
isom_file | the target ISO file |
trackNumber | the target track |
cfg | the VVC config for this sample description |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_vvc_set_inband_config | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
Bool | keep_xps | ||
) |
sets vvi1 entry type (inband SPS/PPS) instead of vvc1 (SPS/PPS in hvcC box)
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
keep_xps | if set to GF_TRUE, keeps parameter set in the configuration record otherwise removes them |
GF_Err gf_isom_vvc_config_update | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_VVCConfig * | cfg | ||
) |
updates vvcC configuration
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
cfg | new config to set |
GF_Err gf_isom_vp_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_VPConfig * | cfg, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex, | ||
u32 | vpx_type | ||
) |
creates new VPx config
isom_file | the target ISO file |
trackNumber | the target track |
cfg | the VPx config for this sample description |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
vpx_type | four character code of entry ('vp08', 'vp09' or 'vp10') |
GF_Err gf_isom_av1_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_AV1Config * | cfg, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex | ||
) |
creates new AV1 config
isom_file | the target ISO file |
trackNumber | the target track |
cfg | the AV1 config for this sample description |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_get_dims_description | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_DIMSDescription * | desc | ||
) |
gets a DIMS sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
desc | set to the DIMS description |
GF_Err gf_isom_new_dims_description | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_DIMSDescription * | desc, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex | ||
) |
creates a DIMS sample description
isom_file | the target ISO file |
trackNumber | the target track |
desc | the DIMS config for this sample description |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_get_udts_config | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_UDTSConfig * | cfg | ||
) |
gets a UDTS Specific Configuration sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
cfg | set to the UDTS Specific Configuration |
GF_AC3Config* gf_isom_ac3_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex | ||
) |
gets an AC3 sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
GF_Err gf_isom_ac3_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_AC3Config * | cfg, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex | ||
) |
creates an AC3 or EAC3 sample description
isom_file | the target ISO file |
trackNumber | the target track |
cfg | the AC3 config for this sample description |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_ac3_config_update | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_AC3Config * | cfg | ||
) |
updates an AC3 or EAC3 sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
cfg | the AC3 config for this sample description |
GF_Err gf_isom_truehd_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u32 * | format_info, | ||
u32 * | peak_data_rate | ||
) |
gets TrueHD sample description info
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
format_info | set to the format info - may be NULL |
peak_data_rate | set to the peak data rate info - may be NULL |
GF_Err gf_isom_truehd_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
char * | URLname, | ||
char * | URNname, | ||
u32 | format_info, | ||
u32 | peak_data_rate, | ||
u32 * | outDescriptionIndex | ||
) |
creates a TrueHD sample description
isom_file | the target ISO file |
trackNumber | the target track |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
format_info | TrueHD format info |
peak_data_rate | TrueHD peak data rate |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_flac_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u8 ** | dsi, | ||
u32 * | dsi_size | ||
) |
gets a FLAC sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
dsi | set to the flac decoder config - shall be freeed by caller |
dsi_size | set to the size of the flac decoder config |
GF_Err gf_isom_flac_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u8 * | metadata, | ||
u32 | metadata_size, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex | ||
) |
creates a FLAC sample description
isom_file | the target ISO file |
trackNumber | the target track |
metadata | the flac decoder config buffer |
metadata_size | the size of flac decoder config |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_opus_config_get | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u8 ** | dsi, | ||
u32 * | dsi_size | ||
) |
gets a OPUS sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
dsi | set to the OPUS decoder config (without OpusHead tag), may be NULL - shall be freeed by caller |
dsi_size | set to the size of the OPUS decoder config, may be NULL |
GF_Err gf_isom_opus_config_get_desc | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_OpusConfig * | opcfg | ||
) |
gets a OPUS sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
opcfg | opus config to get |
GF_Err gf_isom_opus_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
GF_OpusConfig * | cfg, | ||
char * | URLname, | ||
char * | URNname, | ||
u32 * | outDescriptionIndex | ||
) |
creates a new opus sample description
isom_file | the target ISO file |
trackNumber | the target track |
cfg | the opus stream configuration |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_new_mj2k_description | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex, | ||
u8 * | dsi, | ||
u32 | dsi_len | ||
) |
creates a motion jpeg 2000 sample description
isom_file | the target ISO file |
trackNumber | the target track |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
dsi | the jpeg2000 decoder config buffer |
dsi_len | the size of jpeg2000 decoder config |
GF_Err gf_isom_tmcd_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | fps_num, | ||
u32 | fps_den, | ||
s32 | frames_per_counter_tick, | ||
Bool | is_drop, | ||
Bool | is_counter, | ||
u32 * | outDescriptionIndex | ||
) |
creates a time code metadata sample description
isom_file | the target ISO file |
trackNumber | the target track |
fps_num | the frame rate numerator |
fps_den | the frame rate denumerator (frame rate numerator will be track media timescale) |
frames_per_counter_tick | if not 0, enables counter mode (sample data is an counter) and use this value as number of frames per counter tick. Otherwise, disables counter mode (sample data write h,m,s,frames) |
is_drop | indicates that the time code in samples is a drop timecode |
is_counter | indicates that the counter flag should be set |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_get_tmcd_config | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u32 * | tmcd_flags, | ||
u32 * | tmcd_fps_num, | ||
u32 * | tmcd_fps_den, | ||
u32 * | tmcd_fpt | ||
) |
gets information of a time code metadata sample description
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
tmcd_flags | set to the timecode description flags |
tmcd_fps_num | set to fps numerator of timecode description |
tmcd_fps_den | set to fps denominator of timecode description |
tmcd_fpt | set to the ticks per second for counter mode (tmcd_flags & 0x1) |
GF_Err gf_isom_evte_config_new | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 * | outDescriptionIndex | ||
) |
creates an event message track metadata sample description
isom_file | the target ISO file |
trackNumber | the target track |
outDescriptionIndex | set to the index of the created sample description |
GF_Err gf_isom_get_pcm_config | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u32 * | flags, | ||
u32 * | pcm_size | ||
) |
gets information of a raw PCM sample description, ISOBMFF style
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
flags | set to the pcm config flags (0: big endian, 1: little endian), may be NULL |
pcm_size | set to PCM sample size (per channel, 16, 24, 32, 64, may be NULL |
GF_Err gf_isom_get_lpcm_config | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
Double * | sample_rate, | ||
u32 * | nb_channels, | ||
u32 * | flags, | ||
u32 * | pcm_size | ||
) |
gets information of a raw PCM sample description, QT style (lpcm codecid)
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
sample_rate | set to the pcm sample rate, may be NULL |
nb_channels | set to the pcm channel count, may be NULL |
flags | set to the pcm config flags (1: float, 2: big endian, 4: signed, other flags cf QTFF), may be NULL |
pcm_size | set to PCM sample size (per channel, 16, 24, 32, 64, may be NULL |
GF_Err gf_isom_new_mpha_description | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
const char * | URLname, | ||
const char * | URNname, | ||
u32 * | outDescriptionIndex, | ||
u8 * | dsi, | ||
u32 | dsi_size, | ||
u32 | mha_subtype | ||
) |
creates a MPHA sample description
isom_file | the target ISO file |
trackNumber | the target track |
URLname | URL value of the data reference, NULL if no data reference (media in the file) |
URNname | URN value of the data reference, NULL if no data reference (media in the file) |
outDescriptionIndex | set to the index of the created sample description |
dsi | the MPEGH audio config (payload of mhaC box): byte[0]=1 (config version) ,byte[1]=ProfileLevel, byte[2]=channel layout, byte[3],byte[4]: the size of what follows the rest being a mpegh3daConfig |
dsi_size | the size of the MPEGH audio config |
mha_subtype | mha1/mha2:/mhm1/mhm2 subtype to use |
const u8* gf_isom_get_mpegh_compatible_profiles | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
u32 * | nb_compatible_profiles | ||
) |
gets compatible profile list for mpegh entry
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
nb_compatible_profiles | set to the number of compatible profiles returned |
GF_Err gf_isom_set_mpegh_compatible_profiles | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
const u32 * | profiles, | ||
u32 | nb_compatible_profiles | ||
) |
sets compatible profile list for mpegh entry
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
profiles | array of compatible profiles, NULL to remove compatible profiles |
nb_compatible_profiles | number of compatible profiles in list, 0 to remove compatible profiles |
GF_Err gf_isom_get_y3d_info | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_ISOM_Y3D_Info * | info | ||
) |
gets youtube 3D/360 info
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
info | filled with 3D info |
GF_Err gf_isom_set_y3d_info | ( | GF_ISOFile * | isom_file, |
u32 | trackNumber, | ||
u32 | sampleDescriptionIndex, | ||
GF_ISOM_Y3D_Info * | info | ||
) |
sets youtube 3D/360 info
isom_file | the target ISO file |
trackNumber | the target track |
sampleDescriptionIndex | the target sample description index |
info | 3D info to set |