8ddc32629a 
								
							
								 
							
						 
						
							
							
								
								mem: add av_strndup() for duplicating substrings  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8f6d36b3cb 
								
							
								 
							
						 
						
							
							
								
								avutil/mem: document NULL related saftey of av_freep()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cd50a44beb 
								
							
								 
							
						 
						
							
							
								
								lavu/mem: add av_dynarray_add_nofree function  
							
							av_dynarray_add_nofree function have similar functionality
as existing av_dynarray_add, but it doesn't deallocate memory
on fails.
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cce3e0a49f 
								
							
								 
							
						 
						
							
							
								
								Move av_fast_{m,re}alloc from lavc to lavu.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b284e1ffe3 
								
							
								 
							
						 
						
							
							
								
								mem: do not check for negative size  
							
							size_t is guaranteed to be unsigned
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3feb3d6ce4 
								
							
								 
							
						 
						
							
							
								
								mem: Introduce av_reallocp  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9997a812e7 
								
							
								 
							
						 
						
							
							
								
								mem: Document the non-compatibility of av_realloc() and av_malloc()  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b634b36fce 
								
							
								 
							
						 
						
							
							
								
								mem: Improve documentation wording and spelling  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b4ec7a5fee 
								
							
								 
							
						 
						
							
							
								
								mem: Document the av_realloc family of functions properly  
							
							realloc() does not accept pointers from memalign(). 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fc962d4e7a 
								
							
								 
							
						 
						
							
							
								
								mem: Add av_realloc_array and av_reallocp_array  
							
							These help avoiding overflows and simplify error handling.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e3984166a4 
								
							
								 
							
						 
						
							
							
								
								lavu/mem: add av_dynarray2_add()  
							
							Based on a patch by Clément Bœsch.
See thread:
From: Clément Bœsch <ubitux@gmail.com>
Subject: [FFmpeg-devel] [PATCH 1/5] lavu: add av_dynarray_alloc_elem().
Date: Sun, 14 Apr 2013 03:07:54 +0200 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eeb9a4928d 
								
							
								 
							
						 
						
							
							
								
								lavu/mem.h: fix typo  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ee9794ed20 
								
							
								 
							
						 
						
							
							
								
								lavu/mem: fix potential int overflow and crash in av_dynarray_add()  
							
							Also extend documentation accordingly. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c773adee3f 
								
							
								 
							
						 
						
							
							
								
								lavu/mem: extend documentation for av_dynarray_add()  
							
							In particular, mention the fact that the amortized element addition cost
is constant. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								89b5039ff2 
								
							
								 
							
						 
						
							
							
								
								avutil/mem: add av_memdup()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5bac2d0c30 
								
							
								 
							
						 
						
							
							
								
								avutil: Move memcpy_backptr() to mem.c  
							
							The function is used elsewhere and does not belong with the LZO code. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5532cf3178 
								
							
								 
							
						 
						
							
							
								
								avutil/mem: K&R formatting cosmetics  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c5ed7a66a 
								
							
								 
							
						 
						
							
							
								
								mem: fix typo in check for __ICC  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1d9c2dc89a 
								
							
								 
							
						 
						
							
							
								
								Don't include common.h from avutil.h  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f3e5e6f05b 
								
							
								 
							
						 
						
							
							
								
								mem: introduce av_malloc_array and av_mallocz_array  
							
							Both function ease allocating large arrays implementing the overflow
check inside it. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5a8e994287 
								
							
								 
							
						 
						
							
							
								
								mem: add av_max_alloc() to limit the maximum amount that may be allocated in one piece  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								757cd8d876 
								
							
								 
							
						 
						
							
							
								
								doxy: provide a start page and document libavutil  
							
							Introduce a basic layout, the subpages are currently left empty.
Split libavutil in multiple groups as example of the structure 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5cd754bca2 
								
							
								 
							
						 
						
							
							
								
								Introduce av_realloc_f.  
							
							av_realloc_f helps avoiding memory-leaks in typical uses of realloc.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b2600509fe 
								
							
								 
							
						 
						
							
							
								
								Introduce av_size_mult.  
							
							av_size_mult helps checking for overflow when computing the size of a memory
