Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMF2DBuffer::ContiguousCopyTo method

Copies this buffer into the caller's buffer, converting the data to contiguous format.

Syntax


HRESULT ContiguousCopyTo(
  [out] BYTE  *pbDestBuffer,
  [in]  DWORD cbDestBuffer
);

Parameters

pbDestBuffer [out]

Pointer to the destination buffer where the data will be copied. The caller allocates the buffer.

cbDestBuffer [in]

Size of the destination buffer, in bytes. To get the required size, call IMF2DBuffer::GetContiguousLength.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_INVALIDARG

Invalid size specified in pbDestBuffer.

 

Remarks

If the original buffer is not contiguous, this method converts the contents into contiguous format during the copy. For a definition of contiguous as it applies to 2-D buffers, see the Remarks section in IMF2DBuffer interface.

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfobjects.h (include Mfidl.h)

Library

Mfuuid.lib

See also

IMF2DBuffer
Media Buffers
Uncompressed Video Buffers

 

 

Show:
© 2017 Microsoft