summaryrefslogtreecommitdiffstats
path: root/mpvcore/player/mp_core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-29 22:38:29 +0100
committerwm4 <wm4@nowhere>2013-10-30 01:53:53 +0100
commitb19414f3bf0ae28461ef6d5048e9626e69d45319 (patch)
tree585f81a52da4ff5a8c4f7cd52275040211994d7c /mpvcore/player/mp_core.h
parenta84258d769a3d06958a017bb3fc47521ade5751b (diff)
downloadmpv-b19414f3bf0ae28461ef6d5048e9626e69d45319.tar.bz2
mpv-b19414f3bf0ae28461ef6d5048e9626e69d45319.tar.xz
Split mplayer.c
mplayer.c was a bit too big. Split it into multiple files. I hope the way it's split makes sense. Maybe some things don't make too much sense, or go against intuition. These will fixed as soon as I notice them. Some files are a bit questionable (misc.c, osd.c, configfiles.c), and suggestions how to organize this better are welcome. Regressions are possible due to reorganized include statements. Obviously I didn't just copy mplayer.c's orgy of include statements, but recreated them for each file. It's easily possible that there are oversights and mistakes, which will show up on other platforms. There is one actual change: the public avutil.h include is removed from encode.h, and I tried to replace most FFMIN/FFMAX/av_clip uses. I consider using libavutil too much as dangerous, because the set of include files they recursively pull in is rather arbitrary and is different between FFmpeg and Libav.
Diffstat (limited to 'mpvcore/player/mp_core.h')
-rw-r--r--mpvcore/player/mp_core.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/mpvcore/player/mp_core.h b/mpvcore/player/mp_core.h
index 6d83be182a..a850123ad6 100644
--- a/mpvcore/player/mp_core.h
+++ b/mpvcore/player/mp_core.h
@@ -338,11 +338,50 @@ bool mp_remove_track(struct MPContext *mpctx, struct track *track);
struct playlist_entry *mp_next_file(struct MPContext *mpctx, int direction,
bool force);
int mp_get_cache_percent(struct MPContext *mpctx);
+bool mp_get_cache_idle(struct MPContext *mpctx);
void mp_write_watch_later_conf(struct MPContext *mpctx);
void mp_set_playlist_entry(struct MPContext *mpctx, struct playlist_entry *e);
struct playlist_entry *mp_resume_playlist(struct playlist *playlist,
struct MPOpts *opts);
void mp_force_video_refresh(struct MPContext *mpctx);
+void mp_play_files(struct MPContext *mpctx);
+bool mp_parse_cfgfiles(struct MPContext *mpctx);
+char *mp_get_playback_resume_config_filename(const char *fname,
+ struct MPOpts *opts);
+void mp_load_per_protocol_config(struct m_config *conf, const char * const file);
+void mp_load_per_extension_config(struct m_config *conf, const char * const file);
+void mp_load_per_output_config(struct m_config *conf, char *cfg, char *out);
+void mp_load_per_file_config(struct m_config *conf, const char * const file,
+ bool search_file_dir);
+void mp_load_playback_resume(struct m_config *conf, const char *file);
+double get_main_demux_pts(struct MPContext *mpctx);
+void reset_subtitles(struct MPContext *mpctx);
+void uninit_subs(struct demuxer *demuxer);
+void reinit_subs(struct MPContext *mpctx);
+void stream_dump(struct MPContext *mpctx);
+bool timeline_set_part(struct MPContext *mpctx, int i, bool force);
+double timeline_set_from_time(struct MPContext *mpctx, double pts, bool *need_reset);
+double rel_time_to_abs(struct MPContext *mpctx, struct m_rel_time t,
+ double fallback_time);
+double get_play_end_pts(struct MPContext *mpctx);
+double get_relative_time(struct MPContext *mpctx);
+void execute_queued_seek(struct MPContext *mpctx);
+void run_playloop(struct MPContext *mpctx);
+void idle_loop(struct MPContext *mpctx);
+void init_demux_stream(struct MPContext *mpctx, enum stream_type type);
+void cleanup_demux_stream(struct MPContext *mpctx, enum stream_type type);
+void add_demuxer_tracks(struct MPContext *mpctx, struct demuxer *demuxer);
+void write_status_line(struct MPContext *mpctx, const char *line);
+void update_vo_window_title(struct MPContext *mpctx);
+int fill_audio_out_buffers(struct MPContext *mpctx, double endpts);
+void handle_force_window(struct MPContext *mpctx, bool reconfig);
+void add_frame_pts(struct MPContext *mpctx, double pts);
+double update_video(struct MPContext *mpctx, double endpts);
+void print_status(struct MPContext *mpctx);
+double written_audio_pts(struct MPContext *mpctx);
+void update_fps(struct MPContext *mpctx);
+void update_subtitles(struct MPContext *mpctx);
+void update_osd_msg(struct MPContext *mpctx);
void mp_print_version(int always);