Skip to content
  • john's avatar
    add some basic navigation methods · 27cb5355
    john authored
    char* nav_find_main_title(char *root);
    	Find the playlist that corresponds to the main title.
    	for now this is done by finding the longest title that
    	contains no duplicate clips. "root" is the base of the 
    	BD tree. The returned file name is the basename of the playlist.
    
    NAV_TITLE* nav_title_open(char *root, char *playlist);
    	Open a playlist for navigation.  "root" is the base
    	of the BD tree. "playlist" is the basename of the playlist.
    
    void nav_title_close(NAV_TITLE *title);
    	Close a previously opened title.
    
    NAV_CLIP* nav_next_clip(NAV_TITLE *title);
    	Get information about the next clip in a title.  When called for
    	the first time after opening a title, the first clip is returned.
    	The clip information contains m2ts file basename, start packet number,
    	end packet number, and connection condition.  Packet numbers are
    	in 192 byte TS packet units.
    
    examples/bdsplice.c has been modified to demonstrate nav_title_open, 
    and nav_next_clip.
    
    example/mpls_dump has been modified to demonstrate nav_find_main_title.
    
    27cb5355