annotate base64.h @ 1577:49ae08e69d64 libavformat

RFC 6: Overall cleanups again. - License should be fixed now (finally) - Added doxygen comments - Cleaned up the X11Grab structure - Renamed X11Grab structure to x11_grab_s - Changed some Java stylish named functions to more C'stylish ones - Changed order of some parameters so they are more libc alike with destination as first parameter - Use AVRational where relevant - Fixed time calculation - Cleaned up a few little tiny things around the sources + removed a goto + removed unused vars + etc...
author gpoirier
date Tue, 12 Dec 2006 22:32:12 +0000
parents 3216308a69ee
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1426
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
1 /*
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
2 * Base64.c
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
3 * Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com)
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
4 *
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
5 * This file is part of FFmpeg.
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
6 *
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
11 *
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
15 * Lesser General Public License for more details.
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
16 *
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
20 */
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
21
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
22 int av_base64_decode(uint8_t * out, const char *in, int out_length); // param order as strncpy()
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
23 char *av_base64_encode(uint8_t * src, int len); // src is not a string, it's data.
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
24