amplayerMy Project
|
player.h
00001 #ifndef _PLAYER_H_ 00002 #define _PLAYER_H_ 00003 00004 00005 #include <codec.h> 00006 #include <player_type.h> 00007 #include <player_error.h> 00008 #include <message.h> 00009 #include <player_dump.h> 00010 00011 #ifdef __cplusplus 00012 extern "C" { 00013 #endif 00014 00015 int player_init(); 00016 int player_start(play_control_t *p,unsigned long priv); 00017 int player_stop(int pid); 00018 int player_stop_async(int pid); 00019 int player_exit(int pid); 00020 int player_pause(int pid); 00021 int player_resume(int pid); 00022 int player_timesearch(int pid,float s_time); 00023 int player_forward(int pid,int speed); 00024 int player_backward(int pid,int speed); 00025 int player_aid(int pid,int audio_id); 00026 int player_sid(int pid,int sub_id); 00027 int player_progress_exit(void); 00028 int player_list_allpid(pid_info_t *pid); 00029 int check_pid_valid(int pid); 00030 int player_get_play_info(int pid,player_info_t *info); 00031 int player_get_media_info(int pid,media_info_t *minfo); 00032 int player_video_overlay_en(unsigned enable); 00033 int player_start_play(int pid); 00034 int player_send_message(int pid, player_cmd_t *cmd); 00035 player_status player_get_state(int pid); 00036 unsigned int player_get_extern_priv(int pid); 00037 int player_enable_autobuffer(int pid, int enable); 00038 int player_set_autobuffer_level(int pid, float min, float middle, float max); 00039 00040 int audio_set_mute(int pid,int mute); 00041 int audio_get_volume_range(int pid,float *min,float *max); 00042 int audio_set_volume(int pid,float val); 00043 int audio_get_volume(int pid, float *val); 00044 00045 int audio_set_lrvolume(int pid,float lvol,float rvol); 00046 int audio_get_lrvolume(int pid, float* lvol,float* rvol); 00047 00048 int audio_set_volume_balance(int pid,int balance); 00049 int audio_swap_left_right(int pid); 00050 int audio_left_mono(int pid); 00051 int audio_right_mono(int pid); 00052 int audio_stereo(int pid); 00053 int audio_lr_mix_set(int pid,int enable); 00054 int audio_cur_pcmpara_Applied_get(int pid,int *pfs,int *pch); 00055 00056 int audio_set_spectrum_switch(int pid,int isStart,int interval); 00057 int player_register_update_callback(callback_t *cb,update_state_fun_t up_fn,int interval_s); 00058 char *player_status2str(player_status status); 00059 char *player_value2str(char *key, int value); 00060 int player_cache_system_init(int enable,const char*dir,int max_size,int block_size); 00061 00062 //control interface 00063 int player_loop(int pid); 00064 int player_noloop(int pid); 00065 00066 int check_url_type(char *filename); 00067 int play_list_player(play_control_t *pctrl,unsigned long priv); 00068 00069 //freescale 00070 int enable_freescale(int cfg); 00071 int disable_freescale(int cfg); 00072 int disable_freescale_MBX(); 00073 int enable_2Xscale(); 00074 int enable_2XYscale(); 00075 int enable_freescale_MBX(); 00076 int disable_2X_2XYscale(); 00077 int GL_2X_scale(int mSwitch); 00078 int wait_play_end(); 00079 int wait_video_unreg(); 00080 int clear_video_buf(); 00081 int freescale_is_enable(); 00082 int64_t player_get_lpbufbuffedsize(int pid); 00083 int64_t player_get_streambufbuffedsize(int pid); 00084 int audio_get_decoder_enable(int pid); 00085 00086 #ifdef __cplusplus 00087 } 00088 #endif 00089 00090 #endif 00091
Generated on Tue Dec 2 2014 21:55:12 for amplayerMy Project by
![doxygen](doxygen.png)