PDD_AllocateBuffer (Compact 2013)
3/26/2014
PDD_AllocateBuffer is called when the MDD interface wants PDD interface to allocate mode specific buffers. The size of the buffer should be equal to that of the currently selected format of the given mode.
Syntax
PVOID PDD_AllocateBuffer(
LPVOID PDDContext,
ULONG ulModeType
);
Parameters
- PDDContext
[in] This is the return value of PDD_Init.
- ulModeType
[in] There are three modes supported, i.e., CAPTURE, PREVIEW and STILL
Return Value
PDD specific. ERROR_SUCCESS represents success. Any other value will be treated as error.
Remarks
Each mode (Capture, Still etc.) will have its own set of buffers. This method is only called if the memory model for the given mode is CSPROPERTY_BUFFER_DRIVER.
Requirements
Header |
Developer Implemented |
Library |
Developer Implemented |