area.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ccecab4a0d 
								
							
								 
							
						 
						
							
							
								
								Add av_calloc() helper.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								66f6bab7ad 
								
							
								 
							
						 
						
							
							
								
								mem.h: switch doxygen parameter order to match function prototype  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								35ceaa7376 
								
							
								 
							
						 
						
							
							
								
								Move ff_dynarray_add to lavu and make it public.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								490a022d86 
								
							
								 
							
						 
						
							
							
								
								lavu: remove misc disabled cruft  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								820818a330 
								
							
								 
							
						 
						
							
							
								
								Remove unnecessary icc version checks  
							
							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> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d667be2cea 
								
							
								 
							
						 
						
							
							
								
								Attribute used is correctly supported by the Intel C compiler since version 11.1.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a5b13b1423 
								
							
								 
							
						 
						
							
							
								
								Use macro __INTEL_COMPILER instead of __ICC.  
							
							__ICC is not supported on all platforms, this is an Intel documentation
bug that is supposed to be fixed in a future release.
(Intel issue 612289) 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0374152f89 
								
							
								 
							
						 
						
							
							
								
								Rename attribute_used to av_used and move it to attributes.h  
							
							This is consistent with most of the other attribute macros.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 365e3c7878 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								365e3c7878 
								
							
								 
							
						 
						
							
							
								
								Rename attribute_used to av_used and move it to attributes.h  
							
							This is consistent with most of the other attribute macros.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0328b9ea39 
								
							
								 
							
						 
						
							
							
								
								Add av_file_map() and av_file_unmap() functions.  
							
							Originally committed as revision 26073 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b47541c7a3 
								
							
								 
							
						 
						
							
							
								
								Change the argument of memory allocation functions from unsigned int to size_t  
							
							with the next major bump in libavutil.
Originally committed as revision 25871 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								086e997e34 
								
							
								 
							
						 
						
							
							
								
								Intel C compiler 12.0 does not suport these attributes: may_alias, force_align_arg_pointer and alloc_size.  
							
							Originally committed as revision 25716 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								49bd8e4b84 
								
							
								 
							
						 
						
							
							
								
								Fix grammar errors in documentation  
							
							Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								276fc8a4e2 
								
							
								 
							
						 
						
							
							
								
								Add missing avutil.h include to libavutil/mem.h  
							
							Originally committed as revision 23803 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ed00fe49d7 
								
							
								 
							
						 
						
							
							
								
								icc 12 finally fixed attribute(used) so gcc's DECLARE_ASM_CONST can be used.  
							
							Originally committed as revision 23624 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ba87f0801d 
								
							
								 
							
						 
						
							
							
								
								Remove explicit filename from Doxygen  @file  commands.  
							
							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 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2ed6f39944 
								
							
								 
							
						 
						
							
							
								
								Replace many includes of libavutil/common.h with what is actually needed  
							
							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 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								84dc2d8afa 
								
							
								 
							
						 
						
							
							
								
								Remove DECLARE_ALIGNED_{8,16} macros  
							
							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 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4b9905d1dc 
								
							
								 
							
						 
						
							
							
								
								Move DECLARE_ALIGNED_{8,16} macros to mem.h  
							
							These macros naturally belong next to the generic DECLARE_ALIGNED
macro.
Originally committed as revision 22230 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								34e52abb62 
								
							
								 
							
						 
						
							
							
								
								DECLARE_ALIGNED macro for TMS470 compiler  
							
							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 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8a24e98d50 
								
							
								 
							
						 
						
							
							
								
								Make DECLARE_ALIGNED macros work with external array specifiers  
							
							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 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								702d0a9e85 
								
							
								 
							
						 
						
							
							
								
								Remove residual use of the doxygen markup which is deprecated,  
							
							consistent with r19122.
Originally committed as revision 20989 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								16c2e21488 
								
							
								 
							
						 
						
							
							
								
								Move DECLARE_ALIGNED and DECLARE_ASM_CONST back from lavu/internal.h to  
							
							lavu/mem.h.
Originally committed as revision 19384 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								06be9d9d8e 
								
							
								 
							
						 
						
							
							
								
								Icc 11.1 does not support attributes force_align_arg_pointer, alloc_size and cold.  
							
							Originally committed as revision 19282 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bf7e799c9e 
								
							
								 
							
						 
						
							
							
								
								Remove '\p', '\c' and '\e' doxygen markup from doxy, as it should  
							
							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 
							
						 
						16 years ago