Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
69d75dc4
Commit
69d75dc4
authored
Jan 01, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu/base64: extend/clarify doxy for the base64 API
Also improve overall consistency.
parent
49a78e6b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
base64.h
libavutil/base64.h
+7
-5
No files found.
libavutil/base64.h
View file @
69d75dc4
...
@@ -46,15 +46,17 @@ int av_base64_decode(uint8_t *out, const char *in, int out_size);
...
@@ -46,15 +46,17 @@ int av_base64_decode(uint8_t *out, const char *in, int out_size);
* Encode data to base64 and null-terminate.
* Encode data to base64 and null-terminate.
*
*
* @param out buffer for encoded data
* @param out buffer for encoded data
* @param out_size size in bytes of the output buffer, must be at
* @param out_size size in bytes of the out buffer (including the
* least AV_BASE64_SIZE(in_size)
* null terminator), must be at least AV_BASE64_SIZE(in_size)
* @param in_size size in bytes of the 'in' buffer
* @param in input buffer containing the data to encode
* @return 'out' or NULL in case of error
* @param in_size size in bytes of the in buffer
* @return out or NULL in case of error
*/
*/
char
*
av_base64_encode
(
char
*
out
,
int
out_size
,
const
uint8_t
*
in
,
int
in_size
);
char
*
av_base64_encode
(
char
*
out
,
int
out_size
,
const
uint8_t
*
in
,
int
in_size
);
/**
/**
* Calculate the output size needed to base64-encode x bytes.
* Calculate the output size needed to base64-encode x bytes to a
* null-terminated string.
*/
*/
#define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)
#define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment