diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-12-29 19:46:35 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-12-29 19:46:35 +0000 |
commit | a222f27c4a17ed8f9809cda7861fe5f23d4cc0c1 (patch) | |
tree | d393a23d83549f99772bb156e59ffb88725148b6 /apps/plugin.h | |
parent | 1d0f6b90ff43776e55b4b9f062c9bea3f99aa768 (diff) | |
download | rockbox-a222f27c4a17ed8f9809cda7861fe5f23d4cc0c1.tar.gz rockbox-a222f27c4a17ed8f9809cda7861fe5f23d4cc0c1.zip |
mpegplayer: Make playback engine fully seekable and frame-accurate and split into logical parts. Be sure to have all current features work. Actual UI for seeking will be added soon. Recommended GOP size is about 15-30 frames depending on target or seeking can be slow with really long GOPs (nature of MPEG video). More refined encoding recommendations for a particular player should be posted soon.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15977 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 1b12011c9a..5ac4aa7cc2 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -119,7 +119,7 @@ | |||
119 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 119 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
120 | 120 | ||
121 | /* increase this every time the api struct changes */ | 121 | /* increase this every time the api struct changes */ |
122 | #define PLUGIN_API_VERSION 91 | 122 | #define PLUGIN_API_VERSION 92 |
123 | 123 | ||
124 | /* update this to latest version if a change to the api struct breaks | 124 | /* update this to latest version if a change to the api struct breaks |
125 | backwards compatibility (and please take the opportunity to sort in any | 125 | backwards compatibility (and please take the opportunity to sort in any |
@@ -648,7 +648,7 @@ struct plugin_api { | |||
648 | 648 | ||
649 | void (*thread_wait)(struct thread_entry *thread); | 649 | void (*thread_wait)(struct thread_entry *thread); |
650 | 650 | ||
651 | #ifdef PROC_NEEDS_CACHEALIGN | 651 | #if (CONFIG_CODEC == SWCODEC) |
652 | size_t (*align_buffer)(void **start, size_t size, size_t align); | 652 | size_t (*align_buffer)(void **start, size_t size, size_t align); |
653 | #endif | 653 | #endif |
654 | 654 | ||
@@ -697,6 +697,25 @@ struct plugin_api { | |||
697 | bool (*search_albumart_files)(const struct mp3entry *id3, const char *size_string, | 697 | bool (*search_albumart_files)(const struct mp3entry *id3, const char *size_string, |
698 | char *buf, int buflen); | 698 | char *buf, int buflen); |
699 | #endif | 699 | #endif |
700 | |||
701 | #if CONFIG_CODEC == SWCODEC | ||
702 | void (*pcm_play_lock)(void); | ||
703 | void (*pcm_play_unlock)(void); | ||
704 | void (*queue_enable_queue_send)(struct event_queue *q, | ||
705 | struct queue_sender_list *send); | ||
706 | bool (*queue_empty)(const struct event_queue *q); | ||
707 | void (*queue_wait)(struct event_queue *q, struct queue_event *ev); | ||
708 | intptr_t (*queue_send)(struct event_queue *q, long id, | ||
709 | intptr_t data); | ||
710 | void (*queue_reply)(struct event_queue *q, intptr_t retval); | ||
711 | #ifndef HAVE_FLASH_STORAGE | ||
712 | void (*ata_spin)(void); | ||
713 | #endif | ||
714 | #ifdef HAVE_SCHEDULER_BOOSTCTRL | ||
715 | void (*trigger_cpu_boost)(void); | ||
716 | void (*cancel_cpu_boost)(void); | ||
717 | #endif | ||
718 | #endif /* CONFIG_CODEC == SWCODEC */ | ||
700 | }; | 719 | }; |
701 | 720 | ||
702 | /* plugin header */ | 721 | /* plugin header */ |