2 * Copyright 2009 (c) Florian Frankenberger (darkblue.de)
\r
4 * This file is part of LEA.
\r
6 * LEA is free software: you can redistribute it and/or modify it under the
\r
7 * terms of the GNU Lesser General Public License as published by the Free
\r
8 * Software Foundation, either version 3 of the License, or (at your option) any
\r
11 * LEA is distributed in the hope that it will be useful, but WITHOUT ANY
\r
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
\r
13 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
\r
16 * You should have received a copy of the GNU Lesser General Public License
\r
17 * along with LEA. If not, see <http://www.gnu.org/licenses/>.
\r
20 import java.awt.image.BufferedImage;
\r
23 * Describes a capture device. For now it is only tested with images in <code>640x480</code> at
\r
24 * <code>RGB</code> or <code>YUV</code> color space.
\r
26 * @author Florian Frankenberger
\r
28 public interface ICaptureDevice {
\r
31 * Returns the frame rate of the image source per second
\r
33 * @return the frame rate (e.g. 15 = 15 frames per second)
\r
35 public int getFrameRate();
\r
38 * Will be called a maximum of getFrameRate()-times in a second and returns the actual image of
\r
39 * the capture device
\r
41 * @return the actual image of the capture device
\r
43 public BufferedImage getImage();
\r
46 * LEA calls this when it cleans up. You should put your own cleanup code in here.
\r
48 public void close();
\r