#include <assert.h>
#include <emmintrin.h>
#include "aom/aom_integer.h"
#include "aom_dsp/x86/mem_sse2.h"
#include "av1/common/av1_common_int.h"
#include "av1/common/txb_common.h"
static inline void load_levels_4x4x5_sse2(const uint8_t *const src,
const int stride,
const ptrdiff_t *const offsets,
__m128i *const level) { … }
static inline void load_levels_8x2x5_sse2(const uint8_t *const src,
const int stride,
const ptrdiff_t *const offsets,
__m128i *const level) { … }
static inline void load_levels_16x1x5_sse2(const uint8_t *const src,
const int stride,
const ptrdiff_t *const offsets,
__m128i *const level) { … }
static inline __m128i get_coeff_contexts_kernel_sse2(__m128i *const level) { … }
static inline void get_4_nz_map_contexts_2d(const uint8_t *levels,
const int width,
const ptrdiff_t *const offsets,
int8_t *const coeff_contexts) { … }
static inline void get_4_nz_map_contexts_ver(const uint8_t *levels,
const int width,
const ptrdiff_t *const offsets,
int8_t *coeff_contexts) { … }
static inline void get_4_nz_map_contexts_hor(const uint8_t *levels,
const int width,
const ptrdiff_t *const offsets,
int8_t *coeff_contexts) { … }
static inline void get_8_coeff_contexts_2d(const uint8_t *levels,
const int width,
const ptrdiff_t *const offsets,
int8_t *coeff_contexts) { … }
static inline void get_8_coeff_contexts_ver(const uint8_t *levels,
const int width,
const ptrdiff_t *const offsets,
int8_t *coeff_contexts) { … }
static inline void get_8_coeff_contexts_hor(const uint8_t *levels,
const int width,
const ptrdiff_t *const offsets,
int8_t *coeff_contexts) { … }
static inline void get_16n_coeff_contexts_2d(const uint8_t *levels,
const int real_width,
const int real_height,
const int width, const int height,
const ptrdiff_t *const offsets,
int8_t *coeff_contexts) { … }
static inline void get_16n_coeff_contexts_ver(const uint8_t *levels,
const int width, const int height,
const ptrdiff_t *const offsets,
int8_t *coeff_contexts) { … }
static inline void get_16n_coeff_contexts_hor(const uint8_t *levels,
const int width, const int height,
const ptrdiff_t *const offsets,
int8_t *coeff_contexts) { … }
void av1_get_nz_map_contexts_sse2(const uint8_t *const levels,
const int16_t *const scan, const uint16_t eob,
const TX_SIZE tx_size,
const TX_CLASS tx_class,
int8_t *const coeff_contexts) { … }