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

IC Streamer http header parser. More...

#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <glue_memory.h>
#include "mh5parse.h"
#include "stmr_header.h"
#include "stmr_common.h"

Macros

#define DBG(x)
 

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. More...
 
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. More...
 
void MHEG5ParseXKeyLocation (U8BIT *data, U32BIT len, MHEG5String *keyLocation)
 Parse "X-KeyLocation" header and return the key location. More...
 
void MHEG5ParseXBytesPerSecond (U8BIT *data, U32BIT len, U32BIT *bytesPerSecond, BOOLEAN *knownBitrate)
 Parse "X-BytesPerSecond" header and return its value. More...
 

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