compat.h File Reference

Go to the source code of this file.

Classes

struct  statfs

Typedefs

typedef unsigned int uint
typedef long suseconds_t
typedef off_t off64_t

Functions

template<class _Ty>
const _Ty & max (const _Ty &_X, const _Ty &_Y)
template<class _Ty, class _Pr>
const _Ty & max (const _Ty &_X, const _Ty &_Y, _Pr _P)
template<class _Ty>
const _Ty & min (const _Ty &_X, const _Ty &_Y)
template<class _Ty, class _Pr>
const _Ty & min (const _Ty &_X, const _Ty &_Y, _Pr _P)
int random (void)
int usleep (unsigned int timeout)
unsigned sleep (unsigned int x)
int statfs (const char *path, struct statfs *buffer)
const char * dlerror (void)


Typedef Documentation

typedef unsigned int uint

Definition at line 29 of file compat.h.

Definition at line 270 of file compat.h.

typedef off_t off64_t

Definition at line 281 of file compat.h.


Function Documentation

template<class _Ty>
const _Ty& max ( const _Ty &  _X,
const _Ty &  _Y 
) [inline]

Definition at line 51 of file compat.h.

Referenced by MythGesture::adjustExtremes(), TemplateMatcher::adjustForBlanks(), adx_encode(), NuppelVideoPlayer::AVSync(), BackendQueryDiskSpace(), OSDSurface::BlendToARGB(), OSDSurface::BlendToYV12(), bounding_box(), calc_bob(), OSDType708CC::CalcBounds(), AutoExpire::CalcParams(), RingBuffer::CalcReadAheadThresh(), NuppelVideoPlayer::calcSliderPos(), CannyEdgeDetector::CannyEdgeDetector(), categorize(), VideoOutput::ChangePictureAttribute(), Channel::ChangePictureAttribute(), ChannelEditor::ChannelEditor(), CHECK(), check_diff(), GLSingleView::checkPosition(), clamp(), clean_index(), StatusBox::clicked(), BlankFrameDetector::computeForLogoSurplus(), VideoBuffers::CreateBuffers(), ChannelUtil::CreateChanID(), dct_quantize_bfin(), dct_quantize_c(), dct_quantize_trellis_c(), decode(), DecoderBase::DecrementTrack(), CC708Window::DefineWindow(), OSDTypeText::Delete(), dering(), dering_altivec(), direct_search(), do_a_deblock_C(), DecoderBase::DoFastForward(), AvFormatDecoder::DoFastForward(), DecoderBase::DoFastForwardSeek(), DecoderBase::DoRewind(), OSDType708CC::Draw(), OSDTypeCC::Draw(), OSDSet::Draw(), OSDTypeText::DrawHiLiteString(), dv_set_class_number(), edgeDetector::edge_mark(), AutoExpire::ExpireRecordings(), ff_convert_matrix(), ChannelListSetting::fillSelections(), DTVRecorder::FindAudioKeyframes(), DecoderBase::FindPosition(), HouseKeeper::flushLogs(), NuppelVideoRecorder::FormatTeletextSubtitles(), generate_new_codebooks(), GuideGrid::generateListings(), get_new_centroids(), get_sample_bits(), get_ts_ext_overhead(), get_v4l2_attribute_value(), RingBuffer::GetBitrate(), EITHelper::GetChanID(), TVRec::GetChannelInfo(), SourceUtil::GetChannelSeparator(), TVRec::GetDevices(), BorderDetector::getDimensions(), GetFilesystemInfos(), MpegRecorder::GetFilteredAudioBitRate(), MpegRecorder::GetFilteredAudioLayer(), SignalMonitorValue::GetNormalizedValue(), DVBStreamHandler::GetPIDPriority(), MPEGStreamData::GetPIDs(), VideoOutputXv::GetPIPRect(), RemoteEncoder::GetSignalLockTimeout(), CardUtil::GetTimeouts(), VideoOutput::GetVisibleOSDBounds(), ClassicCommDetector::go(), GuideGrid::GuideGrid(), h264_deblock_q1(), AvFormatDecoder::HandleGopStart(), IconView::HandleImageSelect(), IconView::HandleMediaEscape(), IconView::HandleSubDirEscape(), TV::HandleTrackAction(), PlaybackBox::IncPreviewGeneratorAttempts(), PlaybackBox::IncPreviewGeneratorPriority(), DecoderBase::IncrementTrack(), CC708Window::IncrPenLocation(), DeviceReadBuffer::IncrWritePointer(), VideoBuffers::Init(), OSDListBtnType::Init(), ClassicCommDetector::Init(), DisplayRes::Initialize(), ChannelBase::InitializeInputs(), Channel::InitPictureAttribute(), PlaybackBox::IsGeneratingPreview(), isVertMinMaxOk_C(), MythThemedMenuPrivate::keyHandler(), GLSingleView::keyPressEvent(), CC708Window::LimitPenLocation(), SampleRate::load(), IconView::LoadDirectory(), maxPriority(), SignalMonitorValue::MaxWait(), motion_search(), MPEG2AudioBitrateSettings::MPEG2AudioBitrateSettings(), OSD::NewDialogBox(), HDHRRecorder::Open(), MpegRecorder::OpenV4L2DeviceAsInput(), PESPacket::PESPacket(), pgm_match(), AnimatedImageScreen::prepareWidget(), StaticImageScreen::prepareWidget(), JobQueue::PrettyPrint(), PlaybackBox::previewReady(), ClassicCommDetector::ProcessFrame(), qdm2_decode_fft_packets(), MythSocket::readyReadThread(), ChromaKeyOSD::Reinit(), FileTransfer::RequestBlock(), AllMusic::resync(), BumpScope::rgb_to_hsv(), SSDP::run(), Scheduler::RunScheduler(), CaptureCard::save(), PreviewGenerator::SavePreview(), AvFormatDecoder::ScanStreams(), score_match(), set_v4l2_attribute_value(), LinuxFirewireDevice::SetAVStreamBufferSize(), LCD::setChannelProgress(), LCD::setGenericProgress(), FirewireModel::SetGUID(), OSDListBtnType::SetItemCurrent(), LCD::setMusicProgress(), XvMCBufferSettings::SetNumSurf(), DTVRecorder::SetOption(), VideoOutputXv::SetPictureAttribute(), VideoOutputDX::SetPictureAttribute(), VideoOutputDirectfb::SetPictureAttribute(), PlaybackBox::SetPreviewGenerator(), soundtouch::TDStretch::setTempo(), DecoderBase::SetTrack(), SignalMonitor::SetUpdateRate(), SignalMonitorValue::SetValue(), SpinBoxSetting::setValue(), BoundedIntegerSetting::setValue(), OpenGLVideo::SetViewPort(), VideoOutput::ShowPip(), sws_printVec(), GuideGrid::toggleChannelFavorite(), TV::UpdateOSDAskAllowDialog(), vbi_line(), and x8_loop_filter().

