当前位置: 首页>>代码示例>>C++>>正文


C++ CAAFBuiltinDefs::cdConstantValue方法代码示例

本文整理汇总了C++中CAAFBuiltinDefs::cdConstantValue方法的典型用法代码示例。如果您正苦于以下问题:C++ CAAFBuiltinDefs::cdConstantValue方法的具体用法?C++ CAAFBuiltinDefs::cdConstantValue怎么用?C++ CAAFBuiltinDefs::cdConstantValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CAAFBuiltinDefs的用法示例。


在下文中一共展示了CAAFBuiltinDefs::cdConstantValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: defs

IAAFParameter *AAFDomainUtils::AAFAddConstantVal(IAAFDictionary *dict, IAAFParameterDef *pParameterDef, long buflen, void *buf, IAAFOperationGroup *pGroup)
{
    IAAFConstantValue	*pCVal = NULL;
    IAAFParameter		*pParm = NULL;
//	AAFRESULT			rc;

    CAAFBuiltinDefs defs (dict);

    CHECKAAF(defs.cdConstantValue()->
             CreateInstance(IID_IAAFConstantValue,
                            (IUnknown **)&pCVal));
    CHECKAAF(pCVal->Initialize (pParameterDef, buflen, (unsigned char *)buf));
    CHECKAAF(pCVal->QueryInterface(IID_IAAFParameter, (void **) &pParm));
    CHECKAAF(pGroup->AddParameter(pParm));
//cleanup:
    if(pParm)
        pParm->Release();
    if(pCVal)
        pCVal->Release();

    return(pParm);
}
开发者ID:mcanthony,项目名称:aaf,代码行数:22,代码来源:AAFDomainUtils.cpp

示例2: CreateAAFFile


//.........这里部分代码省略.........
												&pNewSlot));

		// Create a Filler
		checkResult(defs.cdFiller()->
					CreateInstance(IID_IAAFFiller,
								   (IUnknown **) &pFiller));

		// Get a component interface
		checkResult(pFiller->QueryInterface(IID_IAAFComponent, (void **) &pComponent));
		// Set values for the filler
	    checkResult(pFiller->Initialize(defs.ddkAAFPicture(), fillerLength));
		// append the filler to the sequence
		checkResult(pSequence->AppendComponent(pComponent));

		// Release the component - because we need to reuse the pointer later
		pFiller->Release();
		pFiller = NULL;
		pComponent->Release();
		pComponent = NULL;

		
	    checkResult(defs.cdTransition()->
					CreateInstance(IID_IAAFTransition, 
								   (IUnknown **)&pTransition));

		// Create an empty EffectGroup object !!
		checkResult(defs.cdOperationGroup()->
					CreateInstance(IID_IAAFOperationGroup,
								   (IUnknown **)&pOperationGroup));

		checkResult(pOperationGroup->Initialize(defs.ddkAAFPicture(), transitionLength, pOperationDef));

    // Create a constant value parameter.
		checkResult(defs.cdConstantValue()->
					CreateInstance(IID_IAAFConstantValue, 
								   (IUnknown **)&pConstantValue));
    aafRational_t testLevel = {1, 2};
		checkResult(pConstantValue->Initialize (pParamDef, sizeof(testLevel), (aafDataBuffer_t)&testLevel));

    checkResult(pConstantValue->QueryInterface (IID_IAAFParameter, (void **)&pParm));
    checkResult(pOperationGroup->AddParameter (pParm));
    pParm->Release();
    pParm = NULL;
    pConstantValue->Release();
    pConstantValue = NULL;

		checkResult(defs.cdFiller()->
					CreateInstance(IID_IAAFSegment,
								   (IUnknown **) &pEffectFiller));
		 checkResult(pEffectFiller->QueryInterface(IID_IAAFComponent, (void **)&pComponent));
		 checkResult(pComponent->SetDataDef(defs.ddkAAFPicture()));
		pComponent->Release();
		pComponent = NULL;
		checkResult(pOperationGroup->AppendInputSegment (pEffectFiller));
		// release the filler
		pEffectFiller->Release();
		pEffectFiller  = NULL;

		checkResult(pOperationGroup->SetBypassOverride (1));
		checkResult(defs.cdSourceClip()->
					CreateInstance(IID_IAAFSourceClip, 
								   (IUnknown **)&pSourceClip));
		aafSourceRef_t	sourceRef;
		sourceRef.sourceID = zeroMobID;
		sourceRef.sourceSlotID = 0;
		sourceRef.startTime = 0;
开发者ID:UIKit0,项目名称:aaf,代码行数:67,代码来源:CAAFTransitionTest.cpp


注:本文中的CAAFBuiltinDefs::cdConstantValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。