|
|
|
@ -21,6 +21,8 @@ |
|
|
|
|
#ifndef AVUTIL_CPU_H |
|
|
|
|
#define AVUTIL_CPU_H |
|
|
|
|
|
|
|
|
|
#include <stddef.h> |
|
|
|
|
|
|
|
|
|
#include "version.h" |
|
|
|
|
|
|
|
|
|
#define AV_CPU_FLAG_FORCE 0x80000000 /* force usage of selected flags (OR) */ |
|
|
|
@ -88,4 +90,15 @@ int av_parse_cpu_flags(const char *s); |
|
|
|
|
*/ |
|
|
|
|
int av_cpu_count(void); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the maximum data alignment that may be required by Libav. |
|
|
|
|
* |
|
|
|
|
* Note that this is affected by the build configuration and the CPU flags mask, |
|
|
|
|
* so e.g. if the CPU supports AVX, but libavutil has been built with |
|
|
|
|
* --disable-avx or the AV_CPU_FLAG_AVX flag has been disabled through |
|
|
|
|
* av_set_cpu_flags_mask(), then this function will behave as if AVX is not |
|
|
|
|
* present. |
|
|
|
|
*/ |
|
|
|
|
size_t av_cpu_max_align(void); |
|
|
|
|
|
|
|
|
|
#endif /* AVUTIL_CPU_H */ |
|
|
|
|