blob: 8a48ee592e9b062083952d6c182a7d203b3dde53 [file] [log] [blame]
Eino-Ville Talvalafd58f1a2013-03-06 16:20:06 -08001/*
2 * Copyright (C) 2013 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_TAG "Camera3-InputStream"
18#define ATRACE_TAG ATRACE_TAG_CAMERA
19//#define LOG_NDEBUG 0
20
21#include <utils/Log.h>
22#include <utils/Trace.h>
23#include "Camera3InputStream.h"
24
25namespace android {
26
27namespace camera3 {
28
29Camera3InputStream::Camera3InputStream(int id,
30 uint32_t width, uint32_t height, int format) :
31 Camera3Stream(id, CAMERA3_STREAM_INPUT, width, height, 0, format) {
32}
33
34status_t Camera3InputStream::getBufferLocked(camera3_stream_buffer *buffer) {
35 (void) buffer;
36 ALOGE("%s: Not implemented", __FUNCTION__);
37 return INVALID_OPERATION;
38}
39
40status_t Camera3InputStream::returnBufferLocked(
41 const camera3_stream_buffer &buffer,
42 nsecs_t timestamp) {
43 (void) timestamp;
44 (void) buffer;
45 ALOGE("%s: Not implemented", __FUNCTION__);
46 return INVALID_OPERATION;
47}
48
49bool Camera3InputStream::hasOutstandingBuffersLocked() const {
50 ALOGE("%s: Not implemented", __FUNCTION__);
51 return false;
52}
53
54status_t Camera3InputStream::waitUntilIdle(nsecs_t timeout) {
55 (void) timeout;
56 ALOGE("%s: Not implemented", __FUNCTION__);
57 return INVALID_OPERATION;
58}
59
60status_t Camera3InputStream::disconnectLocked() {
61 ALOGE("%s: Not implemented", __FUNCTION__);
62 return INVALID_OPERATION;
63}
64
65sp<IGraphicBufferProducer> Camera3InputStream::getProducerInterface() const {
66 return mConsumer->getProducerInterface();
67}
68
69void Camera3InputStream::dump(int fd, const Vector<String16> &args) const {
70 (void) fd;
71 (void) args;
72 ALOGE("%s: Not implemented", __FUNCTION__);
73}
74
75}; // namespace camera3
76
77}; // namespace android