Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

int Impala::Core::Stream::Lavc::VideoAccessObject::CurrentFrameToRgb (  )  const [inline]

Definition at line 539 of file VideoAccessObject.h.

References ClearRgbBuffer(), CurrentFrameValid(), ILOG_WARN, mFrame, mRgbFrame, mSwsContext, and mVideoCodecCtx.

Referenced by Impala::Core::Stream::Lavc::StrategyUsingNativeIndex::ConstructIndexProtected(), Impala::Core::Stream::Lavc::VideoAccessStrategy::CurrentFrameToRgb(), Impala::Core::Stream::Lavc::VideoAccessStrategy::JumpValidForFrame(), Impala::Core::Stream::Lavc::StrategyIgnoringNativeIndex::NextFrameMatchesFrame(), Impala::Core::Stream::Lavc::VideoAccessStrategy::ProcessFrame(), and Impala::Core::Stream::Lavc::StrategyIgnoringNativeIndex::ScanProtected().

00540     {
00541         ClearRgbBuffer();
00542         int result = -1;
00543         if (CurrentFrameValid())
00544         {
00545             result = sws_scale(mSwsContext, 
00546                 mFrame->data, mFrame->linesize, 
00547                 0, mVideoCodecCtx->height, 
00548                 mRgbFrame->data, mRgbFrame->linesize);
00549 #ifdef FFMPEG_52
00550             if (result != mVideoCodecCtx->height)
00551                 ILOG_WARN("Image height after scaling (" << result << 
00552                 ") is expected to equal the original image's height (" << 
00553                 mVideoCodecCtx->height << ").");
00554 #endif
00555         }
00556         return result;
00557     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:38 2011 for ImpalaSrc by  doxygen 1.5.1