diff options
Diffstat (limited to 'testcase/camera/camera_hal_interface.h')
-rw-r--r-- | testcase/camera/camera_hal_interface.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/testcase/camera/camera_hal_interface.h b/testcase/camera/camera_hal_interface.h new file mode 100644 index 0000000..3323c8b --- /dev/null +++ b/testcase/camera/camera_hal_interface.h @@ -0,0 +1,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 + |