FFmpeg
Macros | Functions | Variables
base64.c File Reference

Base64 encode/decode. More...

#include <limits.h>
#include <stddef.h>
#include "base64.h"
#include "error.h"
#include "intreadwrite.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. More...
 
char * av_base64_encode (char *out, int out_size, const uint8_t *in, int in_size)
 Encode data to base64 and null-terminate. More...
 

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

◆ BASE64_DEC_STEP

#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 74 of file base64.c.

Variable Documentation

◆ map2

const uint8_t map2[256]
static

Definition at line 35 of file base64.c.

out
FILE * out
Definition: movenc.c:55
bits
uint8_t bits
Definition: vp3data.h:128
map2
static const uint8_t map2[256]
Definition: base64.c:35
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256