一、init camera
1)调用栈
MainWnd::WndProc()
->MainWnd::OnMessage()
->MainWnd::OnDefaultAction()
->Conductor::ConnectToPeer()
->Conductor::InitializePeerConnection()
->Conductor::AddStreams()
->Conductor::OpenVideoCaptureDevice()
->WebRtcVideoCapturer::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
三、get camera data
1)调用栈
videocapturemodule::CaptureInputPin::Receive()
->videocapturemodule::CaptureSinkFilter::ProcessCapturedFrame()
->videocapturemodule::VideoCaptureImpl::IncomingFrame()
->videocapturemodule::VideoCaptureImpl::DeliverCapturedFrame()
->WebRtcVideoCapturer::OnFrame()