blob: e817eef5469c084af4e32e8ad41e07d727480bf6 [file] [log] [blame]
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -08001/*
2 * Copyright (C) 2015 The Android Open Source Project
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
Yin-Chia Yeh3e49be12016-04-12 16:00:33 -070017/**
18 * @addtogroup Camera
19 * @{
20 */
21
22/**
23 * @file NdkCameraError.h
24 */
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -080025
26/*
27 * This file defines an NDK API.
28 * Do not remove methods.
29 * Do not change method signatures.
30 * Do not change the value of constants.
31 * Do not change the size of any of the classes defined in here.
32 * Do not reference types that are not part of the NDK.
33 * Do not #include files that aren't part of the NDK.
34 */
35
36#ifndef _NDK_CAMERA_ERROR_H
37#define _NDK_CAMERA_ERROR_H
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43typedef enum {
44 ACAMERA_OK = 0,
45
46 ACAMERA_ERROR_BASE = -10000,
47 ACAMERA_ERROR_UNKNOWN = ACAMERA_ERROR_BASE,
48 ACAMERA_ERROR_UNSUPPORTED = ACAMERA_ERROR_BASE - 1,
49 ACAMERA_ERROR_INVALID_PARAMETER = ACAMERA_ERROR_BASE - 2,
50 ACAMERA_ERROR_CAMERA_DISCONNECTED = ACAMERA_ERROR_BASE - 3,
51 ACAMERA_ERROR_NOT_ENOUGH_MEMORY = ACAMERA_ERROR_BASE - 4,
52 ACAMERA_ERROR_METADATA_NOT_FOUND = ACAMERA_ERROR_BASE - 5,
53 ACAMERA_ERROR_CAMERA_DEVICE = ACAMERA_ERROR_BASE - 6,
54 ACAMERA_ERROR_CAMERA_SERVICE = ACAMERA_ERROR_BASE - 7,
55 ACAMERA_ERROR_CAMERA_REQUEST = ACAMERA_ERROR_BASE - 8,
56 ACAMERA_ERROR_CAMERA_RESULT = ACAMERA_ERROR_BASE - 9,
57 ACAMERA_ERROR_CAMERA_BUFFER = ACAMERA_ERROR_BASE - 10,
Yin-Chia Yehead91462016-01-06 16:45:08 -080058 ACAMERA_ERROR_SESSION_CLOSED = ACAMERA_ERROR_BASE - 11,
59 ACAMERA_ERROR_SESSION_NOT_DRAINED = ACAMERA_ERROR_BASE - 12,
60 ACAMERA_ERROR_INVALID_OPERATION = ACAMERA_ERROR_BASE - 13,
61 ACAMERA_ERROR_TIMEOUT = ACAMERA_ERROR_BASE - 14,
62 ACAMERA_ERROR_STREAM_CONFIGURE_FAIL = ACAMERA_ERROR_BASE - 15,
Yin-Chia Yeh3e49be12016-04-12 16:00:33 -070063 ACAMERA_ERROR_CAMERA_IN_USE = ACAMERA_ERROR_BASE - 16,
64 ACAMERA_ERROR_MAX_CAMERA_IN_USE = ACAMERA_ERROR_BASE - 17,
65 ACAMERA_ERROR_CAMERA_DISABLED = ACAMERA_ERROR_BASE - 18,
66 ACAMERA_ERROR_PERMISSION_DENIED = ACAMERA_ERROR_BASE - 19,
Yin-Chia Yeh0dea57f2015-12-09 16:46:07 -080067} camera_status_t;
68
69
70#ifdef __cplusplus
71} // extern "C"
72#endif
73
74#endif // _NDK_CAMERA_ERROR_H
Yin-Chia Yeh3e49be12016-04-12 16:00:33 -070075
76/** @} */