#include <mhi.h>
Definition at line 41 of file mhi.h.
Public Member Functions | |
| MHIContext (InteractiveTV *parent) | |
| virtual | ~MHIContext () |
| void | QueueDSMCCPacket (unsigned char *data, int length, int componentTag, unsigned carouselId, int dataBroadcastId) |
| void | SetNetBootInfo (const unsigned char *data, uint length) |
| void | Restart (uint chanid, uint cardid, bool isLive) |
| Restart the MHEG engine. | |
| bool | OfferKey (QString key) |
| void | UpdateOSD (OSDSet *osdSet) |
| Update the display. | |
| void | Reinit (const QRect &display) |
| The display area has changed. | |
| void | StopEngine (void) |
| Stop the MHEG engine if it's running and waits until it has. | |
| virtual bool | CheckCarouselObject (QString objectPath) |
| virtual bool | GetCarouselData (QString objectPath, QByteArray &result) |
| virtual void | SetInputRegister (int nReg) |
| virtual void | RequireRedraw (const QRegion ®ion) |
| An area of the screen/image needs to be redrawn. | |
| virtual bool | CheckStop (void) |
| Check whether we have requested a stop. | |
| void | GetInitialStreams (int &audioTag, int &videoTag) |
| Get the initial component tags. | |
| virtual MHDLADisplay * | CreateDynamicLineArt (bool isBoxed, MHRgba lineColour, MHRgba fillColour) |
| Creation functions for various visibles. | |
| virtual MHTextDisplay * | CreateText (void) |
| virtual MHBitmapDisplay * | CreateBitmap (bool tiling) |
| virtual void | DrawRect (int xPos, int yPos, int width, int height, MHRgba colour) |
| Additional drawing functions. | |
| virtual void | DrawBackground (const QRegion ®) |
| virtual void | DrawVideo (const QRect &videoRect, const QRect &displayRect) |
| void | DrawImage (int x, int y, const QRect &rect, const QImage &image) |
| virtual int | GetChannelIndex (const QString &str) |
| virtual bool | GetServiceInfo (int channelId, int &netId, int &origNetId, int &transportId, int &serviceId) |
| Get netId etc from the channel index. | |
| virtual bool | TuneTo (int channel) |
| virtual bool | BeginAudio (const QString &stream, int tag) |
| Begin playing audio from the specified stream. | |
| virtual void | StopAudio (void) |
| Stop playing audio. | |
| virtual bool | BeginVideo (const QString &stream, int tag) |
| Begin displaying video from the specified stream. | |
| virtual void | StopVideo (void) |
| Stop displaying video. | |
| virtual const char * | GetReceiverId (void) |
| virtual const char * | GetDSMCCId (void) |
| void | AddToDisplay (const QImage &image, int x, int y) |
| FT_Face | GetFontFace (void) |
| bool | IsFaceLoaded (void) |
| bool | LoadFont (QString name) |
| bool | ImageUpdated (void) |
| int | GetWidth (void) |
| int | GetHeight (void) |
Static Public Attributes | |
| static const int | StdDisplayWidth = 720 |
| static const int | StdDisplayHeight = 576 |
Protected Member Functions | |
| void | RunMHEGEngine (void) |
| void | ProcessDSMCCQueue (void) |
| void | NetworkBootRequested (void) |
Static Protected Member Functions | |
| static void * | StartMHEGEngine (void *param) |
Protected Attributes | |
| InteractiveTV * | m_parent |
| Dsmcc * | m_dsmcc |
| QMutex | m_dsmccLock |
| QPtrQueue< DSMCCPacket > | m_dsmccQueue |
| QMutex | m_keyLock |
| QValueList< int > | m_keyQueue |
| int | m_keyProfile |
| MHEG * | m_engine |
| QWaitCondition | m_engine_wait |
| bool | m_stop |
| bool | m_stopped |
| QMutex | m_display_lock |
| bool | m_updated |
| int | m_displayWidth |
| int | m_displayHeight |
| QPtrList< MHIImageData > | m_display |
| FT_Face | m_face |
| bool | m_face_loaded |
| pthread_t | m_engineThread |
| int | m_currentChannel |
| bool | m_isLive |
| int | m_currentCard |
| int | m_audioTag |
| int | m_videoTag |
| int | m_tuningTo |
| uint | m_lastNbiVersion |
| QMemArray< unsigned char > | m_nbiData |
| QRect | m_videoRect |
| MHIContext::MHIContext | ( | InteractiveTV * | parent | ) |
| void MHIContext::QueueDSMCCPacket | ( | unsigned char * | data, | |
| int | length, | |||
| int | componentTag, | |||
| unsigned | carouselId, | |||
| int | dataBroadcastId | |||
| ) |
| void MHIContext::SetNetBootInfo | ( | const unsigned char * | data, | |
| uint | length | |||
| ) |
Restart the MHEG engine.
Definition at line 112 of file mhi.cpp.
Referenced by InteractiveTV::Restart().
| bool MHIContext::OfferKey | ( | QString | key | ) |
| void MHIContext::UpdateOSD | ( | OSDSet * | osdSet | ) |
Update the display.
Definition at line 418 of file mhi.cpp.
Referenced by InteractiveTV::UpdateOSD().
| void MHIContext::Reinit | ( | const QRect & | display | ) |
The display area has changed.
Definition at line 402 of file mhi.cpp.
Referenced by InteractiveTV::Reinit().
| void MHIContext::StopEngine | ( | void | ) |
Stop the MHEG engine if it's running and waits until it has.
Definition at line 96 of file mhi.cpp.
Referenced by Restart(), and ~MHIContext().
| bool MHIContext::CheckCarouselObject | ( | QString | objectPath | ) | [virtual] |
| bool MHIContext::GetCarouselData | ( | QString | objectPath, | |
| QByteArray & | result | |||
| ) | [virtual] |
| void MHIContext::SetInputRegister | ( | int | nReg | ) | [virtual] |
| void MHIContext::RequireRedraw | ( | const QRegion & | region | ) | [virtual] |
| virtual bool MHIContext::CheckStop | ( | void | ) | [inline, virtual] |
| void MHIContext::GetInitialStreams | ( | int & | audioTag, | |
| int & | videoTag | |||
| ) |
Get the initial component tags.
Definition at line 434 of file mhi.cpp.
Referenced by InteractiveTV::GetInitialStreams().
| MHDLADisplay * MHIContext::CreateDynamicLineArt | ( | bool | isBoxed, | |
| MHRgba | lineColour, | |||
| MHRgba | fillColour | |||
| ) | [virtual] |
| MHTextDisplay * MHIContext::CreateText | ( | void | ) | [virtual] |
| MHBitmapDisplay * MHIContext::CreateBitmap | ( | bool | tiling | ) | [virtual] |
| void MHIContext::DrawRect | ( | int | xPos, | |
| int | yPos, | |||
| int | width, | |||
| int | height, | |||
| MHRgba | colour | |||
| ) | [virtual] |
Additional drawing functions.
Implements MHContext.
Definition at line 763 of file mhi.cpp.
Referenced by MHIDLA::Draw(), and DrawBackground().
| void MHIContext::DrawBackground | ( | const QRegion & | reg | ) | [virtual] |
| void MHIContext::DrawVideo | ( | const QRect & | videoRect, | |
| const QRect & | displayRect | |||
| ) | [virtual] |
| void MHIContext::DrawImage | ( | int | x, | |
| int | y, | |||
| const QRect & | rect, | |||
| const QImage & | image | |||
| ) |
Definition at line 795 of file mhi.cpp.
Referenced by MHIBitmap::Draw(), MHIDLA::Draw(), and MHIText::Draw().
| int MHIContext::GetChannelIndex | ( | const QString & | str | ) | [virtual] |
Implements MHContext.
Definition at line 572 of file mhi.cpp.
Referenced by BeginAudio(), and BeginVideo().
| bool MHIContext::GetServiceInfo | ( | int | channelId, | |
| int & | netId, | |||
| int & | origNetId, | |||
| int & | transportId, | |||
| int & | serviceId | |||
| ) | [virtual] |
| bool MHIContext::TuneTo | ( | int | channel | ) | [virtual] |
Implements MHContext.
Definition at line 674 of file mhi.cpp.
Referenced by BeginAudio(), and BeginVideo().
| bool MHIContext::BeginAudio | ( | const QString & | stream, | |
| int | tag | |||
| ) | [virtual] |
| void MHIContext::StopAudio | ( | void | ) | [virtual] |
| bool MHIContext::BeginVideo | ( | const QString & | stream, | |
| int | tag | |||
| ) | [virtual] |
| void MHIContext::StopVideo | ( | void | ) | [virtual] |
| virtual const char* MHIContext::GetReceiverId | ( | void | ) | [inline, virtual] |
| virtual const char* MHIContext::GetDSMCCId | ( | void | ) | [inline, virtual] |
| void MHIContext::AddToDisplay | ( | const QImage & | image, | |
| int | x, | |||
| int | y | |||
| ) |
| FT_Face MHIContext::GetFontFace | ( | void | ) | [inline] |
| bool MHIContext::IsFaceLoaded | ( | void | ) | [inline] |
| bool MHIContext::LoadFont | ( | QString | name | ) |
| bool MHIContext::ImageUpdated | ( | void | ) | [inline] |
| int MHIContext::GetWidth | ( | void | ) | [inline] |
| int MHIContext::GetHeight | ( | void | ) | [inline] |
| void * MHIContext::StartMHEGEngine | ( | void * | param | ) | [static, protected] |
| void MHIContext::RunMHEGEngine | ( | void | ) | [protected] |
| void MHIContext::ProcessDSMCCQueue | ( | void | ) | [protected] |
| void MHIContext::NetworkBootRequested | ( | void | ) | [protected] |
const int MHIContext::StdDisplayWidth = 720 [static] |
Definition at line 134 of file mhi.h.
Referenced by DrawImage(), DrawRect(), DrawVideo(), and RequireRedraw().
const int MHIContext::StdDisplayHeight = 576 [static] |
Definition at line 135 of file mhi.h.
Referenced by DrawImage(), DrawRect(), DrawVideo(), and RequireRedraw().
InteractiveTV* MHIContext::m_parent [protected] |
Dsmcc* MHIContext::m_dsmcc [protected] |
Definition at line 147 of file mhi.h.
Referenced by CheckCarouselObject(), GetCarouselData(), NetworkBootRequested(), ProcessDSMCCQueue(), Restart(), and ~MHIContext().
QMutex MHIContext::m_dsmccLock [protected] |
Definition at line 148 of file mhi.h.
Referenced by NetworkBootRequested(), ProcessDSMCCQueue(), QueueDSMCCPacket(), Restart(), SetNetBootInfo(), and TuneTo().
QPtrQueue<DSMCCPacket> MHIContext::m_dsmccQueue [protected] |
Definition at line 149 of file mhi.h.
Referenced by MHIContext(), ProcessDSMCCQueue(), QueueDSMCCPacket(), and Restart().
QMutex MHIContext::m_keyLock [protected] |
Definition at line 151 of file mhi.h.
Referenced by OfferKey(), Restart(), RunMHEGEngine(), and SetInputRegister().
QValueList<int> MHIContext::m_keyQueue [protected] |
Definition at line 152 of file mhi.h.
Referenced by OfferKey(), Restart(), RunMHEGEngine(), and SetInputRegister().
int MHIContext::m_keyProfile [protected] |
MHEG* MHIContext::m_engine [protected] |
Definition at line 155 of file mhi.h.
Referenced by NetworkBootRequested(), RequireRedraw(), Restart(), RunMHEGEngine(), StopEngine(), and ~MHIContext().
QWaitCondition MHIContext::m_engine_wait [protected] |
Definition at line 157 of file mhi.h.
Referenced by GetCarouselData(), OfferKey(), QueueDSMCCPacket(), RunMHEGEngine(), SetNetBootInfo(), and StopEngine().
bool MHIContext::m_stop [protected] |
Definition at line 158 of file mhi.h.
Referenced by CheckStop(), GetCarouselData(), Restart(), RunMHEGEngine(), and StopEngine().
bool MHIContext::m_stopped [protected] |
QMutex MHIContext::m_display_lock [protected] |
Definition at line 160 of file mhi.h.
Referenced by AddToDisplay(), DrawVideo(), RequireRedraw(), and UpdateOSD().
bool MHIContext::m_updated [protected] |
Definition at line 161 of file mhi.h.
Referenced by ImageUpdated(), NetworkBootRequested(), RequireRedraw(), Restart(), and UpdateOSD().
int MHIContext::m_displayWidth [protected] |
int MHIContext::m_displayHeight [protected] |
QPtrList<MHIImageData> MHIContext::m_display [protected] |
Definition at line 166 of file mhi.h.
Referenced by AddToDisplay(), DrawVideo(), MHIContext(), NetworkBootRequested(), RequireRedraw(), Restart(), and UpdateOSD().
FT_Face MHIContext::m_face [protected] |
bool MHIContext::m_face_loaded [protected] |
Definition at line 169 of file mhi.h.
Referenced by IsFaceLoaded(), MHIContext(), and ~MHIContext().
pthread_t MHIContext::m_engineThread [protected] |
int MHIContext::m_currentChannel [protected] |
Definition at line 173 of file mhi.h.
Referenced by BeginAudio(), BeginVideo(), GetChannelIndex(), and Restart().
bool MHIContext::m_isLive [protected] |
int MHIContext::m_currentCard [protected] |
int MHIContext::m_audioTag [protected] |
Definition at line 177 of file mhi.h.
Referenced by BeginAudio(), GetInitialStreams(), and Restart().
int MHIContext::m_videoTag [protected] |
Definition at line 178 of file mhi.h.
Referenced by BeginVideo(), GetInitialStreams(), and Restart().
int MHIContext::m_tuningTo [protected] |
uint MHIContext::m_lastNbiVersion [protected] |
Definition at line 181 of file mhi.h.
Referenced by NetworkBootRequested(), SetNetBootInfo(), and TuneTo().
QMemArray<unsigned char> MHIContext::m_nbiData [protected] |
Definition at line 182 of file mhi.h.
Referenced by NetworkBootRequested(), SetNetBootInfo(), and TuneTo().
QRect MHIContext::m_videoRect [protected] |
1.5.5