diff options
Diffstat (limited to 'media/ffvpx/config_common.h')
-rw-r--r-- | media/ffvpx/config_common.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/media/ffvpx/config_common.h b/media/ffvpx/config_common.h new file mode 100644 index 0000000000..5d0d324c80 --- /dev/null +++ b/media/ffvpx/config_common.h @@ -0,0 +1,30 @@ +#ifndef MOZ_FFVPX_CONFIG_COMMON_H +#define MOZ_FFVPX_CONFIG_COMMON_H +#include "defaults_disabled.h" + +#ifdef YASM_MISSING_AVX2 +#undef HAVE_AVX2 +#undef HAVE_AVX2_INTERNAL +#undef HAVE_AVX2_EXTERNAL +#define HAVE_AVX2 0 +#define HAVE_AVX2_INTERNAL 0 +#define HAVE_AVX2_EXTERNAL 0 +#endif + +#ifdef MOZ_LIBAV_FFT +#undef CONFIG_FFT +#undef CONFIG_RDFT +#define CONFIG_FFT 1 +#define CONFIG_RDFT 1 +#endif + +#ifdef MOZ_WAYLAND +#undef CONFIG_VAAPI +#undef CONFIG_VP8_VAAPI_HWACCEL +#undef CONFIG_VP9_VAAPI_HWACCEL +#define CONFIG_VAAPI 1 +#define CONFIG_VP8_VAAPI_HWACCEL 1 +#define CONFIG_VP9_VAAPI_HWACCEL 1 +#endif + +#endif |