• Home
  • Raw
  • Download

Lines Matching refs:video_frame

935 void VideoStreamEncoder::OnFrame(const VideoFrame& video_frame) {  in OnFrame()  argument
937 VideoFrame incoming_frame = video_frame; in OnFrame()
951 if (video_frame.ntp_time_ms() > 0) { in OnFrame()
952 capture_ntp_time_ms = video_frame.ntp_time_ms(); in OnFrame()
953 } else if (video_frame.render_time_ms() != 0) { in OnFrame()
954 capture_ntp_time_ms = video_frame.render_time_ms() + delta_ntp_internal_ms_; in OnFrame()
1173 void VideoStreamEncoder::MaybeEncodeVideoFrame(const VideoFrame& video_frame, in MaybeEncodeVideoFrame() argument
1176 input_state_provider_.OnFrameSizeObserved(video_frame.size()); in MaybeEncodeVideoFrame()
1178 if (!last_frame_info_ || video_frame.width() != last_frame_info_->width || in MaybeEncodeVideoFrame()
1179 video_frame.height() != last_frame_info_->height || in MaybeEncodeVideoFrame()
1180 video_frame.is_texture() != last_frame_info_->is_texture) { in MaybeEncodeVideoFrame()
1182 last_frame_info_ = VideoFrameInfo(video_frame.width(), video_frame.height(), in MaybeEncodeVideoFrame()
1183 video_frame.is_texture()); in MaybeEncodeVideoFrame()
1190 VideoFrame::UpdateRect{0, 0, video_frame.width(), video_frame.height()}; in MaybeEncodeVideoFrame()
1236 if (DropDueToSize(video_frame.size())) { in MaybeEncodeVideoFrame()
1240 if (video_frame.video_frame_buffer()->type() != in MaybeEncodeVideoFrame()
1242 pending_frame_ = video_frame; in MaybeEncodeVideoFrame()
1247 accumulated_update_rect_.Union(video_frame.update_rect()); in MaybeEncodeVideoFrame()
1248 accumulated_update_rect_is_valid_ &= video_frame.has_update_rect(); in MaybeEncodeVideoFrame()
1256 if (video_frame.video_frame_buffer()->type() != in MaybeEncodeVideoFrame()
1260 pending_frame_ = video_frame; in MaybeEncodeVideoFrame()
1266 accumulated_update_rect_.Union(video_frame.update_rect()); in MaybeEncodeVideoFrame()
1267 accumulated_update_rect_is_valid_ &= video_frame.has_update_rect(); in MaybeEncodeVideoFrame()
1291 accumulated_update_rect_.Union(video_frame.update_rect()); in MaybeEncodeVideoFrame()
1292 accumulated_update_rect_is_valid_ &= video_frame.has_update_rect(); in MaybeEncodeVideoFrame()
1296 EncodeVideoFrame(video_frame, time_when_posted_us); in MaybeEncodeVideoFrame()
1299 void VideoStreamEncoder::EncodeVideoFrame(const VideoFrame& video_frame, in EncodeVideoFrame() argument
1339 VideoFrame out_frame(video_frame); in EncodeVideoFrame()
1377 auto i420_buffer = video_frame.video_frame_buffer()->ToI420(); in EncodeVideoFrame()
1382 int cropped_width = video_frame.width() - crop_width_; in EncodeVideoFrame()
1383 int cropped_height = video_frame.height() - crop_height_; in EncodeVideoFrame()
1388 VideoFrame::UpdateRect update_rect = video_frame.update_rect(); in EncodeVideoFrame()
1409 out_frame.set_ntp_time_ms(video_frame.ntp_time_ms()); in EncodeVideoFrame()
1432 TRACE_EVENT_ASYNC_STEP0("webrtc", "Video", video_frame.render_time_ms(), in EncodeVideoFrame()