ControlViewer.java :  » Linux » v4l4j » au » edu » jcu » v4l4j » examples » videoViewer » Java Open Source

Java Open Source » Linux » v4l4j 
v4l4j » au » edu » jcu » v4l4j » examples » videoViewer » ControlViewer.java
/*
* Copyright (C) 2007-2008 Gilles Gigan (gilles.gigan@gmail.com)
* eResearch Centre, James Cook University (eresearch.jcu.edu.au)
*
* This program was developed as part of the ARCHER project
* (Australian Research Enabling Environment) funded by a   
* Systemic Infrastructure Initiative (SII) grant and supported by the Australian
* Department of Innovation, Industry, Science and Research
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public  License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*
*/
package au.edu.jcu.v4l4j.examples.videoViewer;

import au.edu.jcu.v4l4j.FrameGrabber;
import au.edu.jcu.v4l4j.ImageFormat;
import au.edu.jcu.v4l4j.VideoDevice;
import au.edu.jcu.v4l4j.exceptions.V4L4JException;

public class ControlViewer extends AbstractVideoViewer{
  
  /**
   * Builds a WebcamViewer object
   * @param v the video device 
   */
    public ControlViewer(VideoDevice v) {
      super(v);
      
      initGUI(new Object[] {},640,480,"");            
    }

  @Override
  protected FrameGrabber getFrameGrabber(ImageFormat i) throws V4L4JException {
    // we shouldnt be called
    throw new V4L4JException("Control-only viewer");
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.