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


IMediaSample2::SetProperties

 
Microsoft DirectShow 9.0

IMediaSample2::SetProperties

The SetProperties method sets the properties of a media sample.

Syntax

  HRESULT SetProperties(
  DWORD cbProperties,
  const BYTE *pbProperties
);

Parameters

cbProperties

[in] Length of property data to set, in bytes.

pbProperties

[in] Pointer to a buffer of size cbProperties.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK Success.
E_INVALIDARG Invalid argument.
E_OUTOFMEMORY Insufficient memory.
E_POINTER NULL pointer argument.

Remarks

The data contained in pbProperties must conform to the format of the AM_SAMPLE2_PROPERTIES structure. You can specify a subset of the sample properties by setting cbProperties to a value less than the size of the AM_SAMPLE2_PROPERTIES structure.

Requirements

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

Library: Use Strmiids.lib.

See Also