DxgiOutput->GetDesc(&m_OutputDesc);// QI for Output 1IDXGIOutput1* DxgiOutput1 =nullptr; hr = DxgiOutput->QueryInterface(__uuidof(DxgiOutput1),reinterpret_cast<void**>(&DxgiOutput1)); DxgiOutput->Release(); DxgiOutput =nullptr;if(FAILED(hr)) {returnProcessFailure(nullptr,L"Failed to Q...
If an application wants to duplicate the entire desktop, it must create a desktop duplication interface on each active output on the desktop. This interface does not provide an explicit way to synchronize the timing of each output image. Instead, the application must use the time stamp of e...
{//创建多线程(启动DDproc),并指定着色器句柄,处理函数; OutputCount为线程数Ret = ThreadMgr.Initialize(SingleOutput, OutputCount, UnexpectedErrorEvent, ExpectedErrorEvent, TerminateThreadsEvent, SharedHandle, &DeskBounds); }else{ DisplayMsg(L"Failed to get handle of shared surface", L"Error", S_OK...
而由于Desktop Duplication API是通过Microsoft DirectX Graphics Infrastructure (DXGI)来提供桌面图像的,速...
hRes = pDxgiOutput->QueryInterface(__uuidof(IDXGIOutput1),reinterpret_cast<void**>(&pDxgiOutput1)); SAFE_RELEASE(pDxgiOutput);if(!SUCCEEDED(hRes)) { DOLOG("pDxgiOutput->QueryInterface failed!");returnfalse; }// Get duplicatehRes = pDxgiOutput1->DuplicateOutput(m_pDevice, &m_pOutputDup...
//GDI截屏初始化m_pFormatContext=avformat_alloc_context();if(nullptr==m_pFormatContext){qDebug("avformat_alloc_context failed");break;}AVInputFormat*pInputFormat=av_find_input_format("gdigrab");if(nullptr==pInputFormat){qDebug("av_find_input_format failed");break;}AVDictionary*options=nullptr;...
If an application wants to duplicate the entire desktop, it must create a desktop duplication interface on each active output on the desktop. This interface does not provide an explicit way to synchronize the timing of each output image. Instead, the application must use the time stamp of eac...
desc.AttachedToDesktop ?L"true":L"false"); output->Release(); } } }elseAppWarning(TEXT("Could not query adapter %u"), i); giAdapter->Release(); } factory->Release(); } } 开发者ID:neilzar,项目名称:OBS,代码行数:51,代码来源:D3D10System.cpp ...
hRes = pDxgiOutput->QueryInterface(__uuidof(IDXGIOutput1),reinterpret_cast<void**>(&pDxgiOutput1)); SAFE_RELEASE(pDxgiOutput);if(!SUCCEEDED(hRes)) { DOLOG("pDxgiOutput->QueryInterfacefailed!");returnfalse; }// Get duplicatehRes = pDxgiOutput1->DuplicateOutput(m_pDevice, &m_pOutputDupli...
SafeRelease(dxgiAdapter);if(FAILED(result)) {returnnullptr; }returndxgiFactory; } 开发者ID:FahimArnob,项目名称:angle,代码行数:29,代码来源: 示例3: ▲点赞 5▼ boolDX11Engine::CreateSwapChain(HWND handle, UINT xSize, UINT ySize) { mXsize = xSize; ...