blob: e8a5ca6bab310ce732a0267ea7f93b813cfecb3e [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-ZslStream"
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 "Camera3ZslStream.h"
24
25namespace android {
26
27namespace camera3 {
28
29Camera3ZslStream::Camera3ZslStream(int id, uint32_t width, uint32_t height,
30 int depth) :
31 Camera3Stream(id, CAMERA3_STREAM_BIDIRECTIONAL, width, height, 0,
32 HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED),
33 mDepth(depth) {
34}
35
36status_t Camera3ZslStream::getBufferLocked(camera3_stream_buffer *buffer) {
37 (void) buffer;
38 ALOGE("%s: Not implemented", __FUNCTION__);
39 return INVALID_OPERATION;
40}
41
42status_t Camera3ZslStream::returnBufferLocked(
43 const camera3_stream_buffer &buffer,
44 nsecs_t timestamp) {
45 (void) buffer;
46 (void) timestamp;
47 ALOGE("%s: Not implemented", __FUNCTION__);
48 return INVALID_OPERATION;
49}
50
51bool Camera3ZslStream::hasOutstandingBuffersLocked() const {
52 ALOGE("%s: Not implemented", __FUNCTION__);
53 return false;
54}
55
56status_t Camera3ZslStream::waitUntilIdle(nsecs_t timeout) {
57 (void) timeout;
58 ALOGE("%s: Not implemented", __FUNCTION__);
59 return INVALID_OPERATION;
60}
61
62status_t Camera3ZslStream::disconnectLocked() {
63 ALOGE("%s: Not implemented", __FUNCTION__);
64 return INVALID_OPERATION;
65}
66
67status_t Camera3ZslStream::getInputBuffer(camera3_stream_buffer *buffer,
68 nsecs_t timestamp) {
69 (void) buffer;
70 (void) timestamp;
71 ALOGE("%s: Not implemented", __FUNCTION__);
72 return INVALID_OPERATION;
73}
74
75status_t Camera3ZslStream::returnInputBuffer(const camera3_stream_buffer &buffer) {
76 (void) buffer;
77 ALOGE("%s: Not implemented", __FUNCTION__);
78 return INVALID_OPERATION;
79}
80
81void Camera3ZslStream::dump(int fd, const Vector<String16> &args) const {
82 (void) fd;
83 (void) args;
84 ALOGE("%s: Not implemented", __FUNCTION__);
85}
86
87}; // namespace camera3
88
89}; // namespace android