IMF2DBuffer::ContiguousCopyFrom method (mfobjects.h)

Copies data to this buffer from a buffer that has a contiguous format.

Syntax

HRESULT ContiguousCopyFrom(
  [in] const BYTE *pbSrcBuffer,
  [in] DWORD      cbSrcBuffer
);

Parameters

[in] pbSrcBuffer

Pointer to the source buffer. The caller allocates the buffer.

[in] cbSrcBuffer

Size of the source buffer, in bytes. To get the maximum size of the buffer, call IMF2DBuffer::GetContiguousLength.

Return value

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

Return code Description
S_OK
The method succeeded.

Remarks

This method copies the contents of the source buffer into the buffer that is managed by this IMF2DBuffer object. The source buffer must be in contiguous format. While copying, the method converts the contents into the destination buffer's native format, correcting for the buffer's pitch if necessary.

For a definition of contiguous as it applies to 2-D buffers, see the Remarks section in the IMF2DBuffer interface topic.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfobjects.h (include Mfidl.h)
Library Mfuuid.lib

See also

IMF2DBuffer

Media Buffers

Uncompressed Video Buffers