Home | History | Annotate | Download | only in windows

Lines Matching refs:hr

86     HRESULT hr = CoCreateInstance(CLSID_FilterGraph, NULL,
89 if (FAILED(hr))
96 hr = _graphBuilder->QueryInterface(IID_IMediaControl,
98 if (FAILED(hr))
104 hr = _graphBuilder->AddFilter(_captureFilter, CAPTURE_FILTER_NAME);
105 if (FAILED(hr))
115 _sinkFilter = new CaptureSinkFilter(SINK_FILTER_NAME, NULL, &hr,
117 if (hr != S_OK)
125 hr = _graphBuilder->AddFilter(_sinkFilter, SINK_FILTER_NAME);
126 if (FAILED(hr))
140 hr = _mediaControl->Pause();
141 if (FAILED(hr))
145 hr);
167 HRESULT hr = _mediaControl->Run();
168 if (FAILED(hr))
181 HRESULT hr = _mediaControl->Pause();
182 if (FAILED(hr))
185 "Failed to stop the capture graph. %d", hr);
193 HRESULT hr = _mediaControl->GetState(1000, &state);
194 if (hr != S_OK && hr != VFW_S_CANT_CUE)
251 HRESULT hr = _outputCapturePin->QueryInterface(IID_IAMStreamConfig,
253 if (hr)
262 hr = streamConfig->GetStreamCaps(
265 if (!FAILED(hr))
294 hr += streamConfig->SetFormat(pmt);
304 if (FAILED(hr))
313 hr = ConnectDVCamera();
317 hr = _graphBuilder->ConnectDirect(_outputCapturePin, _inputSendPin,
320 if (hr != S_OK)
323 "Failed to connect the Capture graph %d", hr);
331 HRESULT hr = _mediaControl->Stop();
332 hr += _graphBuilder->Disconnect(_outputCapturePin);
333 hr += _graphBuilder->Disconnect(_inputSendPin);
341 if (hr != S_OK)
345 hr);
352 HRESULT hr = S_OK;
356 hr = CoCreateInstance(CLSID_DVVideoCodec, NULL, CLSCTX_INPROC,
358 if (hr != S_OK)
361 "Failed to create the dv decoder: %x", hr);
362 return hr;
364 hr = _graphBuilder->AddFilter(_dvFilter, L"VideoDecoderDV");
365 if (hr != S_OK)
368 "Failed to add the dv decoder to the graph: %x", hr);
369 return hr;
386 hr = _graphBuilder->ConnectDirect(_outputCapturePin, _inputDvPin, NULL);
387 if (hr != S_OK)
391 hr);
392 return hr;
395 hr = _graphBuilder->ConnectDirect(_outputDvPin, _inputSendPin, NULL);
396 if (hr != S_OK)
398 if (hr == 0x80070004)
407 hr);
409 return hr;
411 return hr;