diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-07-12 20:31:49 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-07-12 20:31:49 +0000 |
commit | 953fa1914a55c6f711578983b0fb0344e3b10fc6 (patch) | |
tree | b63ecd972ac18c2351c6a478314d0904a2ac8b0f /include | |
parent | 0ec2496491e9921554799839a8c74a3aa4a1968d (diff) | |
download | xine-lib-953fa1914a55c6f711578983b0fb0344e3b10fc6.tar.gz xine-lib-953fa1914a55c6f711578983b0fb0344e3b10fc6.tar.bz2 |
reports the number of skipped/discarded frames
http://sourceforge.net/mailarchive/forum.php?thread_id=2753813&forum_id=7131
CVS patchset: 5155
CVS date: 2003/07/12 20:31:49
Diffstat (limited to 'include')
-rw-r--r-- | include/xine.h.in | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/xine.h.in b/include/xine.h.in index 1c5ae1650..d0743f756 100644 --- a/include/xine.h.in +++ b/include/xine.h.in @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine.h.in,v 1.89 2003/06/18 12:59:39 mroi Exp $ + * $Id: xine.h.in,v 1.90 2003/07/12 20:31:49 miguelfreitas Exp $ * * public xine-lib (libxine) interface and documentation * @@ -813,6 +813,8 @@ const char *xine_get_meta_info (xine_stream_t *stream, int info); #define XINE_STREAM_INFO_MAX_AUDIO_CHANNEL 24 #define XINE_STREAM_INFO_MAX_SPU_CHANNEL 25 #define XINE_STREAM_INFO_AUDIO_MODE 26 +#define XINE_STREAM_INFO_SKIPPED_FRAMES 27 /* for 1000 frames delivered */ +#define XINE_STREAM_INFO_DISCARDED_FRAMES 28 /* for 1000 frames delivered */ /* xine_get_meta_info */ #define XINE_META_INFO_TITLE 0 @@ -1256,6 +1258,7 @@ void xine_config_reset (xine_t *self); #define XINE_EVENT_MRL_REFERENCE 9 /* demuxer->frontend: MRL reference(s) for the real stream */ #define XINE_EVENT_UI_NUM_BUTTONS 10 /* number of buttons for interactive menus */ #define XINE_EVENT_SPU_BUTTON 11 /* the mouse pointer enter/leave a button */ +#define XINE_EVENT_DROPPED_FRAMES 12 /* number of dropped frames is too high */ /* input events coming from frontend */ #define XINE_EVENT_INPUT_MOUSE_BUTTON 101 @@ -1501,6 +1504,20 @@ typedef struct { #endif +/* event XINE_EVENT_DROPPED_FRAMES is generated if libxine detects a + * high number of dropped frames (above configured thresholds). it can + * be used by the front end to warn about performance problems. + */ +typedef struct { + /* these values are given for 1000 frames delivered */ + /* (that is, divide by 10 to get percentages) */ + int skipped_frames; + int skipped_threshold; + int discarded_frames; + int discarded_threshold; +} xine_dropped_frames_t; + + /* * Defined message types for XINE_EVENT_UI_MESSAGE * This is the mechanism to report async errors from engine. |