lavu: move LOCAL_ALIGNED from internal.h to mem_internal.h

That is a more appropriate place for it.
pull/371/head
Anton Khirnov 5 years ago
parent 54cd025a82
commit c8c2dfbc37
  1. 1
      libavcodec/aacps.c
  2. 1
      libavcodec/aacsbr.c
  3. 1
      libavcodec/aarch64/vp9dsp_init_16bpp_aarch64_template.c
  4. 1
      libavcodec/aarch64/vp9dsp_init_aarch64.c
  5. 1
      libavcodec/ac3enc.c
  6. 1
      libavcodec/ac3enc_template.c
  7. 1
      libavcodec/arm/vp9dsp_init_16bpp_arm_template.c
  8. 1
      libavcodec/arm/vp9dsp_init_arm.c
  9. 2
      libavcodec/atrac3plusdsp.c
  10. 1
      libavcodec/bink.c
  11. 1
      libavcodec/dca_lbr.c
  12. 1
      libavcodec/dcadsp.c
  13. 1
      libavcodec/dcaenc.c
  14. 1
      libavcodec/dnxhdenc.c
  15. 1
      libavcodec/dolby_e.c
  16. 1
      libavcodec/dvdec.c
  17. 1
      libavcodec/dvenc.c
  18. 1
      libavcodec/h264_loopfilter.c
  19. 2
      libavcodec/imc.c
  20. 1
      libavcodec/ituh263dec.c
  21. 1
      libavcodec/lpc.c
  22. 1
      libavcodec/me_cmp.c
  23. 1
      libavcodec/mips/aacsbr_mips.c
  24. 1
      libavcodec/mips/vc1dsp_mmi.c
  25. 2
      libavcodec/mpc7.c
  26. 1
      libavcodec/mpegvideo_enc.c
  27. 2
      libavcodec/mpegvideo_motion.c
  28. 1
      libavcodec/ppc/mpegaudiodsp_altivec.c
  29. 2
      libavcodec/proresdec2.c
  30. 1
      libavcodec/proresenc_anatoliy.c
  31. 1
      libavcodec/ra288.c
  32. 1
      libavcodec/rv34.c
  33. 1
      libavcodec/speedhq.c
  34. 1
      libavcodec/tests/dct.c
  35. 2
      libavcodec/tests/x86/dct.c
  36. 1
      libavcodec/vp8.c
  37. 1
      libavcodec/vp9recon.c
  38. 1
      libavcodec/x86/cavsdsp.c
  39. 1
      libavcodec/x86/h264_qpel.c
  40. 1
      libavcodec/x86/hevcdsp_init.c
  41. 1
      libavcodec/x86/mpegaudiodsp.c
  42. 1
      libavcodec/x86/mpegvideoenc_template.c
  43. 1
      libavcodec/x86/rv40dsp_init.c
  44. 1
      libavcodec/x86/vc1dsp_mmx.c
  45. 1
      libavcodec/x86/vp8dsp_init.c
  46. 2
      libavcodec/x86/vp9dsp_init.h
  47. 1
      libavfilter/af_arnndn.c
  48. 37
      libavutil/internal.h
  49. 42
      libavutil/mem_internal.h
  50. 2
      libavutil/mips/mmiutils.h
  51. 1
      libavutil/tests/lls.c
  52. 2
      libswscale/ppc/swscale_ppc_template.c
  53. 1
      libswscale/ppc/swscale_vsx.c
  54. 1
      tests/checkasm/aacpsdsp.c
  55. 1
      tests/checkasm/af_afir.c
  56. 1
      tests/checkasm/alacdsp.c
  57. 1
      tests/checkasm/audiodsp.c
  58. 1
      tests/checkasm/blockdsp.c
  59. 1
      tests/checkasm/bswapdsp.c
  60. 1
      tests/checkasm/exrdsp.c
  61. 1
      tests/checkasm/fixed_dsp.c
  62. 1
      tests/checkasm/flacdsp.c
  63. 2
      tests/checkasm/float_dsp.c
  64. 2
      tests/checkasm/fmtconvert.c
  65. 1
      tests/checkasm/h264dsp.c
  66. 1
      tests/checkasm/h264pred.c
  67. 1
      tests/checkasm/h264qpel.c
  68. 1
      tests/checkasm/hevc_add_res.c
  69. 1
      tests/checkasm/hevc_idct.c
  70. 1
      tests/checkasm/hevc_sao.c
  71. 1
      tests/checkasm/jpeg2000dsp.c
  72. 1
      tests/checkasm/llviddspenc.c
  73. 2
      tests/checkasm/opusdsp.c
  74. 1
      tests/checkasm/pixblockdsp.c
  75. 2
      tests/checkasm/sbrdsp.c
  76. 1
      tests/checkasm/sw_rgb.c
  77. 1
      tests/checkasm/sw_scale.c
  78. 2
      tests/checkasm/synth_filter.c
  79. 1
      tests/checkasm/utvideodsp.c
  80. 1
      tests/checkasm/v210enc.c
  81. 1
      tests/checkasm/vf_colorspace.c
  82. 1
      tests/checkasm/vf_eq.c
  83. 1
      tests/checkasm/vf_hflip.c
  84. 1
      tests/checkasm/vf_threshold.c
  85. 1
      tests/checkasm/videodsp.c
  86. 1
      tests/checkasm/vp8dsp.c
  87. 1
      tests/checkasm/vp9dsp.c

