Lines Matching refs:request
46 std::set<camera3_stream_t*> RequestStreams(const CaptureRequest& request) { in RequestStreams() argument
48 if (request.input_buffer) { in RequestStreams()
49 result.insert(request.input_buffer->stream); in RequestStreams()
51 for (const auto& output_buffer : request.output_buffers) { in RequestStreams()
57 bool RequestTracker::Add(std::shared_ptr<CaptureRequest> request) { in Add() argument
58 if (!CanAddRequest(*request)) { in Add()
63 for (const auto stream : RequestStreams(*request)) { in Add()
68 frames_in_flight_[request->frame_number] = request; in Add()
73 bool RequestTracker::Remove(std::shared_ptr<CaptureRequest> request) { in Remove() argument
74 if (!request) { in Remove()
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()
84 } else if (request != frame_number_request->second) { in Remove()
89 request->frame_number); in Remove()
96 for (const auto stream : RequestStreams(*request)) { in Remove()
120 bool RequestTracker::CanAddRequest(const CaptureRequest& request) const { in CanAddRequest()
122 if (frames_in_flight_.count(request.frame_number) > 0) { in CanAddRequest()
125 request.frame_number); in CanAddRequest()
131 for (const auto stream : RequestStreams(request)) { in CanAddRequest()