IltmmMediaTypeDisp::GetFormatData

Summary

Retrieves a copy of the format buffer.

Syntax

#include "ltmm.h"

Language Syntax
C HRESULT IltmmMediaTypeDisp_getFormatData(pMediaTypeDisp, DataSize, Data)
C++ HRESULT GetFormatData(DataSize, Data)

Parameters

IltmmMediaTypeDisp *pMediaTypeDisp

Pointer to an IltmmMediaTypeDisp interface.

long DataSize

Length of the data to retrieve, in bytes.

VARIANT *Data

Pointer to a variable to be updated with a VARIANT containing a SAFEARRAY reference. The array is composed of a single dimension of bytes. This array will be updated with the actual format data.

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

If the function succeeds, the caller must free the VARIANT referenced by pVal by calling the VariantClear function.

Platforms

Win32, x64.

See Also

Functions

Topics

Example

Language Example
C Copying ltmmMediaType Attributes and Data
C++ Copying ltmmMediaType Attributes and Data
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.