1 public interface Camera {
6 public byte[] getLatestFrame();
7 public long getTimestamp();
8 public List<Resolution> getSupportedResolutions();
9 public boolean setResolution(Resolution _res);
10 public boolean setFPS(int _fps);
11 public int getMaxFPS();
12 public int getMinFPS();
13 public void registerCallback(CameraCallback _callbackTo);
15 capability Initialize {
16 description = "Initialize object";
20 method = "registerCallback(CameraCallback _callbackTo)";
24 description = "Latest frame and timestamp";
25 method = "getLatestFrame()";
26 method = "getTimestamp()";
29 capability Resolution {
30 description = "Manage resolutions";
31 method = "getSupportedResolutions()";
32 method = "setResolution(Resolution _res)";
36 description = "Manage FPS";
37 method = "setFPS(int _fps)";
38 method = "getMaxFPS()";
39 method = "getMinFPS()";