|
IMVBufferAccessCallbackVB
The IMVBufferAccessCallbackVB interface is
used by the MV Buffer Access filter as a callback interface. Read
the filter description
to see how the filter is used. Also take a look at
the 'BufferAccess' Visual Basic sample application
included in this release. This interface is used by Visual Basic
like languages. Arrays of the type SAFEARRAY are used to transfer
the data between the filter and the application.
| ProcessBuffer
|
Called by the MV Buffer Access filter for every processed video
frame. |
Header file:
iMVBufferAccess.h
Interface definition language file: iMVBufferAccess.idl
Interface ID: IID_IMVBufferAccessCallbackVB
HRESULT ProcessBuffer(
[in] SAFEARRAY(byte)* pbyInput,
[in, out] SAFEARRAY(byte)* pbyOutput,
[in]
long
lImageWidth,
[in]
long
lImageHeight,
[in]
int
iBitsPerPixel,
[in]
long
lPitch );
Called by the MV Buffer Access filter for every processed video
frame.
Parameter:
|
|
pbyInput |
Pointer to the input SAFEARRAY
structure. |
|
|
pbyOutput |
Pointer to the output SAFEARRAY
structure. |
|
|
lImageWidth |
Width of the processed image. |
|
|
lImageHeight |
Height of the processed image. |
|
|
iBitsPerPixel |
Bits per pixel used by the processed image.
Typically 8 bit for a grayscale image and 24 bit for a color
image. |
|
|
lPitch |
Number of bytes needed to store a complete row.
Images are always DWORD aligned. If necessary, a row is padded with
unused bytes.
lPitch = lImageWidth * iBitsPerPixel / 8 + padding |
|