1 /*
2  * x3a_event.h - event
3  *
4  *  Copyright (c) 2014 Intel Corporation
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * Author: Wind Yuan <feng.yuan@intel.com>
19  */
20 
21 #ifndef XCAM_3A_EVENT_H
22 #define XCAM_3A_EVENT_H
23 
24 #include <xcam_std.h>
25 
26 namespace XCam {
27 
28 class X3aEvent
29 //:public ObjectLife
30 {
31 public:
32     enum Type {
33         TYPE_ISP_STATISTICS,
34         TYPE_ISP_FRAME_SYNC,
35     };
36 
37 protected:
38     explicit X3aEvent (X3aEvent::Type type, uint64_t timestamp)
39         : _timestamp (timestamp)
40         , _type (type)
41     {}
42     virtual ~X3aEvent() {}
43 
44 public:
45     uint64_t get_timestamp () const {
46         return _timestamp;
47     }
48     Type get_type () const {
49         return _type;
50     }
51 
52 private:
53     XCAM_DEAD_COPY (X3aEvent);
54 
55 protected:
56     uint64_t       _timestamp;
57     X3aEvent::Type _type;
58 };
59 
60 };
61 
62 #endif //XCAM_3A_EVENT_H
63 
64