MHEG5  15.3.0
source/ics/src/stmr_header.h File Reference

IC Streamer http header parser. More...

#include "techtype.h"
#include "httptype.h"
#include "dvb_ics.h"
#include "stmr_util.h"

Go to the source code of this file.

Data Structures

struct  S_ICSPidInfo
struct  S_ICSKeys

Functions

void MHEG5parseStreamKeys (U8BIT *data, U16BIT len, S_ICSKeys *keys)
 Parse IC stream keys. These keys are delivered in the HTTP headers or in a separate file.
void MHEG5ParseXKeys (U8BIT *data, U32BIT len, S_ICSKeys *keys)
 Parse "X-Keys" header and return the key information. If the keys cannot be parsed, keys->num_pids will be zero.
void MHEG5ParseXKeyLocation (U8BIT *data, U32BIT len, MHEG5String *keyLocation)
 Parse "X-KeyLocation" header and return the key location.
void MHEG5ParseXBytesPerSecond (U8BIT *data, U32BIT len, U32BIT *bytesPerSecond, BOOLEAN *knownBitrate)
 Parse "X-BytesPerSecond" header and return its value.

Detailed Description

IC Streamer http header parser.

Date:
21/10/2010
Author:
Omri Barel

Function Documentation

void MHEG5parseStreamKeys ( U8BIT *  data,
U16BIT  len,
S_ICSKeys keys 
)

Parse IC stream keys. These keys are delivered in the HTTP headers or in a separate file.

Parameters:
dataBuffer data to parse
lenLength of data in bytes
keysParsed stream keys
Returns:
Nothing
void MHEG5ParseXBytesPerSecond ( U8BIT *  data,
U32BIT  len,
U32BIT *  bytesPerSecond,
BOOLEAN *  knownBitrate 
)

Parse "X-BytesPerSecond" header and return its value.

Parameters:
dataBeginning of field data in header
lenSize of header data in bytes
bytesPerSecondBytes per second
knownBitrateWhether bitrate is known (i.e. field was parsed)
Returns:
Nothing
void MHEG5ParseXKeyLocation ( U8BIT *  data,
U32BIT  len,
MHEG5String keyLocation 
)

Parse "X-KeyLocation" header and return the key location.

Parameters:
dataBeginning of field data in header
lenSize of header data in bytes
keyLocationKey location
Returns:
Nothing
void MHEG5ParseXKeys ( U8BIT *  data,
U32BIT  len,
S_ICSKeys keys 
)

Parse "X-Keys" header and return the key information. If the keys cannot be parsed, keys->num_pids will be zero.

Parameters:
dataBeginning of field data in header
lenSize of header data in bytes
keysKeys information
Returns:
Nothing
 All Data Structures Files Functions Variables Typedefs Defines