Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 1 | /* |
| 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 | #ifndef ANDROID_SERVERS_CAMERA3_OUTPUT_STREAM_H |
| 18 | #define ANDROID_SERVERS_CAMERA3_OUTPUT_STREAM_H |
| 19 | |
| 20 | #include <utils/RefBase.h> |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 21 | #include <gui/IProducerListener.h> |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 22 | #include <gui/Surface.h> |
| 23 | |
Shuzhen Wang | 686f644 | 2017-06-20 16:16:04 -0700 | [diff] [blame] | 24 | #include "utils/LatencyHistogram.h" |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 25 | #include "Camera3Stream.h" |
Igor Murashkin | e3a9f96 | 2013-05-08 18:03:15 -0700 | [diff] [blame] | 26 | #include "Camera3IOStreamBase.h" |
Igor Murashkin | 2fba584 | 2013-04-22 14:03:54 -0700 | [diff] [blame] | 27 | #include "Camera3OutputStreamInterface.h" |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 28 | #include "Camera3BufferManager.h" |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 29 | |
| 30 | namespace android { |
| 31 | |
| 32 | namespace camera3 { |
| 33 | |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 34 | class Camera3BufferManager; |
| 35 | |
| 36 | /** |
| 37 | * Stream info structure that holds the necessary stream info for buffer manager to use for |
| 38 | * buffer allocation and management. |
| 39 | */ |
| 40 | struct StreamInfo { |
| 41 | int streamId; |
| 42 | int streamSetId; |
| 43 | uint32_t width; |
| 44 | uint32_t height; |
| 45 | uint32_t format; |
| 46 | android_dataspace dataSpace; |
Emilian Peev | 050f5dc | 2017-05-18 14:43:56 +0100 | [diff] [blame] | 47 | uint64_t combinedUsage; |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 48 | size_t totalBufferCount; |
| 49 | bool isConfigured; |
Chih-Hung Hsieh | d19d994 | 2016-08-29 14:21:14 -0700 | [diff] [blame] | 50 | explicit StreamInfo(int id = CAMERA3_STREAM_ID_INVALID, |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 51 | int setId = CAMERA3_STREAM_SET_ID_INVALID, |
| 52 | uint32_t w = 0, |
| 53 | uint32_t h = 0, |
| 54 | uint32_t fmt = 0, |
| 55 | android_dataspace ds = HAL_DATASPACE_UNKNOWN, |
Emilian Peev | 050f5dc | 2017-05-18 14:43:56 +0100 | [diff] [blame] | 56 | uint64_t usage = 0, |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 57 | size_t bufferCount = 0, |
| 58 | bool configured = false) : |
| 59 | streamId(id), |
| 60 | streamSetId(setId), |
| 61 | width(w), |
| 62 | height(h), |
| 63 | format(fmt), |
| 64 | dataSpace(ds), |
| 65 | combinedUsage(usage), |
| 66 | totalBufferCount(bufferCount), |
| 67 | isConfigured(configured){} |
| 68 | }; |
| 69 | |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 70 | /** |
| 71 | * A class for managing a single stream of output data from the camera device. |
| 72 | */ |
Igor Murashkin | 2fba584 | 2013-04-22 14:03:54 -0700 | [diff] [blame] | 73 | class Camera3OutputStream : |
Igor Murashkin | e3a9f96 | 2013-05-08 18:03:15 -0700 | [diff] [blame] | 74 | public Camera3IOStreamBase, |
Igor Murashkin | 2fba584 | 2013-04-22 14:03:54 -0700 | [diff] [blame] | 75 | public Camera3OutputStreamInterface { |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 76 | public: |
| 77 | /** |
| 78 | * Set up a stream for formats that have 2 dimensions, such as RAW and YUV. |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 79 | * A valid stream set id needs to be set to support buffer sharing between multiple |
| 80 | * streams. |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 81 | */ |
Eino-Ville Talvala | 727d172 | 2015-06-09 13:44:19 -0700 | [diff] [blame] | 82 | Camera3OutputStream(int id, sp<Surface> consumer, |
Eino-Ville Talvala | 3d82c0d | 2015-02-23 15:19:19 -0800 | [diff] [blame] | 83 | uint32_t width, uint32_t height, int format, |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 84 | android_dataspace dataSpace, camera3_stream_rotation_t rotation, |
Shuzhen Wang | c28dccc | 2016-02-11 23:48:46 -0800 | [diff] [blame] | 85 | nsecs_t timestampOffset, int setId = CAMERA3_STREAM_SET_ID_INVALID); |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 86 | |
| 87 | /** |
| 88 | * Set up a stream for formats that have a variable buffer size for the same |
| 89 | * dimensions, such as compressed JPEG. |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 90 | * A valid stream set id needs to be set to support buffer sharing between multiple |
| 91 | * streams. |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 92 | */ |
Eino-Ville Talvala | 727d172 | 2015-06-09 13:44:19 -0700 | [diff] [blame] | 93 | Camera3OutputStream(int id, sp<Surface> consumer, |
Eino-Ville Talvala | 3d82c0d | 2015-02-23 15:19:19 -0800 | [diff] [blame] | 94 | uint32_t width, uint32_t height, size_t maxSize, int format, |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 95 | android_dataspace dataSpace, camera3_stream_rotation_t rotation, |
Shuzhen Wang | c28dccc | 2016-02-11 23:48:46 -0800 | [diff] [blame] | 96 | nsecs_t timestampOffset, int setId = CAMERA3_STREAM_SET_ID_INVALID); |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 97 | |
Zhijun He | 5d677d1 | 2016-05-29 16:52:39 -0700 | [diff] [blame] | 98 | /** |
| 99 | * Set up a stream with deferred consumer for formats that have 2 dimensions, such as |
| 100 | * RAW and YUV. The consumer must be set before using this stream for output. A valid |
| 101 | * stream set id needs to be set to support buffer sharing between multiple streams. |
| 102 | */ |
| 103 | Camera3OutputStream(int id, uint32_t width, uint32_t height, int format, |
Emilian Peev | 050f5dc | 2017-05-18 14:43:56 +0100 | [diff] [blame] | 104 | uint64_t consumerUsage, android_dataspace dataSpace, |
Zhijun He | 5d677d1 | 2016-05-29 16:52:39 -0700 | [diff] [blame] | 105 | camera3_stream_rotation_t rotation, nsecs_t timestampOffset, |
| 106 | int setId = CAMERA3_STREAM_SET_ID_INVALID); |
| 107 | |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 108 | virtual ~Camera3OutputStream(); |
| 109 | |
| 110 | /** |
| 111 | * Camera3Stream interface |
| 112 | */ |
| 113 | |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 114 | virtual void dump(int fd, const Vector<String16> &args) const; |
| 115 | |
| 116 | /** |
| 117 | * Set the transform on the output stream; one of the |
| 118 | * HAL_TRANSFORM_* / NATIVE_WINDOW_TRANSFORM_* constants. |
| 119 | */ |
| 120 | status_t setTransform(int transform); |
| 121 | |
Chien-Yu Chen | 85a6455 | 2015-08-28 15:46:12 -0700 | [diff] [blame] | 122 | /** |
| 123 | * Return if this output stream is for video encoding. |
| 124 | */ |
| 125 | bool isVideoStream() const; |
Shuzhen Wang | 13a6963 | 2016-01-26 09:51:07 -0800 | [diff] [blame] | 126 | /** |
| 127 | * Return if this output stream is consumed by hardware composer. |
| 128 | */ |
| 129 | bool isConsumedByHWComposer() const; |
Chien-Yu Chen | 85a6455 | 2015-08-28 15:46:12 -0700 | [diff] [blame] | 130 | |
Zhijun He | 5d677d1 | 2016-05-29 16:52:39 -0700 | [diff] [blame] | 131 | /** |
Zhijun He | f0645c1 | 2016-08-02 00:58:11 -0700 | [diff] [blame] | 132 | * Return if this output stream is consumed by hardware texture. |
| 133 | */ |
| 134 | bool isConsumedByHWTexture() const; |
| 135 | |
| 136 | /** |
Zhijun He | 5d677d1 | 2016-05-29 16:52:39 -0700 | [diff] [blame] | 137 | * Return if the consumer configuration of this stream is deferred. |
| 138 | */ |
Shuzhen Wang | 0129d52 | 2016-10-30 22:43:41 -0700 | [diff] [blame] | 139 | virtual bool isConsumerConfigurationDeferred(size_t surface_id) const; |
Zhijun He | 5d677d1 | 2016-05-29 16:52:39 -0700 | [diff] [blame] | 140 | |
| 141 | /** |
Shuzhen Wang | 758c215 | 2017-01-10 18:26:18 -0800 | [diff] [blame] | 142 | * Set the consumer surfaces to the output stream. |
Zhijun He | 5d677d1 | 2016-05-29 16:52:39 -0700 | [diff] [blame] | 143 | */ |
Shuzhen Wang | 758c215 | 2017-01-10 18:26:18 -0800 | [diff] [blame] | 144 | virtual status_t setConsumers(const std::vector<sp<Surface>>& consumers); |
Zhijun He | 5d677d1 | 2016-05-29 16:52:39 -0700 | [diff] [blame] | 145 | |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 146 | class BufferReleasedListener : public BnProducerListener { |
| 147 | public: |
| 148 | BufferReleasedListener(wp<Camera3OutputStream> parent) : mParent(parent) {} |
| 149 | |
| 150 | /** |
| 151 | * Implementation of IProducerListener, used to notify this stream that the consumer |
| 152 | * has returned a buffer and it is ready to return to Camera3BufferManager for reuse. |
| 153 | */ |
| 154 | virtual void onBufferReleased(); |
| 155 | |
| 156 | private: |
| 157 | wp<Camera3OutputStream> mParent; |
| 158 | }; |
| 159 | |
Eino-Ville Talvala | 77c1a35 | 2016-06-13 12:32:43 -0700 | [diff] [blame] | 160 | virtual status_t detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd); |
| 161 | |
Shuzhen Wang | bee0f0a | 2017-01-24 14:51:37 -0800 | [diff] [blame] | 162 | /** |
| 163 | * Notify that the buffer is being released to the buffer queue instead of |
| 164 | * being queued to the consumer. |
| 165 | */ |
| 166 | virtual status_t notifyBufferReleased(ANativeWindowBuffer *anwBuffer); |
Shuzhen Wang | 0129d52 | 2016-10-30 22:43:41 -0700 | [diff] [blame] | 167 | |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 168 | /** |
Chien-Yu Chen | a936ac2 | 2017-10-23 15:59:49 -0700 | [diff] [blame^] | 169 | * Drop buffers if dropping is true. If dropping is false, do not drop buffers. |
| 170 | */ |
| 171 | virtual status_t dropBuffers(bool dropping) override; |
| 172 | |
| 173 | /** |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 174 | * Set the graphic buffer manager to get/return the stream buffers. |
| 175 | * |
| 176 | * It is only legal to call this method when stream is in STATE_CONSTRUCTED state. |
| 177 | */ |
| 178 | status_t setBufferManager(sp<Camera3BufferManager> bufferManager); |
| 179 | |
Emilian Peev | 40ead60 | 2017-09-26 15:46:36 +0100 | [diff] [blame] | 180 | /** |
| 181 | * Query the ouput surface id. |
| 182 | */ |
| 183 | virtual ssize_t getSurfaceId(const sp<Surface> &/*surface*/) { return 0; } |
| 184 | |
| 185 | /** |
| 186 | * Update the stream output surfaces. |
| 187 | */ |
| 188 | virtual status_t updateStream(const std::vector<sp<Surface>> &outputSurfaces, |
| 189 | const std::vector<OutputStreamInfo> &outputInfo, |
| 190 | const std::vector<size_t> &removedSurfaceIds, |
| 191 | KeyedVector<sp<Surface>, size_t> *outputMap/*out*/); |
| 192 | |
Igor Murashkin | e3a9f96 | 2013-05-08 18:03:15 -0700 | [diff] [blame] | 193 | protected: |
| 194 | Camera3OutputStream(int id, camera3_stream_type_t type, |
Eino-Ville Talvala | 3d82c0d | 2015-02-23 15:19:19 -0800 | [diff] [blame] | 195 | uint32_t width, uint32_t height, int format, |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 196 | android_dataspace dataSpace, camera3_stream_rotation_t rotation, |
Emilian Peev | 050f5dc | 2017-05-18 14:43:56 +0100 | [diff] [blame] | 197 | uint64_t consumerUsage = 0, nsecs_t timestampOffset = 0, |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 198 | int setId = CAMERA3_STREAM_SET_ID_INVALID); |
Igor Murashkin | e3a9f96 | 2013-05-08 18:03:15 -0700 | [diff] [blame] | 199 | |
Zhijun He | 124ccf4 | 2013-05-22 14:01:30 -0700 | [diff] [blame] | 200 | /** |
| 201 | * Note that we release the lock briefly in this function |
| 202 | */ |
Igor Murashkin | e3a9f96 | 2013-05-08 18:03:15 -0700 | [diff] [blame] | 203 | virtual status_t returnBufferCheckedLocked( |
| 204 | const camera3_stream_buffer &buffer, |
| 205 | nsecs_t timestamp, |
| 206 | bool output, |
| 207 | /*out*/ |
| 208 | sp<Fence> *releaseFenceOut); |
| 209 | |
Zhijun He | 0a21051 | 2014-07-24 13:45:15 -0700 | [diff] [blame] | 210 | virtual status_t disconnectLocked(); |
| 211 | |
Emilian Peev | 050f5dc | 2017-05-18 14:43:56 +0100 | [diff] [blame] | 212 | status_t getEndpointUsageForSurface(uint64_t *usage, |
Shuzhen Wang | 0129d52 | 2016-10-30 22:43:41 -0700 | [diff] [blame] | 213 | const sp<Surface>& surface) const; |
| 214 | status_t configureConsumerQueueLocked(); |
| 215 | |
| 216 | // Consumer as the output of camera HAL |
Eino-Ville Talvala | 727d172 | 2015-06-09 13:44:19 -0700 | [diff] [blame] | 217 | sp<Surface> mConsumer; |
Zhijun He | 5d677d1 | 2016-05-29 16:52:39 -0700 | [diff] [blame] | 218 | |
Emilian Peev | 050f5dc | 2017-05-18 14:43:56 +0100 | [diff] [blame] | 219 | uint64_t getPresetConsumerUsage() const { return mConsumerUsage; } |
Zhijun He | f0645c1 | 2016-08-02 00:58:11 -0700 | [diff] [blame] | 220 | |
| 221 | static const nsecs_t kDequeueBufferTimeout = 1000000000; // 1 sec |
| 222 | |
Shuzhen Wang | bee0f0a | 2017-01-24 14:51:37 -0800 | [diff] [blame] | 223 | status_t getBufferLockedCommon(ANativeWindowBuffer** anb, int* fenceFd); |
| 224 | |
| 225 | |
Shuzhen Wang | 0129d52 | 2016-10-30 22:43:41 -0700 | [diff] [blame] | 226 | private: |
| 227 | |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 228 | int mTransform; |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 229 | |
Igor Murashkin | e3a9f96 | 2013-05-08 18:03:15 -0700 | [diff] [blame] | 230 | virtual status_t setTransformLocked(int transform); |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 231 | |
Ruchit Sharma | e0711f2 | 2014-08-18 13:48:24 -0400 | [diff] [blame] | 232 | bool mTraceFirstBuffer; |
| 233 | |
Eino-Ville Talvala | 727d172 | 2015-06-09 13:44:19 -0700 | [diff] [blame] | 234 | // Name of Surface consumer |
| 235 | String8 mConsumerName; |
| 236 | |
Shuzhen Wang | c28dccc | 2016-02-11 23:48:46 -0800 | [diff] [blame] | 237 | // Whether consumer assumes MONOTONIC timestamp |
| 238 | bool mUseMonoTimestamp; |
Shuzhen Wang | 13a6963 | 2016-01-26 09:51:07 -0800 | [diff] [blame] | 239 | |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 240 | /** |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 241 | * GraphicBuffer manager this stream is registered to. Used to replace the buffer |
| 242 | * allocation/deallocation role of BufferQueue. |
| 243 | */ |
| 244 | sp<Camera3BufferManager> mBufferManager; |
| 245 | |
| 246 | /** |
| 247 | * Buffer released listener, used to notify the buffer manager that a buffer is released |
| 248 | * from consumer side. |
| 249 | */ |
| 250 | sp<BufferReleasedListener> mBufferReleasedListener; |
| 251 | |
| 252 | /** |
| 253 | * Flag indicating if the buffer manager is used to allocate the stream buffers |
| 254 | */ |
| 255 | bool mUseBufferManager; |
Shuzhen Wang | c28dccc | 2016-02-11 23:48:46 -0800 | [diff] [blame] | 256 | |
| 257 | /** |
| 258 | * Timestamp offset for video and hardware composer consumed streams |
| 259 | */ |
| 260 | nsecs_t mTimestampOffset; |
| 261 | |
Zhijun He | 125684a | 2015-12-26 15:07:30 -0800 | [diff] [blame] | 262 | /** |
Zhijun He | 5d677d1 | 2016-05-29 16:52:39 -0700 | [diff] [blame] | 263 | * Consumer end point usage flag set by the constructor for the deferred |
| 264 | * consumer case. |
| 265 | */ |
Emilian Peev | 050f5dc | 2017-05-18 14:43:56 +0100 | [diff] [blame] | 266 | uint64_t mConsumerUsage; |
Zhijun He | 5d677d1 | 2016-05-29 16:52:39 -0700 | [diff] [blame] | 267 | |
Chien-Yu Chen | a936ac2 | 2017-10-23 15:59:49 -0700 | [diff] [blame^] | 268 | // Whether to drop valid buffers. |
| 269 | bool mDropBuffers; |
| 270 | |
Zhijun He | 5d677d1 | 2016-05-29 16:52:39 -0700 | [diff] [blame] | 271 | /** |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 272 | * Internal Camera3Stream interface |
| 273 | */ |
Shuzhen Wang | bee0f0a | 2017-01-24 14:51:37 -0800 | [diff] [blame] | 274 | virtual status_t getBufferLocked(camera3_stream_buffer *buffer, |
| 275 | const std::vector<size_t>& surface_ids); |
| 276 | |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 277 | virtual status_t returnBufferLocked( |
| 278 | const camera3_stream_buffer &buffer, |
| 279 | nsecs_t timestamp); |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 280 | |
Shuzhen Wang | bee0f0a | 2017-01-24 14:51:37 -0800 | [diff] [blame] | 281 | virtual status_t queueBufferToConsumer(sp<ANativeWindow>& consumer, |
| 282 | ANativeWindowBuffer* buffer, int anwReleaseFence); |
| 283 | |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 284 | virtual status_t configureQueueLocked(); |
Eino-Ville Talvala | b2f5b19 | 2013-07-30 14:36:03 -0700 | [diff] [blame] | 285 | |
Emilian Peev | 050f5dc | 2017-05-18 14:43:56 +0100 | [diff] [blame] | 286 | virtual status_t getEndpointUsage(uint64_t *usage) const; |
Eino-Ville Talvala | b2f5b19 | 2013-07-30 14:36:03 -0700 | [diff] [blame] | 287 | |
Yin-Chia Yeh | 89954d9 | 2017-05-21 17:28:53 -0700 | [diff] [blame] | 288 | /** |
| 289 | * Private methods |
| 290 | */ |
Yin-Chia Yeh | 017d49c | 2017-03-31 19:11:00 -0700 | [diff] [blame] | 291 | void onBuffersRemovedLocked(const std::vector<sp<GraphicBuffer>>&); |
Yin-Chia Yeh | 89954d9 | 2017-05-21 17:28:53 -0700 | [diff] [blame] | 292 | status_t detachBufferLocked(sp<GraphicBuffer>* buffer, int* fenceFd); |
Yin-Chia Yeh | 017d49c | 2017-03-31 19:11:00 -0700 | [diff] [blame] | 293 | |
Shuzhen Wang | 686f644 | 2017-06-20 16:16:04 -0700 | [diff] [blame] | 294 | static const int32_t kDequeueLatencyBinSize = 5; // in ms |
| 295 | CameraLatencyHistogram mDequeueBufferLatency; |
| 296 | |
Eino-Ville Talvala | fd58f1a | 2013-03-06 16:20:06 -0800 | [diff] [blame] | 297 | }; // class Camera3OutputStream |
| 298 | |
| 299 | } // namespace camera3 |
| 300 | |
| 301 | } // namespace android |
| 302 | |
| 303 | #endif |