@ -25,6 +25,7 @@
#include <stdint.h> #include <stdint.h>
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/mathematics.h" #include "libavutil/mathematics.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "aacps.h" #include "aacps.h"
#if USE_FIXED #if USE_FIXED

@ -38,6 +38,7 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/libm.h" #include "libavutil/libm.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/mem_internal.h"
#include <stdint.h> #include <stdint.h>
#include <float.h> #include <float.h>

@ -22,6 +22,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/aarch64/cpu.h" #include "libavutil/aarch64/cpu.h"
#include "vp9dsp_init.h" #include "vp9dsp_init.h"

@ -22,6 +22,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/aarch64/cpu.h" #include "libavutil/aarch64/cpu.h"
#include "libavcodec/vp9dsp.h" #include "libavcodec/vp9dsp.h"
#include "vp9dsp_init.h" #include "vp9dsp_init.h"

@ -34,6 +34,7 @@
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/crc.h" #include "libavutil/crc.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "internal.h"

@ -30,6 +30,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "audiodsp.h" #include "audiodsp.h"
#include "internal.h" #include "internal.h"

@ -22,6 +22,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/arm/cpu.h" #include "libavutil/arm/cpu.h"
#include "vp9dsp_init.h" #include "vp9dsp_init.h"

@ -22,6 +22,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/arm/cpu.h" #include "libavutil/arm/cpu.h"
#include "libavcodec/vp9dsp.h" #include "libavcodec/vp9dsp.h"
#include "vp9dsp_init.h" #include "vp9dsp_init.h"

@ -29,6 +29,8 @@
#include "libavutil/float_dsp.h" #include "libavutil/float_dsp.h"
#include "libavutil/libm.h" #include "libavutil/libm.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "sinewin.h" #include "sinewin.h"
#include "fft.h" #include "fft.h"

@ -23,6 +23,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#define BITSTREAM_READER_LE #define BITSTREAM_READER_LE
#include "avcodec.h" #include "avcodec.h"

@ -21,6 +21,7 @@
#define BITSTREAM_READER_LE #define BITSTREAM_READER_LE
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/mem_internal.h"
#include "dcadec.h" #include "dcadec.h"
#include "dcadata.h" #include "dcadata.h"

@ -19,6 +19,7 @@
*/ */
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "dcadsp.h" #include "dcadsp.h"
#include "dcamath.h" #include "dcamath.h"

@ -28,6 +28,7 @@
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/ffmath.h" #include "libavutil/ffmath.h"
#include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avcodec.h" #include "avcodec.h"
#include "dca.h" #include "dca.h"

