summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/video_thread.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-01-09 22:19:25 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-01-09 22:19:25 +0000
commit75380fd27d175bab1818ef35a9100e74fc6a461b (patch)
tree7553e7d74d26dde32ca3c3c01b9846af884939f3 /apps/plugins/mpegplayer/video_thread.c
parent81cf8b4d3bc4579b90a6fc4a97e61cc3acfc8c95 (diff)
downloadrockbox-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/video_thread.c')
-rw-r--r--apps/plugins/mpegplayer/video_thread.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/plugins/mpegplayer/video_thread.c b/apps/plugins/mpegplayer/video_thread.c
index 6a54706942..4fc428d522 100644
--- a/apps/plugins/mpegplayer/video_thread.c
+++ b/apps/plugins/mpegplayer/video_thread.c
@@ -72,10 +72,10 @@ static void draw_fps(struct video_thread_data *td)
72 rb->snprintf(str, sizeof(str), "%d.%02d %d %d ", 72 rb->snprintf(str, sizeof(str), "%d.%02d %d %d ",
73 fps / 100, fps % 100, td->num_skipped, 73 fps / 100, fps % 100, td->num_skipped,
74 td->info->display_picture->temporal_reference); 74 td->info->display_picture->temporal_reference);
75 rb->lcd_putsxy(0, 0, str); 75 lcd_(putsxy)(0, 0, str);
76 76
77 vo_lock(); 77 vo_lock();
78 rb->lcd_update_rect(0, 0, LCD_WIDTH, 8); 78 lcd_(update_rect)(0, 0, LCD_WIDTH, 8);
79 vo_unlock(); 79 vo_unlock();
80 80
81 td->last_showfps = *rb->current_tick; 81 td->last_showfps = *rb->current_tick;
@@ -489,7 +489,7 @@ static void video_thread_msg(struct video_thread_data *td)
489 489
490 case STREAM_STOP: 490 case STREAM_STOP:
491 if (td->state == TSTATE_DATA) 491 if (td->state == TSTATE_DATA)
492 stream_clear_notify(&audio_str, DISK_BUF_DATA_NOTIFY); 492 stream_clear_notify(&video_str, DISK_BUF_DATA_NOTIFY);
493 493
494 td->status = STREAM_STOPPED; 494 td->status = STREAM_STOPPED;
495 td->state = TSTATE_EOS; 495 td->state = TSTATE_EOS;
@@ -522,14 +522,12 @@ static void video_thread_msg(struct video_thread_data *td)
522 rb->lcd_update(); 522 rb->lcd_update();
523 vo_unlock(); 523 vo_unlock();
524 } 524 }
525#else
526 GRAY_FLUSH_ICACHE();
527#endif 525#endif
528 break; 526 break;
529 527
530 case STREAM_RESET: 528 case STREAM_RESET:
531 if (td->state == TSTATE_DATA) 529 if (td->state == TSTATE_DATA)
532 stream_clear_notify(&audio_str, DISK_BUF_DATA_NOTIFY); 530 stream_clear_notify(&video_str, DISK_BUF_DATA_NOTIFY);
533 531
534 td->state = TSTATE_INIT; 532 td->state = TSTATE_INIT;
535 td->status = STREAM_STOPPED; 533 td->status = STREAM_STOPPED;