access_mpcontext 包含的结构: typedef struct MPContext { int osd_show_percentage; int osd_function; ao_functions_t *audio_out; play_tree_t *playtree; play_tree_iter_t *playtree_iter; int eof; int play_tree_step; int loop_times;
stream_t *stream; demuxer_t *demuxer; sh_audio_t *sh_audio; sh_video_t *sh_video; demux_stream_t *d_audio; demux_stream_t *d_video; demux_stream_t *d_sub; mixer_t mixer; vo_functions_t *video_out; int num_buffered_frames; double delay; float begin_skip; short edl_muted; short user_muted; int global_sub_size; int global_sub_pos; int set_of_sub_pos; int set_of_sub_size; int global_sub_indices[SUB_SOURCES]; #ifdef USE_ASS ass_track_t* set_of_ass_tracks[MAX_SUBTITLE_FILES]; #endif sub_data* set_of_subtitles[MAX_SUBTITLE_FILES]; int file_format; #ifdef HAS_DVBIN_SUPPORT int last_dvb_step; int dvbin_reopen; #endif int was_paused; } MPContext; 包含的方法: void *mpctx_get_video_out(struct MPContext *mpctx); void *mpctx_get_audio_out(struct MPContext *mpctx); void *mpctx_get_playtree_iter(struct MPContext *mpctx); void *mpctx_get_mixer(struct MPContext *mpctx); int mpctx_get_global_sub_size(struct MPContext *mpctx); 这个文件大致的功能是记录mplayer实时的状态。
access_mpcontext
回复删除包含的结构:
typedef struct MPContext {
int osd_show_percentage;
int osd_function;
ao_functions_t *audio_out;
play_tree_t *playtree;
play_tree_iter_t *playtree_iter;
int eof;
int play_tree_step;
int loop_times;
stream_t *stream;
demuxer_t *demuxer;
sh_audio_t *sh_audio;
sh_video_t *sh_video;
demux_stream_t *d_audio;
demux_stream_t *d_video;
demux_stream_t *d_sub;
mixer_t mixer;
vo_functions_t *video_out;
int num_buffered_frames;
double delay;
float begin_skip;
short edl_muted;
short user_muted;
int global_sub_size;
int global_sub_pos;
int set_of_sub_pos;
int set_of_sub_size;
int global_sub_indices[SUB_SOURCES];
#ifdef USE_ASS
ass_track_t* set_of_ass_tracks[MAX_SUBTITLE_FILES];
#endif
sub_data* set_of_subtitles[MAX_SUBTITLE_FILES];
int file_format;
#ifdef HAS_DVBIN_SUPPORT
int last_dvb_step;
int dvbin_reopen;
#endif
int was_paused;
} MPContext;
包含的方法:
void *mpctx_get_video_out(struct MPContext *mpctx);
void *mpctx_get_audio_out(struct MPContext *mpctx);
void *mpctx_get_playtree_iter(struct MPContext *mpctx);
void *mpctx_get_mixer(struct MPContext *mpctx);
int mpctx_get_global_sub_size(struct MPContext *mpctx);
这个文件大致的功能是记录mplayer实时的状态。