?? av_play.h
字號:
/* Copyright 1996, ESS Technology, Inc. *//* SCCSID @(#)av_play.h 4.8 02/09/05 *//* * $Log$ */#ifndef __AV_PLAY_H__#define __AV_PLAY_H__/*------------------------------------------------------------------------ Definitions------------------------------------------------------------------------*/#define VIDEO_INIT_STATE 0#define VIDEO_SLOW_MOTION 1#define VIDEO_FF 2#define VIDEO_FR 3#define VIDEO_PAUSE 4#define AUDIO_FF 5#define AUDIO_FR 6#define AUDIO_NORMAL 7#define AUDIO_PAUSE 8#define VIDEO_NORMAL 9#define VIDEO_STILL 10#define VIDEO_STEP 11#define VIDEO_ABNORMAL 12#define VIDEO_WAIT_TIMEOUT 13#ifdef MP3#define MP3_NORMAL VIDEO_WAIT_TIMEOUT+1#else#define MP3_NORMAL VIDEO_WAIT_TIMEOUT#endif MP3#ifdef JPEG_DEC#define JPEG_NORMAL MP3_NORMAL+1#else#define JPEG_NORMAL MP3_NORMAL#endif JPEG_DEC#ifdef ANTI_SHOCK#define AUDIO_ESP JPEG_NORMAL+1#else#define AUDIO_ESP JPEG_NORMAL#endif ANTI_SHOCK/*------------------------------------------------------------------------ Function prototypes------------------------------------------------------------------------*//* NORMAL MODE */int av_play_cdda_audio(int track_start, int start_mmssff, int end_mmssff);int av_play_motion_video(int start_mmssff, int end_mmssff);int av_play_still(int start_mmssff, int end_mmssff, int type);/* TRICK MODE */int av_play_slow_motion(int field_number);int av_play_fast_forwart(int skip_mmssff, int end_mmssff);int av_play_fast_rewind(int skip_mmssff, int end_mmssff);int av_play_pause();/* RETURN TO NORMAL MODE FROM TRICK MODE */int av_play_resume();int av_play_continue(int start_mmssff, int end_mmssff);/* clear decoder buffer */void clear_dec(void);void av_play_video_only();void av_play_audio_only();void av_mute_audio(int flag); /* 0 -> not mute, otherwise mute */void av_reset(); /* is called when we try to stop decoding. */int reset_video_mode();#ifdef ANTI_SHOCKvoid av_cdda_match_stop(void);#endifextern int av_play_init_wma(int, int); /* FR across WMA tracks *//*------------------------------------------------------------------------ Global Variables------------------------------------------------------------------------*/extern int video_state; /* state of av play state machine. */extern uint AV_near_track_end_time;extern int vcx_fast_speed_done;/*------------------------------------------------------------------------ Function: av_play_cdda_audio Parameters: start_mmssff : the start time in BCD's minute, second and frame format. end_mmssff: the end time in BCD's minute, second and frame format. Description: This function will play a section of audio CD from start_mmssff to end_mmssff. When this section is finish, the end_of_play variable will be set to 1.-------------------------------------------------------------------------- Function: av_play_motion_video Parameters: start_mmssff : the start time in BCD's minute, second and frame format. end_mmssff: the end time in BCD's minute, second and frame format. Description: This function will play a section of motion video from start_mmssff to end_mmssff. When this section is finish, the end_of_play variable will be set to 1.------------------------------------------------------------------------- Function: av_play_still Parameters: start_mmssff : the start time in BCD's minute, second and frame format. end_mmssff: the end time in BCD's minute, second and frame format. type : value should be "0xe1" or "0xe2". Description: This function will play a section of still video from start_mmssff to end_mmssff. When this section is finish, the end_of_play variable will be set to 1.-------------------------------------------------------------------------- Function:av_play_pause Description: This function will pause the playing section.-------------------------------------------------------------------------- Function: av_play_resume Description: This function will take the player from trick mode to normal mode. trick mode includes FF/FR, slow motion, step and pause.-------------------------------------------------------------------------- Function: av_play_slow_motion Parameters: field_length : The number of field time that a picture should be display. For a normal speed NTSC picture, the field_length is 2. If we want to make the slow motion to 1/2 speed of normal speed, we need to set field_length value to 4. Description: Plays slow motion.-------------------------------------------------------------------------- Function: av_play_mute Parameters: flag : The audio will be mute if the flag value is not 0. Description:-------------------------------------------------------------------------- Function:av_play_step Description: When this function is called, the player will display a new decoded picture.-------------------------------------------------------------------------- Function: av_play_fast_forward/av_play_fast_rewind Parameters: mmssff: The jump time after an I frame is displayed. The format of mmssff is BCD's 0xmmssff format. end_mmssff: When the end_mmssff is played, the vcx_fast_speed_done variable will be set to 1. The called should check this variable and decide what to do. Description: This function will cause the decoder to a fast forward/rewind mode.--------------------------------------------------------------------------------------------------------------------------------------------------*/#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -