summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/stream_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer/stream_thread.h')
-rw-r--r--apps/plugins/mpegplayer/stream_thread.h13
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 */