Skip to content

Commit

Permalink
Pull correction
Browse files Browse the repository at this point in the history
  • Loading branch information
leadedge committed Oct 12, 2020
1 parent fc27722 commit 1ec5576
Show file tree
Hide file tree
Showing 13 changed files with 139 additions and 1,071 deletions.
Binary file removed source/cam.aps
Binary file not shown.
277 changes: 109 additions & 168 deletions source/cam.cpp

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion source/cam.def
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ EXPORTS
DllCanUnloadNow PRIVATE
DllRegisterServer PRIVATE
DllUnregisterServer PRIVATE
Configure PRIVATE
43 changes: 4 additions & 39 deletions source/cam.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#define DECLARE_PTR(type, ptr, expr) type* ptr = (type*)(expr);


// leak checking
// http://www.codeproject.com/Articles/9815/Visual-Leak-Detector-Enhanced-Memory-Leak-Detectio
//
Expand All @@ -30,36 +31,11 @@
#include "..\SpoutDX\source\SpoutDX.h"
#include <streams.h>

//<==================== VS-START ====================>
#include "dshowutil.h"

// we need a LPCTSTR for the NAME() makros in debug mode
#define SPOUTCAMNAME "SpoutCam"

extern "C" {
DECLARE_INTERFACE_(ICamSettings, IUnknown)
{
STDMETHOD(put_Settings) (THIS_
DWORD dwFps,
DWORD dwResolution,
DWORD dwMirror,
DWORD dwSwap,
DWORD dwFlip
) PURE;
};
}

EXTERN_C const GUID CLSID_SpoutCamPropertyPage;
EXTERN_C const GUID IID_ICamSettings;
//<==================== VS-END ======================>

EXTERN_C const GUID CLSID_SpoutCam;
EXTERN_C const WCHAR SpoutCamName[MAX_PATH];

class CVCamStream;
class CVCam : public CSource,
public ISpecifyPropertyPages,//VS
public ICamSettings//VS
class CVCam : public CSource
{
public:
//////////////////////////////////////////////////////////////////////////
Expand All @@ -75,14 +51,6 @@ class CVCam : public CSource,

STDMETHODIMP JoinFilterGraph(__inout_opt IFilterGraph * pGraph, __in_opt LPCWSTR pName);

//<==================== VS-START ====================>
// ISpecifyPropertyPages interface
STDMETHODIMP GetPages(CAUUID *pPages);

// ICamSettings interface
STDMETHODIMP put_Settings(DWORD dwFps, DWORD dwResolution, DWORD dwMirror, DWORD dwSwap, DWORD dwFlip);
//<==================== VS-END ======================>

private:

CVCam(LPUNKNOWN lpunk, HRESULT *phr);
Expand Down Expand Up @@ -195,15 +163,12 @@ class CVCamStream : public CSourceStream, public IAMStreamConfig, public IKsProp
HRESULT SetMediaType(const CMediaType *pmt);
HRESULT OnThreadCreate(void);

//int m_Fps; //VS removed (not used)
//int m_Resolution; //VS removed (not used)

int m_Fps;
int m_Resolution;
bool m_bLock;

HRESULT put_Settings(DWORD dwFps, DWORD dwResolution, DWORD dwMirror, DWORD dwSwap, DWORD dwFlip); //VS
void SetFps(DWORD dwFps);
void SetResolution(DWORD dwResolution);
void ReleaseCamReceiver();

// ============== IPC functions ==============
//
Expand Down
266 changes: 0 additions & 266 deletions source/camprops.cpp

This file was deleted.

24 changes: 0 additions & 24 deletions source/camprops.h

This file was deleted.

Binary file removed source/dialog.aps
Binary file not shown.
Loading

0 comments on commit 1ec5576

Please sign in to comment.