android/ringlibsdl/project/jni/smpeg2-2.0.0/video/video.cpp
static void DoPictureDisplay( VidStream *vid_stream )
{
#ifdef ANALYSIS
    EndTime();
    stat_a[0].totsize += bitCountRead() - pictureSizeCount;
#ifdef SHOWEACHFLAG
    PrintOneStat();
#endif
    CollectStats();
#endif

    /* Update past and future references if needed. */

    if( (vid_stream->picture.code_type == I_TYPE) ||
        (vid_stream->picture.code_type == P_TYPE) )
    {
        if( vid_stream->future == NULL )
        {
            vid_stream->future = vid_stream->current;
            vid_stream->future->locked |= FUTURE_LOCK;
        }
        else
        {
            if( vid_stream->past != NULL )
            {
                vid_stream->past->locked &= ~PAST_LOCK;
            }
            vid_stream->past = vid_stream->future;
            vid_stream->past->locked &= ~FUTURE_LOCK;
            vid_stream->past->locked |= PAST_LOCK;
            vid_stream->future = vid_stream->current;
            vid_stream->future->locked |= FUTURE_LOCK;
            vid_stream->current = vid_stream->past;

            vid_stream->_smpeg->ExecuteDisplay( vid_stream );
        }
    }
    else
    {
        vid_stream->_smpeg->ExecuteDisplay( vid_stream );
    }
}
/*
 *--------------------------------------------------------------
 *
 * DoPictureDisplay --
 *
 *    Converts image from Lum, Cr, Cb to colormap space. Puts
 *      image in lum plane. Updates past and future frame
 *      pointers. Dithers image. Sends to display mechanism.
 *
 * Results:
 *    Pict image structure locked if displaying or if frame
 *      is needed as past or future reference.
 *
 * Side effects:
 *    Lum plane pummelled.
 *
 *--------------------------------------------------------------
 */
DoPictureDisplay
Converts image from Lum, Cr, Cb to colormap space. Puts
image in lum plane. Updates past and future frame
pointers. Dithers image. Sends to display mechanism.

Pict image structure locked if displaying or if frame
is needed as past or future reference.

Side effects:
Lum plane pummelled.
DoPictureDisplay Converts image from Lum Cr Cb to colormap space . Puts image in lum plane . Updates past and future frame pointers . Dithers image . Sends to display mechanism . Pict image structure locked if displaying or if frame is needed as past or future reference . Side effects : Lum plane pummelled .
static void DoPictureDisplay( VidStream *vid_stream )
{
#ifdef ANALYSIS
    EndTime();
    stat_a[0].totsize += bitCountRead() - pictureSizeCount;
#ifdef SHOWEACHFLAG
    PrintOneStat();
#endif
    CollectStats();
#endif
    if( (vid_stream->picture.code_type == I_TYPE) ||
        (vid_stream->picture.code_type == P_TYPE) )
    {
        if( vid_stream->future == NULL )
        {
            vid_stream->future = vid_stream->current;
            vid_stream->future->locked |= FUTURE_LOCK;
        }
        else
        {
            if( vid_stream->past != NULL )
            {
                vid_stream->past->locked &= ~PAST_LOCK;
            }
            vid_stream->past = vid_stream->future;
            vid_stream->past->locked &= ~FUTURE_LOCK;
            vid_stream->past->locked |= PAST_LOCK;
            vid_stream->future = vid_stream->current;
            vid_stream->future->locked |= FUTURE_LOCK;
            vid_stream->current = vid_stream->past;
            vid_stream->_smpeg->ExecuteDisplay( vid_stream );
        }
    }
    else
    {
        vid_stream->_smpeg->ExecuteDisplay( vid_stream );
    }
}
static void DoPictureDisplay ( VidStream * vid_stream ) { #ifdef ANALYSIS EndTime ( ) ; stat_a [ 0 ] . totsize += bitCountRead ( ) - pictureSizeCount ; #ifdef SHOWEACHFLAG PrintOneStat ( ) ; #endif CollectStats ( ) ; #endif if ( ( vid_stream -> picture . code_type == I_TYPE ) || ( vid_stream -> picture . code_type == P_TYPE ) ) { if ( vid_stream -> future == NULL ) { vid_stream -> future = vid_stream -> current ; vid_stream -> future -> locked |= FUTURE_LOCK ; } else { if ( vid_stream -> past != NULL ) { vid_stream -> past -> locked &= ~ PAST_LOCK ; } vid_stream -> past = vid_stream -> future ; vid_stream -> past -> locked &= ~ FUTURE_LOCK ; vid_stream -> past -> locked |= PAST_LOCK ; vid_stream -> future = vid_stream -> current ; vid_stream -> future -> locked |= FUTURE_LOCK ; vid_stream -> current = vid_stream -> past ; vid_stream -> _smpeg -> ExecuteDisplay ( vid_stream ) ; } } else { vid_stream -> _smpeg -> ExecuteDisplay ( vid_stream ) ; } }
DoPictureDisplay
    Converts image from Lum, Cr, Cb to colormap space.
DoPictureDisplay Converts image from Lum Cr Cb to colormap space .
/* Update past and future references if needed. */