diff options
Diffstat (limited to 'apps/plugins/mpegplayer/video_out.h')
-rw-r--r-- | apps/plugins/mpegplayer/video_out.h | 25 |
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 */ |
28 | struct vo_ext | 38 | struct vo_ext |
29 | { | 39 | { |
@@ -43,9 +53,18 @@ bool vo_init (void); | |||
43 | bool vo_show (bool show); | 53 | bool vo_show (bool show); |
44 | bool vo_is_visible(void); | 54 | bool vo_is_visible(void); |
45 | void vo_setup (const mpeg2_sequence_t * sequence); | 55 | void vo_setup (const mpeg2_sequence_t * sequence); |
56 | void vo_set_clip_rect(const struct vo_rect *rc); | ||
46 | void vo_dimensions(struct vo_ext *sz); | 57 | void vo_dimensions(struct vo_ext *sz); |
47 | void vo_cleanup (void); | 58 | void vo_cleanup (void); |
48 | 59 | ||
60 | #if NUM_CORES > 1 || !defined (HAVE_LCD_COLOR) | ||
61 | void vo_lock(void); | ||
62 | void vo_unlock(void); | ||
63 | #else | ||
64 | static inline void vo_lock(void) {} | ||
65 | static 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 */ |
50 | void vo_rect_clear(struct vo_rect *rc); | 69 | void 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 | ||
90 | bool vo_rect_union(struct vo_rect *rc_dst, | ||
91 | const struct vo_rect *rc1, | ||
92 | const struct vo_rect *rc2); | ||
93 | |||
94 | void vo_rect_offset(struct vo_rect *rc, int dx, int dy); | ||
95 | |||
71 | #endif /* VIDEO_OUT_H */ | 96 | #endif /* VIDEO_OUT_H */ |