#include <stdlib.h>#include <stdint.h>#include <string.h>

Go to the source code of this file.
Functions | |
| int | nms_base64_decode (uint8_t *out, const char *in, int out_length) |
| int | nms_hex_decode (uint8_t *out, const char *in, int out_length) |
| unsigned int | nms_xiphlacing (unsigned char *s, unsigned int v) |
| uint64_t | nms_consume_BE (uint8_t **buff, uint8_t n_bytes) |
| uint32_t | nms_consume_BE4 (uint8_t **buff) |
| uint32_t | nms_consume_BE3 (uint8_t **buff) |
| uint16_t | nms_consume_BE2 (uint8_t **buff) |
| int | nms_get_attr_value (char *attr, const char *param, char *v, int v_len) |
| int | nms_alloc_data (uint8_t **buf, long *cur_len, long new_len) |
| void | nms_append_data (uint8_t *dst, long offset, uint8_t *src, long len) |
| void | nms_append_incr (uint8_t *dst, long *offset, uint8_t *src, long len) |
Variables | |
| static const uint8_t | map2 [] |
Definition in file rtp_utils.c.
| int nms_alloc_data | ( | uint8_t ** | buf, | |
| long * | cur_len, | |||
| long | new_len | |||
| ) |
Auxiliar temporary buffer allocation procedures
Definition at line 192 of file rtp_utils.c.
Referenced by h263_parse(), and h264_parse().
| int nms_base64_decode | ( | uint8_t * | out, | |
| const char * | in, | |||
| int | out_length | |||
| ) |
decodes base64 param order as strncpy() Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com)
Definition at line 49 of file rtp_utils.c.
| int nms_get_attr_value | ( | char * | attr, | |
| const char * | param, | |||
| char * | v, | |||
| int | v_len | |||
| ) |
Looks for the value of a parameter within the attribute string returns the pointer to the value and its size
Definition at line 169 of file rtp_utils.c.
| int nms_hex_decode | ( | uint8_t * | out, | |
| const char * | in, | |||
| int | out_length | |||
| ) |
decodes hex strings param order as strncpy()
Definition at line 75 of file rtp_utils.c.
const uint8_t map2[] [static] |
Initial value:
{
0x3e, 0xff, 0xff, 0xff, 0x3f, 0x34, 0x35, 0x36,
0x37, 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01,
0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11,
0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1a, 0x1b,
0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22, 0x23,
0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b,
0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31, 0x32, 0x33
}
Definition at line 29 of file rtp_utils.c.
1.5.4