本文整理汇总了C++中vdrefptr::Append方法的典型用法代码示例。如果您正苦于以下问题:C++ vdrefptr::Append方法的具体用法?C++ vdrefptr::Append怎么用?C++ vdrefptr::Append使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vdrefptr
的用法示例。
在下文中一共展示了vdrefptr::Append方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AppendAVI
void AppendAVI(const wchar_t *pszFile) {
if (inputAVI) {
VDPosition lTail = inputAVI->videoSrc->getEnd();
if (inputAVI->Append(pszFile)) {
g_project->BeginTimelineUpdate();
FrameSubset& s = g_project->GetTimeline().GetSubset();
s.insert(s.end(), FrameSubsetNode(lTail, inputAVI->videoSrc->getEnd() - lTail, false, 0));
g_project->EndTimelineUpdate();
}
}
}
示例2: AppendAVI
void AppendAVI(const wchar_t *pszFile) {
if (inputAVI) {
IVDStreamSource *pVSS = inputVideo->asStream();
VDPosition lTail = pVSS->getEnd();
if (inputAVI->Append(pszFile)) {
g_project->BeginTimelineUpdate();
FrameSubset& s = g_project->GetTimeline().GetSubset();
s.insert(s.end(), FrameSubsetNode(lTail, pVSS->getEnd() - lTail, false, 0));
g_project->EndTimelineUpdate();
}
}
}
示例3: AppendAVIAutoscan
void AppendAVIAutoscan(const wchar_t *pszFile) {
wchar_t buf[MAX_PATH];
wchar_t *s = buf, *t;
int count = 0;
if (!inputAVI)
return;
IVDStreamSource *pVSS = inputVideo->asStream();
VDPosition originalCount = pVSS->getEnd();
wcscpy(buf, pszFile);
t = VDFileSplitExt(VDFileSplitPath(s));
if (t>buf)
--t;
try {
for(;;) {
if (!VDDoesPathExist(buf))
break;
if (!inputAVI->Append(buf))
break;
++count;
s = t;
for(;;) {
if (s<buf || !isdigit(*s)) {
memmove(s+2, s+1, sizeof(wchar_t) * wcslen(s));
s[1] = L'1';
++t;
} else {
if (*s == L'9') {
*s-- = L'0';
continue;
}
++*s;
}
break;
}
}
} catch(const MyError& e) {
// if the first segment failed, turn the warning into an error
if (!count)
throw;
// log append errors, but otherwise eat them
VDLog(kVDLogWarning, VDTextAToW(e.gets()));
}
guiSetStatus("Appended %d segments (stopped at \"%s\")", 255, count, VDTextWToA(buf).c_str());
if (count) {
FrameSubset& s = g_project->GetTimeline().GetSubset();
g_project->BeginTimelineUpdate();
s.insert(s.end(), FrameSubsetNode(originalCount, pVSS->getEnd() - originalCount, false, 0));
g_project->EndTimelineUpdate();
}
}