Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
ffd31cfe
Commit
ffd31cfe
authored
14 years ago
by
Måns Rullgård
Browse files
Options
Downloads
Patches
Plain Diff
base64: improve documentation
Originally committed as revision 23905 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
49bd8e4b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavutil/base64.h
+13
-13
13 additions, 13 deletions
libavutil/base64.h
with
13 additions
and
13 deletions
libavutil/base64.h
+
13
−
13
View file @
ffd31cfe
...
@@ -24,25 +24,25 @@
...
@@ -24,25 +24,25 @@
#include
<stdint.h>
#include
<stdint.h>
/**
/**
* Decode the base64-encoded string in in and put the decoded
* Decode a base64-encoded string.
* data in out.
*
*
* @param out_size size in bytes of the out buffer, it should be at
* @param out buffer for decoded data
* least 3/4 of the length of in
* @param in null-terminated input string
* @return the number of bytes written, or a negative value in case of
* @param out_size size in bytes of the out buffer, must be at
* error
* least 3/4 of the length of in
* @return number of bytes written, or a negative value in case of
* invalid input
*/
*/
int
av_base64_decode
(
uint8_t
*
out
,
const
char
*
in
,
int
out_size
);
int
av_base64_decode
(
uint8_t
*
out
,
const
char
*
in
,
int
out_size
);
/**
/**
* Encode in base64 the data in in and put the resulting string
* Encode data to base64 and null-terminate.
* in out.
*
*
* @param out
_size size in bytes of the out string, it should be
at
* @param out
buffer for encoded d
at
a
*
least ((in_size + 2) / 3) * 4 + 1
*
@param out_size size in bytes of the output buffer, must be at
*
@param in_size size in bytes of the in buffer
*
least AV_BASE64_SIZE(in_size)
* @
return the string containing the encoded data, or NULL in case of
* @
param in_size size in bytes of the 'in' buffer
* error
*
@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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment