|
xine-lib
1.2.10
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <inttypes.h>#include <xine/xineutils.h>Data Structures | |
| struct | xine_buffer_header_t |
Macros | |
| #define | LOG_MODULE "xine_buffer" |
| #define | LOG_VERBOSE |
| #define | CHECKS |
| #define | XINE_BUFFER_HEADER_SIZE 9 |
| #define | XINE_BUFFER_MAGIC 42 |
| #define | CHECK_MAGIC(x, r) |
| #define | GET_HEADER(x) ((xine_buffer_header_t*)(((uint8_t*)x)-XINE_BUFFER_HEADER_SIZE)) |
| #define | GET_HEADER_CONST(x) ((const xine_buffer_header_t *)(((const uint8_t *)x)-XINE_BUFFER_HEADER_SIZE)) |
| #define | GROW_TO(buf, to_size) |
| #define | xine_buffer_free(buf) buf=_xine_buffer_free(buf) |
| #define | xine_buffer_copyin(buf, i, data, len) buf=_xine_buffer_copyin(buf,i,data,len) |
| #define | xine_buffer_set(buf, i, b, len) buf=_xine_buffer_set(buf,i,b,len) |
| #define | xine_buffer_strcat(buf, data) buf=_xine_buffer_strcat(buf,data) |
| #define | xine_buffer_strcpy(buf, index, data) buf=_xine_buffer_strcpy(buf,index,data) |
| #define | xine_buffer_ensure_size(buf, data) buf=_xine_buffer_ensure_size(buf,data) |
Functions | |
| void * | xine_buffer_init (int chunk_size) |
| void * | _xine_buffer_free (void *buf) |
| void * | xine_buffer_dup (const void *buf) |
| void * | _xine_buffer_copyin (void *buf, int index, const void *data, int len) |
| void | xine_buffer_copyout (const void *buf, int index, void *data, int len) |
| void * | _xine_buffer_set (void *buf, int index, uint8_t b, int len) |
| void * | _xine_buffer_strcat (void *buf, const char *data) |
| void * | _xine_buffer_strcpy (void *buf, int index, const char *data) |
| char * | xine_buffer_strchr (const void *buf, int ch) |
| int | xine_buffer_get_size (const void *buf) |
| void * | _xine_buffer_ensure_size (void *buf, int size) |
| #define CHECK_MAGIC | ( | x, | |
| r | |||
| ) |
| #define CHECKS |
| #define GET_HEADER | ( | x | ) | ((xine_buffer_header_t*)(((uint8_t*)x)-XINE_BUFFER_HEADER_SIZE)) |
| #define GET_HEADER_CONST | ( | x | ) | ((const xine_buffer_header_t *)(((const uint8_t *)x)-XINE_BUFFER_HEADER_SIZE)) |
| #define GROW_TO | ( | buf, | |
| to_size | |||
| ) |
| #define LOG_MODULE "xine_buffer" |
| #define LOG_VERBOSE |
| #define xine_buffer_copyin | ( | buf, | |
| i, | |||
| data, | |||
| len | |||
| ) | buf=_xine_buffer_copyin(buf,i,data,len) |
| #define xine_buffer_ensure_size | ( | buf, | |
| data | |||
| ) | buf=_xine_buffer_ensure_size(buf,data) |
| #define xine_buffer_free | ( | buf | ) | buf=_xine_buffer_free(buf) |
| #define XINE_BUFFER_HEADER_SIZE 9 |
| #define XINE_BUFFER_MAGIC 42 |
| #define xine_buffer_set | ( | buf, | |
| i, | |||
| b, | |||
| len | |||
| ) | buf=_xine_buffer_set(buf,i,b,len) |
| #define xine_buffer_strcat | ( | buf, | |
| data | |||
| ) | buf=_xine_buffer_strcat(buf,data) |
| #define xine_buffer_strcpy | ( | buf, | |
| index, | |||
| data | |||
| ) | buf=_xine_buffer_strcpy(buf,index,data) |
| void* _xine_buffer_copyin | ( | void * | buf, |
| int | index, | ||
| const void * | data, | ||
| int | len | ||
| ) |
References CHECK_MAGIC, GROW_TO, lprintf, NULL, and xine_fast_memcpy.
| void* _xine_buffer_ensure_size | ( | void * | buf, |
| int | size | ||
| ) |
References CHECK_MAGIC, GROW_TO, and lprintf.
| void* _xine_buffer_free | ( | void * | buf | ) |
References CHECK_MAGIC, lprintf, NULL, and XINE_BUFFER_HEADER_SIZE.
| void* _xine_buffer_set | ( | void * | buf, |
| int | index, | ||
| uint8_t | b, | ||
| int | len | ||
| ) |
References CHECK_MAGIC, GROW_TO, lprintf, and NULL.
| void* _xine_buffer_strcat | ( | void * | buf, |
| const char * | data | ||
| ) |
References _xine_buffer_strcpy().
| void* _xine_buffer_strcpy | ( | void * | buf, |
| int | index, | ||
| const char * | data | ||
| ) |
References CHECK_MAGIC, GROW_TO, lprintf, and NULL.
Referenced by _xine_buffer_strcat().
| void xine_buffer_copyout | ( | const void * | buf, |
| int | index, | ||
| void * | data, | ||
| int | len | ||
| ) |
References CHECK_MAGIC, GET_HEADER_CONST, lprintf, and xine_fast_memcpy.
| void* xine_buffer_dup | ( | const void * | buf | ) |
References CHECK_MAGIC, GET_HEADER_CONST, lprintf, NULL, XINE_BUFFER_HEADER_SIZE, and xine_fast_memcpy.
| int xine_buffer_get_size | ( | const void * | buf | ) |
References CHECK_MAGIC, GET_HEADER_CONST, and lprintf.
| void* xine_buffer_init | ( | int | chunk_size | ) |
References xine_buffer_header_t::chunk_size, xine_buffer_header_t::magic, NULL, xine_buffer_header_t::size, XINE_BUFFER_HEADER_SIZE, and XINE_BUFFER_MAGIC.
Referenced by deinterlace_init_plugin(), open_plugin(), real_parse_sdp(), real_setup_and_get_header(), rtsp_session_start(), sdpplin_parse(), and sdpplin_parse_stream().
| char* xine_buffer_strchr | ( | const void * | buf, |
| int | ch | ||
| ) |
References CHECK_MAGIC, lprintf, and NULL.
1.8.17