FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
base64.c File Reference

Base64 encode/decode. More...

#include "common.h"
#include "base64.h"
#include "intreadwrite.h"
#include "timer.h"

Go to the source code of this file.

Macros

#define BASE64_DEC_STEP(i)
 

Functions

int av_base64_decode (uint8_t *out, const char *in_str, int out_size)
 Decode a base64-encoded string.
 
char * av_base64_encode (char *out, int out_size, const uint8_t *in, int in_size)
 Encode data to base64 and null-terminate.
 

Variables

static const uint8_t map2 [256]
 

Detailed Description

Base64 encode/decode.

Author
Ryan Martell rdm4@.nosp@m.mart.nosp@m.ellve.nosp@m.ntur.nosp@m.es.co.nosp@m.m (with lots of Michael)

Definition in file base64.c.

Macro Definition Documentation

#define BASE64_DEC_STEP (   i)
Value:
do { \
bits = map2[in[i]]; \
if (bits & 0x80) \
goto out ## i; \
v = i ? (v << 6) + bits : bits; \
} while(0)

Definition at line 72 of file base64.c.

Referenced by av_base64_decode().

Variable Documentation

const uint8_t map2[256]
static

Definition at line 33 of file base64.c.