2006-08-20 23:12:56 +00:00
|
|
|
|
|
|
|
#include "plugin.h"
|
|
|
|
|
2007-10-16 14:23:50 +00:00
|
|
|
enum mpeg_option_id
|
|
|
|
{
|
|
|
|
#if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200)
|
|
|
|
MPEG_OPTION_DITHERING,
|
|
|
|
#endif
|
|
|
|
MPEG_OPTION_DISPLAY_FPS,
|
|
|
|
MPEG_OPTION_LIMIT_FPS,
|
|
|
|
MPEG_OPTION_SKIP_FRAMES,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum mpeg_start_id
|
|
|
|
{
|
|
|
|
MPEG_START_RESTART,
|
|
|
|
MPEG_START_RESUME,
|
|
|
|
MPEG_START_SEEK,
|
|
|
|
MPEG_START_QUIT,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum mpeg_menu_id
|
|
|
|
{
|
|
|
|
MPEG_MENU_DISPLAY_SETTINGS,
|
|
|
|
MPEG_MENU_CLEAR_RESUMES,
|
|
|
|
MPEG_MENU_QUIT,
|
|
|
|
};
|
|
|
|
|
2006-08-20 23:12:56 +00:00
|
|
|
struct mpeg_settings {
|
2007-10-09 20:42:20 +00:00
|
|
|
int showfps; /* flag to display fps */
|
|
|
|
int limitfps; /* flag to limit fps */
|
|
|
|
int skipframes; /* flag to skip frames */
|
|
|
|
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 */
|
2007-09-25 02:59:42 +00:00
|
|
|
#if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200)
|
2007-10-09 20:42:20 +00:00
|
|
|
int displayoptions;
|
2007-09-25 02:59:42 +00:00
|
|
|
#endif
|
2006-08-20 23:12:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct mpeg_settings settings;
|
|
|
|
|
2007-10-09 20:42:20 +00:00
|
|
|
int get_start_time(int play_time, int in_file);
|
2007-10-16 14:23:50 +00:00
|
|
|
enum mpeg_start_id mpeg_start_menu(int play_time, int in_file);
|
|
|
|
enum mpeg_menu_id mpeg_menu(void);
|
2007-10-09 20:42:20 +00:00
|
|
|
void init_settings(const char* filename);
|
2006-08-20 23:12:56 +00:00
|
|
|
void save_settings(void);
|
2007-10-09 20:42:20 +00:00
|
|
|
void clear_resume_count(void);
|