avi_if.h
资源名称:8202s.rar [点击查看]
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:2k
源码类别:
DVD
开发平台:
C/C++
- #ifndef __AVI_IF_H
- #define __AVI_IF_H
- #include "avi_def.h"
- #include "avi_type.h"
- #include "file_if.h"
- #include "audcodec.h"
- #define AVI_FAST_JUMP 4
- UINT32 Is_RIFF_file(BYTE *srcptr, UINT32 bufsize);
- void avi_clr_bufparam();
- int initAVIParam();
- int doAVIPreParser(BYTE *srcptr, INT32 bufsize);
- void get_avi_video_version(avi_video_info* info);
- int do_avi_movi_parser(void);
- //void avi_set_audio_fPTS();
- //void do_avi_audio_sync();
- UINT32 avi_set_goto(UINT32);
- UINT32 avi_set_goto_next_frame();
- int avi_set_fast(int avs);
- int avi_set_slow(int avs);
- int InitAVISubTitle();
- int SetAVISubTitleStream( UINT32 uiStream );
- void ClearAVISubtitle();//liumzh 20041204
- extern UINT32 file_play_state;
- extern UINT32 file_error_flag;
- extern UINT32 file_media_flag;
- extern UINT32 file_media_support;
- extern UINT32 avi_file_flag;
- extern UINT32 file_len;
- extern UINT32 ext_sup_state; // initialized/activated/
- #if 0
- #define IS_AVI_IN_DROPA() ((file_play_state&FILE_DROPA_STATE) > 0)
- #define IS_AVI_IN_DROPV() ((file_play_state&FILE_DROPV_STATE) > 0)
- #define SET_AVI_PLAY_STATE(x) (file_play_state = (x))
- #define GET_AVI_PLAY_STATE() (file_play_state)
- #define AVI_HAS_AUDIO() ((file_media_flag&AVI_AUDIO) > 0)
- #define AVI_HAS_VIDEO() ((file_media_flag&AVI_VIDEO) > 0)
- #define AVI_HAS_SUPIC() ((file_media_flag&AVI_SUPIC) > 0)
- #define IS_AVI_AUDIO_VBR() ((file_media_flag&AVI_AUDIO_VBR) > 0)
- #define IS_AVI_AUDIO_UNSUPPORTED() ((file_media_flag&AVI_AUDIO_UNSUPPORTED) > 0)
- #define IS_AVI_VIDEO_UNSUPPORTED() ((file_media_flag&AVI_VIDEO_UNSUPPORTED) > 0)
- #endif
- #if 0
- #define SET_AVI_STREAM_FLAG(x) (file_media_flag = (x))
- #define ADD_AVI_STREAM_FLAG(x) (file_media_flag |= (x))
- #define SUB_AVI_STREAM_FLAG(x) (file_media_flag &= ~(x))
- #define GET_AVI_STREAM_FLAG() (file_media_flag)
- #endif
- #define SET_AVI_FILE_FLAG(x) (avi_file_flag = (x))
- #define ADD_AVI_FILE_FLAG(x) (avi_file_flag |= (x))
- #define SUB_AVI_FILE_FLAG(x) (avi_file_flag &= ~(x))
- #define GET_AVI_FILE_FLAG() (avi_file_flag)
- #define AVI_SUPPORT_TRICKY_PLAY() ((avi_file_flag&AVI_IDX1) > 0)
- #define IS_DIVX_DRM() ((avi_file_flag&AVI_DIVX_DRM) > 0)
- #define GET_AVI_FILE_LEN() (file_len) // in seconds
- #endif // __AVI_IF_H