Initial
This commit is contained in:
49
dvcap/Main.cpp
Normal file
49
dvcap/Main.cpp
Normal file
@@ -0,0 +1,49 @@
|
||||
#include <common/windows.hpp>
|
||||
#include <dvcap/mainwnd.hpp>
|
||||
|
||||
int PASCAL WinMain(HINSTANCE /*hInstance*/,HINSTANCE /*hPrevInstance*/,LPSTR /*lpszCmdLine*/,int /*nCmdShow*/)
|
||||
{
|
||||
MainWindow mainWindow;
|
||||
|
||||
return mainWindow.messageLoop();
|
||||
|
||||
/*
|
||||
|
||||
#include <dvcap/DeviceEnumerator.hpp>
|
||||
#include <dvcap/DeviceDescriptor.hpp>
|
||||
#include <dvcap/DevNotify.hpp>
|
||||
#include <dvcap/VideoCapture.hpp>
|
||||
|
||||
|
||||
ComInitializer comInitializer;
|
||||
DeviceDescriptors descriptors;
|
||||
BString deviceName("Microsoft DV Camera and VCR");
|
||||
*/
|
||||
|
||||
/*
|
||||
ComResult comResult;
|
||||
ComPointer<ICreateDevEnum> deviceEnumerator;
|
||||
ComPointer<IEnumMoniker> devEnum;
|
||||
|
||||
comResult=deviceEnumerator.createInstance(CLSID_SystemDeviceEnum,IID_ICreateDevEnum);
|
||||
if(!comResult.success())return;
|
||||
comResult=deviceEnumerator->CreateClassEnumerator(CLSID_VideoCompressorCategory,(IEnumMoniker**)devEnum,0);
|
||||
if(!comResult.success())return;
|
||||
*/
|
||||
|
||||
/* VideoCapture videoCapture;
|
||||
if(!videoCapture.capture(deviceName))
|
||||
{
|
||||
::OutputDebugString(String("Capture failed on device '")+deviceName.toString()+String("'\n"));
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
|
||||
/* DeviceEnumerator::enumerateCategory(descriptors,DeviceEnumerator::VideoCaptureSources);
|
||||
// DeviceEnumerator::enumerateCategory(descriptors,DeviceEnumerator::VideoCompressors);
|
||||
for(int index=0;index<descriptors.size();index++)
|
||||
::OutputDebugString(descriptors[index].getName()+String("\n"));
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user