Porting and compiling SmartLightsController
[iot2.git] / localconfig / iotpolicy / AmcrestCamera / amcrestcamera.pol
1 public interface Camera {
2
3         public void init();
4         public void start();
5         public void stop();
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);
14
15         capability Initialize {
16                 description = "Initialize object";
17                 method = "init()";
18                 method = "start()";
19                 method = "stop()";
20                 method = "registerCallback(CameraCallback _callbackTo)";
21         }
22
23         capability Frame {
24                 description = "Latest frame and timestamp";
25                 method = "getLatestFrame()";
26                 method = "getTimestamp()";
27         }
28
29         capability Resolution {
30                 description = "Manage resolutions";
31                 method = "getSupportedResolutions()";
32                 method = "setResolution(Resolution _res)";
33         }
34
35         capability FPS {
36                 description = "Manage FPS";
37                 method = "setFPS(int _fps)";
38                 method = "getMaxFPS()";
39                 method = "getMinFPS()";
40         }
41
42         enum Resolution {
43                 RES_1080P,
44                 RES_720P,
45                 RES_VGA
46         }
47 }
48
49