NdkCameraError.h revision 0dea57fd9fc4b2ccaab97d9477359fbd5a626f5c
10dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh/* 20dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * Copyright (C) 2015 The Android Open Source Project 30dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * 40dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * Licensed under the Apache License, Version 2.0 (the "License"); 50dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * you may not use this file except in compliance with the License. 60dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * You may obtain a copy of the License at 70dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * 80dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * http://www.apache.org/licenses/LICENSE-2.0 90dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * 100dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * Unless required by applicable law or agreed to in writing, software 110dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * distributed under the License is distributed on an "AS IS" BASIS, 120dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 130dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * See the License for the specific language governing permissions and 140dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * limitations under the License. 150dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh */ 160dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh 170dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh 180dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh/* 190dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * This file defines an NDK API. 200dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * Do not remove methods. 210dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * Do not change method signatures. 220dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * Do not change the value of constants. 230dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * Do not change the size of any of the classes defined in here. 240dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * Do not reference types that are not part of the NDK. 250dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh * Do not #include files that aren't part of the NDK. 260dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh */ 270dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh 280dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh#ifndef _NDK_CAMERA_ERROR_H 290dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh#define _NDK_CAMERA_ERROR_H 300dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh 310dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh#ifdef __cplusplus 320dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yehextern "C" { 330dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh#endif 340dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh 350dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yehtypedef enum { 360dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_OK = 0, 370dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh 380dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_ERROR_BASE = -10000, 390dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_ERROR_UNKNOWN = ACAMERA_ERROR_BASE, 400dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_ERROR_UNSUPPORTED = ACAMERA_ERROR_BASE - 1, 410dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_ERROR_INVALID_PARAMETER = ACAMERA_ERROR_BASE - 2, 420dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_ERROR_CAMERA_DISCONNECTED = ACAMERA_ERROR_BASE - 3, 430dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_ERROR_NOT_ENOUGH_MEMORY = ACAMERA_ERROR_BASE - 4, 440dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_ERROR_METADATA_NOT_FOUND = ACAMERA_ERROR_BASE - 5, 450dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_ERROR_CAMERA_DEVICE = ACAMERA_ERROR_BASE - 6, 460dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_ERROR_CAMERA_SERVICE = ACAMERA_ERROR_BASE - 7, 470dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_ERROR_CAMERA_REQUEST = ACAMERA_ERROR_BASE - 8, 480dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_ERROR_CAMERA_RESULT = ACAMERA_ERROR_BASE - 9, 490dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh ACAMERA_ERROR_CAMERA_BUFFER = ACAMERA_ERROR_BASE - 10, 500dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh 510dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh} camera_status_t; 520dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh 530dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh 540dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh#ifdef __cplusplus 550dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh} // extern "C" 560dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh#endif 570dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh 580dea57fd9fc4b2ccaab97d9477359fbd5a626f5cYin-Chia Yeh#endif // _NDK_CAMERA_ERROR_H 59