Lines Matching refs:CHECK_HR
1199 #define CHECK_HR(x) if (FAILED(x)) { goto done; } macro
1297 CHECK_HR(hr = RawImage::CreateInstance(&ig_RIFirst, sizeRawImage)); in initImageGrabber()
1298 CHECK_HR(hr = RawImage::CreateInstance(&ig_RISecond, sizeRawImage)); in initImageGrabber()
1435 CHECK_HR(hr); in initImageGrabber()
1436 CHECK_HR(hr = RawImage::CreateInstance(&ig_RIFirst, MT.MF_MT_SAMPLE_SIZE)); in initImageGrabber()
1437 CHECK_HR(hr = RawImage::CreateInstance(&ig_RISecond, MT.MF_MT_SAMPLE_SIZE)); in initImageGrabber()
1442 CHECK_HR(hr = MFCreateMediaType(pType.GetAddressOf())); in initImageGrabber()
1443 CHECK_HR(hr = pType->SetGUID(MF_MT_MAJOR_TYPE, MT.MF_MT_MAJOR_TYPE)); in initImageGrabber()
1444 CHECK_HR(hr = pType->SetGUID(MF_MT_SUBTYPE, MT.MF_MT_SUBTYPE)); in initImageGrabber()
1446 … CHECK_HR(hr = MFCreateSampleGrabberSinkActivate(pType.Get(), this, pSinkActivate.GetAddressOf())); in initImageGrabber()
1448 CHECK_HR(hr = pSinkActivate->SetUINT32(MF_SAMPLEGRABBERSINK_IGNORE_CLOCK, TRUE)); in initImageGrabber()
1450 CHECK_HR(hr = MFCreateMediaSession(NULL, &ig_pSession)); in initImageGrabber()
1452 CHECK_HR(hr = CreateTopology(pSource, pSinkActivate.Get(), &ig_pTopology)); in initImageGrabber()
1556 CHECK_HR(hr = MFCreateTopology(&pTopology)); in CreateTopology()
1557 CHECK_HR(hr = pSource->CreatePresentationDescriptor(pPD.GetAddressOf())); in CreateTopology()
1558 CHECK_HR(hr = pPD->GetStreamDescriptorCount(&cStreams)); in CreateTopology()
1564 CHECK_HR(hr = pPD->GetStreamDescriptorByIndex(i, &fSelected, &pSD)); in CreateTopology()
1565 CHECK_HR(hr = pSD->GetMediaTypeHandler(&pHandler)); in CreateTopology()
1566 CHECK_HR(hr = pHandler->GetMajorType(&majorType)); in CreateTopology()
1569 … CHECK_HR(hr = AddSourceNode(pTopology, pSource, pPD.Get(), pSD.Get(), pNode1.GetAddressOf())); in CreateTopology()
1570 CHECK_HR(hr = AddOutputNode(pTopology, pSinkActivate, 0, pNode2.GetAddressOf())); in CreateTopology()
1571 CHECK_HR(hr = pNode1->ConnectOutput(0, pNode2.Get(), 0)); in CreateTopology()
1576 CHECK_HR(hr = pPD->DeselectStream(i)); in CreateTopology()
1595 CHECK_HR(hr = MFCreateTopologyNode(MF_TOPOLOGY_SOURCESTREAM_NODE, pNode.GetAddressOf())); in AddSourceNode()
1596 CHECK_HR(hr = pNode->SetUnknown(MF_TOPONODE_SOURCE, pSource)); in AddSourceNode()
1597 CHECK_HR(hr = pNode->SetUnknown(MF_TOPONODE_PRESENTATION_DESCRIPTOR, pPD)); in AddSourceNode()
1598 CHECK_HR(hr = pNode->SetUnknown(MF_TOPONODE_STREAM_DESCRIPTOR, pSD)); in AddSourceNode()
1599 CHECK_HR(hr = pTopology->AddNode(pNode.Get())); in AddSourceNode()
1616 CHECK_HR(hr = MFCreateTopologyNode(MF_TOPOLOGY_OUTPUT_NODE, pNode.GetAddressOf())); in AddOutputNode()
1617 CHECK_HR(hr = pNode->SetObject(pActivate)); in AddOutputNode()
1618 CHECK_HR(hr = pNode->SetUINT32(MF_TOPONODE_STREAMID, dwId)); in AddOutputNode()
1619 CHECK_HR(hr = pNode->SetUINT32(MF_TOPONODE_NOSHUTDOWN_ON_REMOVE, FALSE)); in AddOutputNode()
1620 CHECK_HR(hr = pTopology->AddNode(pNode.Get())); in AddOutputNode()