@ -25,6 +25,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avcodec.h" #include "avcodec.h"

@ -21,6 +21,7 @@
#include "libavutil/float_dsp.h" #include "libavutil/float_dsp.h"
#include "libavutil/thread.h" #include "libavutil/thread.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "internal.h" #include "internal.h"
#include "get_bits.h" #include "get_bits.h"

@ -38,6 +38,7 @@
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "avcodec.h" #include "avcodec.h"

@ -30,6 +30,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"

@ -27,6 +27,7 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "internal.h" #include "internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "h264dec.h" #include "h264dec.h"

@ -38,7 +38,9 @@
#include "libavutil/ffmath.h" #include "libavutil/ffmath.h"
#include "libavutil/float_dsp.h" #include "libavutil/float_dsp.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/thread.h" #include "libavutil/thread.h"
#include "avcodec.h" #include "avcodec.h"
#include "bswapdsp.h" #include "bswapdsp.h"
#include "get_bits.h" #include "get_bits.h"

@ -34,6 +34,7 @@
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mathematics.h" #include "libavutil/mathematics.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "mpegvideo.h" #include "mpegvideo.h"
#include "h263.h" #include "h263.h"

@ -21,6 +21,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/lls.h" #include "libavutil/lls.h"
#include "libavutil/mem_internal.h"
#define LPC_USE_DOUBLE #define LPC_USE_DOUBLE
#include "lpc.h" #include "lpc.h"

@ -22,6 +22,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "copy_block.h" #include "copy_block.h"
#include "simple_idct.h" #include "simple_idct.h"

@ -53,6 +53,7 @@
#include "libavcodec/aac.h" #include "libavcodec/aac.h"
#include "libavcodec/aacsbr.h" #include "libavcodec/aacsbr.h"
#include "libavutil/mem_internal.h"
#include "libavutil/mips/asmdefs.h" #include "libavutil/mips/asmdefs.h"
#define ENVELOPE_ADJUSTMENT_OFFSET 2 #define ENVELOPE_ADJUSTMENT_OFFSET 2

@ -25,6 +25,7 @@
#include "constants.h" #include "constants.h"
#include "vc1dsp_mips.h" #include "vc1dsp_mips.h"
#include "hpeldsp_mips.h" #include "hpeldsp_mips.h"
#include "libavutil/mem_internal.h"
#include "libavutil/mips/mmiutils.h" #include "libavutil/mips/mmiutils.h"
#define VC1_INV_TRANCS_8_TYPE1(o1, o2, r1, r2, r3, r4, c0) \ #define VC1_INV_TRANCS_8_TYPE1(o1, o2, r1, r2, r3, r4, c0) \

@ -28,7 +28,9 @@
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/lfg.h" #include "libavutil/lfg.h"
#include "libavutil/mem_internal.h"
#include "libavutil/thread.h" #include "libavutil/thread.h"
#include "avcodec.h" #include "avcodec.h"
#include "get_bits.h" #include "get_bits.h"
#include "internal.h" #include "internal.h"

@ -36,6 +36,7 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intmath.h" #include "libavutil/intmath.h"
#include "libavutil/mathematics.h" #include "libavutil/mathematics.h"
#include "libavutil/mem_internal.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avcodec.h" #include "avcodec.h"

@ -25,6 +25,8 @@
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "h261.h" #include "h261.h"
#include "mpegutils.h" #include "mpegutils.h"

@ -23,6 +23,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/ppc/cpu.h" #include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"
#include "libavcodec/mpegaudiodsp.h" #include "libavcodec/mpegaudiodsp.h"

@ -29,6 +29,8 @@
#define LONG_BITSTREAM_READER #define LONG_BITSTREAM_READER
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "get_bits.h" #include "get_bits.h"
#include "idctdsp.h" #include "idctdsp.h"

