Share via


PDD_RegisterClientBuffer

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

PDD_RegisterClientBuffer is called by the MDD layer to give the PDD layer pointers to buffers allocated by the DirectShow application. These pointers are used by the PDD layer to setup Direct Memory Access (DMA) to the buffers.

Syntax

DWORD PDD_RegisterClientBuffer( 
LPVOID PDDContext, 
ULONG ulModeType, 
PVOID pBuffer 
);

Parameters

  • LPVOID PDDContext
    [in]

    This is the return value of PDD_Init.

  • ULONG ulModeType
    [in]

    There are three modes supported, i.e., CAPTURE, PREVIEW and STILL

  • PVOID pBuffer
    [in]

    Pointer to the buffer allocated by the client

Return Value

PDD specific. ERROR_SUCCESS represents success. Any other value will be treated as error.

Remarks

MDD will call this function 'n' times where n is the total number of buffers agreed by the driver and the DirectShow application for the given sensor mode.

This method is only called if the memory model is not set to SPROPERTY_BUFFER_DRIVER.

Requirements

Header Developer Implemented
Library Developer Implemented
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Other Resources

Camera PDD Methods