-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows samples and projects are merged in
- Loading branch information
Showing
99 changed files
with
13,271 additions
and
186 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ tests/gold/ | |
tests/results/ | ||
tests/ted/__pycache__/ | ||
tests/test_results.json | ||
.vs | ||
samples/_build | ||
*.user |
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 |
---|---|---|
@@ -0,0 +1,158 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.27703.2000 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample_common", "sample_common\sample_common.vcxproj", "{5FADB243-53C3-4776-A20F-8BD65C10CF41}" | ||
EndProject | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample_decode", "sample_decode\sample_decode.vcxproj", "{F22D082D-FDDD-4946-A11B-5276F0994C74}" | ||
EndProject | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample_encode", "sample_encode\sample_encode.vcxproj", "{33834A6A-4466-4339-8C7C-FBA250BC1957}" | ||
EndProject | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample_multi_transcode", "sample_multi_transcode\sample_multi_transcode.vcxproj", "{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}" | ||
EndProject | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample_rotate_plugin", "sample_plugins\rotate_cpu\sample_rotate_plugin.vcxproj", "{C5F515E3-379A-4678-B947-509B3603D826}" | ||
EndProject | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample_plugin_opencl", "sample_plugins\rotate_opencl\sample_plugin_opencl.vcxproj", "{E90AE63E-F219-4389-A955-26E78BD1BD9A}" | ||
EndProject | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vpp_plugin", "sample_plugins\vpp_plugin\vpp_plugin.vcxproj", "{474EF95D-3579-411B-9DDB-88B49F923D65}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugins", "Plugins", "{E4C0D92D-FE15-43AE-A86D-A9866C0A50E6}" | ||
EndProject | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample_vpp", "sample_vpp\sample_vpp.vcxproj", "{A0872728-B771-49B5-93FA-D7140631A829}" | ||
EndProject | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample_camera", "sample_camera\sample_camera.vcxproj", "{A812C44D-0255-4796-9042-BCAE99963E7D}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug_WithDebugAPI|Win32 = Debug_WithDebugAPI|Win32 | ||
Debug_WithDebugAPI|x64 = Debug_WithDebugAPI|x64 | ||
Debug|Win32 = Debug|Win32 | ||
Debug|x64 = Debug|x64 | ||
Release|Win32 = Release|Win32 | ||
Release|x64 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{5FADB243-53C3-4776-A20F-8BD65C10CF41}.Debug_WithDebugAPI|Win32.ActiveCfg = Debug_WithDebugAPI|Win32 | ||
{5FADB243-53C3-4776-A20F-8BD65C10CF41}.Debug_WithDebugAPI|Win32.Build.0 = Debug_WithDebugAPI|Win32 | ||
{5FADB243-53C3-4776-A20F-8BD65C10CF41}.Debug_WithDebugAPI|x64.ActiveCfg = Debug_WithDebugAPI|x64 | ||
{5FADB243-53C3-4776-A20F-8BD65C10CF41}.Debug_WithDebugAPI|x64.Build.0 = Debug_WithDebugAPI|x64 | ||
{5FADB243-53C3-4776-A20F-8BD65C10CF41}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{5FADB243-53C3-4776-A20F-8BD65C10CF41}.Debug|Win32.Build.0 = Debug|Win32 | ||
{5FADB243-53C3-4776-A20F-8BD65C10CF41}.Debug|x64.ActiveCfg = Debug|x64 | ||
{5FADB243-53C3-4776-A20F-8BD65C10CF41}.Debug|x64.Build.0 = Debug|x64 | ||
{5FADB243-53C3-4776-A20F-8BD65C10CF41}.Release|Win32.ActiveCfg = Release|Win32 | ||
{5FADB243-53C3-4776-A20F-8BD65C10CF41}.Release|Win32.Build.0 = Release|Win32 | ||
{5FADB243-53C3-4776-A20F-8BD65C10CF41}.Release|x64.ActiveCfg = Release|x64 | ||
{5FADB243-53C3-4776-A20F-8BD65C10CF41}.Release|x64.Build.0 = Release|x64 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Debug_WithDebugAPI|Win32.ActiveCfg = Debug_WithDebugAPI|Win32 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Debug_WithDebugAPI|Win32.Build.0 = Debug_WithDebugAPI|Win32 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Debug_WithDebugAPI|x64.ActiveCfg = Debug_WithDebugAPI|x64 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Debug_WithDebugAPI|x64.Build.0 = Debug_WithDebugAPI|x64 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Debug|Win32.Build.0 = Debug|Win32 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Debug|x64.ActiveCfg = Debug|x64 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Debug|x64.Build.0 = Debug|x64 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Debug|x64.Deploy.0 = Debug|x64 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Release|Win32.ActiveCfg = Release|Win32 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Release|Win32.Build.0 = Release|Win32 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Release|x64.ActiveCfg = Release|x64 | ||
{F22D082D-FDDD-4946-A11B-5276F0994C74}.Release|x64.Build.0 = Release|x64 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Debug_WithDebugAPI|Win32.ActiveCfg = Debug_WithDebugAPI|Win32 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Debug_WithDebugAPI|Win32.Build.0 = Debug_WithDebugAPI|Win32 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Debug_WithDebugAPI|x64.ActiveCfg = Debug_WithDebugAPI|x64 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Debug_WithDebugAPI|x64.Build.0 = Debug_WithDebugAPI|x64 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Debug|Win32.Build.0 = Debug|Win32 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Debug|x64.ActiveCfg = Debug|x64 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Debug|x64.Build.0 = Debug|x64 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Debug|x64.Deploy.0 = Debug|x64 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Release|Win32.ActiveCfg = Release|Win32 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Release|Win32.Build.0 = Release|Win32 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Release|x64.ActiveCfg = Release|x64 | ||
{33834A6A-4466-4339-8C7C-FBA250BC1957}.Release|x64.Build.0 = Release|x64 | ||
{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}.Debug_WithDebugAPI|Win32.ActiveCfg = Debug_WithDebugAPI|Win32 | ||
{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}.Debug_WithDebugAPI|Win32.Build.0 = Debug_WithDebugAPI|Win32 | ||
{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}.Debug_WithDebugAPI|x64.ActiveCfg = Debug_WithDebugAPI|x64 | ||
{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}.Debug_WithDebugAPI|x64.Build.0 = Debug_WithDebugAPI|x64 | ||
{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}.Debug|Win32.Build.0 = Debug|Win32 | ||
{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}.Debug|x64.ActiveCfg = Debug|x64 | ||
{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}.Debug|x64.Build.0 = Debug|x64 | ||
{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}.Release|Win32.ActiveCfg = Release|Win32 | ||
{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}.Release|Win32.Build.0 = Release|Win32 | ||
{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}.Release|x64.ActiveCfg = Release|x64 | ||
{58D93FCA-FDE9-4D22-8E8D-402EEBACF2BD}.Release|x64.Build.0 = Release|x64 | ||
{C5F515E3-379A-4678-B947-509B3603D826}.Debug_WithDebugAPI|Win32.ActiveCfg = Debug_WithDebugAPI|Win32 | ||
{C5F515E3-379A-4678-B947-509B3603D826}.Debug_WithDebugAPI|Win32.Build.0 = Debug_WithDebugAPI|Win32 | ||
{C5F515E3-379A-4678-B947-509B3603D826}.Debug_WithDebugAPI|x64.ActiveCfg = Debug_WithDebugAPI|x64 | ||
{C5F515E3-379A-4678-B947-509B3603D826}.Debug_WithDebugAPI|x64.Build.0 = Debug_WithDebugAPI|x64 | ||
{C5F515E3-379A-4678-B947-509B3603D826}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{C5F515E3-379A-4678-B947-509B3603D826}.Debug|Win32.Build.0 = Debug|Win32 | ||
{C5F515E3-379A-4678-B947-509B3603D826}.Debug|x64.ActiveCfg = Debug|x64 | ||
{C5F515E3-379A-4678-B947-509B3603D826}.Debug|x64.Build.0 = Debug|x64 | ||
{C5F515E3-379A-4678-B947-509B3603D826}.Release|Win32.ActiveCfg = Release|Win32 | ||
{C5F515E3-379A-4678-B947-509B3603D826}.Release|Win32.Build.0 = Release|Win32 | ||
{C5F515E3-379A-4678-B947-509B3603D826}.Release|x64.ActiveCfg = Release|x64 | ||
{C5F515E3-379A-4678-B947-509B3603D826}.Release|x64.Build.0 = Release|x64 | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A}.Debug_WithDebugAPI|Win32.ActiveCfg = Debug_WithDebugAPI|Win32 | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A}.Debug_WithDebugAPI|Win32.Build.0 = Debug_WithDebugAPI|Win32 | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A}.Debug_WithDebugAPI|x64.ActiveCfg = Debug_WithDebugAPI|x64 | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A}.Debug_WithDebugAPI|x64.Build.0 = Debug_WithDebugAPI|x64 | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A}.Debug|Win32.Build.0 = Debug|Win32 | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A}.Debug|x64.ActiveCfg = Debug|x64 | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A}.Debug|x64.Build.0 = Debug|x64 | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A}.Release|Win32.ActiveCfg = Release|Win32 | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A}.Release|Win32.Build.0 = Release|Win32 | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A}.Release|x64.ActiveCfg = Release|x64 | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A}.Release|x64.Build.0 = Release|x64 | ||
{474EF95D-3579-411B-9DDB-88B49F923D65}.Debug_WithDebugAPI|Win32.ActiveCfg = Debug_WithDebugAPI|Win32 | ||
{474EF95D-3579-411B-9DDB-88B49F923D65}.Debug_WithDebugAPI|Win32.Build.0 = Debug_WithDebugAPI|Win32 | ||
{474EF95D-3579-411B-9DDB-88B49F923D65}.Debug_WithDebugAPI|x64.ActiveCfg = Debug_WithDebugAPI|x64 | ||
{474EF95D-3579-411B-9DDB-88B49F923D65}.Debug_WithDebugAPI|x64.Build.0 = Debug_WithDebugAPI|x64 | ||
{474EF95D-3579-411B-9DDB-88B49F923D65}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{474EF95D-3579-411B-9DDB-88B49F923D65}.Debug|Win32.Build.0 = Debug|Win32 | ||
{474EF95D-3579-411B-9DDB-88B49F923D65}.Debug|x64.ActiveCfg = Debug|x64 | ||
{474EF95D-3579-411B-9DDB-88B49F923D65}.Debug|x64.Build.0 = Debug|x64 | ||
{474EF95D-3579-411B-9DDB-88B49F923D65}.Release|Win32.ActiveCfg = Release|Win32 | ||
{474EF95D-3579-411B-9DDB-88B49F923D65}.Release|Win32.Build.0 = Release|Win32 | ||
{474EF95D-3579-411B-9DDB-88B49F923D65}.Release|x64.ActiveCfg = Release|x64 | ||
{474EF95D-3579-411B-9DDB-88B49F923D65}.Release|x64.Build.0 = Release|x64 | ||
{A0872728-B771-49B5-93FA-D7140631A829}.Debug_WithDebugAPI|Win32.ActiveCfg = Debug_WithDebugAPI|Win32 | ||
{A0872728-B771-49B5-93FA-D7140631A829}.Debug_WithDebugAPI|Win32.Build.0 = Debug_WithDebugAPI|Win32 | ||
{A0872728-B771-49B5-93FA-D7140631A829}.Debug_WithDebugAPI|x64.ActiveCfg = Debug_WithDebugAPI|x64 | ||
{A0872728-B771-49B5-93FA-D7140631A829}.Debug_WithDebugAPI|x64.Build.0 = Debug_WithDebugAPI|x64 | ||
{A0872728-B771-49B5-93FA-D7140631A829}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{A0872728-B771-49B5-93FA-D7140631A829}.Debug|Win32.Build.0 = Debug|Win32 | ||
{A0872728-B771-49B5-93FA-D7140631A829}.Debug|x64.ActiveCfg = Debug|x64 | ||
{A0872728-B771-49B5-93FA-D7140631A829}.Debug|x64.Build.0 = Debug|x64 | ||
{A0872728-B771-49B5-93FA-D7140631A829}.Release|Win32.ActiveCfg = Release|Win32 | ||
{A0872728-B771-49B5-93FA-D7140631A829}.Release|Win32.Build.0 = Release|Win32 | ||
{A0872728-B771-49B5-93FA-D7140631A829}.Release|x64.ActiveCfg = Release|x64 | ||
{A0872728-B771-49B5-93FA-D7140631A829}.Release|x64.Build.0 = Release|x64 | ||
{A812C44D-0255-4796-9042-BCAE99963E7D}.Debug_WithDebugAPI|Win32.ActiveCfg = Debug_WithDebugAPI|Win32 | ||
{A812C44D-0255-4796-9042-BCAE99963E7D}.Debug_WithDebugAPI|Win32.Build.0 = Debug_WithDebugAPI|Win32 | ||
{A812C44D-0255-4796-9042-BCAE99963E7D}.Debug_WithDebugAPI|x64.ActiveCfg = Debug_WithDebugAPI|x64 | ||
{A812C44D-0255-4796-9042-BCAE99963E7D}.Debug_WithDebugAPI|x64.Build.0 = Debug_WithDebugAPI|x64 | ||
{A812C44D-0255-4796-9042-BCAE99963E7D}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{A812C44D-0255-4796-9042-BCAE99963E7D}.Debug|Win32.Build.0 = Debug|Win32 | ||
{A812C44D-0255-4796-9042-BCAE99963E7D}.Debug|x64.ActiveCfg = Debug|x64 | ||
{A812C44D-0255-4796-9042-BCAE99963E7D}.Debug|x64.Build.0 = Debug|x64 | ||
{A812C44D-0255-4796-9042-BCAE99963E7D}.Release|Win32.ActiveCfg = Release|Win32 | ||
{A812C44D-0255-4796-9042-BCAE99963E7D}.Release|Win32.Build.0 = Release|Win32 | ||
{A812C44D-0255-4796-9042-BCAE99963E7D}.Release|x64.ActiveCfg = Release|x64 | ||
{A812C44D-0255-4796-9042-BCAE99963E7D}.Release|x64.Build.0 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(NestedProjects) = preSolution | ||
{C5F515E3-379A-4678-B947-509B3603D826} = {E4C0D92D-FE15-43AE-A86D-A9866C0A50E6} | ||
{E90AE63E-F219-4389-A955-26E78BD1BD9A} = {E4C0D92D-FE15-43AE-A86D-A9866C0A50E6} | ||
{474EF95D-3579-411B-9DDB-88B49F923D65} = {E4C0D92D-FE15-43AE-A86D-A9866C0A50E6} | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {E22D5BBD-4305-4E8F-B335-72F3061EEF73} | ||
EndGlobalSection | ||
EndGlobal |
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 |
---|---|---|
@@ -0,0 +1,107 @@ | ||
/******************************************************************************\ | ||
Copyright (c) 2005-2018, Intel Corporation | ||
All rights reserved. | ||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
This sample was distributed or derived from the Intel's Media Samples package. | ||
The original version of this sample may be obtained from https://software.intel.com/en-us/intel-media-server-studio | ||
or https://software.intel.com/en-us/media-client-solutions-support. | ||
\**********************************************************************************/ | ||
|
||
|
||
#ifndef __CAMERA_D3D_RENDER_H__ | ||
#define __CAMERA_D3D_RENDER_H__ | ||
|
||
#if defined(_WIN32) || defined(_WIN64) | ||
|
||
#pragma warning(disable : 4201) | ||
#include <d3d9.h> | ||
#include <dxva2api.h> | ||
#include <dxva.h> | ||
#include <windows.h> | ||
#endif | ||
|
||
#include "mfxstructures.h" | ||
#include "mfxvideo.h" | ||
|
||
#include "hw_device.h" | ||
|
||
typedef void* WindowHandle; | ||
typedef void* Handle; | ||
|
||
#if defined(_WIN32) || defined(_WIN64) | ||
|
||
struct sWindowParams | ||
{ | ||
LPCTSTR lpClassName; | ||
LPCTSTR lpWindowName; | ||
DWORD dwStyle; | ||
int nx; | ||
int ny; | ||
int ncell; | ||
int nAdapter; | ||
int nMaxFPS; | ||
int nWidth; | ||
int nHeight; | ||
HWND hWndParent; | ||
HMENU hMenu; | ||
HINSTANCE hInstance; | ||
LPVOID lpParam; | ||
bool bFullScreen; // Stretch window to full screen | ||
}; | ||
|
||
class CCameraD3DRender | ||
{ | ||
public: | ||
|
||
CCameraD3DRender(); | ||
virtual ~CCameraD3DRender(); | ||
|
||
virtual mfxStatus Init(sWindowParams pWParams); | ||
virtual mfxStatus RenderFrame(mfxFrameSurface1 *pSurface, mfxFrameAllocator *pmfxAlloc); | ||
|
||
virtual void Close(); | ||
|
||
|
||
HWND GetWindowHandle() { return m_Hwnd; } | ||
|
||
VOID OnDestroy(HWND hwnd); | ||
VOID OnKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags); | ||
VOID ChangeWindowSize(bool bFullScreen); | ||
|
||
void SetHWDevice(CHWDevice *dev) | ||
{ | ||
m_hwdev = dev; | ||
} | ||
protected: | ||
void AdjustWindowRect(RECT *rect); | ||
|
||
CHWDevice *m_hwdev; | ||
|
||
sWindowParams m_sWindowParams; | ||
HWND m_Hwnd; | ||
RECT m_rect; | ||
DWORD m_style; | ||
|
||
bool EnableDwmQueuing(); | ||
static BOOL CALLBACK MonitorEnumProc(HMONITOR ,HDC ,LPRECT lprcMonitor,LPARAM dwData); | ||
|
||
bool m_bDwmEnabled; | ||
LARGE_INTEGER m_LastInputTime; | ||
LARGE_INTEGER m_Freq; | ||
int m_nFrames; | ||
int m_nMonitorCurrent; | ||
::RECT m_RectWindow; | ||
}; | ||
#endif // #if defined(_WIN32) || defined(_WIN64) | ||
|
||
#endif // __CAMERA_D3D_RENDER_H__ |
Oops, something went wrong.