Share via


PDD_DeAllocateBuffer (Compact 2013)

3/26/2014

PDD_DeAllocateBuffer is called when the MDD interface wants PDD interface to de-allocate its mode specific buffer.

Syntax

DWORD PDD_DeAllocateBuffer(
  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] This is the same pointer returned by PDD_AllocateBuffer().

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 application (DShow).

This method is only called if the Memory Model is set to CSPROPERTY_BUFFER_DRIVER.

Requirements

Header

Developer Implemented

Library

Developer Implemented

See Also

Reference

Camera PDD Methods