353240541d 
								
							
								 
							
						 
						
							
							
								
								cpu-test: Add unistd.h #include for getopt()  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1e519b9d40 
								
							
								 
							
						 
						
							
							
								
								avutil: turn arm setend into a cpuflag  
							
							this allows disabling and enabling it
it also prevents crashes if vfpv3 and neon are disabled which previously
would have enabled the flag
And last but not least one can enable setend on cpus like cortex-a8 where
its fast but disabled by default
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6b1df5544e 
								
							
								 
							
						 
						
							
							
								
								avutil/cpu: check av_parse_cpu_caps() table during cpu-test  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fe0157a19a 
								
							
								 
							
						 
						
							
							
								
								avutil/cpu: Make cpu flag names match between cpu-test and av_parse_cpu_caps() tables  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								efc4fe9d74 
								
							
								 
							
						 
						
							
							
								
								avutil/cpu: add aarch64 entries to 2nd table  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9101ef6757 
								
							
								 
							
						 
						
							
							
								
								avutil/cpu: output cpu data to stdout  
							
							Errors go to stderr, but the cpu stats are non error output for cputest
This fixes echoing the cpu test results
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1b168e3bcf 
								
							
								 
							
						 
						
							
							
								
								avutil/cpu: fix cpu-test to work with ffmpegs cpuflags syntax  
							
							Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								caf5ef852b 
								
							
								 
							
						 
						
							
							
								
								cpu-test: test av_cpu_count  
							
							Add CPU count and number threads as informative values for fate. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								07d8fa5812 
								
							
								 
							
						 
						
							
							
								
								fate: add informative cpu test  
							
							libavutil/cpu-test prints raw and effective cpu flags to STDERR. Detected
cpu flags can be useful for debugging fate errors.
No comparison of the result against a expected result since that would
require fate config specific references. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0ffba9feb6 
								
							
								 
							
						 
						
							
							
								
								avutil/cpu: Use HAVE_UNISTD_H instead of HAVE_SYSCONF for #include <unistd.h>  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6310eb8010 
								
							
								 
							
						 
						
							
							
								
								avutil/cpu: force mmx on selection of higher x86 SIMD features  
							
							Fixes various runtime failures with manually set flags that represent no
existing CPU
Fixes Ticket3653
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8675bcb0ad 
								
							
								 
							
						 
						
							
							
								
								aarch64: add armv8 CPU flag  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d59fcdaff3 
								
							
								 
							
						 
						
							
							
								
								x86: add detection for Bit Manipulation Instruction sets  
							
							Based on x264 code
Signed-off-by: James Almer <jamrial@gmail.com> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1b932eb150 
								
							
								 
							
						 
						
							
							
								
								x86: add detection for FMA3 instruction set  
							
							Based on x264 code
Signed-off-by: James Almer <jamrial@gmail.com> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0bc3de19ff 
								
							
								 
							
						 
						
							
							
								
								x86: add detection for Bit Manipulation Instruction sets  
							
							Based on x264 code
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a2af8eddab 
								
							
								 
							
						 
						
							
							
								
								x86: add detection for FMA3 instruction set  
							
							Based on x264 code
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a4e4948ffe 
								
							
								 
							
						 
						
							
							
								
								x86/cpu: add missing avx2 AVOption in av_parse_cpu_flags()  
							
							Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b7b17ed66e 
								
							
								 
							
						 
						
							
							
								
								aarch64: add cpuflags support for NEON and VFP  
							
							NEON and VFP are currently mandatory for all ARMv8 profiles. Both are
handled as extensions as far as cpuflags are concerned. This is
consistent with handling x86_64 which always has SSE2, but still
handles it as an extension. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8f8bc92365 
								
							
								 
							
						 
						
							
							
								
								Add missing #includes for *INT64_MAX and *INT64_C  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								865b70bc5d 
								
							
								 
							
						 
						
							
							
								
								Add AVX2 capable CPU detection. Patch based on x264's AVX2 detection  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4d6ee07255 
								
							
								 
							
						 
						
							
							
								
								libavutil: x86: Add AVX2 capable CPU detection.  
							
							Patch based on x264's AVX2 detection
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0506f3fa38 
								
							
								 
							
						 
						
							
							
								
								avutil/cpu: remove duplicate include  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b78b10c4b7 
								
							
								 
							
						 
						
							
							
								
								avutil: Move internal CPU detection function declarations to private header  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f0ce1d9909 
								
							
								 
							
						 
						
							
							
								
								cpu: Restructure code to avoid pointless ret variable indirection  
							
							libavutil/cpu.c:133:9: warning: unused variable ‘ret’ [-Wunused-variable] 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4cf7b87551 
								
							
								 
							
						 
						
							
							
								
								av_cpu_count: factorize "detected %d logical cores" message  
							
							Also print the message just once
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								597208fde1 
								
							
								 
							
						 
						
							
							
								
								cpu: Include common.h for av_popcount64  
							
							This fixes build failures on windows since 2a6eaeaa8 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2a6eaeaa85 
								
							
								 
							
						 
						
							
							
								
								Move get_logical_cpus() from lavc/pthread to lavu/cpu.  
							
							It will be useful in lavfi, and could conceivably be useful to the user
