1 /***************************************************************************** 2 * quant.h: arm quantization and level-run 3 ***************************************************************************** 4 * Copyright (C) 2005-2021 x264 project 5 * 6 * Authors: David Conrad <lessen42@gmail.com> 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA. 21 * 22 * This program is also available under a commercial proprietary license. 23 * For more information, contact us at licensing@x264.com. 24 *****************************************************************************/ 25 26 #ifndef X264_ARM_QUANT_H 27 #define X264_ARM_QUANT_H 28 29 #define x264_quant_2x2_dc_armv6 x264_template(quant_2x2_dc_armv6) 30 int x264_quant_2x2_dc_armv6( int16_t dct[4], int mf, int bias ); 31 32 #define x264_quant_2x2_dc_neon x264_template(quant_2x2_dc_neon) 33 int x264_quant_2x2_dc_neon( int16_t dct[4], int mf, int bias ); 34 #define x264_quant_4x4_dc_neon x264_template(quant_4x4_dc_neon) 35 int x264_quant_4x4_dc_neon( int16_t dct[16], int mf, int bias ); 36 #define x264_quant_4x4_neon x264_template(quant_4x4_neon) 37 int x264_quant_4x4_neon( int16_t dct[16], uint16_t mf[16], uint16_t bias[16] ); 38 #define x264_quant_4x4x4_neon x264_template(quant_4x4x4_neon) 39 int x264_quant_4x4x4_neon( int16_t dct[4][16], uint16_t mf[16], uint16_t bias[16] ); 40 #define x264_quant_8x8_neon x264_template(quant_8x8_neon) 41 int x264_quant_8x8_neon( int16_t dct[64], uint16_t mf[64], uint16_t bias[64] ); 42 43 #define x264_dequant_4x4_dc_neon x264_template(dequant_4x4_dc_neon) 44 void x264_dequant_4x4_dc_neon( int16_t dct[16], int dequant_mf[6][16], int i_qp ); 45 #define x264_dequant_4x4_neon x264_template(dequant_4x4_neon) 46 void x264_dequant_4x4_neon( int16_t dct[16], int dequant_mf[6][16], int i_qp ); 47 #define x264_dequant_8x8_neon x264_template(dequant_8x8_neon) 48 void x264_dequant_8x8_neon( int16_t dct[64], int dequant_mf[6][64], int i_qp ); 49 50 #define x264_decimate_score15_neon x264_template(decimate_score15_neon) 51 int x264_decimate_score15_neon( int16_t * ); 52 #define x264_decimate_score16_neon x264_template(decimate_score16_neon) 53 int x264_decimate_score16_neon( int16_t * ); 54 #define x264_decimate_score64_neon x264_template(decimate_score64_neon) 55 int x264_decimate_score64_neon( int16_t * ); 56 57 #define x264_coeff_last4_arm x264_template(coeff_last4_arm) 58 int x264_coeff_last4_arm( int16_t * ); 59 #define x264_coeff_last8_arm x264_template(coeff_last8_arm) 60 int x264_coeff_last8_arm( int16_t * ); 61 #define x264_coeff_last15_neon x264_template(coeff_last15_neon) 62 int x264_coeff_last15_neon( int16_t * ); 63 #define x264_coeff_last16_neon x264_template(coeff_last16_neon) 64 int x264_coeff_last16_neon( int16_t * ); 65 #define x264_coeff_last64_neon x264_template(coeff_last64_neon) 66 int x264_coeff_last64_neon( int16_t * ); 67 68 #define x264_denoise_dct_neon x264_template(denoise_dct_neon) 69 void x264_denoise_dct_neon( dctcoef *, uint32_t *, udctcoef *, int ); 70 71 #endif 72