# HG changeset patch # User richwareham # Date 1027608153 0 # Node ID 2bd4a78eefcecb78f66fee59f71755cc55411188 # Parent dcde6d9cea7af5ddd7e6b2c9e7347a14449da03e Patch from aschultz@cs.uni-magdeburg.de to allow for still-frame 'peek-ahead' diff -r dcde6d9cea7a -r 2bd4a78eefce dvdnav.c --- a/dvdnav.c Sun Jul 21 10:16:45 2002 +0000 +++ b/dvdnav.c Thu Jul 25 14:42:33 2002 +0000 @@ -976,8 +976,23 @@ return S_OK; } +dsi_t* dvdnav_get_current_nav_dsi(dvdnav_t *this) { + if(!this || !this->vm) return 0; + return &this->dsi; +} + +uint32_t dvdnav_get_next_still_flag(dvdnav_t *this) { + if(!this || !this->vm) { + return S_ERR; + } + return this->position_next.still; +} + /* * $Log$ + * Revision 1.28 2002/07/25 14:42:33 richwareham + * Patch from aschultz@cs.uni-magdeburg.de to allow for still-frame 'peek-ahead' + * * Revision 1.27 2002/07/12 15:46:44 mroi * use new memcopy'less read ahead cache * diff -r dcde6d9cea7a -r 2bd4a78eefce dvdnav.h --- a/dvdnav.h Sun Jul 21 10:16:45 2002 +0000 +++ b/dvdnav.h Thu Jul 25 14:42:33 2002 +0000 @@ -503,6 +503,16 @@ pci_t* dvdnav_get_current_nav_pci(dvdnav_t *self); /** + * Returns the DSI structure associated + * with the current position. + * + * \param self Pointer to dvdnav_t associated with this operation. + * + * \sa dsi_t (in libdvdread) + */ +dsi_t* dvdnav_get_current_nav_dsi(dvdnav_t *self); + +/** * Get the area associated with a certain button. * * \param nav_pci Pointer to the PCI structure you may have got via @@ -804,6 +814,13 @@ int *number_of_angles); /** + * Returns the still time status from the next cell + * + * \param self Pointer to dvdnav_t associated with this operation. + */ +uint32_t dvdnav_get_next_still_flag(dvdnav_t *self); + +/** * @} */