IMVBufferAccessCallbackC

The IMVBufferAccessCallbackC 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 C++ 6 sample application included in this release. This interface is used by C/C++ like languages.

ProcessBuffer Called by the MV Buffer Access filter for each processed video frame.

Header file: iMVBufferAccess.h
Interface definition language file: iMVBufferAccess.idl
Interface ID: IID_IMVBufferAccessCallbackC

 

HRESULT ProcessBuffer( [in] long cSizeInput,
                       
[in] byte pbyInput[],
                       [in] long cSizeOutput,
                       [in] byte pbyOutput[],
                       [in] long lImageWidth,
                       [in] long lImageHeight,
                       [in] int iBitsPerPixel,
                       [in] long lPitch );

Called by the MV Buffer Access filter for each processed video frame.

Parameter:

cSizeInput Size of the input buffer.
pbyInput Byte pointer to the input image buffer.
cSizeOutput Size of the output buffer.
pbyOutput Byte pointer to the output image buffer.
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