一、init camera
1)调用栈
wWinMain
->MainWnd::WndProc
->MainWnd::OnMessage
->MainWnd::OnDefaultAction
->Conductor::ConnectToPeer
->Conductor::InitializePeerConnection
->Conductor::AddStreams
->Conductor::OpenVideoCaptureDevice
->WebRtcVideoDeviceCapturerFactory::Create
->WebRtcVideoCapturer::Init
->WebRtcVcmFactory::Create
->VideoCaptureFactory::Create
->videocapturemodule::VideoCaptureImpl::Create
->videocapturemodule::VideoCaptureDS::Init
2)具体实现
Conductor::OpenVideoCaptureDevice()

WebRtcVideoDeviceCapturerFactory::Create

二、start camera
1)调用栈
MainWnd::WndProc()
->MainWnd::OnMessage()
->MainWnd::OnDefaultAction()
->Conductor::ConnectToPeer()
->Conductor::InitializePeerConnection()
->Conductor::AddStreams()
->PeerConnectionFactory::CreateVideoSource
->VideoCapturerTrackSource::Create
->VideoCapturerTrackSource::Initialize
->VideoCapturer::StartCapturing
->WebRtcVideoCapturer::Start
->videocapturemodule::VideoCaptureDS::StartCapture

三、get camera data
1)调用栈
videocapturemodule::CaptureInputPin::Receive()
->videocapturemodule::CaptureSinkFilter::ProcessCapturedFrame()
->videocapturemodule::VideoCaptureImpl::IncomingFrame()
->videocapturemodule::VideoCaptureImpl::DeliverCapturedFrame()
->WebRtcVideoCapturer::OnFrame()
本文详细解析了音视频采集过程中的关键步骤,包括初始化摄像头、启动摄像头、获取摄像头数据等环节,深入探讨了WebRtcVideoCapturer、VideoCaptureDS等组件在音视频采集中的作用。
2365

被折叠的 条评论
为什么被折叠?



