Revision bf7e799c libavutil/base64.h

View differences:

libavutil/base64.h
24 24
#include <stdint.h>
25 25

  
26 26
/**
27
 * Decodes the base64-encoded string in \p in and puts the decoded
28
 * data in \p out.
27
 * Decodes the base64-encoded string in in and puts the decoded
28
 * data in out.
29 29
 *
30
 * @param out_size size in bytes of the \p out buffer, it should be at
31
 * least 3/4 of the length of \p in
30
 * @param out_size size in bytes of the out buffer, it should be at
31
 * least 3/4 of the length of in
32 32
 * @return the number of bytes written, or a negative value in case of
33 33
 * error
34 34
 */
35 35
int av_base64_decode(uint8_t *out, const char *in, int out_size);
36 36

  
37 37
/**
38
 * Encodes in base64 the data in \p in and puts the resulting string
39
 * in \p out.
38
 * Encodes in base64 the data in in and puts the resulting string
39
 * in out.
40 40
 *
41
 * @param out_size size in bytes of the \p out string, it should be at
42
 * least ((\p in_size + 2) / 3) * 4 + 1
43
 * @param in_size size in bytes of the \p in buffer
41
 * @param out_size size in bytes of the out string, it should be at
42
 * least ((in_size + 2) / 3) * 4 + 1
43
 * @param in_size size in bytes of the in buffer
44 44
 * @return the string containing the encoded data, or NULL in case of
45 45
 * error
46 46
 */

Also available in: Unified diff