diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-01-09 22:19:25 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-01-09 22:19:25 +0000 |
commit | 75380fd27d175bab1818ef35a9100e74fc6a461b (patch) | |
tree | 7553e7d74d26dde32ca3c3c01b9846af884939f3 /apps/plugins/mpegplayer/mpegplayer.h | |
parent | 81cf8b4d3bc4579b90a6fc4a97e61cc3acfc8c95 (diff) | |
download | rockbox-75380fd27d175bab1818ef35a9100e74fc6a461b.tar.gz rockbox-75380fd27d175bab1818ef35a9100e74fc6a461b.zip |
mpegplayer on grayscale targets: use greylib to display all text and graphics with the video images.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16042 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpegplayer.h')
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.h b/apps/plugins/mpegplayer/mpegplayer.h index 4ebf321fce..01ab9bdad6 100644 --- a/apps/plugins/mpegplayer/mpegplayer.h +++ b/apps/plugins/mpegplayer/mpegplayer.h | |||
@@ -80,11 +80,8 @@ enum mpeg_malloc_reason_t | |||
80 | #define lcd_(fn) rb->lcd_##fn | 80 | #define lcd_(fn) rb->lcd_##fn |
81 | #define lcd_splash splash | 81 | #define lcd_splash splash |
82 | 82 | ||
83 | #define GRAY_FLUSH_ICACHE() | ||
84 | #define GRAY_INVALIDATE_ICACHE() | ||
85 | #define GRAY_VIDEO_FLUSH_ICACHE() | ||
86 | #define GRAY_VIDEO_INVALIDATE_ICACHE() | ||
87 | #else | 83 | #else |
84 | |||
88 | #include "grey.h" | 85 | #include "grey.h" |
89 | #define DRAW_BLACK GREY_BLACK | 86 | #define DRAW_BLACK GREY_BLACK |
90 | #define DRAW_DARKGRAY GREY_DARKGRAY | 87 | #define DRAW_DARKGRAY GREY_DARKGRAY |
@@ -92,6 +89,7 @@ enum mpeg_malloc_reason_t | |||
92 | #define DRAW_WHITE GREY_WHITE | 89 | #define DRAW_WHITE GREY_WHITE |
93 | #define lcd_(fn) grey_##fn | 90 | #define lcd_(fn) grey_##fn |
94 | 91 | ||
92 | #if defined(CPU_PP) && NUM_CORES > 1 | ||
95 | #define GRAY_FLUSH_ICACHE() \ | 93 | #define GRAY_FLUSH_ICACHE() \ |
96 | IF_COP(flush_icache()) | 94 | IF_COP(flush_icache()) |
97 | #define GRAY_INVALIDATE_ICACHE() \ | 95 | #define GRAY_INVALIDATE_ICACHE() \ |
@@ -100,11 +98,18 @@ enum mpeg_malloc_reason_t | |||
100 | IF_COP(parser_send_video_msg(VIDEO_GRAY_CACHEOP, 0)) | 98 | IF_COP(parser_send_video_msg(VIDEO_GRAY_CACHEOP, 0)) |
101 | #define GRAY_VIDEO_INVALIDATE_ICACHE() \ | 99 | #define GRAY_VIDEO_INVALIDATE_ICACHE() \ |
102 | IF_COP(parser_send_video_msg(VIDEO_GRAY_CACHEOP, 1)) | 100 | IF_COP(parser_send_video_msg(VIDEO_GRAY_CACHEOP, 1)) |
103 | #if NUM_CORES > 1 | 101 | |
104 | #define GRAY_CACHE_MAINT | 102 | #define GRAY_CACHE_MAINT |
105 | #endif | 103 | #endif |
106 | #endif | 104 | #endif |
107 | 105 | ||
106 | #ifndef GRAY_CACHE_MAINT | ||
107 | #define GRAY_FLUSH_ICACHE() | ||
108 | #define GRAY_INVALIDATE_ICACHE() | ||
109 | #define GRAY_VIDEO_FLUSH_ICACHE() | ||
110 | #define GRAY_VIDEO_INVALIDATE_ICACHE() | ||
111 | #endif | ||
112 | |||
108 | #include "mpeg2.h" | 113 | #include "mpeg2.h" |
109 | #include "video_out.h" | 114 | #include "video_out.h" |
110 | #include "mpeg_stream.h" | 115 | #include "mpeg_stream.h" |