Share via


PDD_RegisterClientBuffer (Compact 2013)

3/26/2014

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

  • PDDContext
    [in] This is the return value of PDD_Init.
  • ulModeType
    [in] There are three modes supported, i.e., CAPTURE, PREVIEW and STILL
  • 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

See Also

Reference

Camera PDD Methods