![]() |
MHEG5
22.11.0
|
Implement the MHEG5 Stream Class Stream Class Defines the behaviour of a composition of continuous media (Video, Audio and RTGraphics) that are presented in synchronisation. Base class: Presentable Subclasses: None Status: Concrete class. More...
#include "mh5application.h"
#include "mh5scene.h"
#include "mh5stream.h"
#include "mh5object.h"
#include "mh5variable.h"
#include "mh5memory.h"
#include "mh5display.h"
#include "mh5streamevent.h"
#include "mh5final.h"
#include "mh5queue.h"
#include "mh5audio.h"
#include "mh5video.h"
#include "mh5rtgraphics.h"
#include "mh5debug.h"
#include "mh5misc.h"
#include "mh5profile.h"
#include "glue_main.h"
#include "dvb_service.h"
Functions | |
void | MHEG5streamInit (MHEG5Stream *stream) |
Debug function. More... | |
void | MHEG5streamFree (MHEG5Stream *stream) |
Free off all memory associated with the specified object, including any exchanged attributes and internal data. The data holding the object itself is not freed. More... | |
void | MHEG5streamPrepare (MHEG5Stream *stream) |
Apply the preparation behaviour of the stream class. More... | |
void | MHEG5streamActivate (MHEG5Stream *stream) |
Apply the activation behaviour of the stream class. Execute the following sequence of actions: More... | |
void | MHEG5streamDeactivate (MHEG5Stream *stream) |
Apply the deactivation behaviour of the stream class. Execute the following sequence of actions: More... | |
void | MHEG5streamDestruct (MHEG5Stream *stream) |
Destruct a stream object. Execute the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5setCounterTrigger (MHEG5Root *target, MHEG5GList *params) |
The effect of this action is to update the list of CounterTriggers for a Stream object SetCounterTrigger (TriggerIdentifier, NewCounterValue) Implementation of the SetCounterTrigger (TriggerIdentifier, NewCounterValue) action of the stream class. Update the list of CounterTriggers of a Stream object. Execute the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5setSpeed (MHEG5Root *target, MHEG5GList *params) |
The effect of this action is to change the speed in which the stream is displayed. Implementation of the SetSpeed (Target, NewSpeed) action of the stream class. SetSpeed (NewSpeed) Change the presentation speed of a stream. Execute the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5setCounterPosition (MHEG5Root *target, MHEG5GList *params) |
The effect of this action is to set the display counter to a new position. Implementation of the SetCounterPosition (Target, NewCounterPosition) action of the stream class. SetCounterPosition (NewCounterPosition) Change the current position within a stream. Execute the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5setCounterEndPosition (MHEG5Root *target, MHEG5GList *params) |
Implementation of the SetCounterEndPosition (Target, NewPosition) action of the stream class. The effect of this action is to set the end position of the display counter to a new value. If the actual counter position of the stream is already beyond the new given counter position, the stream is stopped. SetCounterEndPosition (NewCounterEndPosition) Change the end position of a stream. Execute the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5getCounterPosition (MHEG5Root *target, MHEG5GList *params) |
Implementation of the GetCounterPosition (Target, CounterPositionVar) action of the stream class. The effect of this action is to put the position of the display counter into the counter position variable. GetCounterPosition (CounterPositionVar) Get the current position within a stream. Execute the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5getCounterMaxPosition (MHEG5Root *target, MHEG5GList *params) |
Implementation of the GetCounterMaxPosition (Target, CounterPositionVar) action of the stream class. The effect of this action is to put the end position of the display counter into the counter position variable. GetCounterMaxPosition (CounterMaxPositionVar) Gets the total size of a stream. Execute the following sequence of actions: More... | |
void | MHEG5streamContentClear (MHEG5Stream *stream) |
Clear content for Stream objects. More... | |
void | MHEG5streamContentAdapt (MHEG5Stream *stream, S_CONTENT *content) |
Adapt new content for Stream objects. Content is either a DSM-CC stream object, a DVB URL or an MPEG2 audio file. More... | |
MHEG5Bool | MHEG5streamGetCurrentService (S_DVB_LOCATOR *multiplexRef) |
Return the current service (i.e. the service corresponding to the currently running Video, Audio or RTGraphics object (in that order of priority). The is the service referred to by the rec://svc/cur URL. More... | |
void | MHEG5streamFindCurrentService (void) |
Find the current service (i.e. the service corresponding to the currently running Video, Audio or RTGraphics object, in that order of priority). More... | |
void | MHEG5streamSetCurrentService (MHEG5Ingredient *item, S_DvbComponent *service) |
Set the current service. More... | |
void | MHEG5streamClearCurrentService (void) |
Clear the current service. More... | |
MHEG5Int | MHEG5streamGetComponentTag (MHEG5Ingredient *item) |
Get component tag for ingredient. This depends on the stream's content and the component tag of the ingredient. More... | |
Implement the MHEG5 Stream Class Stream Class Defines the behaviour of a composition of continuous media (Video, Audio and RTGraphics) that are presented in synchronisation. Base class: Presentable Subclasses: None Status: Concrete class.
MHEG5ErrorCode MHEG5getCounterMaxPosition | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Implementation of the GetCounterMaxPosition (Target, CounterPositionVar) action of the stream class. The effect of this action is to put the end position of the display counter into the counter position variable. GetCounterMaxPosition (CounterMaxPositionVar) Gets the total size of a stream. Execute the following sequence of actions:
target | target object for this action |
params | Function parameter |
MHEG5ErrorCode MHEG5getCounterPosition | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Implementation of the GetCounterPosition (Target, CounterPositionVar) action of the stream class. The effect of this action is to put the position of the display counter into the counter position variable. GetCounterPosition (CounterPositionVar) Get the current position within a stream. Execute the following sequence of actions:
target | target object for this action |
params | Function parameter |
MHEG5ErrorCode MHEG5setCounterEndPosition | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Implementation of the SetCounterEndPosition (Target, NewPosition) action of the stream class. The effect of this action is to set the end position of the display counter to a new value. If the actual counter position of the stream is already beyond the new given counter position, the stream is stopped. SetCounterEndPosition (NewCounterEndPosition) Change the end position of a stream. Execute the following sequence of actions:
target | target object for this action |
params | Function parameter |
MHEG5ErrorCode MHEG5setCounterPosition | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
The effect of this action is to set the display counter to a new position. Implementation of the SetCounterPosition (Target, NewCounterPosition) action of the stream class. SetCounterPosition (NewCounterPosition) Change the current position within a stream. Execute the following sequence of actions:
target | target object for this action |
params | Function parameter |
MHEG5ErrorCode MHEG5setCounterTrigger | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
The effect of this action is to update the list of CounterTriggers for a Stream object SetCounterTrigger (TriggerIdentifier, NewCounterValue) Implementation of the SetCounterTrigger (TriggerIdentifier, NewCounterValue) action of the stream class. Update the list of CounterTriggers of a Stream object. Execute the following sequence of actions:
target | target object for this action |
params | Function parameter |
MHEG5ErrorCode MHEG5setSpeed | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
The effect of this action is to change the speed in which the stream is displayed. Implementation of the SetSpeed (Target, NewSpeed) action of the stream class. SetSpeed (NewSpeed) Change the presentation speed of a stream. Execute the following sequence of actions:
target | target object for this action |
params | Function parameter |
void MHEG5streamActivate | ( | MHEG5Stream * | stream | ) |
Apply the activation behaviour of the stream class. Execute the following sequence of actions:
stream | Stream instance. |
void MHEG5streamClearCurrentService | ( | void | ) |
Clear the current service.
void MHEG5streamContentAdapt | ( | MHEG5Stream * | stream, |
S_CONTENT * | content | ||
) |
Adapt new content for Stream objects. Content is either a DSM-CC stream object, a DVB URL or an MPEG2 audio file.
stream | Stream object that content is for. |
content | New content. |
void MHEG5streamContentClear | ( | MHEG5Stream * | stream | ) |
Clear content for Stream objects.
stream | Stream object that content is for. |
void MHEG5streamDeactivate | ( | MHEG5Stream * | stream | ) |
Apply the deactivation behaviour of the stream class. Execute the following sequence of actions:
stream | Stream instance. |
void MHEG5streamDestruct | ( | MHEG5Stream * | stream | ) |
Destruct a stream object. Execute the following sequence of actions:
stream | Stream instance. |
void MHEG5streamFindCurrentService | ( | void | ) |
Find the current service (i.e. the service corresponding to the currently running Video, Audio or RTGraphics object, in that order of priority).
void MHEG5streamFree | ( | MHEG5Stream * | stream | ) |
Free off all memory associated with the specified object, including any exchanged attributes and internal data. The data holding the object itself is not freed.
stream | Pointer to object to free. |
MHEG5Int MHEG5streamGetComponentTag | ( | MHEG5Ingredient * | item | ) |
Get component tag for ingredient. This depends on the stream's content and the component tag of the ingredient.
item | The item whose component tag we're seeking. |
MHEG5Bool MHEG5streamGetCurrentService | ( | S_DVB_LOCATOR * | multiplexRef | ) |
Return the current service (i.e. the service corresponding to the currently running Video, Audio or RTGraphics object (in that order of priority). The is the service referred to by the rec://svc/cur URL.
multiplexRef | Multiplex reference for the current service |
void MHEG5streamInit | ( | MHEG5Stream * | stream | ) |
Debug function.
Initialise a stream object with default values.
stream | Stream instance. |
out | Buffer. |
stream | Pointer to object to initialise |
void MHEG5streamPrepare | ( | MHEG5Stream * | stream | ) |
Apply the preparation behaviour of the stream class.
stream | Stream instance. |
void MHEG5streamSetCurrentService | ( | MHEG5Ingredient * | item, |
S_DvbComponent * | service | ||
) |
Set the current service.
item | The item to which this service is related. |
service | Multiplex reference for the current service. |