void Capturer::OnCaptureResult(webrtc::DesktopCapturer::Result result,
std::unique_ptr<webrtc::DesktopFrame> desktopFrame)
{
if (result != webrtc::DesktopCapturer::Result::SUCCESS)
{
return; // Obviously never called
}
int width = desktopFrame->size().width();
int height = desktopFrame->size().height();
rtc::scoped_refptr<webrtc::I420Buffer> res_i420_frame = webrtc::I420Buffer::Create(width, height);
webrtc::ConvertToI420(webrtc::VideoType::kARGB,
desktopFrame->data(),
0, 0,
width, height,
0,
webrtc::kVideoRotation_0,
res_i420_frame);
webrtc::VideoFrame frame = webrtc::VideoFrame(res_i420_frame, 0, 0, webrtc::kVideoRotation_0);
this->OnFrame(frame, width, height);
}
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/e7562ace-a08c-4fc5-bff0-f50b94cfdb53%40googlegroups.com.--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/e7562ace-a08c-4fc5-bff0-f50b94cfdb53%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/e5f7a172-b9b1-46ea-a950-194d9d3979cf%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/e5f7a172-b9b1-46ea-a950-194d9d3979cf%40googlegroups.com.
CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, true);
#
# Fatal error in ../../modules/desktop_capture/screen_capturer_mac.mm, line 381
# last system error: 316
# Check failed: !queue_.current_frame() || !queue_.current_frame()->IsShared()
#
#
So potentially, I am able to get 2 fps. Did you encounter any such problem?
Moreover I'd be interested to see the code using CFRunLoop.
Thanks!
CFRunLoopRunInMode(kCFRunLoopDefaultMode, 1, false);
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/2b445aa4-0996-47ad-ab3b-c427e56877a7%40googlegroups.com.