summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/video_out.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer/video_out.h')
-rw-r--r--apps/plugins/mpegplayer/video_out.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/video_out.h b/apps/plugins/mpegplayer/video_out.h
index 08cd7aa848..ed8c4c5907 100644
--- a/apps/plugins/mpegplayer/video_out.h
+++ b/apps/plugins/mpegplayer/video_out.h
@@ -24,6 +24,16 @@
24#ifndef VIDEO_OUT_H 24#ifndef VIDEO_OUT_H
25#define VIDEO_OUT_H 25#define VIDEO_OUT_H
26 26
27#if LCD_WIDTH >= LCD_HEIGHT
28#define SCREEN_WIDTH LCD_WIDTH
29#define SCREEN_HEIGHT LCD_HEIGHT
30#define LCD_LANDSCAPE
31#else /* Assume the screen is rotated on portrait LCDs */
32#define SCREEN_WIDTH LCD_HEIGHT
33#define SCREEN_HEIGHT LCD_WIDTH
34#define LCD_PORTRAIT
35#endif
36
27/* Structure to hold width and height values */ 37/* Structure to hold width and height values */
28struct vo_ext 38struct vo_ext
29{ 39{
@@ -43,9 +53,18 @@ bool vo_init (void);
43bool vo_show (bool show); 53bool vo_show (bool show);
44bool vo_is_visible(void); 54bool vo_is_visible(void);
45void vo_setup (const mpeg2_sequence_t * sequence); 55void vo_setup (const mpeg2_sequence_t * sequence);
56void vo_set_clip_rect(const struct vo_rect *rc);
46void vo_dimensions(struct vo_ext *sz); 57void vo_dimensions(struct vo_ext *sz);
47void vo_cleanup (void); 58void vo_cleanup (void);
48 59
60#if NUM_CORES > 1 || !defined (HAVE_LCD_COLOR)
61void vo_lock(void);
62void vo_unlock(void);
63#else
64static inline void vo_lock(void) {}
65static inline void vo_unlock(void) {}
66#endif
67
49/* Sets all coordinates of a vo_rect to 0 */ 68/* Sets all coordinates of a vo_rect to 0 */
50void vo_rect_clear(struct vo_rect *rc); 69void vo_rect_clear(struct vo_rect *rc);
51/* Returns true if left >= right or top >= bottom */ 70/* Returns true if left >= right or top >= bottom */
@@ -68,4 +87,10 @@ bool vo_rect_intersect(struct vo_rect *rc_dst,
68 const struct vo_rect *rc1, 87 const struct vo_rect *rc1,
69 const struct vo_rect *rc2); 88 const struct vo_rect *rc2);
70 89
90bool vo_rect_union(struct vo_rect *rc_dst,
91 const struct vo_rect *rc1,
92 const struct vo_rect *rc2);
93
94void vo_rect_offset(struct vo_rect *rc, int dx, int dy);
95
71#endif /* VIDEO_OUT_H */ 96#endif /* VIDEO_OUT_H */