Пример #1
0
HANDLE CHikVision::OpenChannel( int nChannelNum )
{
    // PlateCfg.ini
    // [WintonePlate]
    // Recorder=true
    HANDLE hChannel = ChannelOpen( nChannelNum );
    int nRet = 0;
    if ( bRecorder && ( INVALID_HANDLE != hChannel ) ) {
        nRet = StartVideoCapture( hChannel );
    }

    return hChannel;
}
Пример #2
0
EncodedStream::EncodedStream(int id){
	m_channel_id = -1;
	m_yuv_buf = NULL;
	m_encoder = NULL;
	m_stream_writer = NULL;
	if (!m_g_dsp_opened){
		openDSP();
	}
	if (id < m_g_channel_count){
		m_channel_id = id;
		m_channel_handle = ChannelOpen(m_channel_id);		
		m_g_count++;
		m_g_channel_map[m_channel_id] = this;
		m_encoder = new Encoder(WIDTH, HEIGHT, FPS, 4);
		m_stream_writer = new StreamWriter(m_channel_id, time(0));
	}
}
Пример #3
0
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);
		}
	}
}
Пример #4
0
HANDLE CHikVision::OpenChannel( int nChannelNum )
{
    return ChannelOpen( nChannelNum );
}