![]() |
MHEG5
22.11.0
|
API for IC streamer. More...
Go to the source code of this file.
Functions | |
E_MhegErr | MHEG5StreamerOpen (void *buffer, U32BIT size, U32BIT taskPriority) |
Open the IC streaming module. More... | |
void | MHEG5StreamerReset (void) |
Reset the IC streaming module. More... | |
void | MHEG5StreamerPrepare (MHEG5Stream *stream) |
Prepare for retrieval of a stream from the IP connection. More... | |
S32BIT | MHEG5StreamerGetCounterPosition (MHEG5Stream *stream) |
Return the current counter position (in units of 188 bytes). More... | |
void | MHEG5StreamerSetCounterPosition (MHEG5Stream *stream) |
Set the counter position of a stream in the streamer. This function uses the counter position as set in the stream object. More... | |
void | MHEG5StreamerSetCounterEndPosition (MHEG5Stream *stream) |
Set the counter end position of a stream in the streamer. This function uses the counter end position as set in the stream object. More... | |
S32BIT | MHEG5StreamerGetCounterMaxPosition (MHEG5Stream *stream) |
Return the counter maximum position (content length in units of 188 bytes). More... | |
void | MHEG5StreamerSetCounterTrigger (MHEG5Stream *stream, S32BIT triggerId, S32BIT newValue) |
Add, remove or update a counter trigger for the stream. If the trigger does not exist, it will be added. If it already exists it will be updated if the new value is non-negative, otherwise it will be removed. More... | |
void | MHEG5StreamerRun (MHEG5Stream *stream) |
Start streaming IP content for a prepared request. More... | |
void | MHEG5StreamerStop (MHEG5Stream *stream) |
Stop streaming IP content. More... | |
void | MHEG5StreamerPause (MHEG5Stream *stream) |
Pause IP content streaming. More... | |
void | MHEG5StreamerResume (MHEG5Stream *stream) |
Resume IP content streaming after it was paused by MHEG5StreamerPause. More... | |
BOOLEAN | MHEG5StreamerIsRunable (MHEG5Stream *stream) |
Check that stream is runable (i.e. MHEG5StreamerPrepare has been called for it) More... | |
void | MHEG5StreamerRemove (MHEG5Stream *stream) |
Remove streaming IP request. More... | |
void | MHEG5StreamerNotifyStreamStarted (MHEG5Stream *stream) |
Notify that a stream has started. This notification comes from the audio/video deocder. More... | |
void | MHEG5StreamerNotifyStreamStopped (MHEG5Stream *stream) |
Notify that a stream has stopped. This notification comes from the audio/video deocder. More... | |
void | MHEG5StreamerMeasurePerformance (MHEG5String *url, MHEG5Int maxBytes, MHEG5Program *program) |
Measure streaming performance (bytes per second). The result is returned to the resident program. More... | |
void | MHEG5StreamerAbortMeasurement (MHEG5Program *program) |
Abort streaming performance measurement. More... | |
void | MHEG5StreamerSetActiveState (BOOLEAN activeState) |
Set the active state of the streamer. When it is not active, it is allowed to buffer data but not to send it to the external application. More... | |
void | MHEG5StreamerClose (void) |
Close the IC streaming module. More... | |
void | MHEG5streamerNotifyStreamingReady (void) |
Handle notification that the external application is ready to handle IP stream data. More... | |
void | MHEG5StreamerRefresh (void) |
Refresh any running IC streams - called when user preferences have changed. More... | |
API for IC streamer.
void MHEG5StreamerAbortMeasurement | ( | MHEG5Program * | program | ) |
Abort streaming performance measurement.
program | Running program object |
void MHEG5StreamerClose | ( | void | ) |
Close the IC streaming module.
S32BIT MHEG5StreamerGetCounterMaxPosition | ( | MHEG5Stream * | stream | ) |
Return the counter maximum position (content length in units of 188 bytes).
stream | Stream object to use |
S32BIT MHEG5StreamerGetCounterPosition | ( | MHEG5Stream * | stream | ) |
Return the current counter position (in units of 188 bytes).
stream | Stream object to use |
BOOLEAN MHEG5StreamerIsRunable | ( | MHEG5Stream * | stream | ) |
Check that stream is runable (i.e. MHEG5StreamerPrepare has been called for it)
stream | Stream object to use |
void MHEG5StreamerMeasurePerformance | ( | MHEG5String * | url, |
MHEG5Int | maxBytes, | ||
MHEG5Program * | program | ||
) |
Measure streaming performance (bytes per second). The result is returned to the resident program.
url | URL to use for performance estimates |
maxBytes | Maximum number of bytes to fetch |
program | Program object to receive the measured speed |
void MHEG5streamerNotifyStreamingReady | ( | void | ) |
Handle notification that the external application is ready to handle IP stream data.
void MHEG5StreamerNotifyStreamStarted | ( | MHEG5Stream * | stream | ) |
Notify that a stream has started. This notification comes from the audio/video deocder.
stream | Stream object |
void MHEG5StreamerNotifyStreamStopped | ( | MHEG5Stream * | stream | ) |
Notify that a stream has stopped. This notification comes from the audio/video deocder.
stream | Stream object |
E_MhegErr MHEG5StreamerOpen | ( | void * | buffer, |
U32BIT | size, | ||
U32BIT | taskPriority | ||
) |
Open the IC streaming module.
buffer | Buffer to use for content buffering |
size | Size of buffer in bytes |
taskPriority | Streamer task priority |
void MHEG5StreamerPause | ( | MHEG5Stream * | stream | ) |
Pause IP content streaming.
stream | Stream object to pause |
void MHEG5StreamerPrepare | ( | MHEG5Stream * | stream | ) |
Prepare for retrieval of a stream from the IP connection.
stream | Stream object to prepare |
void MHEG5StreamerRefresh | ( | void | ) |
Refresh any running IC streams - called when user preferences have changed.
void MHEG5StreamerRemove | ( | MHEG5Stream * | stream | ) |
Remove streaming IP request.
stream | Stream object to remove |
void MHEG5StreamerReset | ( | void | ) |
Reset the IC streaming module.
void MHEG5StreamerResume | ( | MHEG5Stream * | stream | ) |
Resume IP content streaming after it was paused by MHEG5StreamerPause.
stream | Stream object to resume |
void MHEG5StreamerRun | ( | MHEG5Stream * | stream | ) |
Start streaming IP content for a prepared request.
stream | Stream object to run |
void MHEG5StreamerSetActiveState | ( | BOOLEAN | activeState | ) |
Set the active state of the streamer. When it is not active, it is allowed to buffer data but not to send it to the external application.
activeState | Active state (TRUE=active, FALSE=inactive) |
void MHEG5StreamerSetCounterEndPosition | ( | MHEG5Stream * | stream | ) |
Set the counter end position of a stream in the streamer. This function uses the counter end position as set in the stream object.
stream | Stream object to use |
void MHEG5StreamerSetCounterPosition | ( | MHEG5Stream * | stream | ) |
Set the counter position of a stream in the streamer. This function uses the counter position as set in the stream object.
stream | Stream object to use |
void MHEG5StreamerSetCounterTrigger | ( | MHEG5Stream * | stream, |
S32BIT | triggerId, | ||
S32BIT | newValue | ||
) |
Add, remove or update a counter trigger for the stream. If the trigger does not exist, it will be added. If it already exists it will be updated if the new value is non-negative, otherwise it will be removed.
stream | Stream object to use |
triggerId | Counter trigger identifier |
newValue | New trigger value, negative to remove the trigger |
void MHEG5StreamerStop | ( | MHEG5Stream * | stream | ) |
Stop streaming IP content.
stream | Stream object to stop |