/aosp12/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3BufferManager.cpp | 42 int streamId = streamInfo.streamId; in registerStream() local 45 if (streamId == CAMERA3_STREAM_ID_INVALID || in registerStream() 107 mStreamMap.add(streamId, stream); in registerStream() 123 streamId, streamSetId, isMultiRes); in unregisterStream() 137 handOutBufferCounts.removeItem(streamId); in unregisterStream() 138 attachedBufferCounts.removeItem(streamId); in unregisterStream() 141 infoMap.removeItem(streamId); in unregisterStream() 148 mStreamMap.removeItem(streamId); in unregisterStream() 184 if (firstOtherStreamId != streamId) { in checkAndFreeBufferOnOtherStreamsLocked() 475 streamId, bufferCount); in dump() [all …]
|
H A D | BufferUtils.cpp | 67 for (auto streamId : streams) { in takeBufferCaches() local 68 mBufferIdMaps.insert({streamId, std::move(other.mBufferIdMaps.at(streamId))}); in takeBufferCaches() 82 streamId, bIdMap.size(), buf); in getBufferId() 91 if (mBufferIdMaps.count(streamId) == 0) { in tryCreateBufferCache() 99 int streamId = it->first; in removeInactiveBufferCaches() local 112 auto mapIt = mBufferIdMaps.find(streamId); in removeOneBufferCache() 116 __FUNCTION__, streamId); in removeOneBufferCache() 189 int32_t streamId = key & 0xFFFFFFFF; in getInflightBufferKeys() local 223 int32_t streamId = pair.second; in popInflightBuffers() local 257 if (streamId != nullptr) { in popInflightRequestBuffer() [all …]
|
H A D | BufferUtils.h | 99 const buffer_handle_t& buf, int streamId) override; 101 void tryCreateBufferCache(int streamId); 107 uint64_t removeOneBufferCache(int streamId, const native_handle_t* handle) override; 111 std::vector<uint64_t> clearBufferCaches(int streamId); 113 bool isStreamCached(int streamId); 116 bool verifyBufferIds(int32_t streamId, std::vector<uint64_t>& inBufIds); 122 status_t pushInflightBuffer(int32_t frameNumber, int32_t streamId, 126 virtual status_t popInflightBuffer(int32_t frameNumber, int32_t streamId, 137 uint64_t bufferId, buffer_handle_t* buf, int32_t streamId) override; 142 /*optional out*/ int32_t* streamId = nullptr) override;
|
H A D | Camera3BufferManager.h | 102 status_t unregisterStream(int streamId, int streamSetId, bool isMultiRes); 130 int streamId, int streamSetId, bool isMultiRes, sp<GraphicBuffer>* gb, 156 status_t onBufferReleased(int streamId, int streamSetId, bool isMultiRes, 175 status_t onBuffersRemoved(int streamId, int streamSetId, bool isMultiRes, size_t count); 181 void notifyBufferRemoved(int streamId, int streamSetId, bool isMultiRes); 320 bool checkIfStreamRegisteredLocked(int streamId, StreamSetKey streamSetKey) const; 326 status_t checkAndFreeBufferOnOtherStreamsLocked(int streamId, StreamSetKey streamSetKey);
|
H A D | Camera3OutputUtils.cpp | 832 if (result.inputBuffer.streamId == -1) { in processOneCaptureResultLocked() 882 int streamId = stream->getId(); in returnOutputBuffers() local 1094 int streamId = 0; in notifyError() local 1099 streamId = stream->getId(); in notifyError() 1104 streamId, msg.error_code); in notifyError() 1285 streamIds.add(bufReq.streamId); in requestStreamBuffers() 1302 int32_t streamId = bufReq.streamId; in requestStreamBuffers() local 1312 bufRet.streamId = streamId; in requestStreamBuffers() 1371 hBuf.streamId = streamId; in requestStreamBuffers() 1523 int32_t streamId = pair.second; in flushInflightRequests() local [all …]
|
H A D | Camera3OutputStreamInterface.cpp | 30 int streamId, sp<camera3::Camera3OutputStreamInterface> stream) { in add() argument 36 return mData.add(streamId, stream); in add() 39 ssize_t StreamSet::remove(int streamId) { in remove() argument 41 return mData.removeItem(streamId); in remove() 44 sp<camera3::Camera3OutputStreamInterface> StreamSet::get(int streamId) { in get() argument 46 ssize_t idx = mData.indexOfKey(streamId); in get()
|
H A D | Camera3OutputInterface.h | 51 virtual std::pair<bool, uint64_t> getBufferId(const buffer_handle_t& buf, int streamId) = 0; 55 virtual uint64_t removeOneBufferCache(int streamId, const native_handle_t* handle) = 0; 58 virtual status_t popInflightBuffer(int32_t frameNumber, int32_t streamId, 63 uint64_t bufferId, buffer_handle_t* buf, int32_t streamId) = 0; 68 /*optional out*/ int32_t* streamId = nullptr) = 0;
|
/aosp12/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | Fingerprint.java | 104 public static Fingerprint fromStreamId(String streamId) { in fromStreamId() argument 105 if ((streamId == null) in fromStreamId() 106 || !streamId.startsWith(STREAM_ID_CS_PREFIX) in fromStreamId() 116 int value = (toDigit(streamId, idx) << 4) | toDigit(streamId, idx + 1); in fromStreamId() 129 for (String streamId : streamIdList) { in extractFingerprint() 130 if (streamId.startsWith(STREAM_ID_CS_PREFIX)) { in extractFingerprint() 131 return fromStreamId(streamId); in extractFingerprint() 145 appendHexFingerprint(streamId, mMd5Digest); in toStreamId() 146 return streamId.toString(); in toStreamId() 172 private static int toDigit(String streamId, int index) { in toDigit() argument [all …]
|
/aosp12/frameworks/av/services/camera/libcameraservice/api2/ |
H A D | CameraDeviceClient.cpp | 710 if (streamId == mStreamMap.valueAt(i).streamId()) { in deleteStream() 1038 streamId); in setStreamTransformLocked() 1071 int streamId = -1; in createInputStream() local 1152 if (mStreamMap.valueFor(binder).streamId() != streamId) { in updateOutputConfiguration() 1154 __FUNCTION__, streamId, mStreamMap.valueFor(binder).streamId()); in updateOutputConfiguration() 1171 if (mStreamMap[i].streamId() == streamId) { in updateOutputConfiguration() 1176 if (mStreamMap[i].streamId() != streamId) { in updateOutputConfiguration() 1376 if (streamId == mStreamMap.valueAt(i).streamId()) { in prepare() 1416 if (streamId == mStreamMap.valueAt(i).streamId()) { in prepare2() 1464 if (streamId == mStreamMap.valueAt(i).streamId()) { in tearDown() [all …]
|
H A D | CameraDeviceClient.h | 109 virtual binder::Status deleteStream(int streamId) override; 147 virtual binder::Status prepare(int32_t streamId) override; 150 virtual binder::Status tearDown(int32_t streamId) override; 153 virtual binder::Status prepare2(int32_t maxCount, int32_t streamId) override; 156 virtual binder::Status updateOutputConfiguration(int streamId, 160 virtual binder::Status finalizeOutputConfigurations(int32_t streamId, 211 virtual void notifyPrepared(int streamId); 245 StreamSurfaceId(int32_t streamId, int32_t surfaceId) { in StreamSurfaceId() argument 246 mStreamId = streamId; in StreamSurfaceId() 249 int32_t streamId() const { in streamId() function [all …]
|
/aosp12/hardware/interfaces/camera/device/3.5/default/ |
H A D | CameraDeviceSession.cpp | 129 const buffer_handle_t& buf, int streamId) { in popBufferId() argument 132 auto streamIt = mBufferIdMaps.find(streamId); in popBufferId() 151 return popBufferId(buf, streamId); in getCapResultBufferId() 158 if (mStreamMap.count(streamId) == 0) { in getStreamPointer() 162 return &mStreamMap[streamId]; in getStreamPointer() 183 hBufReqs[i].streamId = in requestStreamBuffers() 273 int streamId = bufRets[i].streamId; in requestStreamBuffers() local 281 Status s = importBuffer(streamId, in requestStreamBuffers() 288 __FUNCTION__, streamId, hBuf.bufferId); in requestStreamBuffers() 317 hBufs[i].streamId = in returnStreamBuffers() [all …]
|
/aosp12/hardware/interfaces/camera/device/3.6/default/ |
H A D | ExternalCameraDeviceSession.cpp | 118 const Stream& stream = mStreamMap[streamId]; in supportOfflineLocked() 157 int32_t streamId = offlineReqs[i]->buffers[bIdx].streamId; in fillOfflineSessionInfo() local 163 int32_t streamId = offlineStreams[i]; in fillOfflineSessionInfo() local 164 info->offlineStreams[i].id = streamId; in fillOfflineSessionInfo() 206 for (auto streamId : offlineStreams) { in switchToOffline() local 207 if (!supportOfflineLocked(streamId)) { in switchToOffline() 256 result.outputBuffers[0].streamId = buffer.streamId; in switchToOffline() 297 for(auto streamId : offlineStreams) { in switchToOffline() local 298 circulatingBuffers[streamId] = mCirculatingBuffers.at(streamId); in switchToOffline() 299 mCirculatingBuffers.erase(streamId); in switchToOffline() [all …]
|
/aosp12/packages/services/Car/cpp/computepipe/runner/client_interface/ |
H A D | AidlClientImpl.cpp | 86 Status AidlClientImpl::DispatchSemanticData(int32_t streamId, in DispatchSemanticData() argument 90 if (mPacketHandlers.find(streamId) == mPacketHandlers.end()) { in DispatchSemanticData() 115 Status AidlClientImpl::DispatchPixelData(int32_t streamId, in DispatchPixelData() argument 119 if (mPacketHandlers.find(streamId) == mPacketHandlers.end()) { in DispatchPixelData() 163 Status AidlClientImpl::dispatchPacketToClient(int32_t streamId, in dispatchPacketToClient() argument 173 return DispatchSemanticData(streamId, packetHandle); in dispatchPacketToClient() 175 return DispatchPixelData(streamId, packetHandle); in dispatchPacketToClient() 271 LOG(INFO) << "Handler for stream id " << streamId in setPipeOutputConfig() 287 mPacketHandlers.erase(streamId); in setPipeOutputConfig() 333 auto it = mPacketHandlers.find(streamId); in doneWithPacket() [all …]
|
/aosp12/packages/services/Car/cpp/computepipe/runner/engine/ |
H A D | DefaultEngine.cpp | 194 Status DefaultEngine::freePacket(int bufferId, int streamId) { in freePacket() argument 195 if (mStreamManagers.find(streamId) == mStreamManagers.end()) { in freePacket() 200 return mStreamManagers[streamId]->freePacket(bufferId); in freePacket() 213 mStreamManagers[streamId]->queuePacket(frame, timestamp); in DispatchPixelData() 511 int streamId = configIt.first; in populateStreamManagers() local 517 if (optionIt.stream_id() == streamId) { in populateStreamManagers() 537 std::function<void()> eos = [this, streamId]() { in populateStreamManagers() 547 if (mStreamManagers[streamId] == nullptr) { in populateStreamManagers() 555 Status DefaultEngine::forwardOutputDataToClient(int streamId, in forwardOutputDataToClient() argument 557 if (streamId != mDisplayStream) { in forwardOutputDataToClient() [all …]
|
/aosp12/packages/services/Car/cpp/computepipe/tests/runner/graph/includes/ |
H A D | GrpcGraphServerImpl.h | 183 void DispatchPixelData(int streamId, int64_t timestamp, in DispatchPixelData() argument 185 ASSERT_EQ(streamId % 2, 0); in DispatchPixelData() 187 if (mNumPacketsPerStream.find(streamId) == mNumPacketsPerStream.end()) { in DispatchPixelData() 188 mNumPacketsPerStream[streamId] = 1; in DispatchPixelData() 190 mNumPacketsPerStream[streamId]++; in DispatchPixelData() 195 ASSERT_EQ(streamId % 2, 1); in DispatchSerializedData() 197 if (mNumPacketsPerStream.find(streamId) == mNumPacketsPerStream.end()) { in DispatchSerializedData() 198 mNumPacketsPerStream[streamId] = 1; in DispatchSerializedData() 200 mNumPacketsPerStream[streamId]++; in DispatchSerializedData() 218 int numPacketsForStream(int streamId) { in numPacketsForStream() argument [all …]
|
H A D | PrebuiltEngineInterfaceImpl.h | 51 void DispatchPixelData(int streamId, int64_t timestamp, in DispatchPixelData() argument 53 mPixelCallbackFn(streamId, timestamp, frame); in DispatchPixelData() 56 void DispatchSerializedData(int streamId, int64_t timestamp, std::string&& data) override { in DispatchSerializedData() argument 57 mSerializedStreamCallbackFn(streamId, timestamp, std::move(data)); in DispatchSerializedData()
|
/aosp12/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | ICameraDeviceUserWrapper.java | 124 public void deleteStream(int streamId) throws CameraAccessException { in deleteStream() argument 126 mRemoteDevice.deleteStream(streamId); in deleteStream() 217 public void prepare(int streamId) throws CameraAccessException { in prepare() argument 219 mRemoteDevice.prepare(streamId); in prepare() 226 public void tearDown(int streamId) throws CameraAccessException { in tearDown() argument 228 mRemoteDevice.tearDown(streamId); in tearDown() 235 public void prepare2(int maxCount, int streamId) throws CameraAccessException { in prepare2() argument 237 mRemoteDevice.prepare2(maxCount, streamId); in prepare2() 244 public void updateOutputConfiguration(int streamId, OutputConfiguration config) in updateOutputConfiguration() argument 247 mRemoteDevice.updateOutputConfiguration(streamId, config); in updateOutputConfiguration() [all …]
|
H A D | CameraDeviceImpl.java | 873 int streamId = -1; in prepare() local 881 if (streamId == -1) { in prepare() 896 int streamId = -1; in prepare() local 903 if (streamId == -1) { in prepare() 915 int streamId = -1; in updateOutputConfiguration() local 922 if (streamId == -1) { in updateOutputConfiguration() 951 int streamId = -1; in switchToOffline() local 1020 int streamId = -1; in supportsOfflineProcessing() local 1027 if (streamId == -1) { in supportsOfflineProcessing() 1040 int streamId = -1; in tearDown() local [all …]
|
/aosp12/frameworks/base/services/core/jni/ |
H A D | com_android_server_tv_TvInputHal.cpp | 69 jmethodID streamId; member 259 int removeStream(int deviceId, int streamId); 344 if (connections.indexOfKey(streamId) < 0) { in addOrUpdateStream() 345 connections.add(streamId, Connection()); in addOrUpdateStream() 378 if (list[i].streamId == streamId) { in addOrUpdateStream() 391 mTvInput->openStream(deviceId, streamId, in addOrUpdateStream() 419 if (connections.indexOfKey(streamId) < 0) { in removeStream() 555 streamId); in onCaptured() 612 jlong ptr, jint deviceId, jint streamId) { in nativeRemoveStream() argument 628 builder, gTvStreamConfigBuilderClassInfo.streamId, configs[i].streamId); in nativeGetStreamConfigs() [all …]
|
/aosp12/frameworks/av/camera/aidl/android/hardware/camera2/ |
H A D | ICameraDeviceUser.aidl | 102 void deleteStream(int streamId); in deleteStream() argument 155 void prepare(int streamId); in prepare() argument 157 void tearDown(int streamId); in tearDown() argument 159 void prepare2(int maxCount, int streamId); in prepare2() argument 161 void updateOutputConfiguration(int streamId, in OutputConfiguration outputConfiguration); in updateOutputConfiguration() argument 163 void finalizeOutputConfigurations(int streamId, in OutputConfiguration outputConfiguration); in finalizeOutputConfigurations() argument
|
/aosp12/hardware/interfaces/camera/device/3.2/default/ |
H A D | CameraDeviceSession.cpp | 536 for (int streamId : streams) { in sendBatchBuffersLocked() local 537 auto it = batch->mBatchBufs.find(streamId); in sendBatchBuffersLocked() 554 for (int streamId : streams) { in sendBatchBuffersLocked() local 572 results[i].inputBuffer.streamId = -1; in sendBatchBuffersLocked() 577 for (int streamId : streams) { in sendBatchBuffersLocked() local 598 for (int streamId : streams) { in sendBatchBuffersLocked() local 632 result.inputBuffer.streamId = -1; in sendBatchMetadataLocked() 793 auto id = buffer.streamId; in processCaptureResult() 1438 result.inputBuffer.streamId = in constructCaptureResult() 1451 result.inputBuffer.streamId = -1; in constructCaptureResult() [all …]
|
/aosp12/frameworks/av/services/camera/libcameraservice/utils/ |
H A D | SessionStatsBuilder.h | 60 status_t addStream(int streamId); 61 status_t removeStream(int streamId); 70 void startCounter(int streamId); 71 void stopCounter(int streamId); 72 void incCounter(int streamId, bool dropped, int32_t captureLatencyMs);
|
/aosp12/packages/services/Car/cpp/computepipe/runner/graph/ |
H A D | StreamSetObserver.h | 42 virtual void reportStreamClosed(int streamId) = 0; 49 virtual void dispatchPixelData(int streamId, int64_t timestamp_us, 52 virtual void dispatchSerializedData(int streamId, int64_t timestamp_us, 62 SingleStreamObserver(int streamId, EndOfStreamReporter* endOfStreamReporter, 90 void reportStreamClosed(int streamId) override;
|
/aosp12/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputHal.java | 56 void onFirstFrameCaptured(int deviceId, int streamId); in onFirstFrameCaptured() argument 61 private static native int nativeAddOrUpdateStream(long ptr, int deviceId, int streamId, in nativeAddOrUpdateStream() argument 63 private static native int nativeRemoveStream(long ptr, int deviceId, int streamId); in nativeRemoveStream() argument 151 private void firstFrameCapturedFromNative(int deviceId, int streamId) { in firstFrameCapturedFromNative() argument 153 mHandler.obtainMessage(EVENT_STREAM_CONFIGURATION_CHANGED, deviceId, streamId)); in firstFrameCapturedFromNative() 203 int streamId = msg.arg2; in handleMessage() local 204 mCallback.onFirstFrameCaptured(deviceId, streamId); in handleMessage()
|
/aosp12/frameworks/base/media/java/android/media/tv/tuner/filter/ |
H A D | PesSettings.java | 33 private PesSettings(@Filter.Type int mainType, int streamId, boolean isRaw) { in PesSettings() argument 35 mStreamId = streamId; in PesSettings() 84 public Builder setStreamId(int streamId) { in setStreamId() argument 85 mStreamId = streamId; in setStreamId()
|