Yin-Chia Yeh | 0dea57f | 2015-12-09 16:46:07 -0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | |
| 18 | /* |
| 19 | * This file defines an NDK API. |
| 20 | * Do not remove methods. |
| 21 | * Do not change method signatures. |
| 22 | * Do not change the value of constants. |
| 23 | * Do not change the size of any of the classes defined in here. |
| 24 | * Do not reference types that are not part of the NDK. |
| 25 | * Do not #include files that aren't part of the NDK. |
| 26 | */ |
| 27 | |
| 28 | #ifndef _NDK_CAMERA_ERROR_H |
| 29 | #define _NDK_CAMERA_ERROR_H |
| 30 | |
| 31 | #ifdef __cplusplus |
| 32 | extern "C" { |
| 33 | #endif |
| 34 | |
| 35 | typedef enum { |
| 36 | ACAMERA_OK = 0, |
| 37 | |
| 38 | ACAMERA_ERROR_BASE = -10000, |
| 39 | ACAMERA_ERROR_UNKNOWN = ACAMERA_ERROR_BASE, |
| 40 | ACAMERA_ERROR_UNSUPPORTED = ACAMERA_ERROR_BASE - 1, |
| 41 | ACAMERA_ERROR_INVALID_PARAMETER = ACAMERA_ERROR_BASE - 2, |
| 42 | ACAMERA_ERROR_CAMERA_DISCONNECTED = ACAMERA_ERROR_BASE - 3, |
| 43 | ACAMERA_ERROR_NOT_ENOUGH_MEMORY = ACAMERA_ERROR_BASE - 4, |
| 44 | ACAMERA_ERROR_METADATA_NOT_FOUND = ACAMERA_ERROR_BASE - 5, |
| 45 | ACAMERA_ERROR_CAMERA_DEVICE = ACAMERA_ERROR_BASE - 6, |
| 46 | ACAMERA_ERROR_CAMERA_SERVICE = ACAMERA_ERROR_BASE - 7, |
| 47 | ACAMERA_ERROR_CAMERA_REQUEST = ACAMERA_ERROR_BASE - 8, |
| 48 | ACAMERA_ERROR_CAMERA_RESULT = ACAMERA_ERROR_BASE - 9, |
| 49 | ACAMERA_ERROR_CAMERA_BUFFER = ACAMERA_ERROR_BASE - 10, |
Yin-Chia Yeh | ead9146 | 2016-01-06 16:45:08 -0800 | [diff] [blame^] | 50 | ACAMERA_ERROR_SESSION_CLOSED = ACAMERA_ERROR_BASE - 11, |
| 51 | ACAMERA_ERROR_SESSION_NOT_DRAINED = ACAMERA_ERROR_BASE - 12, |
| 52 | ACAMERA_ERROR_INVALID_OPERATION = ACAMERA_ERROR_BASE - 13, |
| 53 | ACAMERA_ERROR_TIMEOUT = ACAMERA_ERROR_BASE - 14, |
| 54 | ACAMERA_ERROR_STREAM_CONFIGURE_FAIL = ACAMERA_ERROR_BASE - 15, |
Yin-Chia Yeh | 0dea57f | 2015-12-09 16:46:07 -0800 | [diff] [blame] | 55 | } camera_status_t; |
| 56 | |
| 57 | |
| 58 | #ifdef __cplusplus |
| 59 | } // extern "C" |
| 60 | #endif |
| 61 | |
| 62 | #endif // _NDK_CAMERA_ERROR_H |