src/experiments/obrero/visualTracker/frame.cc
bool Frame::IsPAL( void ) const
{
	unsigned char dsf = data[ 3 ] & 0x80;
	bool pal = ( dsf == 0 ) ? false : true;
#ifdef HAVE_LIBDV

	if ( !pal )
	{
		pal = ( dv_system_50_fields ( decoder ) == 1 ) ? true : pal;
	}
#endif
	return pal;
}
/** checks whether the frame is in PAL or NTSC format
 
    \todo function can't handle "empty" frame
    \return true for PAL frame, false for a NTSC frame
*/
checks whether the frame is in PAL or NTSC format
\todo function can't handle "empty" frame
\return true for PAL frame, false for a NTSC frame
checks whether the frame is in PAL or NTSC format \ todo function can ' t handle " empty " frame \ return true for PAL frame false for a NTSC frame
bool Frame::IsPAL( void ) const
{
	unsigned char dsf = data[ 3 ] & 0x80;
	bool pal = ( dsf == 0 ) ? false : true;
#ifdef HAVE_LIBDV
	if ( !pal )
	{
		pal = ( dv_system_50_fields ( decoder ) == 1 ) ? true : pal;
	}
#endif
	return pal;
}
bool Frame :: IsPAL ( void ) const { unsigned char dsf = data [ 3 ] & 0x80 ; bool pal = ( dsf == 0 ) ? false : true ; #ifdef HAVE_LIBDV if ( ! pal ) { pal = ( dv_system_50_fields ( decoder ) == 1 ) ? true : pal ; } #endif return pal ; }
checks whether the frame is in PAL or NTSC format
\todo function can't handle "empty" frame
\return true for PAL frame, false for a NTSC frame
checks whether the frame is in PAL or NTSC format \ todo function can ' t handle " empty " frame \ return true for PAL frame false for a NTSC frame