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

IC Streeamer Task. More...

#include <assert.h>
#include <string.h>
#include "mh5debug.h"
#include "httptype.h"
#include "stb_os.h"
#include "dvb_ics.h"
#include "stmr_queue.h"
#include "stmr_common.h"

Macros

#define LOOK_AHEAD_DIFF   1000
 
#define LOOK_AHEAD_THRESHOLD   2500
 
#define PDBG(x)   TRACE(TICS, x)
 
#define DBG(x)
 

Enumerations

enum  TaskState { TASK_RUNNING, TASK_STOP_REQUEST, TASK_STOPPED }
 

Functions

E_MhegErr MHEG5StreamerStartTask (U32BIT stack, U8BIT priority)
 Start streamer task. The task passes stream data to the external application and generates stream and engine events for the MHEG-5 application. More...
 
void MHEG5StreamerSendSignalToTask (void)
 Send signal to streamer task to wake it up (if it's asleep) More...
 
void MHEG5StreamerRegisterUnderflowCallback (void(*callback)(U32BIT requestId, U32BIT playoutTime))
 Register notification callback for underflow events. If a callback is already registered for the event, it will be replaced. More...
 
void MHEG5StreamerStopTask (void)
 Stop streamer task. This function blocks until the task is stopped. More...
 

Detailed Description

IC Streeamer Task.

Date
21/10/2010
Author
Omri Barel

Function Documentation

void MHEG5StreamerRegisterUnderflowCallback ( void(*)(U32BIT requestId, U32BIT playoutTime)  callback)

Register notification callback for underflow events. If a callback is already registered for the event, it will be replaced.

Returns
Nothing
void MHEG5StreamerSendSignalToTask ( void  )

Send signal to streamer task to wake it up (if it's asleep)

Returns
Nothing
E_MhegErr MHEG5StreamerStartTask ( U32BIT  stack,
U8BIT  priority 
)

Start streamer task. The task passes stream data to the external application and generates stream and engine events for the MHEG-5 application.

Parameters
stackStack size for the task
priorityTask priority
Returns
E_MhegErr
void MHEG5StreamerStopTask ( void  )

Stop streamer task. This function blocks until the task is stopped.

Returns
void