From a5fc3f4df4bec2b6ae1c22fb83cf495f31773122 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 3 Jan 2008 17:14:28 +0000 Subject: 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 --- apps/plugins/mpegplayer/stream_mgr.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apps/plugins/mpegplayer/stream_mgr.h') 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); /* Show/Hide the video image at the current seekpoint */ bool stream_show_vo(bool show); +/* Set the visible section of video */ +void stream_vo_set_clip(const struct vo_rect *rc); + #ifndef HAVE_LCD_COLOR /* Set the gray overlay rectangle */ bool stream_set_gray_rect(const struct vo_rect *rc); @@ -114,12 +117,19 @@ void stream_gray_show(bool show); /* Display thumbnail of the current seekpoint */ bool stream_display_thumb(const struct vo_rect *rc); +/* Draw the frame at the current position */ +bool stream_draw_frame(bool no_prepare); + /* Return video dimensions */ bool stream_vo_get_size(struct vo_ext *sz); /* Returns the resume time in timestamp ticks */ uint32_t stream_get_resume_time(void); +/* Returns stream_get_time if no seek is pending or else the + last time give to seek */ +uint32_t stream_get_seek_time(uint32_t *start); + /* Return the absolute stream time in clock ticks - adjusted by * master clock stream via audio timestamps */ static inline uint32_t stream_get_time(void) -- cgit v1.2.3