123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- #pragma once
- #ifndef __spoutSenderMemory__
- #define __spoutSenderMemory__
- #include <windowsx.h>
- #include <set>
- #include <map>
- #include <string>
- #include <vector>
- #include <unordered_map>
- #include "SpoutCommon.h"
- #include "SpoutSharedMemory.h"
- using namespace std;
- class SPOUT_DLLEXP spoutSenderMemory {
- public:
- spoutSenderMemory();
- ~spoutSenderMemory();
-
-
-
-
-
-
-
-
-
-
-
-
- bool CreateSenderMemory (const char *sendername, unsigned int width, unsigned int height);
- bool UpdateSenderMemory (const char* sendername, unsigned int width, unsigned int height);
- void CloseSenderMemory (const char *sendername);
-
- bool GetSenderMemory (const char* sendername, unsigned int &width, unsigned int &height, unsigned char *pixels);
- bool SetSenderMemory (const char* sendername, unsigned int width, unsigned int height, unsigned char *pixels);
-
- bool GetImageSizeFromSharedMemory(const char* sendername, unsigned int &width, unsigned int &height);
-
- void ReleaseSenderMemory();
- protected:
-
-
-
-
-
-
- SpoutSharedMemory *senderMem;
-
- };
- #endif
|