quant.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*****************************************************************************
  2. * quant.h: arm quantization and level-run
  3. *****************************************************************************
  4. * Copyright (C) 2005-2018 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. #ifndef X264_ARM_QUANT_H
  26. #define X264_ARM_QUANT_H
  27. #define x264_quant_2x2_dc_armv6 x264_template(quant_2x2_dc_armv6)
  28. int x264_quant_2x2_dc_armv6( int16_t dct[4], int mf, int bias );
  29. #define x264_quant_2x2_dc_neon x264_template(quant_2x2_dc_neon)
  30. int x264_quant_2x2_dc_neon( int16_t dct[4], int mf, int bias );
  31. #define x264_quant_4x4_dc_neon x264_template(quant_4x4_dc_neon)
  32. int x264_quant_4x4_dc_neon( int16_t dct[16], int mf, int bias );
  33. #define x264_quant_4x4_neon x264_template(quant_4x4_neon)
  34. int x264_quant_4x4_neon( int16_t dct[16], uint16_t mf[16], uint16_t bias[16] );
  35. #define x264_quant_4x4x4_neon x264_template(quant_4x4x4_neon)
  36. int x264_quant_4x4x4_neon( int16_t dct[4][16], uint16_t mf[16], uint16_t bias[16] );
  37. #define x264_quant_8x8_neon x264_template(quant_8x8_neon)
  38. int x264_quant_8x8_neon( int16_t dct[64], uint16_t mf[64], uint16_t bias[64] );
  39. #define x264_dequant_4x4_dc_neon x264_template(dequant_4x4_dc_neon)
  40. void x264_dequant_4x4_dc_neon( int16_t dct[16], int dequant_mf[6][16], int i_qp );
  41. #define x264_dequant_4x4_neon x264_template(dequant_4x4_neon)
  42. void x264_dequant_4x4_neon( int16_t dct[16], int dequant_mf[6][16], int i_qp );
  43. #define x264_dequant_8x8_neon x264_template(dequant_8x8_neon)
  44. void x264_dequant_8x8_neon( int16_t dct[64], int dequant_mf[6][64], int i_qp );
  45. #define x264_decimate_score15_neon x264_template(decimate_score15_neon)
  46. int x264_decimate_score15_neon( int16_t * );
  47. #define x264_decimate_score16_neon x264_template(decimate_score16_neon)
  48. int x264_decimate_score16_neon( int16_t * );
  49. #define x264_decimate_score64_neon x264_template(decimate_score64_neon)
  50. int x264_decimate_score64_neon( int16_t * );
  51. #define x264_coeff_last4_arm x264_template(coeff_last4_arm)
  52. int x264_coeff_last4_arm( int16_t * );
  53. #define x264_coeff_last8_arm x264_template(coeff_last8_arm)
  54. int x264_coeff_last8_arm( int16_t * );
  55. #define x264_coeff_last15_neon x264_template(coeff_last15_neon)
  56. int x264_coeff_last15_neon( int16_t * );
  57. #define x264_coeff_last16_neon x264_template(coeff_last16_neon)
  58. int x264_coeff_last16_neon( int16_t * );
  59. #define x264_coeff_last64_neon x264_template(coeff_last64_neon)
  60. int x264_coeff_last64_neon( int16_t * );
  61. #define x264_denoise_dct_neon x264_template(denoise_dct_neon)
  62. void x264_denoise_dct_neon( dctcoef *, uint32_t *, udctcoef *, int );
  63. #endif