30 lines
721 B
C
30 lines
721 B
C
// ZZZ
|
|
#ifndef u32
|
|
#define u8 unsigned char
|
|
#define u16 unsigned short
|
|
#define u32 unsigned int
|
|
#define s8 char
|
|
#define s16 short
|
|
#define s32 int
|
|
#endif
|
|
typedef struct ZZZ_
|
|
{
|
|
FILE *pDst;
|
|
u32 W,H;
|
|
u32 ThreadID;
|
|
HANDLE AccesMutexA;
|
|
HANDLE AccesMutexB;
|
|
HANDLE ThreadHandle;
|
|
u32 *pColorBuffer;
|
|
u32 *pDepthBuffer;
|
|
u32 ThingSize;
|
|
u32 *pThing;
|
|
u32 LastValid;
|
|
s8 FileName[MAX_PATH];
|
|
volatile u32 AdvanceCounter;
|
|
} ZZZ;
|
|
|
|
ZZZ *OpenForRead(char *FileName);
|
|
ZZZ *OpenForWrite(char *FileName,u32 W, u32 H,u32 ThingSize);
|
|
u32 Write(ZZZ *pZZZ , u8 *pColorsRGB , u16 *pDepth , u8 *pSkeleton , u32 SizeofpSkeleton);
|
|
u32 Read(ZZZ *pZZZ , u8 *pColorsRGB , u16 *pDepth , u8 *pSkeleton , u32 SizeofpSkeleton);
|