IMF2DBuffer::ContiguousCopyFrom method

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

Syntax


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

Parameters

pbSrcBuffer [in]

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

cbSrcBuffer [in]

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 codeDescription
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

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft