quant.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. /*****************************************************************************
  2. * quant.h: x86 quantization and level-run
  3. *****************************************************************************
  4. * Copyright (C) 2005-2018 x264 project
  5. *
  6. * Authors: Loren Merritt <lorenm@u.washington.edu>
  7. * Fiona Glaser <fiona@x264.com>
  8. * Christian Heine <sennindemokrit@gmx.net>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
  23. *
  24. * This program is also available under a commercial proprietary license.
  25. * For more information, contact us at licensing@x264.com.
  26. *****************************************************************************/
  27. #ifndef X264_X86_QUANT_H
  28. #define X264_X86_QUANT_H
  29. #define x264_quant_2x2_dc_mmx2 x264_template(quant_2x2_dc_mmx2)
  30. int x264_quant_2x2_dc_mmx2( dctcoef dct[4], int mf, int bias );
  31. #define x264_quant_4x4_dc_mmx2 x264_template(quant_4x4_dc_mmx2)
  32. int x264_quant_4x4_dc_mmx2( dctcoef dct[16], int mf, int bias );
  33. #define x264_quant_4x4_mmx2 x264_template(quant_4x4_mmx2)
  34. int x264_quant_4x4_mmx2( dctcoef dct[16], udctcoef mf[16], udctcoef bias[16] );
  35. #define x264_quant_8x8_mmx2 x264_template(quant_8x8_mmx2)
  36. int x264_quant_8x8_mmx2( dctcoef dct[64], udctcoef mf[64], udctcoef bias[64] );
  37. #define x264_quant_2x2_dc_sse2 x264_template(quant_2x2_dc_sse2)
  38. int x264_quant_2x2_dc_sse2( dctcoef dct[16], int mf, int bias );
  39. #define x264_quant_4x4_dc_sse2 x264_template(quant_4x4_dc_sse2)
  40. int x264_quant_4x4_dc_sse2( dctcoef dct[16], int mf, int bias );
  41. #define x264_quant_4x4_sse2 x264_template(quant_4x4_sse2)
  42. int x264_quant_4x4_sse2( dctcoef dct[16], udctcoef mf[16], udctcoef bias[16] );
  43. #define x264_quant_4x4x4_sse2 x264_template(quant_4x4x4_sse2)
  44. int x264_quant_4x4x4_sse2( dctcoef dct[4][16], udctcoef mf[16], udctcoef bias[16] );
  45. #define x264_quant_8x8_sse2 x264_template(quant_8x8_sse2)
  46. int x264_quant_8x8_sse2( dctcoef dct[64], udctcoef mf[64], udctcoef bias[64] );
  47. #define x264_quant_2x2_dc_ssse3 x264_template(quant_2x2_dc_ssse3)
  48. int x264_quant_2x2_dc_ssse3( dctcoef dct[4], int mf, int bias );
  49. #define x264_quant_4x4_dc_ssse3 x264_template(quant_4x4_dc_ssse3)
  50. int x264_quant_4x4_dc_ssse3( dctcoef dct[16], int mf, int bias );
  51. #define x264_quant_4x4_ssse3 x264_template(quant_4x4_ssse3)
  52. int x264_quant_4x4_ssse3( dctcoef dct[16], udctcoef mf[16], udctcoef bias[16] );
  53. #define x264_quant_4x4x4_ssse3 x264_template(quant_4x4x4_ssse3)
  54. int x264_quant_4x4x4_ssse3( dctcoef dct[4][16], udctcoef mf[16], udctcoef bias[16] );
  55. #define x264_quant_8x8_ssse3 x264_template(quant_8x8_ssse3)
  56. int x264_quant_8x8_ssse3( dctcoef dct[64], udctcoef mf[64], udctcoef bias[64] );
  57. #define x264_quant_2x2_dc_sse4 x264_template(quant_2x2_dc_sse4)
  58. int x264_quant_2x2_dc_sse4( dctcoef dct[16], int mf, int bias );
  59. #define x264_quant_4x4_dc_sse4 x264_template(quant_4x4_dc_sse4)
  60. int x264_quant_4x4_dc_sse4( dctcoef dct[16], int mf, int bias );
  61. #define x264_quant_4x4_sse4 x264_template(quant_4x4_sse4)
  62. int x264_quant_4x4_sse4( dctcoef dct[16], udctcoef mf[16], udctcoef bias[16] );
  63. #define x264_quant_4x4x4_sse4 x264_template(quant_4x4x4_sse4)
  64. int x264_quant_4x4x4_sse4( dctcoef dct[4][16], udctcoef mf[16], udctcoef bias[16] );
  65. #define x264_quant_8x8_sse4 x264_template(quant_8x8_sse4)
  66. int x264_quant_8x8_sse4( dctcoef dct[64], udctcoef mf[64], udctcoef bias[64] );
  67. #define x264_quant_4x4_avx2 x264_template(quant_4x4_avx2)
  68. int x264_quant_4x4_avx2( dctcoef dct[16], udctcoef mf[16], udctcoef bias[16] );
  69. #define x264_quant_4x4_dc_avx2 x264_template(quant_4x4_dc_avx2)
  70. int x264_quant_4x4_dc_avx2( dctcoef dct[16], int mf, int bias );
  71. #define x264_quant_8x8_avx2 x264_template(quant_8x8_avx2)
  72. int x264_quant_8x8_avx2( dctcoef dct[64], udctcoef mf[64], udctcoef bias[64] );
  73. #define x264_quant_4x4x4_avx2 x264_template(quant_4x4x4_avx2)
  74. int x264_quant_4x4x4_avx2( dctcoef dct[4][16], udctcoef mf[16], udctcoef bias[16] );
  75. #define x264_dequant_4x4_mmx x264_template(dequant_4x4_mmx)
  76. void x264_dequant_4x4_mmx( int16_t dct[16], int dequant_mf[6][16], int i_qp );
  77. #define x264_dequant_4x4dc_mmx2 x264_template(dequant_4x4dc_mmx2)
  78. void x264_dequant_4x4dc_mmx2( int16_t dct[16], int dequant_mf[6][16], int i_qp );
  79. #define x264_dequant_8x8_mmx x264_template(dequant_8x8_mmx)
  80. void x264_dequant_8x8_mmx( int16_t dct[64], int dequant_mf[6][64], int i_qp );
  81. #define x264_dequant_4x4_sse2 x264_template(dequant_4x4_sse2)
  82. void x264_dequant_4x4_sse2( dctcoef dct[16], int dequant_mf[6][16], int i_qp );
  83. #define x264_dequant_4x4dc_sse2 x264_template(dequant_4x4dc_sse2)
  84. void x264_dequant_4x4dc_sse2( dctcoef dct[16], int dequant_mf[6][16], int i_qp );
  85. #define x264_dequant_8x8_sse2 x264_template(dequant_8x8_sse2)
  86. void x264_dequant_8x8_sse2( dctcoef dct[64], int dequant_mf[6][64], int i_qp );
  87. #define x264_dequant_4x4_avx x264_template(dequant_4x4_avx)
  88. void x264_dequant_4x4_avx( dctcoef dct[16], int dequant_mf[6][16], int i_qp );
  89. #define x264_dequant_4x4dc_avx x264_template(dequant_4x4dc_avx)
  90. void x264_dequant_4x4dc_avx( dctcoef dct[16], int dequant_mf[6][16], int i_qp );
  91. #define x264_dequant_8x8_avx x264_template(dequant_8x8_avx)
  92. void x264_dequant_8x8_avx( dctcoef dct[64], int dequant_mf[6][64], int i_qp );
  93. #define x264_dequant_4x4_xop x264_template(dequant_4x4_xop)
  94. void x264_dequant_4x4_xop( dctcoef dct[16], int dequant_mf[6][16], int i_qp );
  95. #define x264_dequant_4x4dc_xop x264_template(dequant_4x4dc_xop)
  96. void x264_dequant_4x4dc_xop( dctcoef dct[16], int dequant_mf[6][16], int i_qp );
  97. #define x264_dequant_8x8_xop x264_template(dequant_8x8_xop)
  98. void x264_dequant_8x8_xop( dctcoef dct[64], int dequant_mf[6][64], int i_qp );
  99. #define x264_dequant_4x4_avx2 x264_template(dequant_4x4_avx2)
  100. void x264_dequant_4x4_avx2( dctcoef dct[16], int dequant_mf[6][16], int i_qp );
  101. #define x264_dequant_4x4dc_avx2 x264_template(dequant_4x4dc_avx2)
  102. void x264_dequant_4x4dc_avx2( dctcoef dct[16], int dequant_mf[6][16], int i_qp );
  103. #define x264_dequant_8x8_avx2 x264_template(dequant_8x8_avx2)
  104. void x264_dequant_8x8_avx2( dctcoef dct[64], int dequant_mf[6][64], int i_qp );
  105. #define x264_dequant_4x4_avx512 x264_template(dequant_4x4_avx512)
  106. void x264_dequant_4x4_avx512( dctcoef dct[16], int dequant_mf[6][16], int i_qp );
  107. #define x264_dequant_8x8_avx512 x264_template(dequant_8x8_avx512)
  108. void x264_dequant_8x8_avx512( dctcoef dct[64], int dequant_mf[6][64], int i_qp );
  109. #define x264_dequant_4x4_flat16_mmx x264_template(dequant_4x4_flat16_mmx)
  110. void x264_dequant_4x4_flat16_mmx( int16_t dct[16], int dequant_mf[6][16], int i_qp );
  111. #define x264_dequant_8x8_flat16_mmx x264_template(dequant_8x8_flat16_mmx)
  112. void x264_dequant_8x8_flat16_mmx( int16_t dct[64], int dequant_mf[6][64], int i_qp );
  113. #define x264_dequant_4x4_flat16_sse2 x264_template(dequant_4x4_flat16_sse2)
  114. void x264_dequant_4x4_flat16_sse2( int16_t dct[16], int dequant_mf[6][16], int i_qp );
  115. #define x264_dequant_8x8_flat16_sse2 x264_template(dequant_8x8_flat16_sse2)
  116. void x264_dequant_8x8_flat16_sse2( int16_t dct[64], int dequant_mf[6][64], int i_qp );
  117. #define x264_dequant_4x4_flat16_avx2 x264_template(dequant_4x4_flat16_avx2)
  118. void x264_dequant_4x4_flat16_avx2( int16_t dct[16], int dequant_mf[6][16], int i_qp );
  119. #define x264_dequant_8x8_flat16_avx2 x264_template(dequant_8x8_flat16_avx2)
  120. void x264_dequant_8x8_flat16_avx2( int16_t dct[64], int dequant_mf[6][64], int i_qp );
  121. #define x264_dequant_8x8_flat16_avx512 x264_template(dequant_8x8_flat16_avx512)
  122. void x264_dequant_8x8_flat16_avx512( int16_t dct[64], int dequant_mf[6][64], int i_qp );
  123. #define x264_idct_dequant_2x4_dc_sse2 x264_template(idct_dequant_2x4_dc_sse2)
  124. void x264_idct_dequant_2x4_dc_sse2( dctcoef dct[8], dctcoef dct4x4[8][16], int dequant_mf[6][16], int i_qp );
  125. #define x264_idct_dequant_2x4_dc_avx x264_template(idct_dequant_2x4_dc_avx)
  126. void x264_idct_dequant_2x4_dc_avx ( dctcoef dct[8], dctcoef dct4x4[8][16], int dequant_mf[6][16], int i_qp );
  127. #define x264_idct_dequant_2x4_dconly_sse2 x264_template(idct_dequant_2x4_dconly_sse2)
  128. void x264_idct_dequant_2x4_dconly_sse2( dctcoef dct[8], int dequant_mf[6][16], int i_qp );
  129. #define x264_idct_dequant_2x4_dconly_avx x264_template(idct_dequant_2x4_dconly_avx)
  130. void x264_idct_dequant_2x4_dconly_avx ( dctcoef dct[8], int dequant_mf[6][16], int i_qp );
  131. #define x264_optimize_chroma_2x2_dc_sse2 x264_template(optimize_chroma_2x2_dc_sse2)
  132. int x264_optimize_chroma_2x2_dc_sse2( dctcoef dct[4], int dequant_mf );
  133. #define x264_optimize_chroma_2x2_dc_ssse3 x264_template(optimize_chroma_2x2_dc_ssse3)
  134. int x264_optimize_chroma_2x2_dc_ssse3( dctcoef dct[4], int dequant_mf );
  135. #define x264_optimize_chroma_2x2_dc_sse4 x264_template(optimize_chroma_2x2_dc_sse4)
  136. int x264_optimize_chroma_2x2_dc_sse4( dctcoef dct[4], int dequant_mf );
  137. #define x264_optimize_chroma_2x2_dc_avx x264_template(optimize_chroma_2x2_dc_avx)
  138. int x264_optimize_chroma_2x2_dc_avx( dctcoef dct[4], int dequant_mf );
  139. #define x264_denoise_dct_mmx x264_template(denoise_dct_mmx)
  140. void x264_denoise_dct_mmx ( dctcoef *dct, uint32_t *sum, udctcoef *offset, int size );
  141. #define x264_denoise_dct_sse2 x264_template(denoise_dct_sse2)
  142. void x264_denoise_dct_sse2 ( dctcoef *dct, uint32_t *sum, udctcoef *offset, int size );
  143. #define x264_denoise_dct_ssse3 x264_template(denoise_dct_ssse3)
  144. void x264_denoise_dct_ssse3( dctcoef *dct, uint32_t *sum, udctcoef *offset, int size );
  145. #define x264_denoise_dct_avx x264_template(denoise_dct_avx)
  146. void x264_denoise_dct_avx ( dctcoef *dct, uint32_t *sum, udctcoef *offset, int size );
  147. #define x264_denoise_dct_avx2 x264_template(denoise_dct_avx2)
  148. void x264_denoise_dct_avx2 ( dctcoef *dct, uint32_t *sum, udctcoef *offset, int size );
  149. #define x264_decimate_score15_sse2 x264_template(decimate_score15_sse2)
  150. int x264_decimate_score15_sse2( dctcoef *dct );
  151. #define x264_decimate_score15_ssse3 x264_template(decimate_score15_ssse3)
  152. int x264_decimate_score15_ssse3( dctcoef *dct );
  153. #define x264_decimate_score15_avx512 x264_template(decimate_score15_avx512)
  154. int x264_decimate_score15_avx512( dctcoef *dct );
  155. #define x264_decimate_score16_sse2 x264_template(decimate_score16_sse2)
  156. int x264_decimate_score16_sse2( dctcoef *dct );
  157. #define x264_decimate_score16_ssse3 x264_template(decimate_score16_ssse3)
  158. int x264_decimate_score16_ssse3( dctcoef *dct );
  159. #define x264_decimate_score16_avx512 x264_template(decimate_score16_avx512)
  160. int x264_decimate_score16_avx512( dctcoef *dct );
  161. #define x264_decimate_score64_sse2 x264_template(decimate_score64_sse2)
  162. int x264_decimate_score64_sse2( dctcoef *dct );
  163. #define x264_decimate_score64_ssse3 x264_template(decimate_score64_ssse3)
  164. int x264_decimate_score64_ssse3( dctcoef *dct );
  165. #define x264_decimate_score64_avx2 x264_template(decimate_score64_avx2)
  166. int x264_decimate_score64_avx2( int16_t *dct );
  167. #define x264_decimate_score64_avx512 x264_template(decimate_score64_avx512)
  168. int x264_decimate_score64_avx512( dctcoef *dct );
  169. #define x264_coeff_last4_mmx2 x264_template(coeff_last4_mmx2)
  170. int x264_coeff_last4_mmx2( dctcoef *dct );
  171. #define x264_coeff_last8_mmx2 x264_template(coeff_last8_mmx2)
  172. int x264_coeff_last8_mmx2( dctcoef *dct );
  173. #define x264_coeff_last15_mmx2 x264_template(coeff_last15_mmx2)
  174. int x264_coeff_last15_mmx2( dctcoef *dct );
  175. #define x264_coeff_last16_mmx2 x264_template(coeff_last16_mmx2)
  176. int x264_coeff_last16_mmx2( dctcoef *dct );
  177. #define x264_coeff_last64_mmx2 x264_template(coeff_last64_mmx2)
  178. int x264_coeff_last64_mmx2( dctcoef *dct );
  179. #define x264_coeff_last8_sse2 x264_template(coeff_last8_sse2)
  180. int x264_coeff_last8_sse2( dctcoef *dct );
  181. #define x264_coeff_last15_sse2 x264_template(coeff_last15_sse2)
  182. int x264_coeff_last15_sse2( dctcoef *dct );
  183. #define x264_coeff_last16_sse2 x264_template(coeff_last16_sse2)
  184. int x264_coeff_last16_sse2( dctcoef *dct );
  185. #define x264_coeff_last64_sse2 x264_template(coeff_last64_sse2)
  186. int x264_coeff_last64_sse2( dctcoef *dct );
  187. #define x264_coeff_last4_lzcnt x264_template(coeff_last4_lzcnt)
  188. int x264_coeff_last4_lzcnt( dctcoef *dct );
  189. #define x264_coeff_last8_lzcnt x264_template(coeff_last8_lzcnt)
  190. int x264_coeff_last8_lzcnt( dctcoef *dct );
  191. #define x264_coeff_last15_lzcnt x264_template(coeff_last15_lzcnt)
  192. int x264_coeff_last15_lzcnt( dctcoef *dct );
  193. #define x264_coeff_last16_lzcnt x264_template(coeff_last16_lzcnt)
  194. int x264_coeff_last16_lzcnt( dctcoef *dct );
  195. #define x264_coeff_last64_lzcnt x264_template(coeff_last64_lzcnt)
  196. int x264_coeff_last64_lzcnt( dctcoef *dct );
  197. #define x264_coeff_last64_avx2 x264_template(coeff_last64_avx2)
  198. int x264_coeff_last64_avx2 ( dctcoef *dct );
  199. #define x264_coeff_last4_avx512 x264_template(coeff_last4_avx512)
  200. int x264_coeff_last4_avx512( int32_t *dct );
  201. #define x264_coeff_last8_avx512 x264_template(coeff_last8_avx512)
  202. int x264_coeff_last8_avx512( dctcoef *dct );
  203. #define x264_coeff_last15_avx512 x264_template(coeff_last15_avx512)
  204. int x264_coeff_last15_avx512( dctcoef *dct );
  205. #define x264_coeff_last16_avx512 x264_template(coeff_last16_avx512)
  206. int x264_coeff_last16_avx512( dctcoef *dct );
  207. #define x264_coeff_last64_avx512 x264_template(coeff_last64_avx512)
  208. int x264_coeff_last64_avx512( dctcoef *dct );
  209. #define x264_coeff_level_run16_mmx2 x264_template(coeff_level_run16_mmx2)
  210. int x264_coeff_level_run16_mmx2( dctcoef *dct, x264_run_level_t *runlevel );
  211. #define x264_coeff_level_run16_sse2 x264_template(coeff_level_run16_sse2)
  212. int x264_coeff_level_run16_sse2( dctcoef *dct, x264_run_level_t *runlevel );
  213. #define x264_coeff_level_run16_lzcnt x264_template(coeff_level_run16_lzcnt)
  214. int x264_coeff_level_run16_lzcnt( dctcoef *dct, x264_run_level_t *runlevel );
  215. #define x264_coeff_level_run16_ssse3 x264_template(coeff_level_run16_ssse3)
  216. int x264_coeff_level_run16_ssse3( dctcoef *dct, x264_run_level_t *runlevel );
  217. #define x264_coeff_level_run16_ssse3_lzcnt x264_template(coeff_level_run16_ssse3_lzcnt)
  218. int x264_coeff_level_run16_ssse3_lzcnt( dctcoef *dct, x264_run_level_t *runlevel );
  219. #define x264_coeff_level_run16_avx2 x264_template(coeff_level_run16_avx2)
  220. int x264_coeff_level_run16_avx2( dctcoef *dct, x264_run_level_t *runlevel );
  221. #define x264_coeff_level_run15_mmx2 x264_template(coeff_level_run15_mmx2)
  222. int x264_coeff_level_run15_mmx2( dctcoef *dct, x264_run_level_t *runlevel );
  223. #define x264_coeff_level_run15_sse2 x264_template(coeff_level_run15_sse2)
  224. int x264_coeff_level_run15_sse2( dctcoef *dct, x264_run_level_t *runlevel );
  225. #define x264_coeff_level_run15_lzcnt x264_template(coeff_level_run15_lzcnt)
  226. int x264_coeff_level_run15_lzcnt( dctcoef *dct, x264_run_level_t *runlevel );
  227. #define x264_coeff_level_run15_ssse3 x264_template(coeff_level_run15_ssse3)
  228. int x264_coeff_level_run15_ssse3( dctcoef *dct, x264_run_level_t *runlevel );
  229. #define x264_coeff_level_run15_ssse3_lzcnt x264_template(coeff_level_run15_ssse3_lzcnt)
  230. int x264_coeff_level_run15_ssse3_lzcnt( dctcoef *dct, x264_run_level_t *runlevel );
  231. #define x264_coeff_level_run15_avx2 x264_template(coeff_level_run15_avx2)
  232. int x264_coeff_level_run15_avx2( dctcoef *dct, x264_run_level_t *runlevel );
  233. #define x264_coeff_level_run4_mmx2 x264_template(coeff_level_run4_mmx2)
  234. int x264_coeff_level_run4_mmx2( dctcoef *dct, x264_run_level_t *runlevel );
  235. #define x264_coeff_level_run4_lzcnt x264_template(coeff_level_run4_lzcnt)
  236. int x264_coeff_level_run4_lzcnt( dctcoef *dct, x264_run_level_t *runlevel );
  237. #define x264_coeff_level_run4_ssse3 x264_template(coeff_level_run4_ssse3)
  238. int x264_coeff_level_run4_ssse3( dctcoef *dct, x264_run_level_t *runlevel );
  239. #define x264_coeff_level_run4_ssse3_lzcnt x264_template(coeff_level_run4_ssse3_lzcnt)
  240. int x264_coeff_level_run4_ssse3_lzcnt( dctcoef *dct, x264_run_level_t *runlevel );
  241. #define x264_coeff_level_run8_mmx2 x264_template(coeff_level_run8_mmx2)
  242. int x264_coeff_level_run8_mmx2( dctcoef *dct, x264_run_level_t *runlevel );
  243. #define x264_coeff_level_run8_lzcnt x264_template(coeff_level_run8_lzcnt)
  244. int x264_coeff_level_run8_lzcnt( dctcoef *dct, x264_run_level_t *runlevel );
  245. #define x264_coeff_level_run8_sse2 x264_template(coeff_level_run8_sse2)
  246. int x264_coeff_level_run8_sse2( dctcoef *dct, x264_run_level_t *runlevel );
  247. #define x264_coeff_level_run8_ssse3 x264_template(coeff_level_run8_ssse3)
  248. int x264_coeff_level_run8_ssse3( dctcoef *dct, x264_run_level_t *runlevel );
  249. #define x264_coeff_level_run8_ssse3_lzcnt x264_template(coeff_level_run8_ssse3_lzcnt)
  250. int x264_coeff_level_run8_ssse3_lzcnt( dctcoef *dct, x264_run_level_t *runlevel );
  251. #define x264_trellis_cabac_4x4_sse2 x264_template(trellis_cabac_4x4_sse2)
  252. int x264_trellis_cabac_4x4_sse2 ( TRELLIS_PARAMS, int b_ac );
  253. #define x264_trellis_cabac_4x4_ssse3 x264_template(trellis_cabac_4x4_ssse3)
  254. int x264_trellis_cabac_4x4_ssse3( TRELLIS_PARAMS, int b_ac );
  255. #define x264_trellis_cabac_8x8_sse2 x264_template(trellis_cabac_8x8_sse2)
  256. int x264_trellis_cabac_8x8_sse2 ( TRELLIS_PARAMS, int b_interlaced );
  257. #define x264_trellis_cabac_8x8_ssse3 x264_template(trellis_cabac_8x8_ssse3)
  258. int x264_trellis_cabac_8x8_ssse3( TRELLIS_PARAMS, int b_interlaced );
  259. #define x264_trellis_cabac_4x4_psy_sse2 x264_template(trellis_cabac_4x4_psy_sse2)
  260. int x264_trellis_cabac_4x4_psy_sse2 ( TRELLIS_PARAMS, int b_ac, dctcoef *fenc_dct, int i_psy_trellis );
  261. #define x264_trellis_cabac_4x4_psy_ssse3 x264_template(trellis_cabac_4x4_psy_ssse3)
  262. int x264_trellis_cabac_4x4_psy_ssse3( TRELLIS_PARAMS, int b_ac, dctcoef *fenc_dct, int i_psy_trellis );
  263. #define x264_trellis_cabac_8x8_psy_sse2 x264_template(trellis_cabac_8x8_psy_sse2)
  264. int x264_trellis_cabac_8x8_psy_sse2 ( TRELLIS_PARAMS, int b_interlaced, dctcoef *fenc_dct, int i_psy_trellis );
  265. #define x264_trellis_cabac_8x8_psy_ssse3 x264_template(trellis_cabac_8x8_psy_ssse3)
  266. int x264_trellis_cabac_8x8_psy_ssse3( TRELLIS_PARAMS, int b_interlaced, dctcoef *fenc_dct, int i_psy_trellis );
  267. #define x264_trellis_cabac_dc_sse2 x264_template(trellis_cabac_dc_sse2)
  268. int x264_trellis_cabac_dc_sse2 ( TRELLIS_PARAMS, int i_coefs );
  269. #define x264_trellis_cabac_dc_ssse3 x264_template(trellis_cabac_dc_ssse3)
  270. int x264_trellis_cabac_dc_ssse3( TRELLIS_PARAMS, int i_coefs );
  271. #define x264_trellis_cabac_chroma_422_dc_sse2 x264_template(trellis_cabac_chroma_422_dc_sse2)
  272. int x264_trellis_cabac_chroma_422_dc_sse2 ( TRELLIS_PARAMS );
  273. #define x264_trellis_cabac_chroma_422_dc_ssse3 x264_template(trellis_cabac_chroma_422_dc_ssse3)
  274. int x264_trellis_cabac_chroma_422_dc_ssse3( TRELLIS_PARAMS );
  275. #endif