NdkCameraCaptureSession.cpp revision 0dea57fd9fc4b2ccaab97d9477359fbd5a626f5c
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//#define LOG_NDEBUG 0
18#define LOG_TAG "NdkCameraCaptureSession"
19#define ATRACE_TAG ATRACE_TAG_CAMERA
20
21#include <utils/Log.h>
22#include <utils/Mutex.h>
23#include <utils/StrongPointer.h>
24#include <utils/Trace.h>
25
26#include "NdkCameraDevice.h"
27
28using namespace android;
29
30EXPORT
31camera_status_t ACameraCaptureSession_close(ACameraCaptureSession*) {
32    ATRACE_CALL();
33    return ACAMERA_OK;
34}
35
36EXPORT
37camera_status_t ACameraCaptureSession_getDevice(
38        ACameraCaptureSession*, ACameraDevice **device) {
39    ATRACE_CALL();
40    // Make sure don't do return garbage if device has been closed
41    return ACAMERA_OK;
42}
43
44EXPORT
45camera_status_t ACameraCaptureSession_capture(
46        ACameraCaptureSession*, /*optional*/ACameraCaptureSession_captureCallbacks*,
47        int numRequests, const ACaptureRequest* requests) {
48    ATRACE_CALL();
49    return ACAMERA_OK;
50}
51
52EXPORT
53camera_status_t ACameraCaptureSession_setRepeatingRequest(
54        ACameraCaptureSession*, /*optional*/ACameraCaptureSession_captureCallbacks*,
55        int numRequests, const ACaptureRequest* requests) {
56    ATRACE_CALL();
57    return ACAMERA_OK;
58}
59
60EXPORT
61camera_status_t ACameraCaptureSession_stopRepeating(ACameraCaptureSession*) {
62    ATRACE_CALL();
63    return ACAMERA_OK;
64}
65
66EXPORT
67camera_status_t ACameraCaptureSession_abortCaptures(ACameraCaptureSession*) {
68    ATRACE_CALL();
69    return ACAMERA_OK;
70}
71