summaryrefslogtreecommitdiff
path: root/libavutil/mem.h
Commit message (Collapse)AuthorAge
* mem: add av_strndup() for duplicating substringsAnton Khirnov2014-08-13
|
* Move av_fast_{m,re}alloc from lavc to lavu.Anton Khirnov2013-11-14
|
* mem: do not check for negative sizeVittorio Giovara2013-10-26
| | | | | | size_t is guaranteed to be unsigned Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mem: Introduce av_reallocpLuca Barbato2013-09-16
|
* mem: Document the non-compatibility of av_realloc() and av_malloc()Diego Biurrun2013-09-14
|
* mem: Improve documentation wording and spellingDiego Biurrun2013-09-05
|
* mem: Document the av_realloc family of functions properlyLuca Barbato2013-09-04
| | | | realloc() does not accept pointers from memalign().
* mem: Add av_realloc_array and av_reallocp_arrayMartin Storsjö2013-06-04
| | | | | | These help avoiding overflows and simplify error handling. Signed-off-by: Martin Storsjö <martin@martin.st>
* avutil: Move memcpy_backptr() to mem.cDiego Biurrun2012-10-25
| | | | The function is used elsewhere and does not belong with the LZO code.
* avutil/mem: K&R formatting cosmeticsDiego Biurrun2012-10-20
|
* mem: fix typo in check for __ICCMans Rullgard2012-09-10
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Don't include common.h from avutil.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mem: introduce av_malloc_array and av_mallocz_arrayLuca Barbato2012-07-14
| | | | | Both function ease allocating large arrays implementing the overflow check inside it.
* doxy: provide a start page and document libavutilLuca Barbato2011-11-22
| | | | | | Introduce a basic layout, the subpages are currently left empty. Split libavutil in multiple groups as example of the structure
* mem.h: switch doxygen parameter order to match function prototypeDiego Biurrun2011-07-15
|
* lavu: remove misc disabled cruftAnton Khirnov2011-04-19
|
* Remove unnecessary icc version checksMans Rullgard2011-03-23
| | | | | | | | With unknown attribute warnings disabled, these checks are no longer needed. Removing them improves readability while having no effect on generated code. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Rename attribute_used to av_used and move it to attributes.hMans Rullgard2011-01-31
| | | | | | This is consistent with most of the other attribute macros. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add av_file_map() and av_file_unmap() functions.Stefano Sabatini2010-12-22
| | | | Originally committed as revision 26073 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change the argument of memory allocation functions from unsigned int to size_tMichael Niedermayer2010-12-04
| | | | | | with the next major bump in libavutil. Originally committed as revision 25871 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Intel C compiler 12.0 does not suport these attributes: may_alias, ↵Carl Eugen Hoyos2010-11-10
| | | | | | force_align_arg_pointer and alloc_size. Originally committed as revision 25716 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-30
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing avutil.h include to libavutil/mem.hMåns Rullgård2010-06-26
| | | | Originally committed as revision 23803 to svn://svn.ffmpeg.org/ffmpeg/trunk
* icc 12 finally fixed attribute(used) so gcc's DECLARE_ASM_CONST can be used.Carl Eugen Hoyos2010-06-16
| | | | Originally committed as revision 23624 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | 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
* Replace many includes of libavutil/common.h with what is actually neededMåns Rullgård2010-03-09
| | | | | | | This reduces the number of false dependencies on header files and speeds up compilation. Originally committed as revision 22407 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove DECLARE_ALIGNED_{8,16} macrosMåns Rullgård2010-03-06
| | | | | | | These macros are redundant. All uses are replaced with the generic DECLARE_ALIGNED macro instead. Originally committed as revision 22233 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move DECLARE_ALIGNED_{8,16} macros to mem.hMåns Rullgård2010-03-06
| | | | | | | These macros naturally belong next to the generic DECLARE_ALIGNED macro. Originally committed as revision 22230 to svn://svn.ffmpeg.org/ffmpeg/trunk
* DECLARE_ALIGNED macro for TMS470 compilerMåns Rullgård2010-01-22
| | | | | | | | | | | | This compiler supports gcc-style alignment attributes for struct, but not for global variables. For the latter, alignment can be specified with a pragma, which does not work for struct members or local variables. By using both pragma and attribute, one or the other will always take effect. Unfortunately, no means exists for aligning stack variables. Originally committed as revision 21379 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make DECLARE_ALIGNED macros work with external array specifiersMåns Rullgård2010-01-21
| | | | | | | | The macro implementation might need the name of the variable being declared for compiler-specific syntax. Moving array specifiers outside the macro invocation allows this to work. Originally committed as revision 21363 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove residual use of the doxygen markup which is deprecated,Stefano Sabatini2010-01-01
| | | | | | consistent with r19122. Originally committed as revision 20989 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move DECLARE_ALIGNED and DECLARE_ASM_CONST back from lavu/internal.h toRamiro Polla2009-07-09
| | | | | | lavu/mem.h. Originally committed as revision 19384 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Icc 11.1 does not support attributes force_align_arg_pointer, alloc_size and ↵Carl Eugen Hoyos2009-06-27
| | | | | | cold. Originally committed as revision 19282 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove '\p', '\c' and '\e' doxygen markup from doxy, as it shouldStefano Sabatini2009-06-06
| | | | | | | | improve plain text doxy readability. See the thread: "[RFC] Should we use doxygen markup?". Originally committed as revision 19122 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-01
| | | | | | | 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 IDiego Biurrun2009-01-28
| | | | Originally committed as revision 16840 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move DECLARE_ALIGNED and DECLARE_ASM_CONST to internal.h.Diego Biurrun2009-01-25
| | | | | | | | Their definition depends on preprocessor directives from config.h, thus they cannot be declared in a public header since public headers cannot #include config.h. Originally committed as revision 16781 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Directly #include a bunch of indirectly #included headers.Diego Biurrun2009-01-24
| | | | Originally committed as revision 16748 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-13
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Silence the following icc warnings:Carl Eugen Hoyos2008-12-21
| | | | | | | | warning #1292: attribute "force_align_arg_pointer" ignored warning #1292: attribute "alloc_size" ignored warning #1292: attribute "cold" ignored Originally committed as revision 16258 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use AV_GCC_VERSION_AT_LEAST() to simplify gcc version checks.Carl Eugen Hoyos2008-12-20
| | | | Originally committed as revision 16246 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow using DECLARE_ALIGNED with Sun cc.Carl Eugen Hoyos2008-10-02
| | | | Originally committed as revision 15509 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Globally rename the header inclusion guard names.Stefano Sabatini2008-08-31
| | | | | | | | | Consistently apply this rule: the guard name is obtained from the filename by stripping the leading "lib", converting '/' and '.' to '_' and uppercasing the resulting name. Guard names in the root directory have to be prefixed by "FFMPEG_". Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
* alloc_size attribute is new to gcc 4.3; don't use it with lesser versionsMåns Rullgård2008-06-05
| | | | Originally committed as revision 13665 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix embarassing __GNU__ vs. __GNUC__ typo in preprocessor condition.Rafaël Carré2008-06-03
| | | | | | patch by Rafaël Carré, funman videolan org Originally committed as revision 13652 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetic change: remove the whitespace after 'defined'Zuxy Meng2008-03-19
| | | | Originally committed as revision 12501 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 'malloc' attribute isn't supported in old gcc.Zuxy Meng2008-03-19
| | | | Originally committed as revision 12500 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Apply "alloc_size" attribute to av_alloc, av_realloc and av_malloczZuxy Meng2008-03-19
| | | | Originally committed as revision 12499 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reapply r12489: Add pure, const and malloc attributes to proper functionsZuxy Meng2008-03-19
| | | | | | | in libavutil. Fix a compilation failure in r12489. Originally committed as revision 12498 to svn://svn.ffmpeg.org/ffmpeg/trunk