summaryrefslogtreecommitdiff
path: root/libavutil/avstring.h
Commit message (Collapse)AuthorAgeFilesLines
* avutil: remove FF_API_D2STRJames Almer2023-02-091-9/+0
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/avstring: Add doxy for missing argumentMarvin Scholz2022-10-171-0/+1
|
* avutil/{avstring,bprint}: add XML escaping from ffprobe to avutilStefano Sabatini2021-03-051-0/+14
| | | | | | | | | | Base escaping only escapes values required for base character data according to part 2.4 of XML, and if additional flags are added single and double quotes can additionally be escaped in order to handle single and double quoted attributes. Co-authored-by: Jan Ekström <jan.ekstrom@24i.com> Signed-off-by: Jan Ekström <jan.ekstrom@24i.com>
* lavu/avstring: deprecate av_d2str().Nicolas George2020-08-211-0/+5
| | | | | It is no longer used in our code base and does not seem to be used much in other projects.
* avutil/avstring: support input path as a null pointer or empty stringLimin Wang2019-10-081-4/+9
| | | | | | | | | | | | | | | Linux and OSX systems support basename and dirname via <libgen.h>, I plan to make the wrapper interface conform to the standard interface first. If it is feasible, I will continue to modify it to call the system interface if there is already a system call interface. You can get more description about the system interface by below command: "man 3 basename" Reviewed-by: Marton Balint <cus@passwd.hu> Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Reviewed-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* lavu: add locale-independent sscanf implementationPaul B Mahol2018-11-161-0/+6
| | | | | | Copied and adopted from musl implementation. * converted all 'long double' to 'double' * removed %m support
* avutil/avstring: improve av_strreplace implementSteven Liu2017-04-111-1/+1
| | | | | | | | Use AVBprint to implement av_strreplace add av_strreplace test case TEST_STRREPLACE Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avutil/avstring: add av_strreplace API into avstringSteven Liu2017-04-011-0/+5
| | | | | | | refer to: http://creativeandcritical.net/str-replace-c add av_strreplace API for replace string operations. Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* fix some a/an typosLou Logan2016-03-281-1/+1
| | | | Signed-off-by: Lou Logan <lou@lrcd.com>
* avutil/avstring: add a "ALL" entry and the possibility to negate matches to ↵Michael Niedermayer2016-02-131-0/+5
| | | | | | | | | | av_match_name() This will extend the whitelist features to allow blacklisting individual protocols and to explicitly force everything to be enabled. Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/avstring: add av_warn_unused_resultGanesh Ajjanagadde2015-10-271-0/+2
| | | | | | This does not trigger any warnings, but adds robustness. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avutil/avstring: Inline some tiny functionsHenrik Gramner2015-09-261-4/+18
| | | | | They're short enough that inlining them actually reduces code size due to all the overhead associated with making a function call.
* lavu/avstring: switch AV_ESCAPE_FLAGs to shift-based formattingRodger Combs2015-09-151-2/+2
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavu/avstring: add av_append_path_component() funcionLukasz Marek2015-03-311-0/+10
| | | | | | Convinient function to build paths. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '4981baf9b803f3c4866b2e97fdadb008c62dc7ad'Michael Niedermayer2014-11-071-6/+6
|\ | | | | | | | | | | | | * commit '4981baf9b803f3c4866b2e97fdadb008c62dc7ad': avstring: Mark some character handling functions av_const Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avstring: Mark some character handling functions av_constHenrik Gramner2014-11-071-6/+6
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | avutil/avstring: Factor av_match_list() outMichael Niedermayer2014-10-021-0/+7
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '69e7336b8e16ee65226fc20381baf537f4b125e6'Michael Niedermayer2014-07-291-0/+8
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * commit '69e7336b8e16ee65226fc20381baf537f4b125e6': avstring: Expose the simple name match function Conflicts: libavutil/avstring.c libavutil/avstring.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avstring: Expose the simple name match functionLuca Barbato2014-07-291-0/+9
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | avutil/avstring: add av_strnlen()Michael Niedermayer2013-12-221-0/+14
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/avstring: add av_utf8_decode() functionStefano Sabatini2013-11-221-0/+40
| |
* | Merge commit 'efa7f4202088c70caba11d7834641bc6eaf41830'Michael Niedermayer2013-03-081-17/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'efa7f4202088c70caba11d7834641bc6eaf41830': Use the avstring.h locale-independent character type functions avstring: Add locale independent versions of some ctype.h functions Conflicts: avprobe.c doc/APIchanges libavcodec/dvdsubdec.c libavcodec/utils.c libavutil/avstring.c libavutil/avstring.h libavutil/eval.c libavutil/parseutils.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avstring: Add locale independent versions of some ctype.h functionsReimar Döffinger2013-03-071-0/+20
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | lavu: add escape APIStefano Sabatini2013-03-071-0/+42
| | | | | | | | | | | | | | | | The escape API will be useful to perform escaping programmatically, which is required when crafting argument strings, and will be used for context printing as well. This is based on the ffescape tool code, with a few extensions and fixes.
* | Remove incorrect use of ctype.h functions.Reimar Döffinger2013-03-031-0/+33
| | | | | | | | | | | | | | As far as I can tell the code should not change behaviour depending on locale in any of these places. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Merge commit 'b85a5e87af4254b80913fe33591d96361f30832b'Michael Niedermayer2013-01-251-0/+15
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b85a5e87af4254b80913fe33591d96361f30832b': lavu: Add av_strnstr() h264: Allow discarding the cropping information from SPS Conflicts: Changelog doc/APIchanges libavcodec/avcodec.h libavcodec/version.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: Add av_strnstr()Vladimir Pantelic2013-01-251-0/+15
| | | | | | | | | | | | | | This is a length limited version of strstr() Signed-off-by: Vladimir Pantelic <vladoman@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '6dd93ee6f1b050ad7c4b247899e83efa293ee405'Michael Niedermayer2012-12-301-0/+16
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | * commit '6dd93ee6f1b050ad7c4b247899e83efa293ee405': hlsenc: check append_entry return value hlsenc: use the basename to generate the list entries avstring: add av_basename and av_dirname Conflicts: Changelog doc/APIchanges libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avstring: add av_basename and av_dirnameLuca Barbato2012-12-291-0/+16
| | | | | | | | Thread safe version of the common basename and dirname.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-131-4/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: doxygen: misc consistency, spelling and wording fixes vcr1: drop unnecessary emms_c() calls without MMX code Replace all uses of av_close_input_file() with avformat_close_input(). lavf: add avformat_close_input(). lavf: deprecate av_close_input_stream(). lavf doxy: add some basic demuxing documentation. lavf doxy: add some general lavf information. lavf doxy: add misc utility functions to a group. lavf doxy: add av_guess_codec/format to the encoding group. lavf doxy: add core functions to a doxy group. Add basic libavdevice documentation. lavc: convert error_recognition to err_recognition. avconv: update -map option help text x86: Require 7 registers for the cabac asm x86: bswap: remove test for bswap instruction bswap: make generic implementation more compiler-friendly h264: remove useless cast proresdec: fix decode_slice() prototype Conflicts: configure doc/APIchanges ffprobe.c libavcodec/avcodec.h libavcodec/celp_math.h libavcodec/h264.c libavfilter/src_movie.c libavformat/anm.c libavformat/avformat.h libavformat/version.h libavutil/avstring.h libavutil/bswap.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxygen: misc consistency, spelling and wording fixesDiego Biurrun2011-12-121-4/+4
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-231-6/+15
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (22 commits) aacdec: Fix PS in ADTS. avconv: Consistently use PIX_FMT_NONE. dsputil: use cpuflags in x86 emu_edge_core dsputil: use movups instead of movdqu in ff_emu_edge_core_sse() wma: initialize prev_block_len_bits, next_block_len_bits, and block_len_bits. mov: Remove some redundant and obsolete comments. Add libavutil/mathematics.h #includes for INFINITY doxy: structure libavformat groups doxy: introduce an empty structure in libavcodec doxy: provide a start page and document libavutil doxy: cleanup pixfmt.h regtest: split video encode/decode tests into individual targets ARM: add explicit .arch and .fpu directives to asm.S pthread: do not touch has_b_frames avconv: cleanup the transcoding loop in output_packet(). avconv: split subtitle transcoding out of output_packet(). avconv: split video transcoding out of output_packet(). avconv: split audio transcoding out of output_packet(). avconv: reindent. avconv: move streamcopy-only code out of decoding loop. ... Conflicts: avconv.c libavcodec/aaccoder.c libavcodec/pthread.c libavcodec/version.h libavutil/audioconvert.h libavutil/avutil.h libavutil/mem.h tests/ref/vsynth1/dv tests/ref/vsynth1/mpeg2thread tests/ref/vsynth2/dv tests/ref/vsynth2/mpeg2thread Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxy: provide a start page and document libavutilLuca Barbato2011-11-221-6/+15
| | | | | | | | | | | | Introduce a basic layout, the subpages are currently left empty. Split libavutil in multiple groups as example of the structure
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-071-0/+20
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (23 commits) x86inc: use sse versions of common macros instead of sse2 when applicable doc/APIchanges: add missing dates and hashes lavf: don't return from void av_update_cur_dts() Changelog: add more entries. Changelog: update ffmpeg/avconv incompatibility list. avconv: remove some redundant temporary variables. avconv: fix broken indentation avconv: move copy_initial_nonkeyframes to the options context. avconv: use file:stream instead of file.stream in log messages. doc/avconv: elaborate on basic functionality. doc/avconv: -sample_fmts, not -help sample_fmts prints the sample formats openssl: Only use CRYPTO_set_id_callback on OpenSSL < 1.0.0 Call avformat_network_init/deinit in the programs Remove leftover includes of strings.h avutil: Don't allow using strcasecmp/strncasecmp Replace all usage of strcasecmp/strncasecmp avstring: Add locale independent implementations of strcasecmp/strncasecmp avstring: Add locale independent implementations of toupper/tolower cosmetics: insert some spaces in explicit enum value assignments move 8SVX audio codecs to the audio codec list part on the next bump ... Conflicts: avprobe.c doc/APIchanges ffplay.c ffserver.c libavcodec/avcodec.h libavdevice/bktr.c libavdevice/v4l.c libavdevice/v4l2.c libavformat/matroskaenc.c libavformat/wtv.c libavutil/avstring.c libavutil/avstring.h libavutil/avutil.h libswscale/x86/swscale_template.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avstring: Add locale independent implementations of strcasecmp/strncasecmpReimar Döffinger2011-11-061-0/+12
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
| * avstring: Add locale independent implementations of toupper/tolowerLuca Barbato2011-11-061-0/+20
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Replace all strcasecmp/strncasecmp usages.Reimar Döffinger2011-11-031-0/+12
| | | | | | | | | | | | | | | | | | | | All current usages of it are incompatible with localization. For example strcasecmp("i", "I") != 0 is possible, but would break many of the places where it is used. Instead use our own implementations that always treat the data as ASCII. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | lavu: add av_strtok()Stefano Sabatini2011-10-181-0/+24
| | | | | | | | | | | | The function strtok_r() is part of the POSIX.1 specification, but is not available on some platforms. We provide an internal implementation, so we do not need to rely on a platform implementation.
* | av_string: add av_asprintf().Clément Bœsch2011-09-041-0/+10
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-06-241-1/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: doxygen: Consistently use '@' instead of '\' for Doxygen markup. Use av_printf_format to check the usage of printf style functions Add av_printf_format, for marking printf style format strings and their parameters ARM: enable thumb for Cortex-M* CPUs nsvdec: Propagate error values instead of returning 0 in nsv_read_header(). build: remove SRC_PATH_BARE variable build: move basic rules and variables to main Makefile build: move special targets to end of main Makefile lavdev: improve feedback in case of invalid frame rate/size vfwcap: prefer "framerate_q" over "fps" in vfw_read_header() v4l2: prefer "framerate_q" over "fps" in v4l2_set_parameters() fbdev: prefer "framerate_q" over "fps" in device context bktr: prefer "framerate" over "fps" for grab_read_header() ALSA: implement channel layout for playback. alsa: support unsigned variants of already supported signed formats. alsa: add support for more formats. ARM: allow building in Thumb2 mode Conflicts: common.mak doc/APIchanges libavcodec/vdpau.h libavdevice/alsa-audio-common.c libavdevice/fbdev.c libavdevice/libdc1394.c libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Use av_printf_format to check the usage of printf style functionsMartin Storsjö2011-06-231-1/+2
| | | | | | | | | | | | | | | | This helps catching cases where the format string doesn't match what is passed in, or injection bugs where user data is passed in as format string. Signed-off-by: Martin Storsjö <martin@martin.st>
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
|/ | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move av_get_token() from libavfilter to libavutil.Stefano Sabatini2010-09-271-0/+16
| | | | Originally committed as revision 25225 to svn://svn.ffmpeg.org/ffmpeg/trunk
* More descriptive names for av_stristr() parametersMåns Rullgård2010-03-081-7/+8
| | | | Originally committed as revision 22349 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_stristr() functionMåns Rullgård2010-03-061-0/+13
| | | | | | This is a case-insensitive version of strstr(). Originally committed as revision 22251 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove duplicated word in av_strlcat() doxy.Stefano Sabatini2010-01-301-1/+1
| | | | Originally committed as revision 21549 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move #include where it belongs.Michael Niedermayer2009-12-131-1/+0
| | | | | | This as a sideeffect fixes the linking failure of ffplay. Originally committed as revision 20832 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a function to convert a number to a av_malloced string.Michael Niedermayer2009-12-131-0/+6
| | | | Originally committed as revision 20829 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add warnings to av_strlcat and av_strlcpy doxygen that the input stringsReimar Döffinger2009-09-091-0/+8
| | | | | | | already must be properly 0-terminated strings. Unlike strncpy it cannot be used on raw data read from a file. Originally committed as revision 19800 to svn://svn.ffmpeg.org/ffmpeg/trunk
* spelling/grammar/consistency review part IIIDiego Biurrun2009-01-281-2/+2
| | | | Originally committed as revision 16849 to svn://svn.ffmpeg.org/ffmpeg/trunk