MythTV  0.28pre
Functions | Variables
element.c File Reference

Go to the source code of this file.

Functions

uint64_t add_pts_audio (uint64_t pts, audio_frame_t *aframe, uint64_t frames)
 
void fix_audio_count (uint64_t *acount, audio_frame_t *aframe, uint64_t origpts, uint64_t pts)
 
uint64_t next_ptsdts_video (uint64_t *pts, sequence_t *s, uint64_t fcount, uint64_t gcount)
 
void fix_video_count (sequence_t *s, uint64_t *frame, uint64_t origpts, uint64_t pts, uint64_t origdts, uint64_t dts)
 
void pts2time (uint64_t pts, uint8_t *buf, int len)
 
int get_video_info (ringbuffer *rbuf, sequence_t *s, int off, int le)
 
int find_audio_sync (ringbuffer *rbuf, uint8_t *buf, int off, int type, int le)
 
int find_audio_s (uint8_t *rbuf, int off, int type, int le)
 
int check_audio_header (ringbuffer *rbuf, audio_frame_t *af, int off, int le, int type)
 
int get_audio_info (ringbuffer *rbuf, audio_frame_t *af, int off, int le)
 
int get_ac3_info (ringbuffer *rbuf, audio_frame_t *af, int off, int le)
 
int get_video_ext_info (ringbuffer *rbuf, sequence_t *s, int off, int le)
 

Variables

unsigned int slots [4] = {12, 144, 0, 0}
 
unsigned int bitrates [3][16]
 
uint32_t freq [4] = {441, 480, 320, 0}
 
static uint64_t samples [4] = { 384, 1152, 1152, 1536}
 
const char * frames [3] = {"I-Frame","P-Frame","B-Frame"}
 
unsigned int ac3_bitrates [32]
 
static uint8_t ac3half [12] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3}
 
uint32_t ac3_freq [4] = {480, 441, 320, 0}
 

Function Documentation

uint64_t add_pts_audio ( uint64_t  pts,
audio_frame_t aframe,
uint64_t  frames 
)

Definition at line 56 of file element.c.

Referenced by analyze_audio().

void fix_audio_count ( uint64_t *  acount,
audio_frame_t aframe,
uint64_t  origpts,
uint64_t  pts 
)

Definition at line 65 of file element.c.

Referenced by analyze_audio().

uint64_t next_ptsdts_video ( uint64_t *  pts,
sequence_t s,
uint64_t  fcount,
uint64_t  gcount 
)

Definition at line 79 of file element.c.

Referenced by analyze_video().

void fix_video_count ( sequence_t s,
uint64_t *  frame,
uint64_t  origpts,
uint64_t  pts,
uint64_t  origdts,
uint64_t  dts 
)

Definition at line 119 of file element.c.

Referenced by analyze_video().

void pts2time ( uint64_t  pts,
uint8_t *  buf,
int  len 
)

Definition at line 154 of file element.c.

Referenced by writeout_video().

int get_video_info ( ringbuffer rbuf,
sequence_t s,
int  off,
int  le 
)

Definition at line 196 of file element.c.

Referenced by analyze_video().

int find_audio_sync ( ringbuffer rbuf,
uint8_t *  buf,
int  off,
int  type,
int  le 
)

Definition at line 330 of file element.c.

Referenced by analyze_audio(), check_audio_header(), get_ac3_info(), and get_audio_info().

int find_audio_s ( uint8_t *  rbuf,
int  off,
int  type,
int  le 
)

Definition at line 383 of file element.c.

Referenced by pes_id_out().

int check_audio_header ( ringbuffer rbuf,
audio_frame_t af,
int  off,
int  le,
int  type 
)

Definition at line 430 of file element.c.

Referenced by analyze_audio().

int get_audio_info ( ringbuffer rbuf,
audio_frame_t af,
int  off,
int  le 
)

Definition at line 495 of file element.c.

Referenced by analyze_audio().

int get_ac3_info ( ringbuffer rbuf,
audio_frame_t af,
int  off,
int  le 
)

Definition at line 546 of file element.c.

Referenced by analyze_audio().

int get_video_ext_info ( ringbuffer rbuf,
sequence_t s,
int  off,
int  le 
)

Definition at line 605 of file element.c.

Referenced by analyze_video().

Variable Documentation

unsigned int slots[4] = {12, 144, 0, 0}

Definition at line 38 of file element.c.

