Base64 encode/decode.
More...
#include "common.h"
#include "base64.h"
#include "intreadwrite.h"
#include "timer.h"
|
| #define | BASE64_DEC_STEP(i) |
| |
|
| 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...
|
| |
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)
§ 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)