3b9b20fa9b60d9228079d166e2563e3c9a04d870
[apps/native/smart-surveillance-camera.git] / include / controller_mv.h
1  /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __CONTROLLER_MV_H__
18 #define __CONTROLLER_MV_H__
19 #include <mv_common.h>
20
21 typedef void (*movement_detected_cb)(int horizontal, int vertical, int result[], int result_count, void *user_data);
22
23 mv_source_h controller_mv_create_source(
24                 unsigned char *buffer, unsigned int size,
25                 unsigned int width, unsigned int height, mv_colorspace_e colorspace);
26 void controller_mv_push_source(mv_source_h source);
27 int controller_mv_set_movement_detection_event_cb(movement_detected_cb movement_detected_cb, void *user_data);
28 void controller_mv_unset_movement_detection_event_cb(void);
29
30 #endif