int CHikVision::SystemStartup( ) { int nEncodeChannel = InitDSPs( ); qDebug( ) << "Encode Channel Number :" << nEncodeChannel << endl; return nEncodeChannel; }
int CHikVision::SystemStartup( HWND hOverlayWnd ) { int nEncodeChannel = InitDSPs( ); qDebug( ) << "Encode Channel Number :" << nEncodeChannel << endl; int nRet = RegisterStreamDirectReadCallback( ( STREAM_DIRECT_READ_CALLBACK ) StreamDirectReadCallback,this ); nRet = 0; return nEncodeChannel; }
void EncodedStream::openDSP(){ SetDefaultVideoStandard(StandardPAL); //no need default PAL m_g_channel_count = InitDSPs(); RegisterImageStreamCallback(EncodedStream::interOriHandler, NULL); RegisterStreamDirectReadCallback(EncodedStream::internalHandler, NULL); RegisterStreamReadCallback(EncodedStream::internalHandlerExt, NULL); m_g_count = 0; m_g_dsp_opened = true; }
void CMainDlg::initDH() { int iBoardNum; iBoardNum = InitDSPs(); if (iBoardNum <= 0) { MessageBox("大华卡初始化失败!\n"); for (int i=0;i<8;i++) { m_channelHandle[i] = INVALID_HANDLE_VALUE; } }else{ for (int i=0;i<8;i++) { m_channelHandle[i] = ChannelOpen(i); GetLocalTime(&m_systemTime); SetupDateTime(m_channelHandle[i], &m_systemTime); RECT rc = {0,30,342,248}; StartVideoPreview(m_channelHandle[i],m_previewDlg[i],&rc,FALSE,0,25); } } }