Поделиться через


IMediaSample::GetPointer

 
Microsoft DirectShow 9.0

IMediaSample::GetPointer

The GetPointer method retrieves a read/write pointer to the media sample's buffer.

Syntax

  HRESULT GetPointer(
  BYTE **ppBuffer
);

Parameters

ppBuffer

[out]  Receives a pointer to the buffer.

Return Values

Returns S_OK if successful, or an HRESULT value indicating the cause of the error.

Remarks

The buffer memory is owned by the media sample object, and is automatically released when the media sample is destroyed. The caller should not free or reallocate the buffer.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also