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
21 import java.awt.image.BufferedImage;
\r
24 * Describes a capture device. For now it is only tested
\r
25 * with images in <code>640x480</code> at <code>RGB</code> or <code>YUV</code> color space.
\r
27 * @author Florian Frankenberger
\r
29 public interface ICaptureDevice {
\r
32 * Returns the frame rate of the image source per second
\r
34 * @return the frame rate (e.g. 15 = 15 frames per second)
\r
36 public int getFrameRate();
\r
39 * Will be called a maximum of getFrameRate()-times in a second and returns
\r
40 * the actual image of the capture device
\r
42 * @return the actual image of the capture device
\r
44 public BufferedImage getImage();
\r
47 * LEA calls this when it cleans up. You should put your own cleanup code in here.
\r
49 public void close();
\r