src/experiments/obrero/visualTracker/frame.cc
bool Frame::IsNewRecording() const
{
#ifdef HAVE_LIBDV
	return ( decoder->audio->aaux_asc.pc2.rec_st == 0 );
#else

	Pack aauxSourceControl;

	/* if we can't find the packet, we return "no new recording" */

	if ( GetAAUXPack( 0x51, aauxSourceControl ) == false )
		return false;

	unsigned char recStartPoint = aauxSourceControl.data[ 2 ] & 0x80;

	return recStartPoint == 0 ? true : false;
#endif
}
/** checks whether this frame is the first in a new recording
 
    To determine this, the function looks at the recStartPoint bit in
    AAUX pack 51.
 
    \return true if this frame is the start of a new recording
*/
checks whether this frame is the first in a new recording
To determine this, the function looks at the recStartPoint bit in
AAUX pack 51.

\return true if this frame is the start of a new recording
checks whether this frame is the first in a new recording To determine this the function looks at the recStartPoint bit in AAUX pack 51 . \ return true if this frame is the start of a new recording
bool Frame::IsNewRecording() const
{
#ifdef HAVE_LIBDV
	return ( decoder->audio->aaux_asc.pc2.rec_st == 0 );
#else
	Pack aauxSourceControl;
	if ( GetAAUXPack( 0x51, aauxSourceControl ) == false )
		return false;
	unsigned char recStartPoint = aauxSourceControl.data[ 2 ] & 0x80;
	return recStartPoint == 0 ? true : false;
#endif
}
bool Frame :: IsNewRecording ( ) const { #ifdef HAVE_LIBDV return ( decoder -> audio -> aaux_asc . pc2 . rec_st == 0 ) ; #else Pack aauxSourceControl ; if ( GetAAUXPack ( 0x51 , aauxSourceControl ) == false ) return false ; unsigned char recStartPoint = aauxSourceControl . data [ 2 ] & 0x80 ; return recStartPoint == 0 ? true : false ; #endif }
checks whether this frame is the first in a new recording
To determine this, the function looks at the recStartPoint bit in
AAUX pack 51.
checks whether this frame is the first in a new recording To determine this the function looks at the recStartPoint bit in AAUX pack 51 .
/* if we can't find the packet, we return "no new recording" */