Merge pull request #5107 from vladimir-dudnik:d3d-interop-upd

pull/5117/head
Alexander Alekhin 9 years ago
commit 0f8c46f368
  1. 1
      samples/directx/d3d11_interop.cpp
  2. 8
      samples/directx/d3dsample.hpp

@ -111,6 +111,7 @@ public:
m_pSurfaceRGBA = 0;
m_pSurfaceNV12 = 0;
m_pSurfaceNV12_cpu_copy = 0;
D3D11_TEXTURE2D_DESC desc_rgba;

@ -175,10 +175,10 @@ static const char* keys =
template <typename TApp>
int d3d_app(int argc, char** argv, std::string& title)
{
cv::CommandLineParser parser(argc, argv, keys); \
bool useCamera = parser.has("camera"); \
string file = parser.get<string>("file"); \
bool showHelp = parser.get<bool>("help"); \
cv::CommandLineParser parser(argc, argv, keys);
bool useCamera = parser.has("camera");
string file = parser.get<string>("file");
bool showHelp = parser.get<bool>("help");
if (showHelp)
help();

Loading…
Cancel
Save