heif_context_get_track

Function heif_context_get_track 

Source
pub unsafe extern "C" fn heif_context_get_track(
    arg1: *const heif_context,
    id: u32,
) -> *mut heif_track
Expand description

Get the heif_track object for the given track ID. If you pass id=0, the first visual track will be returned. If there is no track with the given ID or if 0 is passed and there is no visual track, NULL will be returned.

@note Tracks never have a zero ID. This is why we can use this as a special value to find the first visual track.

@param id Track id or 0 for the first visual track. @return heif_track object. You must free this after use. / // Use id=0 for the first visual track.