applications as well. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cb45553f57 
								
							
								 
							
						 
						
							
							
								
								Remove pointless #undefs of previously forbidden functions.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7b723ed4c0 
								
							
								 
							
						 
						
							
							
								
								cpu: add a few cpu names as aliases for their cpu flags  
							
							Help to complete this list is welcome!
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								65e57975b9 
								
							
								 
							
						 
						
							
							
								
								cpu: add cmov ro the table, which appears to have been forgotten  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d58dd4b5b5 
								
							
								 
							
						 
						
							
							
								
								avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union member  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								124134e424 
								
							
								 
							
						 
						
							
							
								
								avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								540bd5a95f 
								
							
								 
							
						 
						
							
							
								
								av_parse_cpu_caps: add "mmxext" as alias for mmx2  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								239fdf1b4a 
								
							
								 
							
						 
						
							
							
								
								x86: build: replace mmx2 by mmxext  
							
							Refactoring mmx2/mmxext YASM code with cpuflags will force renames.
So switching to a consistent naming scheme beforehand is sensible.
The name "mmxext" is more official and widespread and also the name
of the CPU flag, as reported e.g. by the Linux kernel. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								65345a5a30 
								
							
								 
							
						 
						
							
							
								
								x86: Add CPU flag for the i686 cmov instruction  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eadac34c80 
								
							
								 
							
						 
						
							
							
								
								cmdutils/avutil: Move cpu caps parse code into av_parse_cpu_caps()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6eca84bad8 
								
							
								 
							
						 
						
							
							
								
								cpu: recognise only cpu flag names pertinent to the architecture  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3527a73933 
								
							
								 
							
						 
						
							
							
								
								avutil: add av_parse_cpu_flags() function  
							
							This moves the cpu flag parsing code from avconv to avutil so
it can be accessed elsewhere.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d526c5338d 
								
							
								 
							
						 
						
							
							
								
								ARM: allow runtime masking of CPU features  
							
							This allows masking CPU features with the -cpuflags avconv option
which is useful for testing different optimisations without rebuilding.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								363bd1c62c 
								
							
								 
							
						 
						
							
							
								
								remove iwmmxt optimizations  
							
							The were broken since August of 2010 without anyone noticing until
three weeks ago. Nobody cares about it anymore and hopefully Marvell
will support NEON like in the PXA978 from now on. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a9c5b6f602 
								
							
								 
							
						 
						
							
							
								
								cpu: initialize mask to -1, so that by default, optimizations are used.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4d851f8dcf 
								
							
								 
							
						 
						
							
							
								
								cpu: add av_set_cpu_flags_mask().  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								96a59cf37b 
								
							
								 
							
						 
						
							
							
								
								x86: XOP/FMA4 CPU detection support  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c31bc5371e 
								
							
								 
							
						 
						
							
							
								
								Fix cpu flags test program  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5ad38d93e8 
								
							
								 
							
						 
						
							
							
								
								cpudetect: add av_force_cpu_flags()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eba586b0d9 
								
							
								 
							
						 
						
							
							
								
								Add a CPU flag for the Atom processor.  
							
							The Atom has SSSE3 support, which is useful in many cases, but sometimes the
SSSE3 version is slower than the SSE2 equivalent on the Atom, but is generally
faster on other processors supporting SSSE3. This flag allows for selectively
disabling certain SSSE3 functions on the Atom. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cdeba2de82 
								
							
								 
							
						 
						
							
							
								
								x86: check for AVX support  
							
							This adds configure and runtime checks for AVX support on x86 CPUs.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 87f1355f9b 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								87f1355f9b 
								
							
								 
							
						 
						
							
							
								
								x86: check for AVX support  
							
							This adds configure and runtime checks for AVX support on x86 CPUs.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ec5f57192a 
								
							
								 
							
						 
						
							
							
								
								cpu-test: include stdio.h only for test prog  
							
							
								
							
							
						 
						15 years ago