Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Transforms Help

Using Media Foundation Transform Attributes

Show in webframe
 

In order to use the Attributes of any Media Foundation transform, perform the following steps:

 

1.

Get an interface of type IMFTransform by calling QueryInterface over the LEAD Transform Object:

IMFTransform *pTransform = NULL;

LEADTransform->QueryInterface(IID_IMFTransform, (void**) &pTransform);

2.

Get the attribute store:

IMFAttributes *pAttributes = NULL;

pTransform->GetAttributes(&pAttributes);

 

3.

get or set any attribute supported by the transform:

Get a Value

for example, get a long (UINT32) value which has a CLSID of MF_CLSID_SOMEATTRIBUTE

long unVal;
pAttributes->GetUINT32(MF_CLSID_SOMEATTRIBUTE, &unVal);

Set a Value

for example, set a long (UINT32) value to an attribute which has a CLSID of MF_CLSID_SOMEATTRIBUTE

long unVal =  10;
pAttributes->SetUINT32(MF_CLSID_SOMEATTRIBUTE, unVal);

 

4.

Release the attribute store (and all active objects) when you are finished.

 

 

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.