typedef void (CALLBACK *RTP_STREAMCALLBACK)( unsigned int Handle, unsigned char *Buffer, int nSize, int UserData );
////////////////RTSP 标准接口////////////////////
void _stdcall RTSP_Init( int StartRtpPort);
void _stdcall RTSP_Release();
int _stdcall RTSP_Connect( const char *Url, const char *User, const char *Pass, HWND hWnd, bool bUdpConnect );
void _stdcall RTSP_Close( int RtspHandle );
bool _stdcall RTSP_OpenSound( int RtspHandle );
bool _stdcall RTSP_CloseSound( int RtspHandle );
void _stdcall RTSP_SetStreamCall(RTP_STREAMCALLBACK pFun, int UserData);
bool _stdcall RTSP_Record( int RtspHandle, char *FileName );
bool _stdcall RTSP_StopRecord( int RtspHandle );
bool _stdcall RTSP_CapPic( int RtspHandle, char *FileName );
////////////// TS流标准接口 ////////////////////////
//流类型,0: 视频流 1:音频流 2:用户自定义数据
typedef void (CALLBACK *TS_STREAMCALLBACK )(unsigned int Handle, int StreamType, unsigned char Buffer[], int nLen, int UserData );
//初始化资源管理
void _stdcall TS_Init( );
void _stdcall TS_Release();
//打开视频流
int _stdcall TS_Connect( char *strSvrIP, int nSvrPort, int nLocalPort, HWND hWnd );
//关闭视频流
void _stdcall TS_Close( int Handle );
//实时录像
bool _stdcall TS_RecordStart( int Handle, char *FileName );
void _stdcall TS_RecordStop( int Handle );
//实时抓图
bool _stdcall TS_CapPic( int Handle, char *FileName );
//设置旋转
void _stdcall TS_SetRotate( int Handle, bool bRotate, double Angle, double ScaleX, double ScaleY );
//设置视频流回调接口,必须在启动视频流以前设置
void _stdcall TS_SetStreamCallback( TS_STREAMCALLBACK pCallFun, int UserData );
void _stdcall TS_ShowOSD(int Handle, bool bShow );
void _stdcall TS_SetPlayRate( int Handle, int PlayRate );
int _stdcall TS_GetPlayRate( int Handle );
void _stdcall TS_DeInterlace( int Handle, bool bDone );
//////////////////////多功能解码器////////////////////////////////////
int _stdcall DEC_GetHeaderBuffer( int VideoCodecID, int AudioCodecID, int ASampleRate, int AChannel, int ABitRate,
unsigned char *VideoConfig, int VCLen,
unsigned char *AudioConfig, int ACLen,
unsigned int TotalFrames, int PlayRate, unsigned char StreamHeaderBuffer[] );
bool _stdcall DEC_Open( int nPort, int OpenStreamMode, char StreamHeaderBuffer[], int BufferLen );
bool _stdcall DEC_Close( int nPort );
bool _stdcall DEC_InputData( int nPort, unsigned char *Buffer, int nSize );
bool _stdcall DEC_InputDataEx( int nPort, unsigned char *Buffer, int nSize, int StreamType );
int _stdcall DEC_GetFreePort();
void _stdcall DEC_ReleasePort(int nPort);
bool _stdcall DEC_Play( int nPort, HWND hPlayWnd );
bool _stdcall DEC_Stop( int nPort );
bool _stdcall DEC_Pause(int nPort, bool bPause );
bool _stdcall DEC_Fast( int nPort, int Speed );
bool _stdcall DEC_Slow( int nPort, int Speed );
bool _stdcall DEC_PlayNormal( int nPort );
bool _stdcall DEC_OneByOne( int nPort);
bool _stdcall DEC_CapPic( int nPort, char *FileName );
bool _stdcall DEC_OpenSound( int nPort );
bool _stdcall DEC_CloseSound( int nPort );
bool _stdcall DEC_OpenFile( int nPort, char *FileName);
bool _stdcall DEC_CloseFile( int nPort );
bool _stdcall DEC_SetPlayPos( int nPort, int Pos );
int _stdcall DEC_GetPlayPos( int nPort );
评论1
最新资源