Merge branch 'tizen' into tizen_line_coverage
[platform/core/api/camera.git] / include / camera_internal.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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 __TIZEN_MULTIMEDIA_CAMERA_INTERNAL_H__
18 #define __TIZEN_MULTIMEDIA_CAMERA_INTERNAL_H__
19
20 #include <camera.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 /**
27  * @file camera_internal.h
28  * @brief This file contains the internal Camera API, related structures and enumerations.
29  * @since_tizen 3.0
30  */
31
32 /**
33  * @addtogroup CAPI_MEDIA_CAMERA_INTERNAL_MODULE
34  * @{
35  */
36
37 /**
38  * @brief Start the evas rendering.
39  *
40  * @since_tizen 3.0
41  * @param[in] camera The handle to the camera
42  * @return @c 0 on success, otherwise a negative error value
43  * @retval #CAMERA_ERROR_NONE Successful
44  * @retval #CAMERA_ERROR_INVALID_PARAMETER Invalid parameter
45  * @retval #CAMERA_ERROR_INVALID_STATE Invalid state
46  * @retval #CAMERA_ERROR_INVALID_OPERATION Invalid operation
47  * @retval #CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
48  */
49 int camera_start_evas_rendering(camera_h camera);
50
51 /**
52  * @brief Stop the evas rendering.
53  *
54  * @since_tizen 3.0
55  * @param[in] camera The handle to the camera
56  * @param[in] keep_screen If @c true keep last frame on display, otherwise @c false
57  * @return @c 0 on success, otherwise a negative error value
58  * @retval #CAMERA_ERROR_NONE Successful
59  * @retval #CAMERA_ERROR_INVALID_PARAMETER Invalid parameter
60  * @retval #CAMERA_ERROR_INVALID_STATE Invalid state
61  * @retval #CAMERA_ERROR_INVALID_OPERATION Invalid operation
62  * @retval #CAMERA_ERROR_NOT_SUPPORTED The feature is not supported
63  */
64 int camera_stop_evas_rendering(camera_h camera, bool keep_screen);
65
66 /**
67  * @}
68  */
69 #ifdef __cplusplus
70 }
71 #endif
72
73 #endif /* __TIZEN_MULTIMEDIA_CAMERA_INTERNAL_H__ */