MHEG5  18.9.0
MHEG5 Documentation
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"

Go to the source code of this file.

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

Definition in file stmr_task.c.

Macro Definition Documentation

#define DBG (   x)

Definition at line 56 of file stmr_task.c.

#define LOOK_AHEAD_DIFF   1000

Definition at line 44 of file stmr_task.c.

#define LOOK_AHEAD_THRESHOLD   2500

Definition at line 53 of file stmr_task.c.

#define PDBG (   x)    TRACE(TICS, x)

Definition at line 55 of file stmr_task.c.

Enumeration Type Documentation

enum TaskState
Enumerator
TASK_RUNNING 
TASK_STOP_REQUEST 
TASK_STOPPED 

Definition at line 61 of file stmr_task.c.

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

Definition at line 136 of file stmr_task.c.

void MHEG5StreamerSendSignalToTask ( void  )

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

Returns
Nothing

Definition at line 122 of file stmr_task.c.

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

Definition at line 92 of file stmr_task.c.

void MHEG5StreamerStopTask ( void  )

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

Returns
void

Definition at line 145 of file stmr_task.c.