a53d5a4c44
These functions are now used by the encoder. This is WIP with the goal of creating a common idct/add for the encoder and decoder. A boost of 1.8% was seen for the HD rt test clip used. [Tero] Added needed changes to ARM side. Change-Id: Ibbb8000be09034203d7adffc457d3c3f8b06a5bf
60 lines
1.8 KiB
C
60 lines
1.8 KiB
C
/*
|
|
* Copyright (c) 2010 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 DEQUANTIZE_ARM_H
|
|
#define DEQUANTIZE_ARM_H
|
|
|
|
#if HAVE_ARMV6
|
|
extern prototype_dequant_block(vp8_dequantize_b_v6);
|
|
extern prototype_dequant_idct_add(vp8_dequant_idct_add_v6);
|
|
extern prototype_dequant_idct_add_y_block(vp8_dequant_idct_add_y_block_v6);
|
|
extern prototype_dequant_idct_add_uv_block(vp8_dequant_idct_add_uv_block_v6);
|
|
|
|
#if !CONFIG_RUNTIME_CPU_DETECT
|
|
#undef vp8_dequant_block
|
|
#define vp8_dequant_block vp8_dequantize_b_v6
|
|
|
|
#undef vp8_dequant_idct_add
|
|
#define vp8_dequant_idct_add vp8_dequant_idct_add_v6
|
|
|
|
#undef vp8_dequant_idct_add_y_block
|
|
#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_v6
|
|
|
|
#undef vp8_dequant_idct_add_uv_block
|
|
#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_v6
|
|
#endif
|
|
#endif
|
|
|
|
#if HAVE_ARMV7
|
|
extern prototype_dequant_block(vp8_dequantize_b_neon);
|
|
extern prototype_dequant_idct_add(vp8_dequant_idct_add_neon);
|
|
extern prototype_dequant_idct_add_y_block(vp8_dequant_idct_add_y_block_neon);
|
|
extern prototype_dequant_idct_add_uv_block(vp8_dequant_idct_add_uv_block_neon);
|
|
|
|
|
|
#if !CONFIG_RUNTIME_CPU_DETECT
|
|
#undef vp8_dequant_block
|
|
#define vp8_dequant_block vp8_dequantize_b_neon
|
|
|
|
#undef vp8_dequant_idct_add
|
|
#define vp8_dequant_idct_add vp8_dequant_idct_add_neon
|
|
|
|
#undef vp8_dequant_idct_add_y_block
|
|
#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_neon
|
|
|
|
#undef vp8_dequant_idct_add_uv_block
|
|
#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_neon
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|