• Home
  • Raw
  • Download

Lines Matching refs:captured

41   CapturedFrame captured;  in OnCapturedFrame()  local
42 captured.id = next_capture_id_++; in OnCapturedFrame()
43 captured.capture_time = at_time; in OnCapturedFrame()
44 captured.frame = frame.video_frame_buffer(); in OnCapturedFrame()
45 captured.thumb = ScaleVideoFrameBuffer(*frame.video_frame_buffer()->ToI420(), in OnCapturedFrame()
47 task_queue_.PostTask([this, captured]() { in OnCapturedFrame()
49 CapturedFrame copy = captured; in OnCapturedFrame()
51 layer.second.last_decode->frame->width() <= captured.frame->width()) { in OnCapturedFrame()
52 copy.best_score = I420SSE(*captured.thumb->GetI420(), in OnCapturedFrame()
76 for (auto& captured : layer.captured_frames) { in OnDecodedFrame() local
78 if (captured.frame->width() < decoded->frame->width()) { in OnDecodedFrame()
79 captured.matched = true; in OnDecodedFrame()
83 I420SSE(*captured.thumb->GetI420(), *decoded->thumb->GetI420()); in OnDecodedFrame()
84 if (score < captured.best_score) { in OnDecodedFrame()
85 captured.best_score = score; in OnDecodedFrame()
86 captured.best_decode = decoded; in OnDecodedFrame()
87 captured.matched = false; in OnDecodedFrame()
89 captured.matched = true; in OnDecodedFrame()
104 void VideoFrameMatcher::HandleMatch(VideoFrameMatcher::CapturedFrame captured, in HandleMatch() argument
108 frame_pair.captured = captured.frame; in HandleMatch()
109 frame_pair.capture_id = captured.id; in HandleMatch()
110 frame_pair.capture_time = captured.capture_time; in HandleMatch()
111 if (captured.best_decode) { in HandleMatch()
112 frame_pair.decode_id = captured.best_decode->id; in HandleMatch()
113 frame_pair.decoded = captured.best_decode->frame; in HandleMatch()
114 frame_pair.decoded_time = captured.best_decode->decoded_time; in HandleMatch()
116 frame_pair.render_time = std::max(captured.best_decode->render_time, in HandleMatch()
117 captured.best_decode->decoded_time); in HandleMatch()
118 frame_pair.repeated = captured.best_decode->repeat_count++; in HandleMatch()