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

bool Impala::Core::Stream::RgbDataSrcLavc_old::FindNextDecodedFrame ( const bool  lookForKeyFrame  )  [inline]

Definition at line 182 of file RgbDataSrcLavc_old.h.

References ConvertFrameToRgb(), DecodeNextFrame(), and ILOG_DEBUG.

Referenced by Jump().

00183     {
00184         //ILOG_DEBUG("[FindNextDecodedFrame] mCurrentFrameNr=" << mCurrentFrameNr << " mBufferedFrameNr=" << mBufferedFrameNr);
00185         //ILOG_DEBUG("  video stream's curdts=" << mVideoStream->cur_dts << " mPacket->dts=" << mPacket->dts);
00186 
00187         bool isValidFrame;
00188         bool isKeyFrame;
00189         do
00190         {
00191             const bool gotFrame = (DecodeNextFrame(isValidFrame, isKeyFrame) == 0);
00192             if (!gotFrame) // indicates eof or error
00193                 return false; 
00194             if (!isValidFrame)
00195             {
00196                 ILOG_DEBUG("Skipping invalid frame");
00197                 continue;
00198             }
00199             if (lookForKeyFrame && !isKeyFrame)
00200             {
00201                 ILOG_DEBUG("Skipping non-keyframe");
00202                 continue;
00203             }
00204             break;
00205         } while (true);
00206 
00207         ConvertFrameToRgb();
00208         return true;
00209     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:17:51 2010 for ImpalaSrc by  doxygen 1.5.1