@ -27,6 +27,7 @@
* Known FOURCCs: 'ap4h' (444), 'apch' (HQ), 'apcn' (422), 'apcs' (LT), 'acpo' (Proxy) * Known FOURCCs: 'ap4h' (444), 'apch' (HQ), 'apcn' (422), 'apcs' (LT), 'acpo' (Proxy)
*/ */
#include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avcodec.h" #include "avcodec.h"
#include "dct.h" #include "dct.h"

@ -22,6 +22,7 @@
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/float_dsp.h" #include "libavutil/float_dsp.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#define BITSTREAM_READER_LE #define BITSTREAM_READER_LE
#include "avcodec.h" #include "avcodec.h"

@ -27,6 +27,7 @@
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/thread.h" #include "libavutil/thread.h"
#include "avcodec.h" #include "avcodec.h"

@ -28,6 +28,7 @@
#include "config.h" #include "config.h"
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "get_bits.h" #include "get_bits.h"

@ -38,6 +38,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/lfg.h" #include "libavutil/lfg.h"
#include "libavutil/mem_internal.h"
#include "libavutil/time.h" #include "libavutil/time.h"
#include "libavcodec/dct.h" #include "libavcodec/dct.h"

@ -18,6 +18,8 @@
#include "config.h" #include "config.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/x86/fdct.h" #include "libavcodec/x86/fdct.h"
#include "libavcodec/x86/xvididct.h" #include "libavcodec/x86/xvididct.h"
#include "libavcodec/x86/simple_idct.h" #include "libavcodec/x86/simple_idct.h"

@ -25,6 +25,7 @@
*/ */
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "hwconfig.h" #include "hwconfig.h"

@ -22,6 +22,7 @@
*/ */
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "internal.h"

@ -25,6 +25,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/mem_internal.h"
#include "libavutil/x86/asm.h" #include "libavutil/x86/asm.h"
#include "libavutil/x86/cpu.h" #include "libavutil/x86/cpu.h"
#include "libavcodec/cavsdsp.h" #include "libavcodec/cavsdsp.h"

@ -21,6 +21,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/mem_internal.h"
#include "libavutil/x86/asm.h" #include "libavutil/x86/asm.h"
#include "libavutil/x86/cpu.h" #include "libavutil/x86/cpu.h"
#include "libavcodec/h264dec.h" #include "libavcodec/h264dec.h"

@ -22,6 +22,7 @@
#include "config.h" #include "config.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/mem_internal.h"
#include "libavutil/x86/asm.h" #include "libavutil/x86/asm.h"
#include "libavutil/x86/cpu.h" #include "libavutil/x86/cpu.h"
#include "libavcodec/get_bits.h" /* required for hevcdsp.h GetBitContext */ #include "libavcodec/get_bits.h" /* required for hevcdsp.h GetBitContext */

@ -22,6 +22,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/x86/asm.h" #include "libavutil/x86/asm.h"
#include "libavutil/x86/cpu.h" #include "libavutil/x86/cpu.h"
#include "libavcodec/mpegaudiodsp.h" #include "libavcodec/mpegaudiodsp.h"

@ -23,6 +23,7 @@
#include <stdint.h> #include <stdint.h>
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/x86/asm.h" #include "libavutil/x86/asm.h"
#include "libavcodec/mpegutils.h" #include "libavcodec/mpegutils.h"
#include "libavcodec/mpegvideo.h" #include "libavcodec/mpegvideo.h"

@ -29,6 +29,7 @@
#include "libavcodec/rv34dsp.h" #include "libavcodec/rv34dsp.h"
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "libavutil/x86/cpu.h" #include "libavutil/x86/cpu.h"
#include "hpeldsp.h" #include "hpeldsp.h"

@ -26,6 +26,7 @@
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "libavutil/x86/asm.h" #include "libavutil/x86/asm.h"
#include "libavutil/x86/cpu.h" #include "libavutil/x86/cpu.h"
#include "libavcodec/vc1dsp.h" #include "libavcodec/vc1dsp.h"

@ -23,6 +23,7 @@
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "libavutil/x86/cpu.h" #include "libavutil/x86/cpu.h"
#include "libavcodec/vp8dsp.h" #include "libavcodec/vp8dsp.h"

