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

Go to the source code of this file.

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

Definition in file stmr_header.c.

Macro Definition Documentation

#define DBG (   x)

Definition at line 39 of file stmr_header.c.

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

Definition at line 119 of file stmr_header.c.

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

Definition at line 277 of file stmr_header.c.

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

Definition at line 249 of file stmr_header.c.

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

Definition at line 237 of file stmr_header.c.