summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/stream_mgr.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-01-03 17:14:28 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-01-03 17:14:28 +0000
commita5fc3f4df4bec2b6ae1c22fb83cf495f31773122 (patch)
treeba78abac0ee9e5d564907d9e8bee4020d98cb9a8 /apps/plugins/mpegplayer/stream_mgr.h
parentd1cb32a93f26ef42ae864b911bbd425c49cc4109 (diff)
downloadrockbox-a5fc3f4df4bec2b6ae1c22fb83cf495f31773122.tar.gz
rockbox-a5fc3f4df4bec2b6ae1c22fb83cf495f31773122.zip
Initial WVS for mpegplayer. Adjusts to the user's preferred font and uses FF/RW preferences set for playback. Picked a random color for the base WVS color but it could be configured. Some engine tweaks to accomodate it since certain nescessities are clearer now. Fix a clipped YUV output bug in the SIM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15991 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/stream_mgr.h')
-rw-r--r--apps/plugins/mpegplayer/stream_mgr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/stream_mgr.h b/apps/plugins/mpegplayer/stream_mgr.h
index 63452ecbc0..dd5d8cabec 100644
--- a/apps/plugins/mpegplayer/stream_mgr.h
+++ b/apps/plugins/mpegplayer/stream_mgr.h
@@ -105,6 +105,9 @@ int stream_seek(uint32_t time, int whence);
105/* Show/Hide the video image at the current seekpoint */ 105/* Show/Hide the video image at the current seekpoint */
106bool stream_show_vo(bool show); 106bool stream_show_vo(bool show);
107 107
108/* Set the visible section of video */
109void stream_vo_set_clip(const struct vo_rect *rc);
110
108#ifndef HAVE_LCD_COLOR 111#ifndef HAVE_LCD_COLOR
109/* Set the gray overlay rectangle */ 112/* Set the gray overlay rectangle */
110bool stream_set_gray_rect(const struct vo_rect *rc); 113bool stream_set_gray_rect(const struct vo_rect *rc);
@@ -114,12 +117,19 @@ void stream_gray_show(bool show);
114/* Display thumbnail of the current seekpoint */ 117/* Display thumbnail of the current seekpoint */
115bool stream_display_thumb(const struct vo_rect *rc); 118bool stream_display_thumb(const struct vo_rect *rc);
116 119
120/* Draw the frame at the current position */
121bool stream_draw_frame(bool no_prepare);
122
117/* Return video dimensions */ 123/* Return video dimensions */
118bool stream_vo_get_size(struct vo_ext *sz); 124bool stream_vo_get_size(struct vo_ext *sz);
119 125
120/* Returns the resume time in timestamp ticks */ 126/* Returns the resume time in timestamp ticks */
121uint32_t stream_get_resume_time(void); 127uint32_t stream_get_resume_time(void);
122 128
129/* Returns stream_get_time if no seek is pending or else the
130 last time give to seek */
131uint32_t stream_get_seek_time(uint32_t *start);
132
123/* Return the absolute stream time in clock ticks - adjusted by 133/* Return the absolute stream time in clock ticks - adjusted by
124 * master clock stream via audio timestamps */ 134 * master clock stream via audio timestamps */
125static inline uint32_t stream_get_time(void) 135static inline uint32_t stream_get_time(void)