GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
base_encoding.c File Reference
#include <gpac/base_coding.h>
#include <gpac/constants.h>
#include <zlib.h>
+ Include dependency graph for base_encoding.c:

Macros

#define char64(c)   ((c > 127) ? (char) 0xff : index_64[(c)])
 
#define char16(nb)   (((nb) < 97) ? ((nb)-48) : ((nb)-87))
 
#define ZLIB_COMPRESS_SAFE   4
 

Functions

u32 gf_base64_encode (char *_in, u32 inSize, char *_out, u32 outSize)
 base64 encoder More...
 
u32 load_block (char *in, u32 size, u32 pos, char *out)
 
u32 gf_base64_decode (char *in_buf, u32 inSize, char *out, u32 outSize)
 base64 decoder More...
 
u32 gf_base16_encode (char *_in, u32 inSize, char *_out, u32 outSize)
 base16 encoder More...
 
u32 gf_base16_decode (char *in, u32 inSize, char *out, u32 outSize)
 base16 decoder More...
 
GF_Err gf_gz_compress_payload (char **data, u32 data_len, u32 *max_size)
 
GF_Err gf_gz_decompress_payload (char *data, u32 data_len, char **uncompressed_data, u32 *out_size)
 

Variables

static const char base_64 [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
 
static const unsigned char index_64 [128]
 
static const char base_16 [] = "0123456789abcdef"
 

Macro Definition Documentation

#define char64 (   c)    ((c > 127) ? (char) 0xff : index_64[(c)])
#define char16 (   nb)    (((nb) < 97) ? ((nb)-48) : ((nb)-87))
#define ZLIB_COMPRESS_SAFE   4

Function Documentation

u32 load_block ( char *  in,
u32  size,
u32  pos,
char *  out 
)

+ Here is the caller graph for this function:

Variable Documentation

const char base_64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
static
const unsigned char index_64[128]
static
Initial value:
= {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 62, 0xff, 0xff, 0xff, 63,
52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0xff, 0xff, 0xff, 0xff, 0xff
}
const char base_16[] = "0123456789abcdef"
static