Home
last modified time | relevance | path

Searched refs:frame_number (Results 1 – 25 of 88) sorted by relevance

1234

/hardware/google/camera/common/hal/tests/
Dresult_dispatcher_tests.cc39 uint32_t frame_number = 0; member
45 uint32_t frame_number = 0; member
85 received_shutters_.push_back({message.message.shutter.frame_number, in Notify()
97 uint32_t frame_number = new_result->frame_number; in ProcessCaptureResult() local
104 metadata.frame_number = frame_number; in ProcessCaptureResult()
110 ProcessReceivedBuffer(frame_number, buffer); in ProcessCaptureResult()
114 ProcessReceivedBuffer(frame_number, buffer); in ProcessCaptureResult()
120 void ProcessReceivedBuffer(uint32_t frame_number, const StreamBuffer& buffer) { in ProcessReceivedBuffer() argument
129 buffers_it->second.push_back({frame_number, buffer}); in ProcessReceivedBuffer()
133 bool IsShutterReceivedLocked(uint32_t frame_number, uint64_t timestamp_ns) { in IsShutterReceivedLocked() argument
[all …]
/hardware/google/camera/common/hal/utils/
Dresult_dispatcher.cc95 void ResultDispatcher::RemovePendingRequest(uint32_t frame_number) { in RemovePendingRequest() argument
98 RemovePendingRequestLocked(frame_number); in RemovePendingRequest()
110 RemovePendingRequestLocked(pending_request.frame_number); in AddPendingRequest()
120 uint32_t frame_number = pending_request.frame_number; in AddPendingRequestLocked() local
122 status_t res = AddPendingShutterLocked(frame_number); in AddPendingRequestLocked()
125 name_.c_str(), __FUNCTION__, frame_number, strerror(-res), res); in AddPendingRequestLocked()
129 res = AddPendingFinalResultMetadataLocked(frame_number); in AddPendingRequestLocked()
132 name_.c_str(), __FUNCTION__, frame_number, strerror(-res), res); in AddPendingRequestLocked()
137 res = AddPendingBufferLocked(frame_number, buffer, /*is_input=*/true); in AddPendingRequestLocked()
140 name_.c_str(), __FUNCTION__, frame_number, strerror(-res), res); in AddPendingRequestLocked()
[all …]
Dpipeline_request_id_manager.cc47 uint32_t frame_number, in SetPipelineRequestId() argument
62 size_t frame_index = frame_number % kMaxPendingRequest; in SetPipelineRequestId()
66 if (frame_number != 0 && frame_number == request_id_info.frame_number) { in SetPipelineRequestId()
70 __FUNCTION__, request_id, frame_number, request_id_info.request_id, in SetPipelineRequestId()
75 request_id_info.frame_number = frame_number; in SetPipelineRequestId()
81 __FUNCTION__, frame_number, request_id, pipeline_id); in SetPipelineRequestId()
87 uint32_t frame_number, in GetPipelineRequestId() argument
106 size_t frame_index = frame_number % kMaxPendingRequest; in GetPipelineRequestId()
108 if (frame_number != request_id_info.frame_number) { in GetPipelineRequestId()
112 __FUNCTION__, frame_number, request_id_info.frame_number); in GetPipelineRequestId()
Dzsl_result_dispatcher.cc95 bool ZslResultDispatcher::IsZslFrame(uint32_t frame_number) { in IsZslFrame() argument
100 if (std::find(zsl_frames_.begin(), zsl_frames_.end(), frame_number) == in IsZslFrame()
116 uint32_t frame_number = pending_request.frame_number; in AddPendingRequest() local
119 zsl_frames_.push_back(frame_number); in AddPendingRequest()
126 std::find(zsl_frames_.begin(), zsl_frames_.end(), frame_number)); in AddPendingRequest()
140 uint32_t frame_number = result->frame_number; in AddResult() local
141 bool is_zsl_request = IsZslFrame(frame_number); in AddResult()
149 status_t ZslResultDispatcher::AddShutter(uint32_t frame_number, in AddShutter() argument
153 bool is_zsl_request = IsZslFrame(frame_number); in AddShutter()
155 return zsl_result_dispatcher_->AddShutter(frame_number, timestamp_ns, in AddShutter()
[all …]
Dresult_dispatcher.h73 status_t AddShutter(uint32_t frame_number, int64_t timestamp_ns,
81 void RemovePendingRequest(uint32_t frame_number);
136 status_t AddPendingShutterLocked(uint32_t frame_number);
140 status_t AddPendingFinalResultMetadataLocked(uint32_t frame_number);
143 status_t AddPendingBufferLocked(uint32_t frame_number,
147 void RemovePendingRequestLocked(uint32_t frame_number);
155 uint32_t frame_number, std::unique_ptr<HalCameraMetadata> metadata,
163 uint32_t frame_number, std::unique_ptr<HalCameraMetadata> final_metadata,
167 uint32_t frame_number, std::unique_ptr<HalCameraMetadata> metadata,
171 status_t AddBuffer(uint32_t frame_number, StreamBuffer buffer);
[all …]
Dzsl_buffer_manager.cc272 status_t ZslBufferManager::ReturnFilledBuffer(uint32_t frame_number, in ReturnFilledBuffer() argument
276 zsl_buffer.frame_number = frame_number; in ReturnFilledBuffer()
281 partially_filled_zsl_buffers_.find(frame_number) == in ReturnFilledBuffer()
288 __FUNCTION__, frame_number); in ReturnFilledBuffer()
291 partially_filled_zsl_buffers_[frame_number] = std::move(zsl_buffer); in ReturnFilledBuffer()
292 } else if (partially_filled_zsl_buffers_[frame_number].buffer.buffer == in ReturnFilledBuffer()
294 partially_filled_zsl_buffers_[frame_number].buffer = buffer; in ReturnFilledBuffer()
295 if (partially_filled_zsl_buffers_[frame_number].partial_result == in ReturnFilledBuffer()
300 __FUNCTION__, frame_number); in ReturnFilledBuffer()
301 filled_zsl_buffers_[frame_number] = in ReturnFilledBuffer()
[all …]
Dmulticam_realtime_process_block.cc271 uint32_t frame_number = block_requests[0].request.frame_number; in AreRequestsValidLocked() local
275 block_request.request.frame_number); in AreRequestsValidLocked()
279 if (block_request.request.frame_number != frame_number) { in AreRequestsValidLocked()
332 uint32_t camera_id, uint32_t frame_number) { in PrepareBlockByCameraId() argument
334 frame_number); in PrepareBlockByCameraId()
377 block_request.request_id, block_request.request.frame_number, in ProcessRequests()
387 block_request.request.frame_number, pipeline_id, in ProcessRequests()
401 process_block_requests[0].request.frame_number, hwl_requests); in ProcessRequests()
434 uint32_t frame_number = hwl_result->frame_number; in NotifyHwlPipelineResult() local
439 pipeline_id, frame_number); in NotifyHwlPipelineResult()
[all …]
Dpipeline_request_id_manager.h37 status_t SetPipelineRequestId(uint32_t request_id, uint32_t frame_number,
41 status_t GetPipelineRequestId(uint32_t pipeline_id, uint32_t frame_number,
53 uint32_t frame_number = 0; member
Dhdrplus_result_processor.cc98 res = internal_stream_manager_->ReturnZslStreamBuffers(result->frame_number, in ProcessResult()
102 result->frame_number); in ProcessResult()
106 result->frame_number); in ProcessResult()
115 result->frame_number); in ProcessResult()
Dzsl_result_dispatcher.h68 status_t AddShutter(uint32_t frame_number, int64_t timestamp_ns,
76 void RemovePendingRequest(uint32_t frame_number);
93 bool IsZslFrame(uint32_t frame_number);
/hardware/google/camera/common/hal/google_camera_hal/
Drealtime_zsl_result_request_processor.cc75 int32_t frame_number, int output_buffer_count, bool is_preview_intent) { in UpdateOutputBufferCount() argument
83 request_entry.capture_request->frame_number = frame_number; in UpdateOutputBufferCount()
91 pending_frame_number_to_requests_[frame_number] = std::move(request_entry); in UpdateOutputBufferCount()
108 __FUNCTION__, result->frame_number, in ProcessResult()
114 pending_frame_number_to_requests_[result->frame_number]; in ProcessResult()
117 pending_request.capture_request->frame_number = result->frame_number; in ProcessResult()
128 result->frame_number, result->output_buffers[i]); in ProcessResult()
131 result->frame_number); in ProcessResult()
148 stream_id_, result->frame_number, result->result_metadata.get(), in ProcessResult()
151 ALOGW("%s: (%d)ReturnMetadata fail", __FUNCTION__, result->frame_number); in ProcessResult()
[all …]
Drgbird_result_request_processor.cc93 requested_face_detect_modes_.emplace(request.frame_number, in SaveFdForHdrplus()
111 requested_lens_shading_map_modes_.emplace(request.frame_number, in SaveLsForHdrplus()
140 bool RgbirdResultRequestProcessor::IsAutocalRequest(uint32_t frame_number) const { in IsAutocalRequest()
155 return frame_number == kAutocalFrameNumber; in IsAutocalRequest()
174 !IsAutocalRequest(result->frame_number)) { in TryReturnInternalBufferForDepth()
180 __FUNCTION__, result->frame_number); in TryReturnInternalBufferForDepth()
232 remaining_session_request.frame_number); in AddPendingRequests()
234 capture_request->frame_number = remaining_session_request.frame_number; in AddPendingRequests()
241 depth_requests_.emplace(remaining_session_request.frame_number, in AddPendingRequests()
275 result->frame_number, result->output_buffers[i]); in ProcessResultForHdrplus()
[all …]
Ddepth_process_block.cc242 [this](DepthResultStatus result_status, uint32_t frame_number) { in ConfigureStreams() argument
243 status_t res = ProcessDepthResult(result_status, frame_number); in ConfigureStreams()
246 __FUNCTION__, frame_number); in ConfigureStreams()
287 request_info.frame_number); in SubmitBlockingDepthRequest()
292 request_info.frame_number); in SubmitBlockingDepthRequest()
296 res = ProcessDepthResult(DepthResultStatus::kOk, request_info.frame_number); in SubmitBlockingDepthRequest()
309 request_info.frame_number); in SubmitAsyncDepthRequest()
320 uint32_t frame_number) { in ProcessDepthResult() argument
323 frame_number); in ProcessDepthResult()
325 status_t res = UnmapDepthRequestBuffers(frame_number); in ProcessDepthResult()
[all …]
Ddual_ir_result_request_processor.cc143 uint32_t frame_number = process_block_requests[0].request.frame_number; in AddPendingRequests() local
146 pending_result_metadata_[frame_number] = std::move(pending_result_metadata); in AddPendingRequests()
152 uint32_t frame_number) { in TrySendingResultMetadataLocked() argument
155 pending_result_metadata_.find(frame_number); in TrySendingResultMetadataLocked()
158 frame_number); in TrySendingResultMetadataLocked()
178 result->frame_number = frame_number; in TrySendingResultMetadataLocked()
196 uint32_t frame_number, uint32_t physical_camera_id, in ProcessResultMetadata() argument
201 pending_result_metadata_.find(frame_number); in ProcessResultMetadata()
203 ALOGE("%s: frame number %u is not expected.", __FUNCTION__, frame_number); in ProcessResultMetadata()
212 __FUNCTION__, physical_camera_id, frame_number); in ProcessResultMetadata()
[all …]
Dcamera_device_session.cc145 uint32_t frame_number = result->frame_number; in UpdatePendingRequest() local
147 if (pending_request_streams_.find(frame_number) == in UpdatePendingRequest()
150 frame_number); in UpdatePendingRequest()
155 auto& streams = pending_request_streams_.at(frame_number); in UpdatePendingRequest()
170 __FUNCTION__, stream_id_for_group, stream_id, frame_number); in UpdatePendingRequest()
176 __FUNCTION__, stream_id, frame_number); in UpdatePendingRequest()
186 pending_request_streams_.erase(frame_number); in UpdatePendingRequest()
214 pending_results_.erase(result->frame_number); in ProcessCaptureResult()
239 pending_results_.erase(result->frame_number); in ProcessBatchCaptureResult()
256 uint32_t frame_number = 0; in Notify() local
[all …]
Drealtime_zsl_result_processor.cc81 requested_lens_shading_map_modes_.emplace(request.frame_number, in SaveLsForHdrplus()
122 requested_face_detect_modes_.emplace(request.frame_number, in SaveFdForHdrplus()
195 result->frame_number, result->output_buffers[i]); in ProcessResult()
198 result->frame_number); in ProcessResult()
214 stream_id_, result->frame_number, result->result_metadata.get(), in ProcessResult()
217 ALOGW("%s: (%d)ReturnMetadata fail", __FUNCTION__, result->frame_number); in ProcessResult()
225 result->frame_number); in ProcessResult()
229 res = HandleFdResultForHdrplus(result->frame_number, in ProcessResult()
233 result->frame_number); in ProcessResult()
237 res = HandleLsResultForHdrplus(result->frame_number, in ProcessResult()
[all …]
Dsnapshot_result_processor.cc98 res = internal_stream_manager_->ReturnZslStreamBuffers(result->frame_number, in ProcessResult()
102 result->frame_number); in ProcessResult()
105 result->frame_number); in ProcessResult()
114 result->frame_number); in ProcessResult()
/hardware/libhardware/modules/camera/3_4/
Drequest_tracker.cpp68 frames_in_flight_[request->frame_number] = request; in Add()
80 frames_in_flight_.find(request->frame_number); in Remove()
82 ALOGE("%s: Frame %u is not in flight.", __func__, request->frame_number); in Remove()
89 request->frame_number); in Remove()
122 if (frames_in_flight_.count(request.frame_number) > 0) { in CanAddRequest()
125 request.frame_number); in CanAddRequest()
151 bool RequestTracker::InFlight(uint32_t frame_number) const { in InFlight()
152 return frames_in_flight_.count(frame_number) > 0; in InFlight()
Dcamera.cpp315 ALOGV("%s:%d: frame: %d", __func__, mId, request->frame_number); in processCaptureRequest()
326 __func__, mId, request->frame_number); in processCaptureRequest()
357 __func__, mId, request->frame_number); in processCaptureRequest()
391 __func__, mId, request->frame_number); in completeRequest()
404 __func__, mId, request->frame_number); in completeRequest()
410 notifyShutter(request->frame_number, timestamp); in completeRequest()
470 void Camera::notifyShutter(uint32_t frame_number, uint64_t timestamp) in notifyShutter() argument
475 message.message.shutter.frame_number = frame_number; in notifyShutter()
486 message.message.error.frame_number = request->frame_number; in completeRequestWithError()
501 request->frame_number, in sendResult()
/hardware/google/camera/devices/EmulatedCamera/hwl/
DEmulatedRequestProcessor.cpp76 uint32_t frame_number, std::vector<HwlPipelineRequest>& requests, in ProcessPipelineRequests() argument
111 frame_number, request.output_buffers, in ProcessPipelineRequests()
120 frame_number, request.input_buffers, in ProcessPipelineRequests()
134 .frame_number = frame_number}); in ProcessPipelineRequests()
138 {.settings = nullptr, .frame_number = frame_number}); in ProcessPipelineRequests()
141 {.frame_number = frame_number, in ProcessPipelineRequests()
153 uint32_t frame_number, const std::vector<StreamBuffer>& buffers, in CreateSensorBuffers() argument
171 buffer.stream_id, 1, &one_requested_buffer, frame_number); in CreateSensorBuffers()
202 frame_number, streams.at(buffer.stream_id), pipeline_id, cb, buffer, in CreateSensorBuffers()
223 .message.error = {.frame_number = request.frame_number, in NotifyFailedRequest()
[all …]
DGrallocSensorBuffer.cpp34 .message.error = {.frame_number = frame_number, in ~GrallocSensorBuffer()
44 result->frame_number = frame_number; in ~GrallocSensorBuffer()
DEmulatedRequestProcessor.h48 uint32_t frame_number; member
57 uint32_t frame_number; member
70 uint32_t frame_number, std::vector<HwlPipelineRequest>& requests,
127 uint32_t frame_number, const std::vector<StreamBuffer>& buffers,
132 uint32_t frame_number, const EmulatedStream& stream, uint32_t pipeline_id,
138 uint32_t frame_number,
/hardware/google/camera/common/hal/hwl_interface/
Dmulticam_coordinator.h30 uint32_t frame_number; member
35 uint32_t frame_number; member
40 uint32_t frame_number; member
/hardware/qcom/camera/msm8998/QCamera2/HAL3/test/
DQCameraHAL3VideoTest.cpp79 LOGD(" Request Number is : %d ",mRequest.frame_number); in initTest()
80 mRequest.frame_number = 0; in initTest()
136 LOGD(" Request Number is : %d ", mRequest.frame_number); in captureRequestRepeat()
140 num1 = mRequest.frame_number; in captureRequestRepeat()
166 (mRequest.frame_number)++; in captureRequestRepeat()
172 snapshot_buffer = mRequest.frame_number; in captureRequestRepeat()
179 (mRequest.frame_number)++; in captureRequestRepeat()
DQCameraHAL3PreviewTest.cpp76 LOGD(" Request Number is preview : %d ",mRequest.frame_number); in initTest()
77 mRequest.frame_number = 0; in initTest()
133 LOGD(" Request Number is preview : %d ",mRequest.frame_number); in captureRequestRepeat()
137 num1 = mRequest.frame_number; in captureRequestRepeat()
187 (mRequest.frame_number)++; in captureRequestRepeat()
193 snapshot_buffer = mRequest.frame_number; in captureRequestRepeat()
200 (mRequest.frame_number)++; in captureRequestRepeat()

1234