/**\brief Tear down a C1394Camera Instance * \ingroup camcore * * Besides typical freeing of resources, this also calls StopImageAcquisition() * if necessary to disable the camera streaming and free kernel-side resources * as well. */ C1394Camera::~C1394Camera() { int i; DllTrace(DLL_TRACE_ENTER,"ENTER C1394Camera Destructor\n"); if(m_hDevInfo != INVALID_HANDLE_VALUE) SetupDiDestroyDeviceInfoList(m_hDevInfo); if(m_hDeviceAcquisition != INVALID_HANDLE_VALUE) StopImageAcquisition(); // nuke the strobe controls for(i=0; i<FEATURE_NUM_FEATURES; i++) if(this->m_pControls[i] != NULL) delete m_pControls[i]; if(m_pControlTrigger) delete m_pControlTrigger; if(m_pControlSize) delete m_pControlSize; // nuke the strobe controls for(i=0; i<4; i++) if(this->m_controlStrobes[i] != NULL) delete m_controlStrobes[i]; DllTrace(DLL_TRACE_EXIT,"EXIT C1394Camera Destructor\n"); }
/**\brief Wraps StopImageAcquisition() * \ingroup camcap * \return Same as StopImageAcquisition() */ int C1394Camera::StopImageCapture() { return StopImageAcquisition(); }