quant.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*****************************************************************************
  2. * quant.h: msa quantization and level-run
  3. *****************************************************************************
  4. * Copyright (C) 2015-2018 x264 project
  5. *
  6. * Authors: Rishikesh More <rishikesh.more@imgtec.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_MIPS_QUANT_H
  26. #define X264_MIPS_QUANT_H
  27. #define x264_dequant_4x4_msa x264_template(dequant_4x4_msa)
  28. void x264_dequant_4x4_msa( int16_t *p_dct, int32_t pi_dequant_mf[6][16],
  29. int32_t i_qp );
  30. #define x264_dequant_8x8_msa x264_template(dequant_8x8_msa)
  31. void x264_dequant_8x8_msa( int16_t *p_dct, int32_t pi_dequant_mf[6][64],
  32. int32_t i_qp );
  33. #define x264_dequant_4x4_dc_msa x264_template(dequant_4x4_dc_msa)
  34. void x264_dequant_4x4_dc_msa( int16_t *p_dct, int32_t pi_dequant_mf[6][16],
  35. int32_t i_qp );
  36. #define x264_quant_4x4_msa x264_template(quant_4x4_msa)
  37. int32_t x264_quant_4x4_msa( int16_t *p_dct, uint16_t *p_mf, uint16_t *p_bias );
  38. #define x264_quant_4x4x4_msa x264_template(quant_4x4x4_msa)
  39. int32_t x264_quant_4x4x4_msa( int16_t p_dct[4][16],
  40. uint16_t pu_mf[16], uint16_t pu_bias[16] );
  41. #define x264_quant_8x8_msa x264_template(quant_8x8_msa)
  42. int32_t x264_quant_8x8_msa( int16_t *p_dct, uint16_t *p_mf, uint16_t *p_bias );
  43. #define x264_quant_4x4_dc_msa x264_template(quant_4x4_dc_msa)
  44. int32_t x264_quant_4x4_dc_msa( int16_t *p_dct, int32_t i_mf, int32_t i_bias );
  45. #define x264_coeff_last64_msa x264_template(coeff_last64_msa)
  46. int32_t x264_coeff_last64_msa( int16_t *p_src );
  47. #define x264_coeff_last16_msa x264_template(coeff_last16_msa)
  48. int32_t x264_coeff_last16_msa( int16_t *p_src );
  49. #endif