#include <assert.h>
#include <immintrin.h>
#include "./vpx_dsp_rtcd.h"
#include "vpx/vpx_integer.h"
static VPX_FORCE_INLINE void subtract32_avx2(int16_t *diff_ptr,
const uint8_t *src_ptr,
const uint8_t *pred_ptr) { … }
static VPX_FORCE_INLINE void subtract_block_16xn_avx2(
int rows, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src_ptr,
ptrdiff_t src_stride, const uint8_t *pred_ptr, ptrdiff_t pred_stride) { … }
static VPX_FORCE_INLINE void subtract_block_32xn_avx2(
int rows, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src_ptr,
ptrdiff_t src_stride, const uint8_t *pred_ptr, ptrdiff_t pred_stride) { … }
static VPX_FORCE_INLINE void subtract_block_64xn_avx2(
int rows, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src_ptr,
ptrdiff_t src_stride, const uint8_t *pred_ptr, ptrdiff_t pred_stride) { … }
void vpx_subtract_block_avx2(int rows, int cols, int16_t *diff_ptr,
ptrdiff_t diff_stride, const uint8_t *src_ptr,
ptrdiff_t src_stride, const uint8_t *pred_ptr,
ptrdiff_t pred_stride) { … }
#if CONFIG_VP9_HIGHBITDEPTH
void vpx_highbd_subtract_block_avx2(int rows, int cols, int16_t *diff_ptr,
ptrdiff_t diff_stride,
const uint8_t *src8_ptr,
ptrdiff_t src_stride,
const uint8_t *pred8_ptr,
ptrdiff_t pred_stride, int bd) { … }
#endif