-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from BradyBrenot/dxgifixes
fix two DXGI issues
- Loading branch information
Showing
7 changed files
with
97 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,32 @@ | ||
#pragma once | ||
#include "SCCommon.h" | ||
#include <DXGI.h> | ||
#include <memory> | ||
#include <wrl.h> | ||
|
||
#define NOMINMAX | ||
#define WIN32_LEAN_AND_MEAN | ||
#include <windows.h> | ||
#include <d3d11.h> | ||
#include <dxgi1_2.h> | ||
#include <wrl.h> | ||
|
||
#pragma comment(lib,"dxgi.lib") | ||
#pragma comment(lib,"d3d11.lib") | ||
#pragma comment(lib, "dxgi.lib") | ||
#pragma comment(lib, "d3d11.lib") | ||
|
||
namespace SL { | ||
namespace Screen_Capture { | ||
class DXFrameProcessor: public BaseFrameProcessor { | ||
Microsoft::WRL::ComPtr<ID3D11Device> Device; | ||
Microsoft::WRL::ComPtr<ID3D11DeviceContext> DeviceContext; | ||
Microsoft::WRL::ComPtr<ID3D11Texture2D> StagingSurf; | ||
|
||
Microsoft::WRL::ComPtr<IDXGIOutputDuplication> OutputDuplication; | ||
DXGI_OUTPUT_DESC OutputDesc; | ||
UINT Output; | ||
std::vector<BYTE> MetaDataBuffer; | ||
Monitor SelectedMonitor; | ||
namespace Screen_Capture { | ||
class DXFrameProcessor : public BaseFrameProcessor { | ||
Microsoft::WRL::ComPtr<ID3D11Device> Device; | ||
Microsoft::WRL::ComPtr<ID3D11DeviceContext> DeviceContext; | ||
Microsoft::WRL::ComPtr<ID3D11Texture2D> StagingSurf; | ||
|
||
public: | ||
DUPL_RETURN Init(std::shared_ptr<Thread_Data> data, Monitor& monitor); | ||
DUPL_RETURN ProcessFrame(const Monitor& currentmonitorinfo); | ||
Microsoft::WRL::ComPtr<IDXGIOutputDuplication> OutputDuplication; | ||
DXGI_OUTPUT_DESC OutputDesc; | ||
UINT Output; | ||
std::vector<BYTE> MetaDataBuffer; | ||
Monitor SelectedMonitor; | ||
|
||
}; | ||
public: | ||
DUPL_RETURN Init(std::shared_ptr<Thread_Data> data, Monitor &monitor); | ||
DUPL_RETURN ProcessFrame(const Monitor ¤tmonitorinfo); | ||
}; | ||
|
||
} | ||
} | ||
} // namespace Screen_Capture | ||
} // namespace SL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters