Exemplo n.º 1
0
DaHengCamera::~DaHengCamera()
{
    if(cameraOpened){
        OnSnapexStop();
        OnSnapexClose();
        HVSTATUS status = STATUS_OK;
        //	关闭数字摄像机,释放数字摄像机内部资源
        status = EndHVDevice(m_hhv_1);
        status = EndHVDevice(m_hhv_2);
        //	回收图像缓冲区
        delete []m_pRawBuffer_1;
        delete []m_pRawBuffer_2;
    }
}
Exemplo n.º 2
0
HV_Camera::~HV_Camera()
{
	
	
	//	停止采集图像到内存,可以再次调用HVStartSnapEx启动数字摄像机采集
	HVSTATUS status =STATUS_OK;
	status = HVStopSnap(m_hhv);
	HV_VERIFY(status);

	//	终止数字摄像机采集图像到内存,同时释放所有采集环境,
	//	再次启动数字摄像机采集,必须重新初始化	
	status = STATUS_OK;
	status = HVCloseSnap(m_hhv);
	HV_VERIFY(status);

	//  关闭设备
	status = STATUS_OK;
	EndHVDevice(m_hhv);  //关闭设备
	HV_VERIFY(status);


	delete m_pRawBuffer;
	delete m_pImageBuffer;

};
Exemplo n.º 3
0
void DaHengCamera::closeCamera()
{
    OnSnapexStop();
    OnSnapexClose();

    HVSTATUS status = STATUS_OK;
    //	关闭数字摄像机,释放数字摄像机内部资源
    status = EndHVDevice(m_hhv_1);
    status = EndHVDevice(m_hhv_2);

//    //	回收图像缓冲区
//    delete []m_pRawBuffer_1;
//    delete []m_pRawBuffer_2;

    cameraOpened = false;
}
Exemplo n.º 4
0
CMainFrame::~CMainFrame()
{
	HVSTATUS status = STATUS_OK;
	
	//	关闭数字摄像机,释放数字摄像机内部资源
	status = EndHVDevice(m_hhv);
	HV_VERIFY(status);

	//	回收图像缓冲区
	delete []m_pRawBuffer;
	delete []m_pImageBuffer;
    delete []DisplayBuffer;
}