1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- #pragma once
- #ifndef __spoutMemoryShare__
- #define __spoutMemoryShare__
- #include <windowsx.h>
- #include <string>
- #include "SpoutCommon.h"
- #include "SpoutSharedMemory.h"
- using namespace std;
- class SPOUT_DLLEXP spoutMemoryShare {
- public:
- spoutMemoryShare();
- ~spoutMemoryShare();
-
- bool CreateSenderMemory (const char *sendername, unsigned int width, unsigned int height);
- bool UpdateSenderMemorySize (const char* sendername, unsigned int width, unsigned int height);
- bool OpenSenderMemory (const char *sendername);
- void CloseSenderMemory ();
-
- bool GetSenderMemorySize(unsigned int &width, unsigned int &height);
-
- unsigned char * LockSenderMemory();
- void UnlockSenderMemory();
-
-
-
-
- void ReleaseSenderMemory ();
- protected:
- SpoutSharedMemory *senderMem;
- unsigned int m_Width;
- unsigned int m_Height;
- };
- #endif
|