summaryrefslogtreecommitdiffstats
path: root/libavutil/base64.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Reverting stray commit part ILuca Barbato2007-02-281-234/+0
| | | | Originally committed as revision 8157 to svn://svn.ffmpeg.org/ffmpeg/trunk
* get_packetheader() forgot to read the header_checksum in big packetsLuca Barbato2007-02-281-12/+15
| | | | | | | patch from Clemens Ladisch cladisch AT fastmail dot net (stray base64 patch reverted in the next commits) Originally committed as revision 8156 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move base64.[ch] to libavutil.Carl Eugen Hoyos2007-02-131-0/+231
patch by Carl Eugen Hoyos, cehoyos ag.or at Originally committed as revision 7963 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud