summaryrefslogtreecommitdiff
path: root/libavutil/base64.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary libavutil/(avutil|common|internal).h inclusionsAndreas Rheinhardt2022-02-241-2/+4
| | | | | | | | | | Some of these were made possible by moving several common macros to libavutil/macros.h. While just at it, also improve the other headers a bit. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/base64: Fix undefined NULL + 0Andreas Rheinhardt2021-04-011-2/+7
| | | | | | Affected the base64 FATE test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis2016-05-111-107/+0
|\ | | | | | | | | | | | | | | * commit 'd12b5b2f135aade4099f4b26b0fe678656158c13': build: Split test programs off into separate files Some conversions done by: James Almer <jamrial@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * build: Split test programs off into separate filesDiego Biurrun2016-04-071-65/+0
| | | | | | | | | | This avoids spurious library rebuilds when only the test program code is changed and simplifies the build system.
* | Merge commit 'fb0c9d41d685abb58575c5482ca33b8cd457c5ec'Michael Niedermayer2014-01-261-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | * commit 'fb0c9d41d685abb58575c5482ca33b8cd457c5ec': avutil: remove timer.h include from internal.h Conflicts: libavcodec/ffv1dec.c libavutil/internal.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * base64-test: Remove posibility of returning restricted exit codesDerek Buitenhuis2013-10-251-1/+4
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | base64-test: Remove posibility of returning restrcted exit codesDerek Buitenhuis2013-10-241-1/+4
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | lavu/base64: return meaningful error code.Nicolas George2013-01-051-1/+1
| |
* | Merge commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967'Michael Niedermayer2012-12-051-2/+0
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967': Remove pointless #undefs of previously forbidden functions. fate: Add dependencies for bmp, cdxl, dfa, mp3 Conflicts: doc/examples/muxing.c libavfilter/filtfmts.c libavutil/des.c libavutil/eval.c libavutil/log.c libavutil/parseutils.c tests/fate/mp3.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove pointless #undefs of previously forbidden functions.Anton Khirnov2012-12-041-2/+0
| |
| * base64: fix signed overflow in shiftMans Rullgard2012-11-261-2/+2
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* | base64: 10l endian fix.Michael Niedermayer2012-01-221-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Optimized base64 decode by writing 3 bytes at once.Reimar Döffinger2012-01-221-13/+23
| | | | | | | | | | | | | | | | About 25% faster. decode: 248852 -> 200385 decicycles (syntax check unchanged) Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Cosmetics: add do {} while 0 to macro.Reimar Döffinger2012-01-221-12/+13
| | | | | | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Unroll base64 decode loop.Reimar Döffinger2012-01-211-13/+36
| | | | | | | | | | | | | | | | Around 50% faster. decode: 374139 -> 248852 decicycles syntax check: 236955 -> 123854 decicycles Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Use a full table for base64 decode.Reimar Döffinger2012-01-211-8/+35
| | | | | | | | | | | | | | | | | | Also encodes error or end marker into table. About 20% faster. decode: 466491 -> 374139 decicycles syntax check: 236955 -> 161182 decicycles Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | base64: more thorough decode tests.Reimar Döffinger2012-01-211-1/+20
| | | | | | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | base64: Only run benchmark when "-t" is specified.Michael Niedermayer2012-01-211-16/+18
| | | | | | | | | | | | | | | | As the test is run during fate and the benchmark is useless for fate this very slightly speeds up fate. Its also consistent with the other tests. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | base64: fix little typoMichael Niedermayer2012-01-211-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | base64: add a benchmark for a pure syntax check.Michael Niedermayer2012-01-211-0/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | base64: simplify end handling in av_base64_encode()Michael Niedermayer2012-01-211-6/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | base64: optimize av_base64_encode()Michael Niedermayer2012-01-211-0/+10
| | | | | | | | | | | | This makes the code 2-3 times as fast Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | base64: add benchmarkMichael Niedermayer2012-01-211-0/+13
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Slightly optimize base64 encode.Reimar Döffinger2012-01-201-1/+3
| | | | | | | | | | | | Move handling of last byte outside of innermost loop. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Optimize output buffer size check in base64 decode.Reimar Döffinger2012-01-201-1/+2
| | | | | | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Minor optimization of base64 decode.Reimar Döffinger2012-01-201-3/+5
| | | | | | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Add coverage exclusions for test code.Reimar Döffinger2011-12-051-0/+2
|/ | | | | | | | For some of the code e.g. doing timing measurements there is no real point in running regression testing on it, thus it should not be counted against coverage. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* Use AV_BASE64_SIZE() macroHoward Chu2010-06-041-1/+1
| | | | Originally committed as revision 23462 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark non-exported functions in test and example programs as static.Diego Biurrun2009-03-311-1/+2
| | | | Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: "* out" -> "*out" for consistency with the otherStefano Sabatini2009-02-081-1/+1
| | | | | | parameters. Originally committed as revision 17072 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: rename the "size" parameter of av_base64_encode() to "in_size".Stefano Sabatini2009-02-081-4/+4
| | | | Originally committed as revision 17071 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: prefer out/in over buf/src for the parameter names ofStefano Sabatini2009-02-081-4/+4
| | | | | | av_base64_encode(), for consistency/readability reasons. Originally committed as revision 17069 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: consistently prefer "size" over "len"/"length" for theStefano Sabatini2009-02-081-6/+6
| | | | | | variable names. Originally committed as revision 17067 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_base64_encode() do not require the user to provide anStefano Sabatini2009-02-081-1/+1
| | | | | | | | | overallocated buffer where to put the encoded string. See the thread: "[PATCH] Improve documentation for libavutil/base64.h". Originally committed as revision 17065 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a new test program for base64, based on that removed in r17024.Stefano Sabatini2009-02-061-0/+63
| | | | | | | See the thread: "[PATCH] remove unused and broken test program in libavutil/base64.c". Originally committed as revision 17025 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove broken test program.Stefano Sabatini2009-02-061-126/+0
| | | | Originally committed as revision 17024 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-011-1/+1
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* spelling/grammar/consistency review part IIDiego Biurrun2009-01-281-6/+5
| | | | Originally committed as revision 16848 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make base64 test program compilable as a standard test program.Diego Biurrun2009-01-211-5/+4
| | | | Originally committed as revision 16713 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add void keyword to parameterless function declaration.Diego Biurrun2009-01-211-1/+1
| | | | Originally committed as revision 16712 to svn://svn.ffmpeg.org/ffmpeg/trunk
* uses FF_ARRAY_ELEMS() where appropriateAurelien Jacobs2008-10-211-1/+1
| | | | Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unnecessary parentheses from return calls.Diego Biurrun2008-05-061-1/+1
| | | | Originally committed as revision 13069 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a couple of missing consts.Sigbjørn Skjæret2008-01-141-1/+1
| | | | | | patch by Sigbjørn Skjæret, cisc broadpark no Originally committed as revision 11528 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent the code after last commitLuca Abeni2007-11-081-12/+12
| | | | Originally committed as revision 10958 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove redundant "if(len)"Luca Abeni2007-11-081-2/+0
| | | | Originally committed as revision 10957 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark the source buffer as "const"Luca Abeni2007-10-301-1/+1
| | | | Originally committed as revision 10877 to svn://svn.ffmpeg.org/ffmpeg/trunk
* expose av_base64_decode and av_base64_encodeLuca Barbato2007-03-191-5/+4
| | | | Originally committed as revision 8448 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reverting stray commit part II, r8156 had the base64 export patch mixed with ↵Luca Barbato2007-02-281-0/+231
| | | | | | the nutdec patch Originally committed as revision 8158 to svn://svn.ffmpeg.org/ffmpeg/trunk