@ -23,6 +23,8 @@
#ifndef AVCODEC_X86_VP9DSP_INIT_H #ifndef AVCODEC_X86_VP9DSP_INIT_H
#define AVCODEC_X86_VP9DSP_INIT_H #define AVCODEC_X86_VP9DSP_INIT_H
#include "libavutil/mem_internal.h"
#include "libavcodec/vp9dsp.h" #include "libavcodec/vp9dsp.h"
// hack to force-expand BPC // hack to force-expand BPC

@ -36,6 +36,7 @@
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
#include "libavutil/float_dsp.h" #include "libavutil/float_dsp.h"
#include "libavutil/mem_internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "libavutil/tx.h" #include "libavutil/tx.h"
#include "avfilter.h" #include "avfilter.h"

@ -92,10 +92,6 @@
type av_##name##_get_##field(const str *s) { return s->field; } \ type av_##name##_get_##field(const str *s) { return s->field; } \
void av_##name##_set_##field(str *s, type v) { s->field = v; } void av_##name##_set_##field(str *s, type v) { s->field = v; }
// Some broken preprocessors need a second expansion
// to be forced to tokenize __VA_ARGS__
#define E1(x) x
/* Check if the hard coded offset of a struct member still matches reality. /* Check if the hard coded offset of a struct member still matches reality.
* Induce a compilation failure if not. * Induce a compilation failure if not.
*/ */
@ -103,39 +99,6 @@
int x_##o[offsetof(s, m) == o? 1: -1]; \ int x_##o[offsetof(s, m) == o? 1: -1]; \
} }
#define LOCAL_ALIGNED_A(a, t, v, s, o, ...) \
uint8_t la_##v[sizeof(t s o) + (a)]; \
t (*v) o = (void *)FFALIGN((uintptr_t)la_##v, a)
#define LOCAL_ALIGNED_D(a, t, v, s, o, ...) \
DECLARE_ALIGNED(a, t, la_##v) s o; \
t (*v) o = la_##v
#define LOCAL_ALIGNED(a, t, v, ...) LOCAL_ALIGNED_##a(t, v, __VA_ARGS__)
#if HAVE_LOCAL_ALIGNED
# define LOCAL_ALIGNED_4(t, v, ...) E1(LOCAL_ALIGNED_D(4, t, v, __VA_ARGS__,,))
#else
# define LOCAL_ALIGNED_4(t, v, ...) E1(LOCAL_ALIGNED_A(4, t, v, __VA_ARGS__,,))
#endif
#if HAVE_LOCAL_ALIGNED
# define LOCAL_ALIGNED_8(t, v, ...) E1(LOCAL_ALIGNED_D(8, t, v, __VA_ARGS__,,))
#else
# define LOCAL_ALIGNED_8(t, v, ...) E1(LOCAL_ALIGNED_A(8, t, v, __VA_ARGS__,,))
#endif
#if HAVE_LOCAL_ALIGNED
# define LOCAL_ALIGNED_16(t, v, ...) E1(LOCAL_ALIGNED_D(16, t, v, __VA_ARGS__,,))
#else
# define LOCAL_ALIGNED_16(t, v, ...) E1(LOCAL_ALIGNED_A(16, t, v, __VA_ARGS__,,))
#endif
#if HAVE_LOCAL_ALIGNED
# define LOCAL_ALIGNED_32(t, v, ...) E1(LOCAL_ALIGNED_D(32, t, v, __VA_ARGS__,,))
#else
# define LOCAL_ALIGNED_32(t, v, ...) E1(LOCAL_ALIGNED_A(32, t, v, __VA_ARGS__,,))
#endif
#define FF_ALLOC_TYPED_ARRAY(p, nelem) (p = av_malloc_array(nelem, sizeof(*p))) #define FF_ALLOC_TYPED_ARRAY(p, nelem) (p = av_malloc_array(nelem, sizeof(*p)))
#define FF_ALLOCZ_TYPED_ARRAY(p, nelem) (p = av_mallocz_array(nelem, sizeof(*p))) #define FF_ALLOCZ_TYPED_ARRAY(p, nelem) (p = av_mallocz_array(nelem, sizeof(*p)))

@ -21,9 +21,51 @@
#ifndef AVUTIL_MEM_INTERNAL_H #ifndef AVUTIL_MEM_INTERNAL_H
#define AVUTIL_MEM_INTERNAL_H #define AVUTIL_MEM_INTERNAL_H
#include "config.h"
#include <stdint.h>
#include "avassert.h" #include "avassert.h"
#include "mem.h" #include "mem.h"
// Some broken preprocessors need a second expansion
// to be forced to tokenize __VA_ARGS__
#define E1(x) x
#define LOCAL_ALIGNED_A(a, t, v, s, o, ...) \
uint8_t la_##v[sizeof(t s o) + (a)]; \
t (*v) o = (void *)FFALIGN((uintptr_t)la_##v, a)
#define LOCAL_ALIGNED_D(a, t, v, s, o, ...) \
DECLARE_ALIGNED(a, t, la_##v) s o; \
t (*v) o = la_##v
#define LOCAL_ALIGNED(a, t, v, ...) LOCAL_ALIGNED_##a(t, v, __VA_ARGS__)
#if HAVE_LOCAL_ALIGNED
# define LOCAL_ALIGNED_4(t, v, ...) E1(LOCAL_ALIGNED_D(4, t, v, __VA_ARGS__,,))
#else
# define LOCAL_ALIGNED_4(t, v, ...) E1(LOCAL_ALIGNED_A(4, t, v, __VA_ARGS__,,))
#endif
#if HAVE_LOCAL_ALIGNED
# define LOCAL_ALIGNED_8(t, v, ...) E1(LOCAL_ALIGNED_D(8, t, v, __VA_ARGS__,,))
#else
# define LOCAL_ALIGNED_8(t, v, ...) E1(LOCAL_ALIGNED_A(8, t, v, __VA_ARGS__,,))
#endif
#if HAVE_LOCAL_ALIGNED
# define LOCAL_ALIGNED_16(t, v, ...) E1(LOCAL_ALIGNED_D(16, t, v, __VA_ARGS__,,))
#else
# define LOCAL_ALIGNED_16(t, v, ...) E1(LOCAL_ALIGNED_A(16, t, v, __VA_ARGS__,,))
#endif
#if HAVE_LOCAL_ALIGNED
# define LOCAL_ALIGNED_32(t, v, ...) E1(LOCAL_ALIGNED_D(32, t, v, __VA_ARGS__,,))
#else
# define LOCAL_ALIGNED_32(t, v, ...) E1(LOCAL_ALIGNED_A(32, t, v, __VA_ARGS__,,))
#endif
static inline int ff_fast_malloc(void *ptr, unsigned int *size, size_t min_size, int zero_realloc) static inline int ff_fast_malloc(void *ptr, unsigned int *size, size_t min_size, int zero_realloc)
{ {
void *val; void *val;

@ -25,6 +25,8 @@
#define AVUTIL_MIPS_MMIUTILS_H #define AVUTIL_MIPS_MMIUTILS_H
#include "config.h" #include "config.h"
#include "libavutil/mem_internal.h"
#include "libavutil/mips/asmdefs.h" #include "libavutil/mips/asmdefs.h"
#if HAVE_LOONGSON2 #if HAVE_LOONGSON2

@ -22,6 +22,7 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/lfg.h" #include "libavutil/lfg.h"
#include "libavutil/lls.h" #include "libavutil/lls.h"
#include "libavutil/mem_internal.h"
int main(void) int main(void)
{ {

@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "libavutil/mem_internal.h"
static void FUNC(yuv2planeX_8_16)(const int16_t *filter, int filterSize, static void FUNC(yuv2planeX_8_16)(const int16_t *filter, int filterSize,
const int16_t **src, uint8_t *dest, const int16_t **src, uint8_t *dest,
const uint8_t *dither, int offset, int x) const uint8_t *dither, int offset, int x)

@ -28,6 +28,7 @@
#include "libswscale/swscale_internal.h" #include "libswscale/swscale_internal.h"
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/mem_internal.h"
#include "yuv2rgb_altivec.h" #include "yuv2rgb_altivec.h"
#include "libavutil/ppc/util_altivec.h" #include "libavutil/ppc/util_altivec.h"

@ -18,6 +18,7 @@
#include "libavcodec/aacpsdsp.h" #include "libavcodec/aacpsdsp.h"
#include "libavutil/intfloat.h" #include "libavutil/intfloat.h"
#include "libavutil/mem_internal.h"
#include "checkasm.h" #include "checkasm.h"

@ -23,6 +23,7 @@
#include "libavfilter/af_afir.h" #include "libavfilter/af_afir.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "checkasm.h" #include "checkasm.h"
#define LEN 256 #define LEN 256

@ -24,6 +24,7 @@
#include "libavcodec/mathops.h" #include "libavcodec/mathops.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#define BUF_SIZE 256 #define BUF_SIZE 256
#define MAX_CHANNELS 2 #define MAX_CHANNELS 2

@ -25,6 +25,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "checkasm.h" #include "checkasm.h"

@ -27,6 +27,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define randomize_buffers(size) \ #define randomize_buffers(size) \
do { \ do { \

@ -24,6 +24,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define BUF_SIZE 512 #define BUF_SIZE 512

@ -24,6 +24,7 @@
#include "libavcodec/avcodec.h" #include "libavcodec/avcodec.h"
#include "libavcodec/exrdsp.h" #include "libavcodec/exrdsp.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define BUF_SIZE 5120 #define BUF_SIZE 5120
#define PADDED_BUF_SIZE BUF_SIZE+AV_INPUT_BUFFER_PADDING_SIZE*2 #define PADDED_BUF_SIZE BUF_SIZE+AV_INPUT_BUFFER_PADDING_SIZE*2

@ -23,6 +23,7 @@
#include "libavutil/fixed_dsp.h" #include "libavutil/fixed_dsp.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#define BUF_SIZE 256 #define BUF_SIZE 256

@ -24,6 +24,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define BUF_SIZE 256 #define BUF_SIZE 256
#define MAX_CHANNELS 8 #define MAX_CHANNELS 8

@ -23,6 +23,8 @@
#include "libavutil/float_dsp.h" #include "libavutil/float_dsp.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "checkasm.h" #include "checkasm.h"
#define LEN 256 #define LEN 256

@ -24,6 +24,8 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/fmtconvert.h" #include "libavcodec/fmtconvert.h"
#include "checkasm.h" #include "checkasm.h"

@ -26,6 +26,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
static const uint32_t pixel_mask[3] = { 0xffffffff, 0x01ff01ff, 0x03ff03ff }; static const uint32_t pixel_mask[3] = { 0xffffffff, 0x01ff01ff, 0x03ff03ff };
static const uint32_t pixel_mask_lf[3] = { 0xff0fff0f, 0x01ff000f, 0x03ff000f }; static const uint32_t pixel_mask_lf[3] = { 0xff0fff0f, 0x01ff000f, 0x03ff000f };

@ -25,6 +25,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
static const int codec_ids[4] = { AV_CODEC_ID_H264, AV_CODEC_ID_VP8, AV_CODEC_ID_RV40, AV_CODEC_ID_SVQ3 }; static const int codec_ids[4] = { AV_CODEC_ID_H264, AV_CODEC_ID_VP8, AV_CODEC_ID_RV40, AV_CODEC_ID_SVQ3 };

@ -24,6 +24,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
static const uint32_t pixel_mask[3] = { 0xffffffff, 0x01ff01ff, 0x03ff03ff }; static const uint32_t pixel_mask[3] = { 0xffffffff, 0x01ff01ff, 0x03ff03ff };

@ -21,6 +21,7 @@
#include <string.h> #include <string.h>
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/hevcdsp.h" #include "libavcodec/hevcdsp.h"

@ -21,6 +21,7 @@
#include <string.h> #include <string.h>
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/hevcdsp.h" #include "libavcodec/hevcdsp.h"

@ -21,6 +21,7 @@
#include <string.h> #include <string.h>
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/avcodec.h" #include "libavcodec/avcodec.h"

@ -23,6 +23,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define BUF_SIZE 512 #define BUF_SIZE 512

@ -23,6 +23,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/lossless_videoencdsp.h" #include "libavcodec/lossless_videoencdsp.h"

@ -16,6 +16,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include "libavutil/mem_internal.h"
#include "libavcodec/opusdsp.h" #include "libavcodec/opusdsp.h"
#include "checkasm.h" #include "checkasm.h"

@ -24,6 +24,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define BUF_UNITS 8 #define BUF_UNITS 8
#define BUF_SIZE (BUF_UNITS * 128 + 8 * BUF_UNITS) #define BUF_SIZE (BUF_UNITS * 128 + 8 * BUF_UNITS)

@ -16,6 +16,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include "libavutil/mem_internal.h"
#include "libavcodec/sbrdsp.h" #include "libavcodec/sbrdsp.h"
#include <float.h> #include <float.h>

@ -22,6 +22,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "libswscale/rgb2rgb.h" #include "libswscale/rgb2rgb.h"

@ -22,6 +22,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "libswscale/swscale.h" #include "libswscale/swscale.h"
#include "libswscale/swscale_internal.h" #include "libswscale/swscale_internal.h"

@ -25,6 +25,8 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intfloat.h" #include "libavutil/intfloat.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/dcadata.h" #include "libavcodec/dcadata.h"
#include "libavcodec/synth_filter.h" #include "libavcodec/synth_filter.h"

@ -24,6 +24,7 @@
#include "libavcodec/avcodec.h" #include "libavcodec/avcodec.h"
#include "libavcodec/utvideodsp.h" #include "libavcodec/utvideodsp.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define WIDTH 240 #define WIDTH 240
#define HEIGHT 120 #define HEIGHT 120

@ -24,6 +24,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define BUF_SIZE 512 #define BUF_SIZE 512

@ -24,6 +24,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define W 64 #define W 64
#define H 64 #define H 64

@ -21,6 +21,7 @@
#include "libavfilter/avfilter.h" #include "libavfilter/avfilter.h"
#include "libavfilter/vf_eq.h" #include "libavfilter/vf_eq.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define WIDTH 256 #define WIDTH 256
#define HEIGHT 256 #define HEIGHT 256

@ -20,6 +20,7 @@
#include "checkasm.h" #include "checkasm.h"
#include "libavfilter/hflip.h" #include "libavfilter/hflip.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define WIDTH 256 #define WIDTH 256
#define WIDTH_PADDED 256 + 32 #define WIDTH_PADDED 256 + 32

@ -20,6 +20,7 @@
#include "checkasm.h" #include "checkasm.h"
#include "libavfilter/threshold.h" #include "libavfilter/threshold.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define WIDTH 256 #define WIDTH 256
#define WIDTH_PADDED 256 + 32 #define WIDTH_PADDED 256 + 32

@ -23,6 +23,7 @@
#include "libavcodec/videodsp.h" #include "libavcodec/videodsp.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#define randomize_buffers(w, h) \ #define randomize_buffers(w, h) \
do { \ do { \

@ -25,6 +25,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "checkasm.h" #include "checkasm.h"

@ -27,6 +27,7 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h" #include "libavutil/mathematics.h"
#include "libavutil/mem_internal.h"
static const uint32_t pixel_mask[3] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff }; static const uint32_t pixel_mask[3] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff };
#define SIZEOF_PIXEL ((bit_depth + 7) / 8) #define SIZEOF_PIXEL ((bit_depth + 7) / 8)

Loading…
Cancel
Save