template<class _Ty, class _Pr>
const _Ty& max ( const _Ty &  _X,
const _Ty &  _Y,
_Pr  _P 
) [inline]

Definition at line 54 of file compat.h.

template<class _Ty>
const _Ty& min ( const _Ty &  _X,
const _Ty &  _Y 
) [inline]

Definition at line 58 of file compat.h.

template<class _Ty, class _Pr>
const _Ty& min ( const _Ty &  _X,
const _Ty &  _Y,
_Pr  _P 
) [inline]

Definition at line 61 of file compat.h.

int random ( void   )  [inline]

int usleep ( unsigned int  timeout  )  [inline]

Definition at line 97 of file compat.h.

Referenced by aiw_read_picture(), bktr_getframe(), ChannelBase::ChangeExternalChannel(), DeviceReadBuffer::CheckForErrors(), DVBCam::CiHandlerLoop(), TV::ClearOSD(), LinuxFirewireDevice::ClosePort(), MainServer::connectionClosed(), ZMClient::connectToHost(), LCDProcClient::connectToHost(), LCD::connectToHost(), DVDRipBox::connectToMtd(), Playlist::CreateCDMP3(), JobQueue::DeleteAllJobs(), XvMCOSD::DeleteBuffer(), VideoBuffers::DiscardFrame(), NuppelVideoPlayer::DisplayNormalFrame(), MainServer::DoDeleteThread(), MainServer::DoHandleDeleteRecording(), MainServer::DoHandleStopRecording(), NuppelVideoPlayer::DoKeypress(), TV::DoPause(), NuppelVideoRecorder::doWriteThread(), AudioOutputBase::Drain(), DVBSignalMonitor::DVBSignalMonitor(), NuppelVideoPlayer::EnableEdit(), vxmlParser::endVxmlSession(), WelcomeDialog::exec(), DiSEqCDevSwitch::Execute(), DiSEqCDevTree::Execute(), MythFlixQueue::executeExternal(), MythFlix::executeExternal(), executeExternal(), URLFetcher::FetchData(), FIFOWriter::FIFODrain(), FIFOWriter::FIFOInit(), DeviceReadBuffer::fill_ringbuffer(), FillData::fillData(), VorbisDecoder::flush(), MadDecoder::flush(), FlacDecoder::flush(), avfDecoder::flush(), aacDecoder::flush(), VideoOutputXv::GetAvailableOSD(), DummyDecoder::GetFrame(), HttpComms::getHttp(), MythNews::getHttpFile(), HttpComms::getHttpFile(), WeatherSource::getLocationList(), VideoBuffers::GetNextFreeFrame(), CommDetector2::go(), ClassicCommDetector::go(), NuppelVideoPlayer::HandleArbSeek(), DeviceReadBuffer::HandlePausing(), http_connect(), TV::IdleDialog(), NuppelVideoPlayer::IvtvVideoLoop(), SignalMonitor::Kick(), MSqlDatabase::KickDatabase(), ManualBox::killPlayer(), PlaybackBox::killPlayerSafe(), VideoBuffers::LockFrames(), EncoderLink::MatchesRecording(), mini_diseqc(), SignalMonitor::MonitorLoop(), msleep(), myth_system(), OSD::NewDialogBox(), NuppelVideoRecorder::Open(), AudioOutputOSS::OpenDevice(), AudioOutputJACK::OpenDevice(), RingBuffer::OpenFile(), LinuxFirewireDevice::OpenPort(), AudioOutputBase::OutputAudioLoop(), NuppelVideoPlayer::OutputVideoLoop(), SSDP::PerformSearch(), VideoOutputIvtv::Play(), TV::PlayFromRecorder(), DeviceReadBuffer::Poll(), HttpComms::postHttp(), NetworkControl::processJump(), TV::ProcessKeypress(), NetworkControl::processPlay(), NetworkControl::processQuery(), RingBuffer::ReadAheadThread(), ZMClient::readData(), MythSocket::readStringList(), IvtvDecoder::ReadWrite(), RebuildMusicTree(), RemoteGetRecordingStatus(), PreviewGenerator::RemotePreviewRun(), RemoteFile::Reset(), DiSEqCDevTree::ResetDiseqc(), rtp::rtpAudioThreadWorker(), rtp::rtpVideoThreadWorker(), GuideGrid::Run(), DBox2EPG::run(), LinuxFirewireDevice::RunPortHandler(), RunProgramFind(), SIScan::RunScanner(), DVBStreamHandler::RunSR(), HDHRSignalMonitor::RunTableMonitor(), FirewireSignalMonitor::RunTableMonitor(), DVBStreamHandler::RunTS(), TV::RunTV(), RingBuffer::safe_read(), DVDRingBufferPriv::safe_read(), safe_write(), NetworkControl::saveScreenshot(), IPTVChannelFetcher::Scan(), ClassicLogoDetector::searchForLogo(), send_diseqc(), DiSEqCDevTree::SendCommand(), UPnpSearchTask::SendMsg(), UPnpNotifyTask::SendNotifyMsg(), set_chan_slow(), set_tone(), set_voltage(), FirewireDevice::SetChannel(), DiSEqCDevTree::SetTone(), DiSEqCDevTree::SetVoltage(), PlaybackBoxMusic::showEditMetadataDialog(), ZMEvents::showMenu(), slowDelete(), SignalMonitor::Start(), JobQueue::StartChildJob(), DarwinFirewireDevice::StartController(), Ripper::startEjectCD(), TV::StartPlayer(), ManualBox::startPlayer(), NuppelVideoPlayer::StartPlaying(), TV::StartRecorder(), MpegRecorder::StartRecording(), IPTVRecorder::StartRecording(), HDHRRecorder::StartRecording(), FirewireRecorder::StartRecording(), DVBRecorder::StartRecording(), DBox2Recorder::StartRecording(), ImportMusicDialog::startScan(), Ripper::startScanCD(), TV::StartTV(), VideoOutputIvtv::Step(), IvtvDecoder::StepFrames(), DarwinFirewireDevice::StopController(), MHIContext::StopEngine(), DVBRecorder::StopRecording(), TV::SwapPIP(), VideoOutputXv::SyncSurface(), PreviewGenerator::TeardownAll(), TV::TogglePIPView(), MainServer::TruncateAndClose(), DVBChannel::Tune(), TVRec::TuningNewRecorder(), LinuxFirewireDevice::UpdateDeviceList(), TV::UpdateOSDAskAllowDialog(), IPTVSignalMonitor::UpdateValues(), HDHRSignalMonitor::UpdateValues(), FirewireSignalMonitor::UpdateValues(), MythContextPrivate::UPnPautoconf(), waitForBuffer(), USleepVideoSync::WaitForFrame(), BusyWaitVideoSync::WaitForFrame(), SignalMonitor::WaitForLock(), DTVSignalMonitor::WaitForLock(), TVRec::WaitForNextLiveTVDir(), DeviceReadBuffer::WaitForUnused(), DeviceReadBuffer::WaitForUsed(), vxmlParser::waitUntilFinished(), AudioOutputALSA::WriteAudio(), MythSocket::writeData(), MythSocket::writeStringList(), XMLTVConfig::XMLTVConfig(), and IPTVChannelFetcher::~IPTVChannelFetcher().

unsigned sleep ( unsigned int  x  )  [inline]

Definition at line 121 of file compat.h.

int statfs ( const char *  path,
struct statfs buffer 
) [inline]

Definition at line 141 of file compat.h.

Referenced by BackendQueryDiskSpace(), ZMServer::getDiskSpace(), getDiskSpace(), and isRemote().

const char* dlerror ( void   )  [inline]


Generated on Sat Dec 18 05:15:51 2010 for MythTV by  doxygen 1.5.5