Exemplo n.º 1
0
// Stops the acquisition of the video stream.
func (camera *VideoCamera) Stop() int {
	if camera.on == false {
		return 1
	}

	C.freenect_stop_video(camera.device.dev)
	fmt.Printf("Video stream stopped\n")
	return 0
}
Exemplo n.º 2
0
// StopVideoStream stops the retrieval of video information from the device.
func (device *Device) StopVideoStream() error {

	errCode := C.freenect_stop_video(device.device)

	if errCode != 0 {
		return errors.New("could not stop video stream")
	}

	return nil
}
Exemplo n.º 3
0
//FREENECTAPI int freenect_stop_video(freenect_device *dev);
func (dev *Device) StopVideo() int {
	return int(C.freenect_stop_video(dev.ptr()))
}