Click here to Skip to main content
15,893,381 members

Comments by Member 13775524 (Top 1 by date)

Member 13775524 5-Jul-18 9:00am View    
HRESULT CCsSobelV2::Transform(IMediaSample *pIn, IMediaSample *pOut)
{
/*while (!condition)
{

} */
HRESULT hr = Copy(pIn, pOut);//将输入缓冲区输入拷贝到输出缓冲区,执行时间大约2ms
if (FAILED(hr))
return hr;
return Transform(pOut);//对输出缓冲区的数据进行自定义变换

}
the code above is Transform() function which has been override.The truth is if Transform(Pout) costs 10ms,the frame rate will be 1000/(33.3+10)fps.PS:my camera provides 1920*1080 video at 30fps