[libdvdnav-devel] [Git][videolan/libdvdnav][master] Expose dvdnav_jump_to_sector_by_time

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Fri Jun 10 09:18:18 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdnav


Commits:
9831fe01 by Miguel Borges de Freitas at 2022-06-08T16:55:48+01:00
Expose dvdnav_jump_to_sector_by_time

- - - - -


1 changed file:

- src/dvdnav/dvdnav.h


Changes:

=====================================
src/dvdnav/dvdnav.h
=====================================
@@ -431,6 +431,19 @@ int64_t dvdnav_get_current_time(dvdnav_t *self);
 dvdnav_status_t dvdnav_time_search(dvdnav_t *self,
                                    uint64_t time);
 
+/*
+ * Find the nearest vobu and jump to it
+ *
+ * Alternative to dvdnav_time_search (see full documentation on searching.jump_to_time.readme)
+ * Jumps to the provided PTS (which is defined as time_in_ms * 90). mode means the navigation mode,
+ * currently only the Default (0) is implemented:
+ *  0: Default. Jump to a time which may be either <> time_in_pts_ticks
+ *  1: After. Always jump to a time that is > time_in_pts_ticks
+ * -1: Before. Always jump to a time that is < time_in_pts_ticks
+ */
+dvdnav_status_t dvdnav_jump_to_sector_by_time(dvdnav_t *self,
+                                              uint64_t time_in_pts_ticks, int32_t mode);
+
 /*
  * Stop playing current position and play the "GoUp"-program chain.
  * (which generally leads to the title menu or a higher-level menu).



View it on GitLab: https://code.videolan.org/videolan/libdvdnav/-/commit/9831fe01488bd0e9d1e3521195da6940cd8415eb

-- 
View it on GitLab: https://code.videolan.org/videolan/libdvdnav/-/commit/9831fe01488bd0e9d1e3521195da6940cd8415eb
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the libdvdnav-devel mailing list