STDAPI AVIStreamRead(
PAVISTREAM pavi,
LONG lStart,
LONG lSamples,
LPVOID lpBuffer,
LONG cbBuffer,
LONG * plBytes,
LONG * plSamples
);
Parameters
pavi
Handle to an open stream.
lStart
First sample to read.
lSamples
Number of samples to read. You can also specify the value AVISTREAMREAD_CONVENIENT to let the stream handler determine the number of samples to read.
lpBuffer
Pointer to a buffer to contain the data.
cbBuffer
Size, in bytes, of the buffer pointed to by lpBuffer.
plBytes
Pointer to a buffer that receives the number of bytes of data written in the buffer referenced by lpBuffer. This value can be NULL.
plSamples
Pointer to a buffer that receives the number of samples written in the buffer referenced by lpBuffer. This value can be NULL.
STDAPI AVIStreamWrite(
PAVISTREAM pavi,
LONG lStart,
LONG lSamples,
LPVOID lpBuffer,
LONG cbBuffer,
DWORD dwFlags,
LONG * plSampWritten,
LONG * plBytesWritten
);
Parameters
pavi
Handle to an open stream.
lStart
First sample to write.
lSamples
Number of samples to write.
lpBuffer
Pointer to a buffer containing the data to write.
cbBuffer
Size of the buffer referenced by lpBuffer.
dwFlags
Flag associated with this data. The following flag is defined:
AVIIF_KEYFRAME
Indicates this data does not rely on preceding data in the file.
plSampWritten
Pointer to a buffer that receives the number of samples written. This can be set to NULL.
plBytesWritten
Pointer to a buffer that receives the number of bytes written. This can be set to NULL.
Return Values
Returns zero if successful or an error otherwise.