MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
Macros | Enumerations | Functions | Variables
mh5display.c File Reference

Implement generic MHEG5-display functions - independent from the OSD These are generic functions used by the MHEG5 engine to manage it's display. These functions are the direct API between the |OSD| and the MHEG5-classes. More...

#include <string.h>
#include "mh5application.h"
#include "mh5base.h"
#include "mh5display.h"
#include "mh5classes.h"
#include "mh5queue.h"
#include "mh5object.h"
#include "mh5final.h"
#include "mh5drawtext.h"
#include "mg_api.h"
#include "mg_video.h"
#include "dvb_audio.h"
#include "dvb_video.h"
#include "mh5memory.h"
#include "mh5profile.h"
#include "mh5streamevent.h"
#include "mh5debug.h"
#include "tmcolor.h"
#include "mh5dispBttnRT.h"
#include "mh5control.h"

Macros

#define MAX_RECTS   32
 
#define DELTA_X   5
 
#define DELTA_Y   4
 
#define SIGNF_X   20
 
#define SIGNF_Y   16
 
#define IRATIO   32
 
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
 
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define MHEG5_MULTIPLEX_REF_VALID(mux)   ((mux).service_id != 0 && (mux).service_id != 0xffff)
 

Enumerations

enum  E_AudioPlayState { AUDIO_PLAY_DEFAULT, AUDIO_PLAY_NONE, AUDIO_PLAY_STREAM, AUDIO_PLAY_MEMORY }
 

Functions

void MHEG5displayClear (void)
 <Function description>=""> More...
 
OSDColor MHEG5displayColour (MHEG5Colour *colour)
 Convert Generic Colour value to OSD specific value. If the generic colour is encoded as a string it is converted to an OSD representation. The OSD representation is then cached as an integer value. More...
 
void MHEG5displayVisUpd (MHEG5Visible *visible, U8BIT upd)
 
void MHEG5displayShowAll (void)
 Redisplay all active visible objects. AKD: Optimised 12/5/99. More...
 
void MHEG5displayResume (void)
 
void MHEG5displayPause (void)
 
void MHEG5groupClearImages (MHEG5Root *group)
 
void MHEG5groupRedraw (MHEG5Root *group)
 
void MHEG5displayStreamUpdate (MHEG5Application *application)
 
void MHEG5displayUpdate (void)
 Update the display, redrawing any visible objects that are in the dirty rectangle. More...
 
void MHEG5displayAudioPlay (MHEG5Audio *audio)
 Begin playback of the specified audio object. More...
 
void MHEG5displayVideoPlay (MHEG5Video *video)
 Begin playback of the specified video object. More...
 
U16BIT MHEG5GetVideoSid (void)
 
U16BIT MHEG5GetAudioSid (void)
 
void MHEG5displayRefreshStreams (U16BIT service_id)
 
void MHEG5displayRefreshDefaultAudio (U16BIT service_id)
 
void MHEG5displayStreamPlay (MHEG5Stream *stream)
 Begin playback of all active components in the specifed stream object. More...
 
void MHEG5displayAudioStop (void)
 Stops playback of the audio media decoder. More...
 
void MHEG5displayVideoStop (void)
 Stops playback of the video media decoder. More...
 
void MHEG5displayStreamStop (MHEG5Stream *stream)
 Stops playback of all active component of the specified stream object. More...
 
void MHEG5displayAudioDestroy (MHEG5Audio *audio)
 
void MHEG5displayVideoDestroy (MHEG5Video *video)
 
void MHEG5displayIframeDestroy (MHEG5Bitmap *iframe)
 
void MHEG5displayIFrameStart (MHEG5Bitmap *bitmap)
 Start displaying an I-Frame. More...
 
void MHEG5displayIFrameStop (void)
 Stop displaying an I-Frame. More...
 
void MHEG5displayVideoPositionUpdate (void)
 
void MHEG5notifyVideoStarted (void)
 
