本文整理汇总了C++中CFrame::Id方法的典型用法代码示例。如果您正苦于以下问题:C++ CFrame::Id方法的具体用法?C++ CFrame::Id怎么用?C++ CFrame::Id使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFrame
的用法示例。
在下文中一共展示了CFrame::Id方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetSegmentNum
unsigned int CFrameJSegmentor::GetSegmentNum(const CFrame & frame)
{
if( frame.Id() != m_FrameId )
DetectSemgment(frame);
return m_SegmentNum;
}
示例2: DetectSemgment
void CFrameJSegmentor::DetectSemgment(const CFrame & frame)
{
if( m_RegionMap )
m_RegionMap->Release();
m_SegmentNum = m_SegmentDetector->Segment(*frame.GetImage(), &m_RegionMap);
m_FrameId = frame.Id();
}
示例3: DetectNewSubshot
HRESULT CSabOnlineSubshotDetectorImp::DetectNewSubshot(CFrame & frame)
{
m_FrameId = frame.Id();
if ( m_SubshotIdx < (m_SubshotList.Size()-1) && !m_IsInSubshot )
{
m_SubshotIdx++;
m_BgnFrameId = m_SubshotList[m_SubshotIdx].BeginFrameId();
m_EndFrameId = m_SubshotList[m_SubshotIdx].EndFrameId();
}
if ( m_FrameId <= m_BgnFrameId )
{
// We have get the next sub shot, but frame is not arrived the bgn frame of the sub shot
// Example: sub shot(bgnFrameId, endFrameId): 1 (1, 10) 2(15, 20)
// If we arrive frame 11, we have entered the subshot 2, but we need to set the flag
m_IsInSubshot = true;
}
if ( m_FrameId == m_BgnFrameId )
{
m_SubshotList[m_SubshotIdx].BeginTime(frame.BeginTime());
m_IsSubshotStart = true;
}
m_KeyframeExtractor->OnNewFrame(frame, m_IsSubshotStart);
//we get a new sub shot
if ( m_FrameId == m_EndFrameId )
{
m_IsInSubshot = false;
m_IsSubshotStart = false;
m_SubshotList[m_SubshotIdx].EndTime(frame.EndTime());
//extract the key frame for current sub shot
//add the last frame
m_KeyframeExtractor->OnNewFrame(frame, true);
CFrameList & keyframeList = m_KeyframeExtractor->OnNewSegment(m_SubshotList[m_SubshotIdx]);
int size = keyframeList.Size();
for( int i = 0; i < size; ++i )
m_SubshotList[m_SubshotIdx].AddKeyframe(keyframeList[i]);
return S_OK;
}
return S_FALSE;
}