diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2011-01-03 16:41:19 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2011-01-03 16:41:19 +0000 |
| commit | b664f62e36b5f0ac296567e423816dab3811075d (patch) | |
| tree | 7ca49c59d7332d7c1e51139efa12466b6730e511 /apps/plugins/mpegplayer/stream_thread.h | |
| parent | f8fde296a63dd06efef5cf71c9fdb2c26c5a3fd6 (diff) | |
| download | rockbox-b664f62e36b5f0ac296567e423816dab3811075d.zip rockbox-b664f62e36b5f0ac296567e423816dab3811075d.tar.gz rockbox-b664f62e36b5f0ac296567e423816dab3811075d.tar.bz2 rockbox-b664f62e36b5f0ac296567e423816dab3811075d.tar.xz | |
MPEGPlayer graphics mutation: Implement a more visible FPS display and remove the debugging info from it. Tweak thumbnailing and printing of unavailable frames.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28960 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/stream_thread.h')
| -rw-r--r-- | apps/plugins/mpegplayer/stream_thread.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/stream_thread.h b/apps/plugins/mpegplayer/stream_thread.h index 1d3a445..5791a49 100644 --- a/apps/plugins/mpegplayer/stream_thread.h +++ b/apps/plugins/mpegplayer/stream_thread.h @@ -108,6 +108,8 @@ enum stream_message VIDEO_PRINT_FRAME, /* Print the frame at the current position */ VIDEO_PRINT_THUMBNAIL, /* Print a thumbnail of the current position */ VIDEO_SET_CLIP_RECT, /* Set the visible video area */ + VIDEO_GET_CLIP_RECT, /* Return the visible video area */ + VIDEO_SET_POST_FRAME_CALLBACK, /* Set a callback after frame is drawn */ STREAM_MESSAGE_LAST, }; @@ -160,9 +162,20 @@ extern struct stream audio_str IBSS_ATTR; bool video_thread_init(void); void video_thread_exit(void); + +struct video_output_stats +{ + int num_drawn; /* Number of frames drawn since reset */ + int num_skipped; /* Number of frames skipped since reset */ + int fps; /* fps rate in 100ths of a frame per second */ +}; + +void video_thread_get_stats(struct video_output_stats *s); + bool audio_thread_init(void); void audio_thread_exit(void); + /* Some queue function wrappers to keep things clean-ish */ /* For stream use only */ |