windows-nt/Source/XPSP1/NT/multimedia/media/avi/avifile/buffer.h

44 lines
1,016 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifdef __cplusplus
extern "C" { /* Assume C declarations for C++ */
#endif /* __cplusplus */
#include "fileshar.h"
#pragma warning(disable:4200)
typedef struct {
LONG lOffset;
LONG lLength;
LPVOID lpBuffer;
} BUFFER;
typedef struct {
int nBuffers;
LONG lBufSize;
LPVOID lpBufMem;
HSHFILE hshfile;
BOOL fStreaming;
BOOL fUseDOSBuf;
PAVIINDEX px;
LONG lx;
LONG lFileLength;
int iNextBuf;
BUFFER aBuf[];
} BUFSYSTEM, *PBUFSYSTEM;
PBUFSYSTEM FAR PASCAL InitBuffered(int nBuffers, LONG lBufSize,
HSHFILE hshfile,
PAVIINDEX px);
LONG FAR PASCAL BufferedRead(PBUFSYSTEM pb, LONG l, LONG cb, LPVOID lp);
LONG FAR PASCAL BeginBufferedStreaming(PBUFSYSTEM pb, BOOL fForward);
LONG FAR PASCAL EndBufferedStreaming(PBUFSYSTEM pb);
void FAR PASCAL EndBuffered(PBUFSYSTEM pb);
#ifdef __cplusplus
} /* End of extern "C" { */
#endif /* __cplusplus */