IltmmMediaSampleDisp::CopyTo

Summary

Copies the data and all the attributes to another IltmmMediaSampleDisp object.

Syntax

#include "ltmm.h"

Language Syntax
C HRESULT IltmmMediaSampleDisp_CopyTo(pMediaSampleDisp, pDst)
C++ HRESULT CopyTo(pDst)

Parameters

IltmmMediaSampleDisp *pMediaSampleDisp

Pointer to the source IltmmMediaSampleDisp interface.

IltmmMediaSampleDisp *pDst

Pointer to the destination IltmmMediaSampleDisp interface.

Returns

Value Meaning
S_OK The function was successful.
<> S_OK An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

This function copies in one step the data and all the attributes. It is more efficient than copying the data and all the attributes one by one.

It is similar to IltmmMediaSampleDisp::Clone, except that it copies everything to an existing IltmmMediaSampleDisp interface.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Help Version 22.0.2023.1.26
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.