/***************************** BEGIN LICENSE BLOCK ***************************

The contents of this file are subject to the Mozilla Public License, v. 2.0.
If a copy of the MPL was not distributed with this file, You can obtain one
at http://mozilla.org/MPL/2.0/.

Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the License.
 
Copyright (C) 2012-2015 Sensia Software LLC. All Rights Reserved.
 
******************************* END LICENSE BLOCK ***************************/

package org.sensorhub.impl.sensor.v4l;

import org.sensorhub.api.sensor.SensorConfig;


/**
 * <p>
 * Configuration class for the generic Video4Linux camera driver
 * </p>
 *
 * @author Alex Robin <alex.robin@sensiasoftware.com>
 * @since Sep 6, 2013
 */
public class V4LCameraConfig extends SensorConfig
{
    
    /**
     * Name of video device to use
     * example: /dev/video0
     */
    public String deviceName;
    
    
    /**
     * Maximum number of frames that can be kept in storage
     * (These last N frames will be stored in memory)
     */
    public int frameStorageCapacity;
    
    
    /**
     * Default camera params to use on startup
     * These can then be changed with the control interface
     */
    public V4LCameraParams defaultParams = new V4LCameraParams();

}

/***************************** BEGIN LICENSE BLOCK ***************************

The contents of this file are subject to the Mozilla Public License, v. 2.0.
If a copy of the MPL was not distributed with this file, You can obtain one
at http://mozilla.org/MPL/2.0/.

Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the License.
 
Copyright (C) 2012-2015 Sensia Software LLC. All Rights Reserved.
 
******************************* END LICENSE BLOCK ***************************/

package org.sensorhub.impl.sensor.v4l;

import org.sensorhub.api.sensor.SensorConfig;


/**
 * <p>
 * Configuration class for the generic Video4Linux camera driver
 * </p>
 *
 * @author Alex Robin <alex.robin@sensiasoftware.com>
 * @since Sep 6, 2013
 */
public class V4LCameraConfig extends SensorConfig
{
    
    /**
     * Name of video device to use (e.g. /dev/video0)
     */
    public String deviceName = "/dev/video0";
    
    
    /**
     * Maximum number of frames that can be kept in storage
     * (These last N frames will be stored in memory)
     */
    public int frameStorageCapacity;
    
    
    /**
     * Default camera params to use on startup
     * These can then be changed with the control interface
     */
    public V4LCameraParams defaultParams = new V4LCameraParams();

}

Fix in ModuleRegistry to properly disable module without unloading them
Fix in ModuleRegistry to properly disable module without unloading them