MHEG5 1.0
DTVKit MHEG5 1.0 API Documentation
|
IC Streamer performance measurement. More...
#include <assert.h>
#include <string.h>
#include "stb_os.h"
#include "http_interface.h"
#include "glue_memory.h"
#include "glue_queue.h"
#include "mh5base.h"
#include "mh5profile.h"
#include "mh5streamer.h"
#include "stmr_msp.h"
#include "stmr_util.h"
#include "stmr_common.h"
Data Structures | |
struct | sMeasureRequest |
Macros | |
#define | MAX_MEASURE_SIZE (0x7fffffff) |
#define | USE_MAGIC |
#define | GOOD_MAGIC 0xdeadbeef |
#define | BAD_MAGIC 0xfefefefe |
#define | SET_MAGIC(r) do { r->magic = GOOD_MAGIC; } while (0) |
#define | VERIFY_MAGIC(r) assert(r->magic == GOOD_MAGIC) |
#define | CLEAR_MAGIC(r) do { r->magic = BAD_MAGIC; } while (0) |
#define | DBG(x) |
Typedefs | |
typedef struct sMeasureRequest | MeasureRequest |
Functions | |
U32BIT | MHEG5CreateMeasureRequest (U32BIT requestId, char *url, S32BIT maxBytes) |
Create HTTP streaming performance measurement request. More... | |
void | MHEG5StartMeasureRequest (U32BIT downloadId) |
Start HTTP streaming performance measurement request. More... | |
S32BIT | MHEG5GetMeasureResponseCode (U32BIT downloadId) |
Return response code for performance measurement request. More... | |
S32BIT | MHEG5GetMeasureStatus (U32BIT downloadId) |
Return HTTP status of performance measurement request. More... | |
U8BIT * | MHEG5GetMeasureRedirect (U32BIT downloadId) |
Return the redirection URL for a request that was redirected (HTTP status 3xx). More... | |
void | MHEG5ProcessMeasureRequest (U32BIT downloadId) |
Process HTTP streaming performance measurement request. More... | |
void | MHEG5StopMeasureRequest (U32BIT downloadId) |
Stop HTTP streaming performance measurement request. More... | |
void | MHEG5DestroyMeasureRequest (U32BIT downloadId) |
Destroy HTTP streaming performance measurement request. More... | |
IC Streamer performance measurement.
#define BAD_MAGIC 0xfefefefe |
#define CLEAR_MAGIC | ( | r | ) | do { r->magic = BAD_MAGIC; } while (0) |
#define DBG | ( | x | ) |
#define GOOD_MAGIC 0xdeadbeef |
#define MAX_MEASURE_SIZE (0x7fffffff) |
#define SET_MAGIC | ( | r | ) | do { r->magic = GOOD_MAGIC; } while (0) |
#define USE_MAGIC |
#define VERIFY_MAGIC | ( | r | ) | assert(r->magic == GOOD_MAGIC) |
typedef struct sMeasureRequest MeasureRequest |
Create HTTP streaming performance measurement request.
requestId | Request identifier |
url | URL for request |
maxBytes | Maximum number of bytes to use |
void MHEG5DestroyMeasureRequest | ( | U32BIT | downloadId | ) |
Destroy HTTP streaming performance measurement request.
downloadId | Download ID for Performance measurement request |
Return the redirection URL for a request that was redirected (HTTP status 3xx).
downloadId | Download ID for Performance measurement request |
Return response code for performance measurement request.
downloadId | Download ID for Performance measurement request |
Return HTTP status of performance measurement request.
downloadId | Download ID for Performance measurement request |
void MHEG5ProcessMeasureRequest | ( | U32BIT | downloadId | ) |
Process HTTP streaming performance measurement request.
downloadId | Download ID for Performance measurement request |
void MHEG5StartMeasureRequest | ( | U32BIT | downloadId | ) |
Start HTTP streaming performance measurement request.
downloadId | Download ID for Performance measurement request |
void MHEG5StopMeasureRequest | ( | U32BIT | downloadId | ) |
Stop HTTP streaming performance measurement request.
downloadId | Download ID for Performance measurement request |