本文整理汇总了C++中IAAFMob::OffsetToMobTimecode方法的典型用法代码示例。如果您正苦于以下问题:C++ IAAFMob::OffsetToMobTimecode方法的具体用法?C++ IAAFMob::OffsetToMobTimecode怎么用?C++ IAAFMob::OffsetToMobTimecode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IAAFMob
的用法示例。
在下文中一共展示了IAAFMob::OffsetToMobTimecode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ReadAAFFile
//.........这里部分代码省略.........
checkExpression(wcscmp(slotName, slotNames[3]) == 0, AAFRESULT_TEST_FAILED);
checkExpression(trackID == (4), AAFRESULT_TEST_FAILED);
pSourceRef->Release();
pSourceRef = NULL;
pSourceClip->Release();
pSourceClip = NULL;
pSegment->Release();
pSegment = NULL;
slot->Release();
slot = NULL;
checkExpression(aMob->LookupSlot(10, &slot) == AAFRESULT_SLOT_NOT_FOUND,
AAFRESULT_TEST_FAILED);
checkExpression(aMob->LookupSlot(0, NULL) == AAFRESULT_NULL_PARAM,
AAFRESULT_TEST_FAILED);
// OffsetToMobTimecode
// 7/5/00 - this method is broken so the tests that will
// make it fail have been commented out. This module test
// will still report Partial Success until implementation has been fixed
aafPosition_t offset = 1;
aafTimecode_t timecode;
// initialize timecode values
timecode.startFrame = 0;
timecode.drop = kAAFTcDrop;
timecode.fps = 24;
checkResult(aMob->LookupSlot(6, &slot));
checkResult(slot->GetSegment(&pSegment));
checkResult(aMob->OffsetToMobTimecode(pSegment, &offset, &timecode));
checkExpression(timecode.startFrame == (TCstartFrame + offset), AAFRESULT_TEST_FAILED);
checkExpression(timecode.drop == TCdrop, AAFRESULT_TEST_FAILED);
checkExpression(timecode.fps == TCfps, AAFRESULT_TEST_FAILED);
checkExpression(aMob->OffsetToMobTimecode(pSegment, NULL, &timecode) == AAFRESULT_NULL_PARAM,
AAFRESULT_TEST_FAILED);
checkExpression(aMob->OffsetToMobTimecode(pSegment, &offset, NULL) == AAFRESULT_NULL_PARAM,
AAFRESULT_TEST_FAILED);
// reinitialize values
timecode.startFrame = 0;
timecode.drop = kAAFTcDrop;
timecode.fps = 24;
// According to IDL this should search for the slot containing the timecode segment
checkResult(aMob->OffsetToMobTimecode(NULL, &offset, &timecode));
checkExpression(timecode.startFrame == (TCstartFrame + offset), AAFRESULT_TEST_FAILED);
checkExpression(timecode.drop == TCdrop, AAFRESULT_TEST_FAILED);
checkExpression(timecode.fps == TCfps, AAFRESULT_TEST_FAILED);
pSegment->Release();
pSegment = NULL;
slot->Release();
slot = NULL;
// Pass in a segment that is not a timecode and make sure it returns correct hr
checkResult(aMob->LookupSlot(1, &slot));
checkResult(slot->GetSegment(&pSegment));
checkExpression(aMob->OffsetToMobTimecode(pSegment, &offset, &timecode) == AAFRESULT_TIMECODE_NOT_FOUND,
AAFRESULT_TEST_FAILED);
pSegment->Release();
pSegment = NULL;