h264dsp_mips.h 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. /*
  2. * Copyright (c) 2015 Parag Salasakar (Parag.Salasakar@imgtec.com)
  3. Zhou Xiaoyong <zhouxiaoyong@loongson.cn>
  4. *
  5. * This file is part of FFmpeg.
  6. *
  7. * FFmpeg is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * FFmpeg is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with FFmpeg; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  20. */
  21. #ifndef AVCODEC_MIPS_H264DSP_MIPS_H
  22. #define AVCODEC_MIPS_H264DSP_MIPS_H
  23. #include "libavcodec/h264dec.h"
  24. #include "constants.h"
  25. void ff_h264_h_lpf_luma_inter_msa(uint8_t *src, ptrdiff_t stride,
  26. int alpha, int beta, int8_t *tc0);
  27. void ff_h264_v_lpf_luma_inter_msa(uint8_t *src, ptrdiff_t stride,
  28. int alpha, int beta, int8_t *tc0);
  29. void ff_h264_h_lpf_chroma_inter_msa(uint8_t *src, ptrdiff_t stride,
  30. int alpha, int beta, int8_t *tc0);
  31. void ff_h264_v_lpf_chroma_inter_msa(uint8_t *src, ptrdiff_t stride,
  32. int alpha, int beta, int8_t *tc0);
  33. void ff_h264_h_loop_filter_chroma422_msa(uint8_t *src, ptrdiff_t stride,
  34. int32_t alpha, int32_t beta,
  35. int8_t *tc0);
  36. void ff_h264_h_loop_filter_chroma422_mbaff_msa(uint8_t *src, ptrdiff_t stride,
  37. int32_t alpha, int32_t beta,
  38. int8_t *tc0);
  39. void ff_h264_h_loop_filter_luma_mbaff_msa(uint8_t *src, ptrdiff_t stride,
  40. int32_t alpha, int32_t beta,
  41. int8_t *tc0);
  42. void ff_h264_idct_add_msa(uint8_t *dst, int16_t *src, int32_t dst_stride);
  43. void ff_h264_idct4x4_addblk_dc_msa(uint8_t *dst, int16_t *src,
  44. int32_t dst_stride);
  45. void ff_h264_deq_idct_luma_dc_msa(int16_t *dst, int16_t *src,
  46. int32_t de_q_val);
  47. void ff_h264_idct_add16_msa(uint8_t *dst, const int32_t *blk_offset,
  48. int16_t *block, int32_t stride,
  49. const uint8_t nnzc[15 * 8]);
  50. void ff_h264_idct_add16_intra_msa(uint8_t *dst, const int32_t *blk_offset,
  51. int16_t *block, int32_t dst_stride,
  52. const uint8_t nnzc[15 * 8]);
  53. void ff_h264_idct_add8_msa(uint8_t **dst, const int32_t *blk_offset,
  54. int16_t *block, int32_t dst_stride,
  55. const uint8_t nnzc[15 * 8]);
  56. void ff_h264_idct_add8_422_msa(uint8_t **dst, const int32_t *blk_offset,
  57. int16_t *block, int32_t dst_stride,
  58. const uint8_t nnzc[15 * 8]);
  59. void ff_h264_idct8_addblk_msa(uint8_t *dst, int16_t *src, int32_t dst_stride);
  60. void ff_h264_idct8_dc_addblk_msa(uint8_t *dst, int16_t *src,
  61. int32_t dst_stride);
  62. void ff_h264_idct8_add4_msa(uint8_t *dst, const int *blk_offset,
  63. int16_t *blk, int dst_stride,
  64. const uint8_t nnzc[15 * 8]);
  65. void ff_h264_h_lpf_luma_intra_msa(uint8_t *src, ptrdiff_t stride,
  66. int alpha, int beta);
  67. void ff_h264_v_lpf_luma_intra_msa(uint8_t *src, ptrdiff_t stride,
  68. int alpha, int beta);
  69. void ff_h264_h_lpf_chroma_intra_msa(uint8_t *src, ptrdiff_t stride,
  70. int alpha, int beta);
  71. void ff_h264_v_lpf_chroma_intra_msa(uint8_t *src, ptrdiff_t stride,
  72. int alpha, int beta);
  73. void ff_h264_h_loop_filter_luma_mbaff_intra_msa(uint8_t *src, ptrdiff_t stride,
  74. int alpha, int beta);
  75. void ff_biweight_h264_pixels16_8_msa(uint8_t *dst, uint8_t *src,
  76. ptrdiff_t stride, int height, int log2_denom,
  77. int weightd, int weights, int offset);
  78. void ff_biweight_h264_pixels8_8_msa(uint8_t *dst, uint8_t *src,
  79. ptrdiff_t stride, int height, int log2_denom,
  80. int weightd, int weights, int offset);
  81. void ff_biweight_h264_pixels4_8_msa(uint8_t *dst, uint8_t *src,
  82. ptrdiff_t stride, int height, int log2_denom,
  83. int weightd, int weights, int offset);
  84. void ff_weight_h264_pixels16_8_msa(uint8_t *src, ptrdiff_t stride, int height,
  85. int log2_denom, int weight, int offset);
  86. void ff_weight_h264_pixels8_8_msa(uint8_t *src, ptrdiff_t stride, int height,
  87. int log2_denom, int weight, int offset);
  88. void ff_weight_h264_pixels4_8_msa(uint8_t *src, ptrdiff_t stride, int height,
  89. int log2_denom, int weight, int offset);
  90. void ff_put_h264_qpel16_mc00_msa(uint8_t *dst, const uint8_t *src,
  91. ptrdiff_t dst_stride);
  92. void ff_put_h264_qpel16_mc10_msa(uint8_t *dst, const uint8_t *src,
  93. ptrdiff_t dst_stride);
  94. void ff_put_h264_qpel16_mc20_msa(uint8_t *dst, const uint8_t *src,
  95. ptrdiff_t dst_stride);
  96. void ff_put_h264_qpel16_mc30_msa(uint8_t *dst, const uint8_t *src,
  97. ptrdiff_t dst_stride);
  98. void ff_put_h264_qpel16_mc01_msa(uint8_t *dst, const uint8_t *src,
  99. ptrdiff_t dst_stride);
  100. void ff_put_h264_qpel16_mc11_msa(uint8_t *dst, const uint8_t *src,
  101. ptrdiff_t dst_stride);
  102. void ff_put_h264_qpel16_mc21_msa(uint8_t *dst, const uint8_t *src,
  103. ptrdiff_t dst_stride);
  104. void ff_put_h264_qpel16_mc31_msa(uint8_t *dst, const uint8_t *src,
  105. ptrdiff_t dst_stride);
  106. void ff_put_h264_qpel16_mc02_msa(uint8_t *dst, const uint8_t *src,
  107. ptrdiff_t dst_stride);
  108. void ff_put_h264_qpel16_mc12_msa(uint8_t *dst, const uint8_t *src,
  109. ptrdiff_t dst_stride);
  110. void ff_put_h264_qpel16_mc22_msa(uint8_t *dst, const uint8_t *src,
  111. ptrdiff_t dst_stride);
  112. void ff_put_h264_qpel16_mc32_msa(uint8_t *dst, const uint8_t *src,
  113. ptrdiff_t dst_stride);
  114. void ff_put_h264_qpel16_mc03_msa(uint8_t *dst, const uint8_t *src,
  115. ptrdiff_t dst_stride);
  116. void ff_put_h264_qpel16_mc13_msa(uint8_t *dst, const uint8_t *src,
  117. ptrdiff_t dst_stride);
  118. void ff_put_h264_qpel16_mc23_msa(uint8_t *dst, const uint8_t *src,
  119. ptrdiff_t dst_stride);
  120. void ff_put_h264_qpel16_mc33_msa(uint8_t *dst, const uint8_t *src,
  121. ptrdiff_t dst_stride);
  122. void ff_put_h264_qpel8_mc00_msa(uint8_t *dst, const uint8_t *src,
  123. ptrdiff_t dst_stride);
  124. void ff_put_h264_qpel8_mc10_msa(uint8_t *dst, const uint8_t *src,
  125. ptrdiff_t dst_stride);
  126. void ff_put_h264_qpel8_mc20_msa(uint8_t *dst, const uint8_t *src,
  127. ptrdiff_t dst_stride);
  128. void ff_put_h264_qpel8_mc30_msa(uint8_t *dst, const uint8_t *src,
  129. ptrdiff_t dst_stride);
  130. void ff_put_h264_qpel8_mc01_msa(uint8_t *dst, const uint8_t *src,
  131. ptrdiff_t dst_stride);
  132. void ff_put_h264_qpel8_mc11_msa(uint8_t *dst, const uint8_t *src,
  133. ptrdiff_t dst_stride);
  134. void ff_put_h264_qpel8_mc21_msa(uint8_t *dst, const uint8_t *src,
  135. ptrdiff_t dst_stride);
  136. void ff_put_h264_qpel8_mc31_msa(uint8_t *dst, const uint8_t *src,
  137. ptrdiff_t dst_stride);
  138. void ff_put_h264_qpel8_mc02_msa(uint8_t *dst, const uint8_t *src,
  139. ptrdiff_t dst_stride);
  140. void ff_put_h264_qpel8_mc12_msa(uint8_t *dst, const uint8_t *src,
  141. ptrdiff_t dst_stride);
  142. void ff_put_h264_qpel8_mc22_msa(uint8_t *dst, const uint8_t *src,
  143. ptrdiff_t dst_stride);
  144. void ff_put_h264_qpel8_mc32_msa(uint8_t *dst, const uint8_t *src,
  145. ptrdiff_t dst_stride);
  146. void ff_put_h264_qpel8_mc03_msa(uint8_t *dst, const uint8_t *src,
  147. ptrdiff_t dst_stride);
  148. void ff_put_h264_qpel8_mc13_msa(uint8_t *dst, const uint8_t *src,
  149. ptrdiff_t dst_stride);
  150. void ff_put_h264_qpel8_mc23_msa(uint8_t *dst, const uint8_t *src,
  151. ptrdiff_t dst_stride);
  152. void ff_put_h264_qpel8_mc33_msa(uint8_t *dst, const uint8_t *src,
  153. ptrdiff_t dst_stride);
  154. void ff_put_h264_qpel4_mc00_msa(uint8_t *dst, const uint8_t *src,
  155. ptrdiff_t dst_stride);
  156. void ff_put_h264_qpel4_mc10_msa(uint8_t *dst, const uint8_t *src,
  157. ptrdiff_t dst_stride);
  158. void ff_put_h264_qpel4_mc20_msa(uint8_t *dst, const uint8_t *src,
  159. ptrdiff_t dst_stride);
  160. void ff_put_h264_qpel4_mc30_msa(uint8_t *dst, const uint8_t *src,
  161. ptrdiff_t dst_stride);
  162. void ff_put_h264_qpel4_mc01_msa(uint8_t *dst, const uint8_t *src,
  163. ptrdiff_t dst_stride);
  164. void ff_put_h264_qpel4_mc11_msa(uint8_t *dst, const uint8_t *src,
  165. ptrdiff_t dst_stride);
  166. void ff_put_h264_qpel4_mc21_msa(uint8_t *dst, const uint8_t *src,
  167. ptrdiff_t dst_stride);
  168. void ff_put_h264_qpel4_mc31_msa(uint8_t *dst, const uint8_t *src,
  169. ptrdiff_t dst_stride);
  170. void ff_put_h264_qpel4_mc02_msa(uint8_t *dst, const uint8_t *src,
  171. ptrdiff_t dst_stride);
  172. void ff_put_h264_qpel4_mc12_msa(uint8_t *dst, const uint8_t *src,
  173. ptrdiff_t dst_stride);
  174. void ff_put_h264_qpel4_mc22_msa(uint8_t *dst, const uint8_t *src,
  175. ptrdiff_t dst_stride);
  176. void ff_put_h264_qpel4_mc32_msa(uint8_t *dst, const uint8_t *src,
  177. ptrdiff_t dst_stride);
  178. void ff_put_h264_qpel4_mc03_msa(uint8_t *dst, const uint8_t *src,
  179. ptrdiff_t dst_stride);
  180. void ff_put_h264_qpel4_mc13_msa(uint8_t *dst, const uint8_t *src,
  181. ptrdiff_t dst_stride);
  182. void ff_put_h264_qpel4_mc23_msa(uint8_t *dst, const uint8_t *src,
  183. ptrdiff_t dst_stride);
  184. void ff_put_h264_qpel4_mc33_msa(uint8_t *dst, const uint8_t *src,
  185. ptrdiff_t dst_stride);
  186. void ff_avg_h264_qpel16_mc00_msa(uint8_t *dst, const uint8_t *src,
  187. ptrdiff_t dst_stride);
  188. void ff_avg_h264_qpel16_mc10_msa(uint8_t *dst, const uint8_t *src,
  189. ptrdiff_t dst_stride);
  190. void ff_avg_h264_qpel16_mc20_msa(uint8_t *dst, const uint8_t *src,
  191. ptrdiff_t dst_stride);
  192. void ff_avg_h264_qpel16_mc30_msa(uint8_t *dst, const uint8_t *src,
  193. ptrdiff_t dst_stride);
  194. void ff_avg_h264_qpel16_mc01_msa(uint8_t *dst, const uint8_t *src,
  195. ptrdiff_t dst_stride);
  196. void ff_avg_h264_qpel16_mc11_msa(uint8_t *dst, const uint8_t *src,
  197. ptrdiff_t dst_stride);
  198. void ff_avg_h264_qpel16_mc21_msa(uint8_t *dst, const uint8_t *src,
  199. ptrdiff_t dst_stride);
  200. void ff_avg_h264_qpel16_mc31_msa(uint8_t *dst, const uint8_t *src,
  201. ptrdiff_t dst_stride);
  202. void ff_avg_h264_qpel16_mc02_msa(uint8_t *dst, const uint8_t *src,
  203. ptrdiff_t dst_stride);
  204. void ff_avg_h264_qpel16_mc12_msa(uint8_t *dst, const uint8_t *src,
  205. ptrdiff_t dst_stride);
  206. void ff_avg_h264_qpel16_mc22_msa(uint8_t *dst, const uint8_t *src,
  207. ptrdiff_t dst_stride);
  208. void ff_avg_h264_qpel16_mc32_msa(uint8_t *dst, const uint8_t *src,
  209. ptrdiff_t dst_stride);
  210. void ff_avg_h264_qpel16_mc03_msa(uint8_t *dst, const uint8_t *src,
  211. ptrdiff_t dst_stride);
  212. void ff_avg_h264_qpel16_mc13_msa(uint8_t *dst, const uint8_t *src,
  213. ptrdiff_t dst_stride);
  214. void ff_avg_h264_qpel16_mc23_msa(uint8_t *dst, const uint8_t *src,
  215. ptrdiff_t dst_stride);
  216. void ff_avg_h264_qpel16_mc33_msa(uint8_t *dst, const uint8_t *src,
  217. ptrdiff_t dst_stride);
  218. void ff_avg_h264_qpel8_mc00_msa(uint8_t *dst, const uint8_t *src,
  219. ptrdiff_t dst_stride);
  220. void ff_avg_h264_qpel8_mc10_msa(uint8_t *dst, const uint8_t *src,
  221. ptrdiff_t dst_stride);
  222. void ff_avg_h264_qpel8_mc20_msa(uint8_t *dst, const uint8_t *src,
  223. ptrdiff_t dst_stride);
  224. void ff_avg_h264_qpel8_mc30_msa(uint8_t *dst, const uint8_t *src,
  225. ptrdiff_t dst_stride);
  226. void ff_avg_h264_qpel8_mc01_msa(uint8_t *dst, const uint8_t *src,
  227. ptrdiff_t dst_stride);
  228. void ff_avg_h264_qpel8_mc11_msa(uint8_t *dst, const uint8_t *src,
  229. ptrdiff_t dst_stride);
  230. void ff_avg_h264_qpel8_mc21_msa(uint8_t *dst, const uint8_t *src,
  231. ptrdiff_t dst_stride);
  232. void ff_avg_h264_qpel8_mc31_msa(uint8_t *dst, const uint8_t *src,
  233. ptrdiff_t dst_stride);
  234. void ff_avg_h264_qpel8_mc02_msa(uint8_t *dst, const uint8_t *src,
  235. ptrdiff_t dst_stride);
  236. void ff_avg_h264_qpel8_mc12_msa(uint8_t *dst, const uint8_t *src,
  237. ptrdiff_t dst_stride);
  238. void ff_avg_h264_qpel8_mc22_msa(uint8_t *dst, const uint8_t *src,
  239. ptrdiff_t dst_stride);
  240. void ff_avg_h264_qpel8_mc32_msa(uint8_t *dst, const uint8_t *src,
  241. ptrdiff_t dst_stride);
  242. void ff_avg_h264_qpel8_mc03_msa(uint8_t *dst, const uint8_t *src,
  243. ptrdiff_t dst_stride);
  244. void ff_avg_h264_qpel8_mc13_msa(uint8_t *dst, const uint8_t *src,
  245. ptrdiff_t dst_stride);
  246. void ff_avg_h264_qpel8_mc23_msa(uint8_t *dst, const uint8_t *src,
  247. ptrdiff_t dst_stride);
  248. void ff_avg_h264_qpel8_mc33_msa(uint8_t *dst, const uint8_t *src,
  249. ptrdiff_t dst_stride);
  250. void ff_avg_h264_qpel4_mc00_msa(uint8_t *dst, const uint8_t *src,
  251. ptrdiff_t dst_stride);
  252. void ff_avg_h264_qpel4_mc10_msa(uint8_t *dst, const uint8_t *src,
  253. ptrdiff_t dst_stride);
  254. void ff_avg_h264_qpel4_mc20_msa(uint8_t *dst, const uint8_t *src,
  255. ptrdiff_t dst_stride);
  256. void ff_avg_h264_qpel4_mc30_msa(uint8_t *dst, const uint8_t *src,
  257. ptrdiff_t dst_stride);
  258. void ff_avg_h264_qpel4_mc01_msa(uint8_t *dst, const uint8_t *src,
  259. ptrdiff_t dst_stride);
  260. void ff_avg_h264_qpel4_mc11_msa(uint8_t *dst, const uint8_t *src,
  261. ptrdiff_t dst_stride);
  262. void ff_avg_h264_qpel4_mc21_msa(uint8_t *dst, const uint8_t *src,
  263. ptrdiff_t dst_stride);
  264. void ff_avg_h264_qpel4_mc31_msa(uint8_t *dst, const uint8_t *src,
  265. ptrdiff_t dst_stride);
  266. void ff_avg_h264_qpel4_mc02_msa(uint8_t *dst, const uint8_t *src,
  267. ptrdiff_t dst_stride);
  268. void ff_avg_h264_qpel4_mc12_msa(uint8_t *dst, const uint8_t *src,
  269. ptrdiff_t dst_stride);
  270. void ff_avg_h264_qpel4_mc22_msa(uint8_t *dst, const uint8_t *src,
  271. ptrdiff_t dst_stride);
  272. void ff_avg_h264_qpel4_mc32_msa(uint8_t *dst, const uint8_t *src,
  273. ptrdiff_t dst_stride);
  274. void ff_avg_h264_qpel4_mc03_msa(uint8_t *dst, const uint8_t *src,
  275. ptrdiff_t dst_stride);
  276. void ff_avg_h264_qpel4_mc13_msa(uint8_t *dst, const uint8_t *src,
  277. ptrdiff_t dst_stride);
  278. void ff_avg_h264_qpel4_mc23_msa(uint8_t *dst, const uint8_t *src,
  279. ptrdiff_t dst_stride);
  280. void ff_avg_h264_qpel4_mc33_msa(uint8_t *dst, const uint8_t *src,
  281. ptrdiff_t dst_stride);
  282. void ff_h264_intra_predict_plane_8x8_msa(uint8_t *src, ptrdiff_t stride);
  283. void ff_h264_intra_predict_dc_4blk_8x8_msa(uint8_t *src, ptrdiff_t stride);
  284. void ff_h264_intra_predict_hor_dc_8x8_msa(uint8_t *src, ptrdiff_t stride);
  285. void ff_h264_intra_predict_vert_dc_8x8_msa(uint8_t *src, ptrdiff_t stride);
  286. void ff_h264_intra_predict_mad_cow_dc_l0t_8x8_msa(uint8_t *src,
  287. ptrdiff_t stride);
  288. void ff_h264_intra_predict_mad_cow_dc_0lt_8x8_msa(uint8_t *src,
  289. ptrdiff_t stride);
  290. void ff_h264_intra_predict_mad_cow_dc_l00_8x8_msa(uint8_t *src,
  291. ptrdiff_t stride);
  292. void ff_h264_intra_predict_mad_cow_dc_0l0_8x8_msa(uint8_t *src,
  293. ptrdiff_t stride);
  294. void ff_h264_intra_predict_plane_16x16_msa(uint8_t *src, ptrdiff_t stride);
  295. void ff_h264_intra_pred_vert_8x8_msa(uint8_t *src, ptrdiff_t stride);
  296. void ff_h264_intra_pred_horiz_8x8_msa(uint8_t *src, ptrdiff_t stride);
  297. void ff_h264_intra_pred_dc_16x16_msa(uint8_t *src, ptrdiff_t stride);
  298. void ff_h264_intra_pred_vert_16x16_msa(uint8_t *src, ptrdiff_t stride);
  299. void ff_h264_intra_pred_horiz_16x16_msa(uint8_t *src, ptrdiff_t stride);
  300. void ff_h264_intra_pred_dc_left_16x16_msa(uint8_t *src, ptrdiff_t stride);
  301. void ff_h264_intra_pred_dc_top_16x16_msa(uint8_t *src, ptrdiff_t stride);
  302. void ff_h264_intra_pred_dc_128_8x8_msa(uint8_t *src, ptrdiff_t stride);
  303. void ff_h264_intra_pred_dc_128_16x16_msa(uint8_t *src, ptrdiff_t stride);
  304. void ff_vp8_pred8x8_127_dc_8_msa(uint8_t *src, ptrdiff_t stride);
  305. void ff_vp8_pred8x8_129_dc_8_msa(uint8_t *src, ptrdiff_t stride);
  306. void ff_vp8_pred16x16_127_dc_8_msa(uint8_t *src, ptrdiff_t stride);
  307. void ff_vp8_pred16x16_129_dc_8_msa(uint8_t *src, ptrdiff_t stride);
  308. void ff_h264_add_pixels4_8_mmi(uint8_t *_dst, int16_t *_src, int stride);
  309. void ff_h264_idct_add_8_mmi(uint8_t *dst, int16_t *block, int stride);
  310. void ff_h264_idct8_add_8_mmi(uint8_t *dst, int16_t *block, int stride);
  311. void ff_h264_idct_dc_add_8_mmi(uint8_t *dst, int16_t *block, int stride);
  312. void ff_h264_idct8_dc_add_8_mmi(uint8_t *dst, int16_t *block, int stride);
  313. void ff_h264_idct_add16_8_mmi(uint8_t *dst, const int *block_offset,
  314. int16_t *block, int stride, const uint8_t nnzc[15*8]);
  315. void ff_h264_idct_add16intra_8_mmi(uint8_t *dst, const int *block_offset,
  316. int16_t *block, int stride, const uint8_t nnzc[15*8]);
  317. void ff_h264_idct8_add4_8_mmi(uint8_t *dst, const int *block_offset,
  318. int16_t *block, int stride, const uint8_t nnzc[15*8]);
  319. void ff_h264_idct_add8_8_mmi(uint8_t **dest, const int *block_offset,
  320. int16_t *block, int stride, const uint8_t nnzc[15*8]);
  321. void ff_h264_idct_add8_422_8_mmi(uint8_t **dest, const int *block_offset,
  322. int16_t *block, int stride, const uint8_t nnzc[15*8]);
  323. void ff_h264_luma_dc_dequant_idct_8_mmi(int16_t *output, int16_t *input,
  324. int qmul);
  325. void ff_h264_chroma_dc_dequant_idct_8_mmi(int16_t *block, int qmul);
  326. void ff_h264_chroma422_dc_dequant_idct_8_mmi(int16_t *block, int qmul);
  327. void ff_h264_weight_pixels16_8_mmi(uint8_t *block, ptrdiff_t stride, int height,
  328. int log2_denom, int weight, int offset);
  329. void ff_h264_biweight_pixels16_8_mmi(uint8_t *dst, uint8_t *src,
  330. ptrdiff_t stride, int height, int log2_denom, int weightd, int weights,
  331. int offset);
  332. void ff_h264_weight_pixels8_8_mmi(uint8_t *block, ptrdiff_t stride, int height,
  333. int log2_denom, int weight, int offset);
  334. void ff_h264_biweight_pixels8_8_mmi(uint8_t *dst, uint8_t *src,
  335. ptrdiff_t stride, int height, int log2_denom, int weightd, int weights,
  336. int offset);
  337. void ff_h264_weight_pixels4_8_mmi(uint8_t *block, ptrdiff_t stride, int height,
  338. int log2_denom, int weight, int offset);
  339. void ff_h264_biweight_pixels4_8_mmi(uint8_t *dst, uint8_t *src,
  340. ptrdiff_t stride, int height, int log2_denom, int weightd, int weights,
  341. int offset);
  342. void ff_deblock_v_chroma_8_mmi(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,
  343. int8_t *tc0);
  344. void ff_deblock_v_chroma_intra_8_mmi(uint8_t *pix, ptrdiff_t stride, int alpha,
  345. int beta);
  346. void ff_deblock_h_chroma_8_mmi(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,
  347. int8_t *tc0);
  348. void ff_deblock_h_chroma_intra_8_mmi(uint8_t *pix, ptrdiff_t stride, int alpha,
  349. int beta);
  350. void ff_deblock_v_luma_8_mmi(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,
  351. int8_t *tc0);
  352. void ff_deblock_v_luma_intra_8_mmi(uint8_t *pix, ptrdiff_t stride, int alpha,
  353. int beta);
  354. void ff_deblock_h_luma_8_mmi(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,
  355. int8_t *tc0);
  356. void ff_deblock_h_luma_intra_8_mmi(uint8_t *pix, ptrdiff_t stride, int alpha,
  357. int beta);
  358. void ff_deblock_v8_luma_8_mmi(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,
  359. int8_t *tc0);
  360. void ff_deblock_v8_luma_intra_8_mmi(uint8_t *pix, ptrdiff_t stride, int alpha,
  361. int beta);
  362. void ff_put_h264_qpel16_mc00_mmi(uint8_t *dst, const uint8_t *src,
  363. ptrdiff_t dst_stride);
  364. void ff_put_h264_qpel16_mc10_mmi(uint8_t *dst, const uint8_t *src,
  365. ptrdiff_t dst_stride);
  366. void ff_put_h264_qpel16_mc20_mmi(uint8_t *dst, const uint8_t *src,
  367. ptrdiff_t dst_stride);
  368. void ff_put_h264_qpel16_mc30_mmi(uint8_t *dst, const uint8_t *src,
  369. ptrdiff_t dst_stride);
  370. void ff_put_h264_qpel16_mc01_mmi(uint8_t *dst, const uint8_t *src,
  371. ptrdiff_t dst_stride);
  372. void ff_put_h264_qpel16_mc11_mmi(uint8_t *dst, const uint8_t *src,
  373. ptrdiff_t dst_stride);
  374. void ff_put_h264_qpel16_mc21_mmi(uint8_t *dst, const uint8_t *src,
  375. ptrdiff_t dst_stride);
  376. void ff_put_h264_qpel16_mc31_mmi(uint8_t *dst, const uint8_t *src,
  377. ptrdiff_t dst_stride);
  378. void ff_put_h264_qpel16_mc02_mmi(uint8_t *dst, const uint8_t *src,
  379. ptrdiff_t dst_stride);
  380. void ff_put_h264_qpel16_mc12_mmi(uint8_t *dst, const uint8_t *src,
  381. ptrdiff_t dst_stride);
  382. void ff_put_h264_qpel16_mc22_mmi(uint8_t *dst, const uint8_t *src,
  383. ptrdiff_t dst_stride);
  384. void ff_put_h264_qpel16_mc32_mmi(uint8_t *dst, const uint8_t *src,
  385. ptrdiff_t dst_stride);
  386. void ff_put_h264_qpel16_mc03_mmi(uint8_t *dst, const uint8_t *src,
  387. ptrdiff_t dst_stride);
  388. void ff_put_h264_qpel16_mc13_mmi(uint8_t *dst, const uint8_t *src,
  389. ptrdiff_t dst_stride);
  390. void ff_put_h264_qpel16_mc23_mmi(uint8_t *dst, const uint8_t *src,
  391. ptrdiff_t dst_stride);
  392. void ff_put_h264_qpel16_mc33_mmi(uint8_t *dst, const uint8_t *src,
  393. ptrdiff_t dst_stride);
  394. void ff_put_h264_qpel8_mc00_mmi(uint8_t *dst, const uint8_t *src,
  395. ptrdiff_t dst_stride);
  396. void ff_put_h264_qpel8_mc10_mmi(uint8_t *dst, const uint8_t *src,
  397. ptrdiff_t dst_stride);
  398. void ff_put_h264_qpel8_mc20_mmi(uint8_t *dst, const uint8_t *src,
  399. ptrdiff_t dst_stride);
  400. void ff_put_h264_qpel8_mc30_mmi(uint8_t *dst, const uint8_t *src,
  401. ptrdiff_t dst_stride);
  402. void ff_put_h264_qpel8_mc01_mmi(uint8_t *dst, const uint8_t *src,
  403. ptrdiff_t dst_stride);
  404. void ff_put_h264_qpel8_mc11_mmi(uint8_t *dst, const uint8_t *src,
  405. ptrdiff_t dst_stride);
  406. void ff_put_h264_qpel8_mc21_mmi(uint8_t *dst, const uint8_t *src,
  407. ptrdiff_t dst_stride);
  408. void ff_put_h264_qpel8_mc31_mmi(uint8_t *dst, const uint8_t *src,
  409. ptrdiff_t dst_stride);
  410. void ff_put_h264_qpel8_mc02_mmi(uint8_t *dst, const uint8_t *src,
  411. ptrdiff_t dst_stride);
  412. void ff_put_h264_qpel8_mc12_mmi(uint8_t *dst, const uint8_t *src,
  413. ptrdiff_t dst_stride);
  414. void ff_put_h264_qpel8_mc22_mmi(uint8_t *dst, const uint8_t *src,
  415. ptrdiff_t dst_stride);
  416. void ff_put_h264_qpel8_mc32_mmi(uint8_t *dst, const uint8_t *src,
  417. ptrdiff_t dst_stride);
  418. void ff_put_h264_qpel8_mc03_mmi(uint8_t *dst, const uint8_t *src,
  419. ptrdiff_t dst_stride);
  420. void ff_put_h264_qpel8_mc13_mmi(uint8_t *dst, const uint8_t *src,
  421. ptrdiff_t dst_stride);
  422. void ff_put_h264_qpel8_mc23_mmi(uint8_t *dst, const uint8_t *src,
  423. ptrdiff_t dst_stride);
  424. void ff_put_h264_qpel8_mc33_mmi(uint8_t *dst, const uint8_t *src,
  425. ptrdiff_t dst_stride);
  426. void ff_put_h264_qpel4_mc00_mmi(uint8_t *dst, const uint8_t *src,
  427. ptrdiff_t dst_stride);
  428. void ff_put_h264_qpel4_mc10_mmi(uint8_t *dst, const uint8_t *src,
  429. ptrdiff_t dst_stride);
  430. void ff_put_h264_qpel4_mc20_mmi(uint8_t *dst, const uint8_t *src,
  431. ptrdiff_t dst_stride);
  432. void ff_put_h264_qpel4_mc30_mmi(uint8_t *dst, const uint8_t *src,
  433. ptrdiff_t dst_stride);
  434. void ff_put_h264_qpel4_mc01_mmi(uint8_t *dst, const uint8_t *src,
  435. ptrdiff_t dst_stride);
  436. void ff_put_h264_qpel4_mc11_mmi(uint8_t *dst, const uint8_t *src,
  437. ptrdiff_t dst_stride);
  438. void ff_put_h264_qpel4_mc21_mmi(uint8_t *dst, const uint8_t *src,
  439. ptrdiff_t dst_stride);
  440. void ff_put_h264_qpel4_mc31_mmi(uint8_t *dst, const uint8_t *src,
  441. ptrdiff_t dst_stride);
  442. void ff_put_h264_qpel4_mc02_mmi(uint8_t *dst, const uint8_t *src,
  443. ptrdiff_t dst_stride);
  444. void ff_put_h264_qpel4_mc12_mmi(uint8_t *dst, const uint8_t *src,
  445. ptrdiff_t dst_stride);
  446. void ff_put_h264_qpel4_mc22_mmi(uint8_t *dst, const uint8_t *src,
  447. ptrdiff_t dst_stride);
  448. void ff_put_h264_qpel4_mc32_mmi(uint8_t *dst, const uint8_t *src,
  449. ptrdiff_t dst_stride);
  450. void ff_put_h264_qpel4_mc03_mmi(uint8_t *dst, const uint8_t *src,
  451. ptrdiff_t dst_stride);
  452. void ff_put_h264_qpel4_mc13_mmi(uint8_t *dst, const uint8_t *src,
  453. ptrdiff_t dst_stride);
  454. void ff_put_h264_qpel4_mc23_mmi(uint8_t *dst, const uint8_t *src,
  455. ptrdiff_t dst_stride);
  456. void ff_put_h264_qpel4_mc33_mmi(uint8_t *dst, const uint8_t *src,
  457. ptrdiff_t dst_stride);
  458. void ff_avg_h264_qpel16_mc00_mmi(uint8_t *dst, const uint8_t *src,
  459. ptrdiff_t dst_stride);
  460. void ff_avg_h264_qpel16_mc10_mmi(uint8_t *dst, const uint8_t *src,
  461. ptrdiff_t dst_stride);
  462. void ff_avg_h264_qpel16_mc20_mmi(uint8_t *dst, const uint8_t *src,
  463. ptrdiff_t dst_stride);
  464. void ff_avg_h264_qpel16_mc30_mmi(uint8_t *dst, const uint8_t *src,
  465. ptrdiff_t dst_stride);
  466. void ff_avg_h264_qpel16_mc01_mmi(uint8_t *dst, const uint8_t *src,
  467. ptrdiff_t dst_stride);
  468. void ff_avg_h264_qpel16_mc11_mmi(uint8_t *dst, const uint8_t *src,
  469. ptrdiff_t dst_stride);
  470. void ff_avg_h264_qpel16_mc21_mmi(uint8_t *dst, const uint8_t *src,
  471. ptrdiff_t dst_stride);
  472. void ff_avg_h264_qpel16_mc31_mmi(uint8_t *dst, const uint8_t *src,
  473. ptrdiff_t dst_stride);
  474. void ff_avg_h264_qpel16_mc02_mmi(uint8_t *dst, const uint8_t *src,
  475. ptrdiff_t dst_stride);
  476. void ff_avg_h264_qpel16_mc12_mmi(uint8_t *dst, const uint8_t *src,
  477. ptrdiff_t dst_stride);
  478. void ff_avg_h264_qpel16_mc22_mmi(uint8_t *dst, const uint8_t *src,
  479. ptrdiff_t dst_stride);
  480. void ff_avg_h264_qpel16_mc32_mmi(uint8_t *dst, const uint8_t *src,
  481. ptrdiff_t dst_stride);
  482. void ff_avg_h264_qpel16_mc03_mmi(uint8_t *dst, const uint8_t *src,
  483. ptrdiff_t dst_stride);
  484. void ff_avg_h264_qpel16_mc13_mmi(uint8_t *dst, const uint8_t *src,
  485. ptrdiff_t dst_stride);
  486. void ff_avg_h264_qpel16_mc23_mmi(uint8_t *dst, const uint8_t *src,
  487. ptrdiff_t dst_stride);
  488. void ff_avg_h264_qpel16_mc33_mmi(uint8_t *dst, const uint8_t *src,
  489. ptrdiff_t dst_stride);
  490. void ff_avg_h264_qpel8_mc00_mmi(uint8_t *dst, const uint8_t *src,
  491. ptrdiff_t dst_stride);
  492. void ff_avg_h264_qpel8_mc10_mmi(uint8_t *dst, const uint8_t *src,
  493. ptrdiff_t dst_stride);
  494. void ff_avg_h264_qpel8_mc20_mmi(uint8_t *dst, const uint8_t *src,
  495. ptrdiff_t dst_stride);
  496. void ff_avg_h264_qpel8_mc30_mmi(uint8_t *dst, const uint8_t *src,
  497. ptrdiff_t dst_stride);
  498. void ff_avg_h264_qpel8_mc01_mmi(uint8_t *dst, const uint8_t *src,
  499. ptrdiff_t dst_stride);
  500. void ff_avg_h264_qpel8_mc11_mmi(uint8_t *dst, const uint8_t *src,
  501. ptrdiff_t dst_stride);
  502. void ff_avg_h264_qpel8_mc21_mmi(uint8_t *dst, const uint8_t *src,
  503. ptrdiff_t dst_stride);
  504. void ff_avg_h264_qpel8_mc31_mmi(uint8_t *dst, const uint8_t *src,
  505. ptrdiff_t dst_stride);
  506. void ff_avg_h264_qpel8_mc02_mmi(uint8_t *dst, const uint8_t *src,
  507. ptrdiff_t dst_stride);
  508. void ff_avg_h264_qpel8_mc12_mmi(uint8_t *dst, const uint8_t *src,
  509. ptrdiff_t dst_stride);
  510. void ff_avg_h264_qpel8_mc22_mmi(uint8_t *dst, const uint8_t *src,
  511. ptrdiff_t dst_stride);
  512. void ff_avg_h264_qpel8_mc32_mmi(uint8_t *dst, const uint8_t *src,
  513. ptrdiff_t dst_stride);
  514. void ff_avg_h264_qpel8_mc03_mmi(uint8_t *dst, const uint8_t *src,
  515. ptrdiff_t dst_stride);
  516. void ff_avg_h264_qpel8_mc13_mmi(uint8_t *dst, const uint8_t *src,
  517. ptrdiff_t dst_stride);
  518. void ff_avg_h264_qpel8_mc23_mmi(uint8_t *dst, const uint8_t *src,
  519. ptrdiff_t dst_stride);
  520. void ff_avg_h264_qpel8_mc33_mmi(uint8_t *dst, const uint8_t *src,
  521. ptrdiff_t dst_stride);
  522. void ff_avg_h264_qpel4_mc00_mmi(uint8_t *dst, const uint8_t *src,
  523. ptrdiff_t dst_stride);
  524. void ff_avg_h264_qpel4_mc10_mmi(uint8_t *dst, const uint8_t *src,
  525. ptrdiff_t dst_stride);
  526. void ff_avg_h264_qpel4_mc20_mmi(uint8_t *dst, const uint8_t *src,
  527. ptrdiff_t dst_stride);
  528. void ff_avg_h264_qpel4_mc30_mmi(uint8_t *dst, const uint8_t *src,
  529. ptrdiff_t dst_stride);
  530. void ff_avg_h264_qpel4_mc01_mmi(uint8_t *dst, const uint8_t *src,
  531. ptrdiff_t dst_stride);
  532. void ff_avg_h264_qpel4_mc11_mmi(uint8_t *dst, const uint8_t *src,
  533. ptrdiff_t dst_stride);
  534. void ff_avg_h264_qpel4_mc21_mmi(uint8_t *dst, const uint8_t *src,
  535. ptrdiff_t dst_stride);
  536. void ff_avg_h264_qpel4_mc31_mmi(uint8_t *dst, const uint8_t *src,
  537. ptrdiff_t dst_stride);
  538. void ff_avg_h264_qpel4_mc02_mmi(uint8_t *dst, const uint8_t *src,
  539. ptrdiff_t dst_stride);
  540. void ff_avg_h264_qpel4_mc12_mmi(uint8_t *dst, const uint8_t *src,
  541. ptrdiff_t dst_stride);
  542. void ff_avg_h264_qpel4_mc22_mmi(uint8_t *dst, const uint8_t *src,
  543. ptrdiff_t dst_stride);
  544. void ff_avg_h264_qpel4_mc32_mmi(uint8_t *dst, const uint8_t *src,
  545. ptrdiff_t dst_stride);
  546. void ff_avg_h264_qpel4_mc03_mmi(uint8_t *dst, const uint8_t *src,
  547. ptrdiff_t dst_stride);
  548. void ff_avg_h264_qpel4_mc13_mmi(uint8_t *dst, const uint8_t *src,
  549. ptrdiff_t dst_stride);
  550. void ff_avg_h264_qpel4_mc23_mmi(uint8_t *dst, const uint8_t *src,
  551. ptrdiff_t dst_stride);
  552. void ff_avg_h264_qpel4_mc33_mmi(uint8_t *dst, const uint8_t *src,
  553. ptrdiff_t dst_stride);
  554. #endif // #ifndef AVCODEC_MIPS_H264DSP_MIPS_H