2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __MUSE_CAMERA_INTERNAL_H__
18 #define __MUSE_CAMERA_INTERNAL_H__
25 * @file muse_camera_internal.h
26 * @brief This file contains the muse camera internal API for framework, related structures and enumerations.
29 #include <muse_core.h>
30 #include <muse_camera.h>
31 #include <legacy_camera_internal.h>
33 #define PREVIEW_CB_TYPE_USER 0x0000000F
34 #define PREVIEW_CB_TYPE_EVAS 0x000000F0
36 #define CHECK_PREVIEW_CB(muse_camera, cb_type) ((muse_camera)->preview_cb_flag & cb_type)
37 #define SET_PREVIEW_CB_TYPE(muse_camera, cb_type) ((muse_camera)->preview_cb_flag |= cb_type)
38 #define UNSET_PREVIEW_CB_TYPE(muse_camera, cb_type) ((muse_camera)->preview_cb_flag &= ~cb_type)
45 } muse_camera_task_job_s;
48 camera_h camera_handle;
53 GMutex preview_cb_lock;
54 GCond preview_cb_cond;
55 guint preview_cb_flag;
63 gboolean is_shutting_down;
64 } muse_camera_handle_s;
71 #endif /* __MUSE_CAMERA_INTERNAL_H__ */