summaryrefslogtreecommitdiff
path: root/testcase/camera/camera_hal_interface.h
blob: 3323c8b58063a168abcf039a8f4d787bf6aaf925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 * Copyright (c) 2018 Samsung Electronics Co., Ltd. All rights reserved.
 *
 * Contact: Jeongmo Yang <jm80.yang@samsung.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <tizen-camera.h>


#ifdef __cplusplus
extern "C" {
#endif

typedef struct _camera_hal_interface camera_hal_interface;

int camera_hal_interface_init(camera_hal_interface **h);
int camera_hal_interface_deinit(camera_hal_interface *h);
int camera_hal_interface_get_device_list(camera_hal_interface *h, camera_device_list_t *device_list);
int camera_hal_interface_open_device(camera_hal_interface *h, int device_index);
int camera_hal_interface_close_device(camera_hal_interface *h);
int camera_hal_interface_add_message_callback(camera_hal_interface *h, camera_message_cb callback, void *user_data, uint32_t *cb_id);
int camera_hal_interface_remove_message_callback(camera_hal_interface *h, uint32_t cb_id);
int camera_hal_interface_set_preview_stream_format(camera_hal_interface *h, camera_format_t *format);
int camera_hal_interface_get_preview_stream_format(camera_hal_interface *h, camera_format_t *format);
int camera_hal_interface_start_preview(camera_hal_interface *h, camera_preview_frame_cb callback, void *user_data);
int camera_hal_interface_release_preview_buffer(camera_hal_interface *h, int buffer_index);
int camera_hal_interface_stop_preview(camera_hal_interface *h);
int camera_hal_interface_start_auto_focus(camera_hal_interface *h);
int camera_hal_interface_stop_auto_focus(camera_hal_interface *h);
int camera_hal_interface_start_capture(camera_hal_interface *h, camera_capture_cb callback, void *user_data);
int camera_hal_interface_stop_capture(camera_hal_interface *h);
int camera_hal_interface_set_video_stream_format(camera_hal_interface *h, camera_format_t *format);
int camera_hal_interface_get_video_stream_format(camera_hal_interface *h, camera_format_t *format);
int camera_hal_interface_start_record(camera_hal_interface *h, camera_video_frame_cb callback, void *user_data);
int camera_hal_interface_release_video_buffer(camera_hal_interface *h, int buffer_index);
int camera_hal_interface_stop_record(camera_hal_interface *h);
int camera_hal_interface_set_command(camera_hal_interface *h, int64_t command, void *value);
int camera_hal_interface_get_command(camera_hal_interface *h, int64_t command, void *value);
int camera_hal_interface_set_batch_command(camera_hal_interface *h, camera_batch_command_control_t *batch_command, int64_t *error_command);

#ifdef __cplusplus
}
#endif