blob: d8052a73bbd69651ad371d1423857d4d6a92b818 [file] [log] [blame]
Wind Yuan75564b12015-01-15 06:51:15 -05001/*
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
Wind Yuan8810a792015-01-22 15:20:23 +080024#include "xcam_utils.h"
Wind Yuan75564b12015-01-15 06:51:15 -050025
26namespace XCam {
27
28class X3aEvent
29 //:public ObjectLife
30{
31public:
32 enum Type {
33 TYPE_ISP_STATISTICS,
34 TYPE_ISP_FRAME_SYNC,
35 };
36
37protected:
38 explicit X3aEvent (X3aEvent::Type type, uint64_t timestamp)
39 : _timestamp (timestamp)
40 , _type (type)
41 {}
42 virtual ~X3aEvent() {}
43
44public:
45 uint64_t get_timestamp () const {
46 return _timestamp;
47 }
48 Type get_type () const {
49 return _type;
50 }
51
52private:
53 XCAM_DEAD_COPY (X3aEvent);
54
55protected:
56 uint64_t _timestamp;
57 X3aEvent::Type _type;
58};
59
60};
61
62#endif //XCAM_3A_EVENT_H
63