summaryrefslogtreecommitdiff
path: root/apps/plugins/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/video.c')
-rw-r--r--apps/plugins/video.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/apps/plugins/video.c b/apps/plugins/video.c
index c8f9673a25..8fd1071c1e 100644
--- a/apps/plugins/video.c
+++ b/apps/plugins/video.c
@@ -65,7 +65,7 @@
65 65
66 66
67/****************** prototypes ******************/ 67/****************** prototypes ******************/
68void timer4_isr(void); /* IMIA4 ISR */ 68static void timer4_isr(void); /* IMIA4 ISR */
69int check_button(void); /* determine next relative frame */ 69int check_button(void); /* determine next relative frame */
70 70
71 71
@@ -207,7 +207,7 @@ tFileHeader gFileHdr; /* file header */
207/****************** implementation ******************/ 207/****************** implementation ******************/
208 208
209/* tool function: return how much playable audio/video is left */ 209/* tool function: return how much playable audio/video is left */
210int Available(unsigned char* pSnapshot) 210static int Available(unsigned char* pSnapshot)
211{ 211{
212 if (pSnapshot <= gBuf.pBufFill) 212 if (pSnapshot <= gBuf.pBufFill)
213 return gBuf.pBufFill - pSnapshot; 213 return gBuf.pBufFill - pSnapshot;
@@ -216,7 +216,7 @@ int Available(unsigned char* pSnapshot)
216} 216}
217 217
218/* debug function to draw buffer indicators */ 218/* debug function to draw buffer indicators */
219void DrawBuf(void) 219static void DrawBuf(void)
220{ 220{
221 int ypos, fill, video, audio; 221 int ypos, fill, video, audio;
222 222
@@ -247,7 +247,7 @@ void DrawBuf(void)
247 247
248 248
249/* helper function to draw a position indicator */ 249/* helper function to draw a position indicator */
250void DrawPosition(int pos, int total) 250static void DrawPosition(int pos, int total)
251{ 251{
252 int w, h; 252 int w, h;
253 int sec; /* estimated seconds */ 253 int sec; /* estimated seconds */
@@ -283,7 +283,7 @@ void DrawPosition(int pos, int total)
283} 283}
284 284
285/* Put text on OSD and activate it for 1 second */ 285/* Put text on OSD and activate it for 1 second */
286void osd_show_text(void) 286static void osd_show_text(void)
287{ 287{
288 int h, ypos; 288 int h, ypos;
289 289
@@ -305,7 +305,7 @@ void osd_show_text(void)
305} 305}
306 306
307/* helper function to change the volume by a certain amount, +/- */ 307/* helper function to change the volume by a certain amount, +/- */
308void ChangeVolume(int delta) 308static void ChangeVolume(int delta)
309{ 309{
310 int minvol = rb->sound_min(SOUND_VOLUME); 310 int minvol = rb->sound_min(SOUND_VOLUME);
311 int maxvol = rb->sound_max(SOUND_VOLUME); 311 int maxvol = rb->sound_max(SOUND_VOLUME);
@@ -325,7 +325,7 @@ void ChangeVolume(int delta)
325 325
326 326
327/* helper function to change the LCD contrast by a certain amount, +/- */ 327/* helper function to change the LCD contrast by a certain amount, +/- */
328void ChangeContrast(int delta) 328static void ChangeContrast(int delta)
329{ 329{
330 static int mycontrast = -1; /* the "permanent" value while running */ 330 static int mycontrast = -1; /* the "permanent" value while running */
331 int contrast; /* updated value */ 331 int contrast; /* updated value */
@@ -348,7 +348,7 @@ void ChangeContrast(int delta)
348 348
349 349
350/* sync the video to the current audio */ 350/* sync the video to the current audio */
351void SyncVideo(void) 351static void SyncVideo(void)
352{ 352{
353 tAudioFrameHeader* pAudioBuf; 353 tAudioFrameHeader* pAudioBuf;
354 354
@@ -370,7 +370,7 @@ void SyncVideo(void)
370 370
371 371
372/* timer interrupt handler to display a frame */ 372/* timer interrupt handler to display a frame */
373void timer4_isr(void) 373static void timer4_isr(void)
374{ 374{
375 int available; 375 int available;
376 tAudioFrameHeader* pAudioBuf; 376 tAudioFrameHeader* pAudioBuf;
@@ -446,7 +446,7 @@ void timer4_isr(void)
446 446
447 447
448/* ISR function to get more mp3 data */ 448/* ISR function to get more mp3 data */
449void GetMoreMp3(unsigned char** start, size_t* size) 449static void GetMoreMp3(unsigned char** start, size_t* size)
450{ 450{
451 int available; 451 int available;
452 int advance; 452 int advance;
@@ -476,7 +476,7 @@ void GetMoreMp3(unsigned char** start, size_t* size)
476} 476}
477 477
478 478
479int WaitForButton(void) 479static int WaitForButton(void)
480{ 480{
481 int button; 481 int button;
482 482
@@ -490,7 +490,7 @@ int WaitForButton(void)
490} 490}
491 491
492 492
493bool WantResume(int fd) 493static bool WantResume(int fd)
494{ 494{
495 int button; 495 int button;
496 496
@@ -507,7 +507,7 @@ bool WantResume(int fd)
507} 507}
508 508
509 509
510int SeekTo(int fd, int nPos) 510static int SeekTo(int fd, int nPos)
511{ 511{
512 int read_now, got_now; 512 int read_now, got_now;
513 513
@@ -574,7 +574,7 @@ int SeekTo(int fd, int nPos)
574} 574}
575 575
576/* called from default_event_handler_ex() or at end of playback */ 576/* called from default_event_handler_ex() or at end of playback */
577void Cleanup(void *fd) 577static void Cleanup(void *fd)
578{ 578{
579 rb->close(*(int*)fd); /* close the file */ 579 rb->close(*(int*)fd); /* close the file */
580 580
@@ -592,7 +592,7 @@ void Cleanup(void *fd)
592} 592}
593 593
594/* returns >0 if continue, =0 to stop, <0 to abort (USB) */ 594/* returns >0 if continue, =0 to stop, <0 to abort (USB) */
595int PlayTick(int fd) 595static int PlayTick(int fd)
596{ 596{
597 int button; 597 int button;
598 static int lastbutton = 0; 598 static int lastbutton = 0;
@@ -867,7 +867,7 @@ int PlayTick(int fd)
867} 867}
868 868
869 869
870int main(char* filename) 870static int main(char* filename)
871{ 871{
872 int file_size; 872 int file_size;
873 int fd; /* file descriptor handle */ 873 int fd; /* file descriptor handle */