chromium/third_party/libvpx/source/libvpx/vpx_dsp/x86/quantize_sse2.h

/*
 *  Copyright (c) 2017 The WebM project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#ifndef VPX_VPX_DSP_X86_QUANTIZE_SSE2_H_
#define VPX_VPX_DSP_X86_QUANTIZE_SSE2_H_

#include <emmintrin.h>

#include "./vpx_config.h"
#include "vpx/vpx_integer.h"
#include "vp9/encoder/vp9_block.h"

static INLINE void load_b_values(const struct macroblock_plane *const mb_plane,
                                 __m128i *zbin, __m128i *round, __m128i *quant,
                                 const int16_t *dequant_ptr, __m128i *dequant,
                                 __m128i *shift) {}

static INLINE void load_b_values32x32(
    const struct macroblock_plane *const mb_plane, __m128i *zbin,
    __m128i *round, __m128i *quant, const int16_t *dequant_ptr,
    __m128i *dequant, __m128i *shift) {}

static INLINE void load_fp_values(const struct macroblock_plane *mb_plane,
                                  __m128i *round, __m128i *quant,
                                  const int16_t *dequant_ptr,
                                  __m128i *dequant) {}

// With ssse3 and later abs() and sign() are preferred.
static INLINE __m128i invert_sign_sse2(__m128i a, __m128i sign) {}

static INLINE void calculate_qcoeff(__m128i *coeff, const __m128i round,
                                    const __m128i quant, const __m128i shift) {}

static INLINE void calculate_dqcoeff_and_store(__m128i qcoeff, __m128i dequant,
                                               tran_low_t *dqcoeff) {}

// Scan 16 values for eob reference in scan.
static INLINE __m128i scan_for_eob(__m128i *coeff0, __m128i *coeff1,
                                   const int16_t *scan, const int index,
                                   const __m128i zero) {}

static INLINE int16_t accumulate_eob(__m128i eob) {}

#endif  // VPX_VPX_DSP_X86_QUANTIZE_SSE2_H_