Lines Matching refs:capture_state
192 VideoCapturerState* capture_state = GetCaptureState(video_capturer); in StartVideoCapture() local
193 if (capture_state) { in StartVideoCapture()
194 const int ref_count = capture_state->IncCaptureStartRef(); in StartVideoCapture()
200 capture_state->AddCaptureResolution(desired_format); in StartVideoCapture()
206 capture_state = GetCaptureState(video_capturer); in StartVideoCapture()
207 ASSERT(capture_state != NULL); in StartVideoCapture()
208 capture_state->AddCaptureResolution(desired_format); in StartVideoCapture()
209 if (!StartWithBestCaptureFormat(capture_state, video_capturer)) { in StartVideoCapture()
210 UnregisterVideoCapturer(capture_state); in StartVideoCapture()
219 VideoCapturerState* capture_state = GetCaptureState(video_capturer); in StopVideoCapture() local
220 if (!capture_state) { in StopVideoCapture()
223 if (!capture_state->RemoveCaptureResolution(format)) { in StopVideoCapture()
227 if (capture_state->DecCaptureStartRef() == 0) { in StopVideoCapture()
229 UnregisterVideoCapturer(capture_state); in StopVideoCapture()
261 VideoCapturerState* capture_state = GetCaptureState(video_capturer); in RestartVideoCapture() local
262 ASSERT(capture_state && capture_state->start_count() > 0); in RestartVideoCapture()
265 capture_state->GetHighestFormat(video_capturer); in RestartVideoCapture()
323 VideoCapturerState* capture_state = in RegisterVideoCapturer() local
325 if (!capture_state) { in RegisterVideoCapturer()
328 capture_states_[video_capturer] = capture_state; in RegisterVideoCapturer()
334 VideoCapturerState* capture_state) { in UnregisterVideoCapturer() argument
336 VideoCapturer* video_capturer = capture_state->GetVideoCapturer(); in UnregisterVideoCapturer()
338 delete capture_state; in UnregisterVideoCapturer()
359 VideoCapturerState* capture_state, VideoCapturer* video_capturer) { in StartWithBestCaptureFormat() argument
362 capture_state->GetHighestFormat(video_capturer); in StartWithBestCaptureFormat()
398 VideoCapturerState* capture_state = GetCaptureState(video_capturer); in GetAdapter() local
399 if (!capture_state) { in GetAdapter()
402 return capture_state->adapter(); in GetAdapter()