1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Michael Sevakis 2008-01-03 17:14:28 +00:00
parent d1cb32a93f
commit a5fc3f4df4
18 changed files with 1341 additions and 105 deletions

View file

@ -75,7 +75,10 @@ static void draw_fps(struct video_thread_data *td)
fps / 100, fps % 100, td->num_skipped,
td->info->display_picture->temporal_reference);
rb->lcd_putsxy(0, 0, str);
vo_lock();
rb->lcd_update_rect(0, 0, LCD_WIDTH, 8);
vo_unlock();
td->last_showfps = *rb->current_tick;
}
@ -522,7 +525,9 @@ static void video_thread_msg(struct video_thread_data *td)
else
{
IF_COP(invalidate_icache());
vo_lock();
rb->lcd_update();
vo_unlock();
}
#else
GRAY_FLUSH_ICACHE();
@ -580,6 +585,10 @@ static void video_thread_msg(struct video_thread_data *td)
}
break;
case VIDEO_SET_CLIP_RECT:
vo_set_clip_rect((const struct vo_rect *)td->ev.data);
break;
case VIDEO_PRINT_FRAME:
/* Print the last frame decoded */
if (td->info != NULL && td->info->display_fbuf != NULL)