Home | History | Annotate | Download | only in base

Lines Matching defs:video_capturer

44   static VideoCapturerState* Create(VideoCapturer* video_capturer);
49 VideoFormat GetHighestFormat(VideoCapturer* video_capturer) const;
54 VideoCapturer* GetVideoCapturer() { return adapter()->video_capturer(); }
80 VideoCapturerState* VideoCapturerState::Create(VideoCapturer* video_capturer) {
81 CaptureRenderAdapter* adapter = CaptureRenderAdapter::Create(video_capturer);
116 VideoCapturer* video_capturer) const {
164 bool CaptureManager::StartVideoCapture(VideoCapturer* video_capturer,
169 if (!video_capturer) {
172 VideoCapturerState* capture_state = GetCaptureState(video_capturer);
183 if (!RegisterVideoCapturer(video_capturer)) {
186 capture_state = GetCaptureState(video_capturer);
189 if (!StartWithBestCaptureFormat(capture_state, video_capturer)) {
196 bool CaptureManager::StopVideoCapture(VideoCapturer* video_capturer,
198 VideoCapturerState* capture_state = GetCaptureState(video_capturer);
214 VideoCapturer* video_capturer,
218 if (!IsCapturerRegistered(video_capturer)) {
219 LOG(LS_ERROR) << "RestartVideoCapture: video_capturer is not registered.";
223 if (!StartVideoCapture(video_capturer, desired_format)) {
229 if (!StopVideoCapture(video_capturer, previous_format)) {
233 StopVideoCapture(video_capturer, desired_format);
239 VideoCapturerState* capture_state = GetCaptureState(video_capturer);
243 capture_state->GetHighestFormat(video_capturer);
245 if (video_capturer->GetBestCaptureFormat(highest_asked_format,
247 if (!video_capturer->Restart(capture_format)) {
268 bool CaptureManager::AddVideoRenderer(VideoCapturer* video_capturer,
270 if (!video_capturer || !video_renderer) {
273 CaptureRenderAdapter* adapter = GetAdapter(video_capturer);
280 bool CaptureManager::RemoveVideoRenderer(VideoCapturer* video_capturer,
282 if (!video_capturer || !video_renderer) {
285 CaptureRenderAdapter* adapter = GetAdapter(video_capturer);
292 bool CaptureManager::AddVideoProcessor(VideoCapturer* video_capturer,
294 if (!video_capturer || !video_processor) {
297 if (!IsCapturerRegistered(video_capturer)) {
300 video_capturer->AddVideoProcessor(video_processor);
304 bool CaptureManager::RemoveVideoProcessor(VideoCapturer* video_capturer,
306 if (!video_capturer || !video_processor) {
309 if (!IsCapturerRegistered(video_capturer)) {
312 return video_capturer->RemoveVideoProcessor(video_processor);
315 bool CaptureManager::IsCapturerRegistered(VideoCapturer* video_capturer) const {
316 return GetCaptureState(video_capturer) != NULL;
319 bool CaptureManager::RegisterVideoCapturer(VideoCapturer* video_capturer) {
321 VideoCapturerState::Create(video_capturer);
325 capture_states_[video_capturer] = capture_state;
326 SignalCapturerStateChange.repeat(video_capturer->SignalStateChange);
332 VideoCapturer* video_capturer = capture_state->GetVideoCapturer();
333 capture_states_.erase(video_capturer);
347 SignalCapturerStateChange.stop(video_capturer->SignalStateChange);
348 video_capturer->Stop();
349 SignalCapturerStateChange(video_capturer, CS_STOPPED);
353 VideoCapturerState* capture_state, VideoCapturer* video_capturer) {
355 capture_state->GetHighestFormat(video_capturer);
357 if (!video_capturer->GetBestCaptureFormat(highest_asked_format,
364 video_capturer->GetSupportedFormats();
375 return video_capturer->StartCapturing(capture_format);
379 VideoCapturer* video_capturer) const {
380 CaptureStates::const_iterator iter = capture_states_.find(video_capturer);
388 VideoCapturer* video_capturer) const {
389 VideoCapturerState* capture_state = GetCaptureState(video_capturer);