Referenced by MythAirplayServer::AirplaySharedInstance(), AudioConfigSettings::AudioDeviceVect(), BooleanSetting::boolValue(), ButtonSetting::ButtonSetting(), CaptureServices::CaptureServices(), ChannelServices::ChannelServices(), AbstractAnimation::Clear(), MythSocketManager::connected(), InteractiveScreen::Create(), ItemDetailPopup::Create(), DataDirectLineupSelector::DataDirectLineupSelector(), DateSetting::DateSetting(), MythTerminal::deleteLater(), MythScreenStack::DisableEffects(), ParentalLevelChangeCheckerPrivate::DoCheck(), MythSingleDownload::ErrorCode(), TransportListEditor::exec(), StartingChannel::fillSelections(), Transition::Finalise(), TransitionRandom::Finalise(), MythListBox::findItems(), FirewireDesc::FirewireDesc(), FrontendServices::FrontendServices(), get_audio_info(), DialogBox::getCheckBoxState(), MythUIButtonTree::GetCurrentNode(), ScheduleCommon::GetCurrentProgram(), GuideGrid::GetCurrentProgram(), GuideGrid::GetCurrentStartTime(), MainVisual::getCurrentVisual(), MythUITextEdit::GetDBValue(), Setting::GetDBValue(), MythBrowser::GetDefaultFavIcon(), MythUIWebBrowser::GetDefaultSaveFilename(), MythUIType::GetDependsMap(), Slide::GetDirection(), JumpToChannel::GetEntry(), MainServer::GetExitCode(), PaneATSC::GetFrequencyTableRange(), OutboundRequestHandler::GetHandlerName(), WeatherScreen::getId(), WeatherSource::getId(), CaptureCard::GetInstanceCount(), LCDProcClient::getLCDHeight(), LCD::getLCDWidth(), DataDirect_config::getLineupID(), WebPage::getListItem(), NAMThread::GetMutex(), SlideBuffer::GetNext(), MusicPlayer::getShuffleMode(), InfoList::GetState(), Configurable::GetStorage(), NetworkControlClient::getTextStream(), PreviewGenerator::GetToken(), SelectSetting::GetValue(), LogServerThread::getZMQContext(), TestMythSystemLegacy::Go(), GuideServices::GuideServices(), HTTPReader::HTTPReader(), ImageServices::ImageServices(), IntegerSetting::intValue(), MediaMonitor::IsActive(), SignalHandler::IsExiting(), MythScreenType::IsLoaded(), SpinBoxSetting::IsRelayEnabled(), MythDownloadManager::isRunning(), WebSocketServer::IsRunning(), TransportList::Load(), GalleryThumbView::mediaEvent(), TestProgramInfo::mockMovie(), MythContextSlotHandler::MythContextSlotHandler(), ParallelAnimation::ParallelAnimation(), ContentServices::Q_CLASSINFO(), VideoServices::Q_CLASSINFO(), MythServices::Q_CLASSINFO(), DvrServices::Q_CLASSINFO(), MythRAOPDevice::RAOPSharedInstance(), GLSingleView::Ready(), ComboBoxSetting::resetMaxCount(), MythDialog::result(), MythRAOPConnection::RSALastError(), RttiServices::RttiServices(), StorageGroupEditor::Save(), PlayGroupEditor::Save(), ChannelGroupEditor::Save(), RotorPosMap::Save(), StorageGroupListEditor::Save(), MythControls::Save(), DeviceTree::Save(), ProfileGroupEditor::Save(), MythGamePlayerEditor::Save(), PlaybackProfileItemConfig::Save(), XMLTV_generic_config::Save(), RecordingProfileEditor::Save(), PlaybackProfileConfig::Save(), DVBConfigurationGroup::Save(), CaptureCardEditor::Save(), VideoSourceEditor::Save(), CardInput::Save(), ScanTypeSetting::ScanTypeSetting(), ScriptableCapture::ScriptableCapture(), ScriptableChannel::ScriptableChannel(), ScriptableChannelIcon::ScriptableChannelIcon(), ScriptableContent::ScriptableContent(), ScriptableDvr::ScriptableDvr(), ScriptableFrontend::ScriptableFrontend(), ScriptableGuide::ScriptableGuide(), ScriptableImage::ScriptableImage(), ScriptableMyth::ScriptableMyth(), ScriptableRtti::ScriptableRtti(), ScriptableVideo::ScriptableVideo(), SequentialAnimation::SequentialAnimation(), ZMMiniPlayer::setAlarmMonitor(), ListBoxSetting::SetEventFilter(), Playlist::setID(), PlaybackBox::setInitialRecGroup(), ZMClient::setIsMiniPlayerEnabled(), MythUIButton::SetLockable(), MythUIFileBrowser::SetNameFilter(), HDHomeRunIP::SetOldValue(), HDHomeRunTunerIndex::SetOldValue(), VBoxIP::SetOldValue(), VBoxTunerIndex::SetOldValue(), ServerPool::setProxy(), MythLineEdit::setRO(), StackedConfigurationGroup::setSaveAll(), TriggeredConfigurationGroup::setSaveAll(), MythUIButtonList::SetSearchFields(), MythComboBox::setStep(), SpinBoxSetting::setValue(), SlotRelayer::SlotRelayer(), ImportMusicDialog::somethingWasImported(), TimeSetting::TimeSetting(), NetStream::Url(), ExitPrompter::~ExitPrompter(), HostRefreshRateComboBox::~HostRefreshRateComboBox(), ManualSchedule::~ManualSchedule(), MythPopupBox::~MythPopupBox(), and OutputStream::~OutputStream().

unsigned int bitrates[3][16]
Initial value:
=
{{0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,0},
{0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,0},
{0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,0}}

Definition at line 39 of file element.c.

Referenced by check_audio_header(), and get_audio_info().

uint32_t freq[4] = {441, 480, 320, 0}
uint64_t samples[4] = { 384, 1152, 1152, 1536}
static
const char* frames[3] = {"I-Frame","P-Frame","B-Frame"}
unsigned int ac3_bitrates[32]
Initial value:
=
{32,40,48,56,64,80,96,112,128,160,192,224,256,320,384,448,512,576,640,
0,0,0,0,0,0,0,0,0,0,0,0,0}

Definition at line 48 of file element.c.

Referenced by check_audio_header(), and get_ac3_info().

uint8_t ac3half[12] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3}
static

Definition at line 51 of file element.c.

Referenced by check_audio_header(), and get_ac3_info().

uint32_t ac3_freq[4] = {480, 441, 320, 0}

Definition at line 52 of file element.c.

Referenced by check_audio_header(), and get_ac3_info().