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/plugins/mpegplayer/mpeg_settings.h | |
parent | 1d0f6b90ff43776e55b4b9f062c9bea3f99aa768 (diff) |
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/plugins/mpegplayer/mpeg_settings.h')
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_settings.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_settings.h b/apps/plugins/mpegplayer/mpeg_settings.h index 613a345307..3186c73f2c 100644 --- a/apps/plugins/mpegplayer/mpeg_settings.h +++ b/apps/plugins/mpegplayer/mpeg_settings.h @@ -1,9 +1,17 @@ #include "plugin.h" +#if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) +#define MPEG_OPTION_DITHERING_ENABLED 1 +#endif + +#ifndef MPEG_OPTION_DITHERING_ENABLED +#define MPEG_OPTION_DITHERING_ENABLED 0 +#endif + enum mpeg_option_id { -#if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) +#if MPEG_OPTION_DITHERING_ENABLED MPEG_OPTION_DITHERING, #endif MPEG_OPTION_DISPLAY_FPS, @@ -34,16 +42,16 @@ struct mpeg_settings { int enable_start_menu; /* flag to enable/disable start menu */ int resume_count; /* total # of resumes in config file */ int resume_time; /* resume time for current mpeg (in half minutes) */ - char resume_filename[128]; /* filename of current mpeg */ -#if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) + char resume_filename[MAX_PATH]; /* filename of current mpeg */ +#if MPEG_OPTION_DITHERING_ENABLED int displayoptions; #endif }; extern struct mpeg_settings settings; -int get_start_time(int play_time, int in_file); -enum mpeg_start_id mpeg_start_menu(int play_time, int in_file); +int get_start_time(uint32_t duration); +enum mpeg_start_id mpeg_start_menu(uint32_t duration); enum mpeg_menu_id mpeg_menu(void); void init_settings(const char* filename); void save_settings(void); |