IMVBufferAccessCallbackVBDirect
The IMVBufferAccessCallbackVBDirect 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 that have the ability to use pointers. The pointers to the buffer of bytes holding the image data are cast to a variable of type long. The value of the variable is the address of the first image data byte.
| 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_IMVBufferAccessCallbackVBDirect
HRESULT ProcessBuffer(
[in]
long pbyInputData,
[in] long pbyOutputData,
[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:
| pbyInputData | Pointer to the first byte of the input image data buffer as long. | |
| pbyOutputData | Pointer to the first byte of the output image data buffer as long. | |
| 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 |