libavutil/base64.c File Reference

Base64 encode/decode. More...

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

Go to the source code of this file.


#define BASE64_DEC_STEP(i)


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.


static const uint8_t map2 [256]

Detailed Description

Base64 encode/decode.

Ryan Martell <> (with lots of Michael)

Definition in file base64.c.

Define Documentation

#define BASE64_DEC_STEP (  ) 


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

Definition at line 71 of file base64.c.

Referenced by av_base64_decode().

Variable Documentation

const uint8_t map2[256] [static]

Definition at line 32 of file base64.c.

Generated on Fri Oct 26 02:48:03 2012 for FFmpeg by  doxygen 1.5.8