void MHEG5notifyVideoStopped (void)
 
void MHEG5notifyAudioStarted (BOOLEAN isClip)
 
void MHEG5notifyAudioStopped (BOOLEAN isClip)
 
void MHEG5displayResetStreamDecoders (BOOLEAN update)
 Reset all media decoders to default values. This is used when the MHEG-5 engine is terminated, or the last application quits. More...
 
void MHEG5displayLockStreams (void)
 Lock streams, disallow any stream updates. More...
 
void MHEG5displayUnlockStreams (void)
 Unlock streams, allow stream updates. More...
 
void MHEG5displaySetVolume (MHEG5Int volume)
 Volume Control. More...
 

Variables

const char * stream_states []
 

Detailed Description

Implement generic MHEG5-display functions - independent from the OSD These are generic functions used by the MHEG5 engine to manage it's display. These functions are the direct API between the |OSD| and the MHEG5-classes.

Date
01/02/2002
Author
R.Freeman

Function Documentation

void MHEG5displayAudioPlay ( MHEG5Audio audio)

Begin playback of the specified audio object.

Parameters
audioAudio object to play
Returns
void
void MHEG5displayAudioStop ( void  )

Stops playback of the audio media decoder.

Parameters
immediateStop media decoder immediately, else wait until the next time that the display is updated.
Returns
void
void MHEG5displayClear ( void  )

<Function description>="">

Returns
<Return value>=""> Clear the Display.to the desktop colour
void
OSDColor MHEG5displayColour ( MHEG5Colour colour)

Convert Generic Colour value to OSD specific value. If the generic colour is encoded as a string it is converted to an OSD representation. The OSD representation is then cached as an integer value.

Parameters
colourGeneric colour value. This describes the colour as either a string or integer value.
Returns
OSDColor representation of the colour
void MHEG5displayIFrameStart ( MHEG5Bitmap bitmap)

Start displaying an I-Frame.

Parameters
bitmapPointer to bitmap object
Returns
void
void MHEG5displayIFrameStop ( void  )

Stop displaying an I-Frame.

Returns
void
void MHEG5displayLockStreams ( void  )

Lock streams, disallow any stream updates.

Returns
void
void MHEG5displayResetStreamDecoders ( BOOLEAN  update)

Reset all media decoders to default values. This is used when the MHEG-5 engine is terminated, or the last application quits.

Returns
void
void MHEG5displaySetVolume ( MHEG5Int  volume)

Volume Control.

Parameters
MHEG5Intvolume
Returns
void
void MHEG5displayShowAll ( void  )

Redisplay all active visible objects. AKD: Optimised 12/5/99.

Returns
void
void MHEG5displayStreamPlay ( MHEG5Stream stream)

Begin playback of all active components in the specifed stream object.

Parameters
streamStream object to play components of
Returns
void
void MHEG5displayStreamStop ( MHEG5Stream stream)

Stops playback of all active component of the specified stream object.

Parameters
streamStream object to stop playing component of.
immediateStop media decoders immediately, else wait until the next time that the display is updated.
Returns
void
void MHEG5displayUnlockStreams ( void  )

Unlock streams, allow stream updates.

Returns
void
void MHEG5displayUpdate ( void  )

Update the display, redrawing any visible objects that are in the dirty rectangle.

Parameters
visibleVisible object to redraw
Returns
void
void MHEG5displayVideoPlay ( MHEG5Video video)

Begin playback of the specified video object.

Parameters
videoVideo object to play
Returns
void
void MHEG5displayVideoStop ( void  )

Stops playback of the video media decoder.

Parameters
immediateStop media decoder immediately, else wait until the next time that the display is updated.
Returns
void

Variable Documentation

const char* stream_states[]
Initial value:
= {
"STOPPED",
"STOPPING",
"STARTING",
"PLAYING",
"PLAYING_CLIP",
"NEW_REF",
"FROZEN",
"Error"
}