You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

341 lines
19KB

  1. /*
  2. * Copyright (c) 2010 Jason Garrett-Glaser
  3. *
  4. * This file is part of FFmpeg.
  5. *
  6. * FFmpeg is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * FFmpeg is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with FFmpeg; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. #include "libavutil/cpu.h"
  21. #include "libavcodec/h264pred.h"
  22. #define PRED4x4(TYPE, DEPTH, OPT) \
  23. void ff_pred4x4_ ## TYPE ## _ ## DEPTH ## _ ## OPT (uint8_t *src, const uint8_t *topright, int stride);
  24. PRED4x4(dc, 10, mmxext)
  25. PRED4x4(down_left, 10, sse2)
  26. PRED4x4(down_left, 10, avx)
  27. PRED4x4(down_right, 10, sse2)
  28. PRED4x4(down_right, 10, ssse3)
  29. PRED4x4(down_right, 10, avx)
  30. PRED4x4(vertical_left, 10, sse2)
  31. PRED4x4(vertical_left, 10, avx)
  32. PRED4x4(vertical_right, 10, sse2)
  33. PRED4x4(vertical_right, 10, ssse3)
  34. PRED4x4(vertical_right, 10, avx)
  35. PRED4x4(horizontal_up, 10, mmxext)
  36. PRED4x4(horizontal_down, 10, sse2)
  37. PRED4x4(horizontal_down, 10, ssse3)
  38. PRED4x4(horizontal_down, 10, avx)
  39. #define PRED8x8(TYPE, DEPTH, OPT) \
  40. void ff_pred8x8_ ## TYPE ## _ ## DEPTH ## _ ## OPT (uint8_t *src, int stride);
  41. PRED8x8(dc, 10, mmxext)
  42. PRED8x8(dc, 10, sse2)
  43. PRED8x8(top_dc, 10, mmxext)
  44. PRED8x8(top_dc, 10, sse2)
  45. PRED8x8(vertical, 10, sse2)
  46. PRED8x8(horizontal, 10, sse2)
  47. #define PRED8x8L(TYPE, DEPTH, OPT)\
  48. void ff_pred8x8l_ ## TYPE ## _ ## DEPTH ## _ ## OPT (uint8_t *src, int has_topleft, int has_topright, int stride);
  49. PRED8x8L(dc, 10, sse2)
  50. PRED8x8L(dc, 10, ssse3)
  51. PRED8x8L(top_dc, 10, sse2)
  52. PRED8x8L(top_dc, 10, ssse3)
  53. PRED8x8L(vertical, 10, sse2)
  54. PRED8x8L(vertical, 10, ssse3)
  55. PRED8x8L(horizontal, 10, sse2)
  56. PRED8x8L(horizontal, 10, ssse3)
  57. PRED8x8L(down_left, 10, sse2)
  58. PRED8x8L(down_left, 10, ssse3)
  59. PRED8x8L(down_right, 10, sse2)
  60. PRED8x8L(down_right, 10, ssse3)
  61. PRED8x8L(vertical_right, 10, sse2)
  62. PRED8x8L(vertical_right, 10, ssse3)
  63. PRED8x8L(horizontal_up, 10, sse2)
  64. PRED8x8L(horizontal_up, 10, ssse3)
  65. #define PRED16x16(TYPE, DEPTH, OPT)\
  66. void ff_pred16x16_ ## TYPE ## _ ## DEPTH ## _ ## OPT (uint8_t *src, int stride);
  67. PRED16x16(vertical, 10, mmxext)
  68. PRED16x16(vertical, 10, sse2)
  69. PRED16x16(horizontal, 10, mmxext)
  70. PRED16x16(horizontal, 10, sse2)
  71. void ff_pred16x16_vertical_mmx (uint8_t *src, int stride);
  72. void ff_pred16x16_vertical_sse (uint8_t *src, int stride);
  73. void ff_pred16x16_horizontal_mmx (uint8_t *src, int stride);
  74. void ff_pred16x16_horizontal_mmxext(uint8_t *src, int stride);
  75. void ff_pred16x16_horizontal_ssse3 (uint8_t *src, int stride);
  76. void ff_pred16x16_dc_mmxext (uint8_t *src, int stride);
  77. void ff_pred16x16_dc_sse2 (uint8_t *src, int stride);
  78. void ff_pred16x16_dc_ssse3 (uint8_t *src, int stride);
  79. void ff_pred16x16_plane_h264_mmx (uint8_t *src, int stride);
  80. void ff_pred16x16_plane_h264_mmx2 (uint8_t *src, int stride);
  81. void ff_pred16x16_plane_h264_sse2 (uint8_t *src, int stride);
  82. void ff_pred16x16_plane_h264_ssse3 (uint8_t *src, int stride);
  83. void ff_pred16x16_plane_rv40_mmx (uint8_t *src, int stride);
  84. void ff_pred16x16_plane_rv40_mmx2 (uint8_t *src, int stride);
  85. void ff_pred16x16_plane_rv40_sse2 (uint8_t *src, int stride);
  86. void ff_pred16x16_plane_rv40_ssse3 (uint8_t *src, int stride);
  87. void ff_pred16x16_plane_svq3_mmx (uint8_t *src, int stride);
  88. void ff_pred16x16_plane_svq3_mmx2 (uint8_t *src, int stride);
  89. void ff_pred16x16_plane_svq3_sse2 (uint8_t *src, int stride);
  90. void ff_pred16x16_plane_svq3_ssse3 (uint8_t *src, int stride);
  91. void ff_pred16x16_tm_vp8_mmx (uint8_t *src, int stride);
  92. void ff_pred16x16_tm_vp8_mmxext (uint8_t *src, int stride);
  93. void ff_pred16x16_tm_vp8_sse2 (uint8_t *src, int stride);
  94. void ff_pred8x8_top_dc_mmxext (uint8_t *src, int stride);
  95. void ff_pred8x8_dc_rv40_mmxext (uint8_t *src, int stride);
  96. void ff_pred8x8_dc_mmxext (uint8_t *src, int stride);
  97. void ff_pred8x8_vertical_mmx (uint8_t *src, int stride);
  98. void ff_pred8x8_horizontal_mmx (uint8_t *src, int stride);
  99. void ff_pred8x8_horizontal_mmxext (uint8_t *src, int stride);
  100. void ff_pred8x8_horizontal_ssse3 (uint8_t *src, int stride);
  101. void ff_pred8x8_plane_mmx (uint8_t *src, int stride);
  102. void ff_pred8x8_plane_mmx2 (uint8_t *src, int stride);
  103. void ff_pred8x8_plane_sse2 (uint8_t *src, int stride);
  104. void ff_pred8x8_plane_ssse3 (uint8_t *src, int stride);
  105. void ff_pred8x8_tm_vp8_mmx (uint8_t *src, int stride);
  106. void ff_pred8x8_tm_vp8_mmxext (uint8_t *src, int stride);
  107. void ff_pred8x8_tm_vp8_sse2 (uint8_t *src, int stride);
  108. void ff_pred8x8_tm_vp8_ssse3 (uint8_t *src, int stride);
  109. void ff_pred8x8l_top_dc_mmxext (uint8_t *src, int has_topleft, int has_topright, int stride);
  110. void ff_pred8x8l_top_dc_ssse3 (uint8_t *src, int has_topleft, int has_topright, int stride);
  111. void ff_pred8x8l_dc_mmxext (uint8_t *src, int has_topleft, int has_topright, int stride);
  112. void ff_pred8x8l_dc_ssse3 (uint8_t *src, int has_topleft, int has_topright, int stride);
  113. void ff_pred8x8l_horizontal_mmxext (uint8_t *src, int has_topleft, int has_topright, int stride);
  114. void ff_pred8x8l_horizontal_ssse3 (uint8_t *src, int has_topleft, int has_topright, int stride);
  115. void ff_pred8x8l_vertical_mmxext (uint8_t *src, int has_topleft, int has_topright, int stride);
  116. void ff_pred8x8l_vertical_ssse3 (uint8_t *src, int has_topleft, int has_topright, int stride);
  117. void ff_pred8x8l_down_left_mmxext (uint8_t *src, int has_topleft, int has_topright, int stride);
  118. void ff_pred8x8l_down_left_sse2 (uint8_t *src, int has_topleft, int has_topright, int stride);
  119. void ff_pred8x8l_down_left_ssse3 (uint8_t *src, int has_topleft, int has_topright, int stride);
  120. void ff_pred8x8l_down_right_mmxext (uint8_t *src, int has_topleft, int has_topright, int stride);
  121. void ff_pred8x8l_down_right_sse2 (uint8_t *src, int has_topleft, int has_topright, int stride);
  122. void ff_pred8x8l_down_right_ssse3 (uint8_t *src, int has_topleft, int has_topright, int stride);
  123. void ff_pred8x8l_vertical_right_mmxext(uint8_t *src, int has_topleft, int has_topright, int stride);
  124. void ff_pred8x8l_vertical_right_sse2(uint8_t *src, int has_topleft, int has_topright, int stride);
  125. void ff_pred8x8l_vertical_right_ssse3(uint8_t *src, int has_topleft, int has_topright, int stride);
  126. void ff_pred8x8l_vertical_left_sse2(uint8_t *src, int has_topleft, int has_topright, int stride);
  127. void ff_pred8x8l_vertical_left_ssse3(uint8_t *src, int has_topleft, int has_topright, int stride);
  128. void ff_pred8x8l_horizontal_up_mmxext(uint8_t *src, int has_topleft, int has_topright, int stride);
  129. void ff_pred8x8l_horizontal_up_ssse3(uint8_t *src, int has_topleft, int has_topright, int stride);
  130. void ff_pred8x8l_horizontal_down_mmxext(uint8_t *src, int has_topleft, int has_topright, int stride);
  131. void ff_pred8x8l_horizontal_down_sse2(uint8_t *src, int has_topleft, int has_topright, int stride);
  132. void ff_pred8x8l_horizontal_down_ssse3(uint8_t *src, int has_topleft, int has_topright, int stride);
  133. void ff_pred4x4_dc_mmxext (uint8_t *src, const uint8_t *topright, int stride);
  134. void ff_pred4x4_down_left_mmxext (uint8_t *src, const uint8_t *topright, int stride);
  135. void ff_pred4x4_down_right_mmxext (uint8_t *src, const uint8_t *topright, int stride);
  136. void ff_pred4x4_vertical_left_mmxext(uint8_t *src, const uint8_t *topright, int stride);
  137. void ff_pred4x4_vertical_right_mmxext(uint8_t *src, const uint8_t *topright, int stride);
  138. void ff_pred4x4_horizontal_up_mmxext(uint8_t *src, const uint8_t *topright, int stride);
  139. void ff_pred4x4_horizontal_down_mmxext(uint8_t *src, const uint8_t *topright, int stride);
  140. void ff_pred4x4_tm_vp8_mmx (uint8_t *src, const uint8_t *topright, int stride);
  141. void ff_pred4x4_tm_vp8_mmxext (uint8_t *src, const uint8_t *topright, int stride);
  142. void ff_pred4x4_tm_vp8_ssse3 (uint8_t *src, const uint8_t *topright, int stride);
  143. void ff_pred4x4_vertical_vp8_mmxext(uint8_t *src, const uint8_t *topright, int stride);
  144. void ff_h264_pred_init_x86(H264PredContext *h, int codec_id, const int bit_depth)
  145. {
  146. int mm_flags = av_get_cpu_flags();
  147. #if HAVE_YASM
  148. if (bit_depth == 8) {
  149. if (mm_flags & AV_CPU_FLAG_MMX) {
  150. h->pred16x16[VERT_PRED8x8 ] = ff_pred16x16_vertical_mmx;
  151. h->pred16x16[HOR_PRED8x8 ] = ff_pred16x16_horizontal_mmx;
  152. h->pred8x8 [VERT_PRED8x8 ] = ff_pred8x8_vertical_mmx;
  153. h->pred8x8 [HOR_PRED8x8 ] = ff_pred8x8_horizontal_mmx;
  154. if (codec_id == CODEC_ID_VP8) {
  155. h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_tm_vp8_mmx;
  156. h->pred8x8 [PLANE_PRED8x8 ] = ff_pred8x8_tm_vp8_mmx;
  157. h->pred4x4 [TM_VP8_PRED ] = ff_pred4x4_tm_vp8_mmx;
  158. } else {
  159. h->pred8x8 [PLANE_PRED8x8] = ff_pred8x8_plane_mmx;
  160. if (codec_id == CODEC_ID_SVQ3) {
  161. h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_svq3_mmx;
  162. } else if (codec_id == CODEC_ID_RV40) {
  163. h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_rv40_mmx;
  164. } else {
  165. h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_h264_mmx;
  166. }
  167. }
  168. }
  169. if (mm_flags & AV_CPU_FLAG_MMX2) {
  170. h->pred16x16[HOR_PRED8x8 ] = ff_pred16x16_horizontal_mmxext;
  171. h->pred16x16[DC_PRED8x8 ] = ff_pred16x16_dc_mmxext;
  172. h->pred8x8 [HOR_PRED8x8 ] = ff_pred8x8_horizontal_mmxext;
  173. h->pred8x8l [TOP_DC_PRED ] = ff_pred8x8l_top_dc_mmxext;
  174. h->pred8x8l [DC_PRED ] = ff_pred8x8l_dc_mmxext;
  175. h->pred8x8l [HOR_PRED ] = ff_pred8x8l_horizontal_mmxext;
  176. h->pred8x8l [VERT_PRED ] = ff_pred8x8l_vertical_mmxext;
  177. h->pred8x8l [DIAG_DOWN_RIGHT_PRED ] = ff_pred8x8l_down_right_mmxext;
  178. h->pred8x8l [VERT_RIGHT_PRED ] = ff_pred8x8l_vertical_right_mmxext;
  179. h->pred8x8l [HOR_UP_PRED ] = ff_pred8x8l_horizontal_up_mmxext;
  180. h->pred8x8l [DIAG_DOWN_LEFT_PRED ] = ff_pred8x8l_down_left_mmxext;
  181. h->pred8x8l [HOR_DOWN_PRED ] = ff_pred8x8l_horizontal_down_mmxext;
  182. h->pred4x4 [DIAG_DOWN_RIGHT_PRED ] = ff_pred4x4_down_right_mmxext;
  183. h->pred4x4 [VERT_RIGHT_PRED ] = ff_pred4x4_vertical_right_mmxext;
  184. h->pred4x4 [HOR_DOWN_PRED ] = ff_pred4x4_horizontal_down_mmxext;
  185. h->pred4x4 [DC_PRED ] = ff_pred4x4_dc_mmxext;
  186. if (codec_id == CODEC_ID_VP8 || codec_id == CODEC_ID_H264) {
  187. h->pred4x4 [DIAG_DOWN_LEFT_PRED] = ff_pred4x4_down_left_mmxext;
  188. }
  189. if (codec_id == CODEC_ID_SVQ3 || codec_id == CODEC_ID_H264) {
  190. h->pred4x4 [VERT_LEFT_PRED ] = ff_pred4x4_vertical_left_mmxext;
  191. }
  192. if (codec_id != CODEC_ID_RV40) {
  193. h->pred4x4 [HOR_UP_PRED ] = ff_pred4x4_horizontal_up_mmxext;
  194. }
  195. if (codec_id == CODEC_ID_SVQ3 || codec_id == CODEC_ID_H264) {
  196. h->pred8x8 [TOP_DC_PRED8x8 ] = ff_pred8x8_top_dc_mmxext;
  197. h->pred8x8 [DC_PRED8x8 ] = ff_pred8x8_dc_mmxext;
  198. }
  199. if (codec_id == CODEC_ID_VP8) {
  200. h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_tm_vp8_mmxext;
  201. h->pred8x8 [DC_PRED8x8 ] = ff_pred8x8_dc_rv40_mmxext;
  202. h->pred8x8 [PLANE_PRED8x8 ] = ff_pred8x8_tm_vp8_mmxext;
  203. h->pred4x4 [TM_VP8_PRED ] = ff_pred4x4_tm_vp8_mmxext;
  204. h->pred4x4 [VERT_PRED ] = ff_pred4x4_vertical_vp8_mmxext;
  205. } else {
  206. h->pred8x8 [PLANE_PRED8x8] = ff_pred8x8_plane_mmx2;
  207. if (codec_id == CODEC_ID_SVQ3) {
  208. h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_plane_svq3_mmx2;
  209. } else if (codec_id == CODEC_ID_RV40) {
  210. h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_plane_rv40_mmx2;
  211. } else {
  212. h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_plane_h264_mmx2;
  213. }
  214. }
  215. }
  216. if (mm_flags & AV_CPU_FLAG_SSE) {
  217. h->pred16x16[VERT_PRED8x8] = ff_pred16x16_vertical_sse;
  218. }
  219. if (mm_flags & AV_CPU_FLAG_SSE2) {
  220. h->pred16x16[DC_PRED8x8 ] = ff_pred16x16_dc_sse2;
  221. h->pred8x8l [DIAG_DOWN_LEFT_PRED ] = ff_pred8x8l_down_left_sse2;
  222. h->pred8x8l [DIAG_DOWN_RIGHT_PRED ] = ff_pred8x8l_down_right_sse2;
  223. h->pred8x8l [VERT_RIGHT_PRED ] = ff_pred8x8l_vertical_right_sse2;
  224. h->pred8x8l [VERT_LEFT_PRED ] = ff_pred8x8l_vertical_left_sse2;
  225. h->pred8x8l [HOR_DOWN_PRED ] = ff_pred8x8l_horizontal_down_sse2;
  226. if (codec_id == CODEC_ID_VP8) {
  227. h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_tm_vp8_sse2;
  228. h->pred8x8 [PLANE_PRED8x8 ] = ff_pred8x8_tm_vp8_sse2;
  229. } else {
  230. h->pred8x8 [PLANE_PRED8x8 ] = ff_pred8x8_plane_sse2;
  231. if (codec_id == CODEC_ID_SVQ3) {
  232. h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_svq3_sse2;
  233. } else if (codec_id == CODEC_ID_RV40) {
  234. h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_rv40_sse2;
  235. } else {
  236. h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_h264_sse2;
  237. }
  238. }
  239. }
  240. if (mm_flags & AV_CPU_FLAG_SSSE3) {
  241. h->pred16x16[HOR_PRED8x8 ] = ff_pred16x16_horizontal_ssse3;
  242. h->pred16x16[DC_PRED8x8 ] = ff_pred16x16_dc_ssse3;
  243. h->pred8x8 [HOR_PRED8x8 ] = ff_pred8x8_horizontal_ssse3;
  244. h->pred8x8l [TOP_DC_PRED ] = ff_pred8x8l_top_dc_ssse3;
  245. h->pred8x8l [DC_PRED ] = ff_pred8x8l_dc_ssse3;
  246. h->pred8x8l [HOR_PRED ] = ff_pred8x8l_horizontal_ssse3;
  247. h->pred8x8l [VERT_PRED ] = ff_pred8x8l_vertical_ssse3;
  248. h->pred8x8l [DIAG_DOWN_LEFT_PRED ] = ff_pred8x8l_down_left_ssse3;
  249. h->pred8x8l [DIAG_DOWN_RIGHT_PRED ] = ff_pred8x8l_down_right_ssse3;
  250. h->pred8x8l [VERT_RIGHT_PRED ] = ff_pred8x8l_vertical_right_ssse3;
  251. h->pred8x8l [VERT_LEFT_PRED ] = ff_pred8x8l_vertical_left_ssse3;
  252. h->pred8x8l [HOR_UP_PRED ] = ff_pred8x8l_horizontal_up_ssse3;
  253. h->pred8x8l [HOR_DOWN_PRED ] = ff_pred8x8l_horizontal_down_ssse3;
  254. if (codec_id == CODEC_ID_VP8) {
  255. h->pred8x8 [PLANE_PRED8x8 ] = ff_pred8x8_tm_vp8_ssse3;
  256. h->pred4x4 [TM_VP8_PRED ] = ff_pred4x4_tm_vp8_ssse3;
  257. } else {
  258. h->pred8x8 [PLANE_PRED8x8] = ff_pred8x8_plane_ssse3;
  259. if (codec_id == CODEC_ID_SVQ3) {
  260. h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_svq3_ssse3;
  261. } else if (codec_id == CODEC_ID_RV40) {
  262. h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_rv40_ssse3;
  263. } else {
  264. h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_h264_ssse3;
  265. }
  266. }
  267. }
  268. } else if (bit_depth == 10) {
  269. if (mm_flags & AV_CPU_FLAG_MMX2) {
  270. h->pred4x4[DC_PRED ] = ff_pred4x4_dc_10_mmxext;
  271. h->pred4x4[HOR_UP_PRED ] = ff_pred4x4_horizontal_up_10_mmxext;
  272. h->pred8x8[DC_PRED8x8 ] = ff_pred8x8_dc_10_mmxext;
  273. h->pred8x8[TOP_DC_PRED8x8 ] = ff_pred8x8_top_dc_10_mmxext;
  274. h->pred16x16[VERT_PRED8x8 ] = ff_pred16x16_vertical_10_mmxext;
  275. h->pred16x16[HOR_PRED8x8 ] = ff_pred16x16_horizontal_10_mmxext;
  276. }
  277. if (mm_flags & AV_CPU_FLAG_SSE2) {
  278. h->pred4x4[DIAG_DOWN_LEFT_PRED ] = ff_pred4x4_down_left_10_sse2;
  279. h->pred4x4[DIAG_DOWN_RIGHT_PRED] = ff_pred4x4_down_right_10_sse2;
  280. h->pred4x4[VERT_LEFT_PRED ] = ff_pred4x4_vertical_left_10_sse2;
  281. h->pred4x4[VERT_RIGHT_PRED ] = ff_pred4x4_vertical_right_10_sse2;
  282. h->pred4x4[HOR_DOWN_PRED ] = ff_pred4x4_horizontal_down_10_sse2;
  283. h->pred8x8[DC_PRED8x8 ] = ff_pred8x8_dc_10_sse2;
  284. h->pred8x8[TOP_DC_PRED8x8 ] = ff_pred8x8_top_dc_10_sse2;
  285. h->pred8x8[VERT_PRED8x8 ] = ff_pred8x8_vertical_10_sse2;
  286. h->pred8x8[HOR_PRED8x8 ] = ff_pred8x8_horizontal_10_sse2;
  287. h->pred8x8l[VERT_PRED ] = ff_pred8x8l_vertical_10_sse2;
  288. h->pred8x8l[HOR_PRED ] = ff_pred8x8l_horizontal_10_sse2;
  289. h->pred8x8l[DC_PRED ] = ff_pred8x8l_dc_10_sse2;
  290. h->pred8x8l[TOP_DC_PRED ] = ff_pred8x8l_top_dc_10_sse2;
  291. h->pred8x8l[DIAG_DOWN_LEFT_PRED ] = ff_pred8x8l_down_left_10_sse2;
  292. h->pred8x8l[DIAG_DOWN_RIGHT_PRED] = ff_pred8x8l_down_right_10_sse2;
  293. h->pred8x8l[VERT_RIGHT_PRED ] = ff_pred8x8l_vertical_right_10_sse2;
  294. h->pred8x8l[HOR_UP_PRED ] = ff_pred8x8l_horizontal_up_10_sse2;
  295. h->pred16x16[VERT_PRED8x8 ] = ff_pred16x16_vertical_10_sse2;
  296. h->pred16x16[HOR_PRED8x8 ] = ff_pred16x16_horizontal_10_sse2;
  297. }
  298. if (mm_flags & AV_CPU_FLAG_SSSE3) {
  299. h->pred4x4[DIAG_DOWN_RIGHT_PRED] = ff_pred4x4_down_right_10_ssse3;
  300. h->pred4x4[VERT_RIGHT_PRED ] = ff_pred4x4_vertical_right_10_ssse3;
  301. h->pred4x4[HOR_DOWN_PRED ] = ff_pred4x4_horizontal_down_10_ssse3;
  302. h->pred8x8l[VERT_PRED ] = ff_pred8x8l_vertical_10_ssse3;
  303. h->pred8x8l[HOR_PRED ] = ff_pred8x8l_horizontal_10_ssse3;
  304. h->pred8x8l[DC_PRED ] = ff_pred8x8l_dc_10_ssse3;
  305. h->pred8x8l[TOP_DC_PRED ] = ff_pred8x8l_top_dc_10_ssse3;
  306. h->pred8x8l[DIAG_DOWN_LEFT_PRED ] = ff_pred8x8l_down_left_10_ssse3;
  307. }
  308. #if HAVE_AVX
  309. if (mm_flags & AV_CPU_FLAG_AVX) {
  310. h->pred4x4[DIAG_DOWN_LEFT_PRED ] = ff_pred4x4_down_left_10_avx;
  311. h->pred4x4[DIAG_DOWN_RIGHT_PRED] = ff_pred4x4_down_right_10_avx;
  312. h->pred4x4[VERT_RIGHT_PRED ] = ff_pred4x4_vertical_right_10_avx;
  313. h->pred4x4[HOR_DOWN_PRED ] = ff_pred4x4_horizontal_down_10_avx;
  314. }
  315. #endif /* HAVE_AVX */
  316. }
  317. #endif /* HAVE_YASM */
  318. }