highbd_idct8x8_add_neon.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. /*
  2. * Copyright (c) 2016 The WebM project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #include <arm_neon.h>
  11. #include "./vpx_dsp_rtcd.h"
  12. #include "vpx_dsp/arm/highbd_idct_neon.h"
  13. #include "vpx_dsp/arm/idct_neon.h"
  14. #include "vpx_dsp/arm/transpose_neon.h"
  15. #include "vpx_dsp/inv_txfm.h"
  16. static INLINE void highbd_idct8x8_1_add_pos_kernel(uint16_t **dest,
  17. const int stride,
  18. const int16x8_t res,
  19. const int16x8_t max) {
  20. const uint16x8_t a = vld1q_u16(*dest);
  21. const int16x8_t b = vaddq_s16(res, vreinterpretq_s16_u16(a));
  22. const int16x8_t c = vminq_s16(b, max);
  23. vst1q_u16(*dest, vreinterpretq_u16_s16(c));
  24. *dest += stride;
  25. }
  26. static INLINE void highbd_idct8x8_1_add_neg_kernel(uint16_t **dest,
  27. const int stride,
  28. const int16x8_t res) {
  29. const uint16x8_t a = vld1q_u16(*dest);
  30. const int16x8_t b = vaddq_s16(res, vreinterpretq_s16_u16(a));
  31. const uint16x8_t c = vqshluq_n_s16(b, 0);
  32. vst1q_u16(*dest, c);
  33. *dest += stride;
  34. }
  35. void vpx_highbd_idct8x8_1_add_neon(const tran_low_t *input, uint16_t *dest,
  36. int stride, int bd) {
  37. const tran_low_t out0 = HIGHBD_WRAPLOW(
  38. dct_const_round_shift(input[0] * (tran_high_t)cospi_16_64), bd);
  39. const tran_low_t out1 = HIGHBD_WRAPLOW(
  40. dct_const_round_shift(out0 * (tran_high_t)cospi_16_64), bd);
  41. const int16_t a1 = ROUND_POWER_OF_TWO(out1, 5);
  42. const int16x8_t dc = vdupq_n_s16(a1);
  43. if (a1 >= 0) {
  44. const int16x8_t max = vdupq_n_s16((1 << bd) - 1);
  45. highbd_idct8x8_1_add_pos_kernel(&dest, stride, dc, max);
  46. highbd_idct8x8_1_add_pos_kernel(&dest, stride, dc, max);
  47. highbd_idct8x8_1_add_pos_kernel(&dest, stride, dc, max);
  48. highbd_idct8x8_1_add_pos_kernel(&dest, stride, dc, max);
  49. highbd_idct8x8_1_add_pos_kernel(&dest, stride, dc, max);
  50. highbd_idct8x8_1_add_pos_kernel(&dest, stride, dc, max);
  51. highbd_idct8x8_1_add_pos_kernel(&dest, stride, dc, max);
  52. highbd_idct8x8_1_add_pos_kernel(&dest, stride, dc, max);
  53. } else {
  54. highbd_idct8x8_1_add_neg_kernel(&dest, stride, dc);
  55. highbd_idct8x8_1_add_neg_kernel(&dest, stride, dc);
  56. highbd_idct8x8_1_add_neg_kernel(&dest, stride, dc);
  57. highbd_idct8x8_1_add_neg_kernel(&dest, stride, dc);
  58. highbd_idct8x8_1_add_neg_kernel(&dest, stride, dc);
  59. highbd_idct8x8_1_add_neg_kernel(&dest, stride, dc);
  60. highbd_idct8x8_1_add_neg_kernel(&dest, stride, dc);
  61. highbd_idct8x8_1_add_neg_kernel(&dest, stride, dc);
  62. }
  63. }
  64. static INLINE void idct8x8_12_half1d_bd10(
  65. const int32x4_t cospis0, const int32x4_t cospis1, int32x4_t *const io0,
  66. int32x4_t *const io1, int32x4_t *const io2, int32x4_t *const io3,
  67. int32x4_t *const io4, int32x4_t *const io5, int32x4_t *const io6,
  68. int32x4_t *const io7) {
  69. int32x4_t step1[8], step2[8];
  70. transpose_s32_4x4(io0, io1, io2, io3);
  71. // stage 1
  72. step1[4] = vmulq_lane_s32(*io1, vget_high_s32(cospis1), 1);
  73. step1[5] = vmulq_lane_s32(*io3, vget_high_s32(cospis1), 0);
  74. step1[6] = vmulq_lane_s32(*io3, vget_low_s32(cospis1), 1);
  75. step1[7] = vmulq_lane_s32(*io1, vget_low_s32(cospis1), 0);
  76. step1[4] = vrshrq_n_s32(step1[4], DCT_CONST_BITS);
  77. step1[5] = vrshrq_n_s32(step1[5], DCT_CONST_BITS);
  78. step1[6] = vrshrq_n_s32(step1[6], DCT_CONST_BITS);
  79. step1[7] = vrshrq_n_s32(step1[7], DCT_CONST_BITS);
  80. // stage 2
  81. step2[1] = vmulq_lane_s32(*io0, vget_high_s32(cospis0), 0);
  82. step2[2] = vmulq_lane_s32(*io2, vget_high_s32(cospis0), 1);
  83. step2[3] = vmulq_lane_s32(*io2, vget_low_s32(cospis0), 1);
  84. step2[1] = vrshrq_n_s32(step2[1], DCT_CONST_BITS);
  85. step2[2] = vrshrq_n_s32(step2[2], DCT_CONST_BITS);
  86. step2[3] = vrshrq_n_s32(step2[3], DCT_CONST_BITS);
  87. step2[4] = vaddq_s32(step1[4], step1[5]);
  88. step2[5] = vsubq_s32(step1[4], step1[5]);
  89. step2[6] = vsubq_s32(step1[7], step1[6]);
  90. step2[7] = vaddq_s32(step1[7], step1[6]);
  91. // stage 3
  92. step1[0] = vaddq_s32(step2[1], step2[3]);
  93. step1[1] = vaddq_s32(step2[1], step2[2]);
  94. step1[2] = vsubq_s32(step2[1], step2[2]);
  95. step1[3] = vsubq_s32(step2[1], step2[3]);
  96. step1[6] = vmulq_lane_s32(step2[6], vget_high_s32(cospis0), 0);
  97. step1[5] = vmlsq_lane_s32(step1[6], step2[5], vget_high_s32(cospis0), 0);
  98. step1[6] = vmlaq_lane_s32(step1[6], step2[5], vget_high_s32(cospis0), 0);
  99. step1[5] = vrshrq_n_s32(step1[5], DCT_CONST_BITS);
  100. step1[6] = vrshrq_n_s32(step1[6], DCT_CONST_BITS);
  101. // stage 4
  102. *io0 = vaddq_s32(step1[0], step2[7]);
  103. *io1 = vaddq_s32(step1[1], step1[6]);
  104. *io2 = vaddq_s32(step1[2], step1[5]);
  105. *io3 = vaddq_s32(step1[3], step2[4]);
  106. *io4 = vsubq_s32(step1[3], step2[4]);
  107. *io5 = vsubq_s32(step1[2], step1[5]);
  108. *io6 = vsubq_s32(step1[1], step1[6]);
  109. *io7 = vsubq_s32(step1[0], step2[7]);
  110. }
  111. static INLINE void idct8x8_12_half1d_bd12(
  112. const int32x4_t cospis0, const int32x4_t cospis1, int32x4_t *const io0,
  113. int32x4_t *const io1, int32x4_t *const io2, int32x4_t *const io3,
  114. int32x4_t *const io4, int32x4_t *const io5, int32x4_t *const io6,
  115. int32x4_t *const io7) {
  116. int32x2_t input1l, input1h, input3l, input3h;
  117. int32x2_t step1l[2], step1h[2];
  118. int32x4_t step1[8], step2[8];
  119. int64x2_t t64[8];
  120. int32x2_t t32[8];
  121. transpose_s32_4x4(io0, io1, io2, io3);
  122. // stage 1
  123. input1l = vget_low_s32(*io1);
  124. input1h = vget_high_s32(*io1);
  125. input3l = vget_low_s32(*io3);
  126. input3h = vget_high_s32(*io3);
  127. step1l[0] = vget_low_s32(*io0);
  128. step1h[0] = vget_high_s32(*io0);
  129. step1l[1] = vget_low_s32(*io2);
  130. step1h[1] = vget_high_s32(*io2);
  131. t64[0] = vmull_lane_s32(input1l, vget_high_s32(cospis1), 1);
  132. t64[1] = vmull_lane_s32(input1h, vget_high_s32(cospis1), 1);
  133. t64[2] = vmull_lane_s32(input3l, vget_high_s32(cospis1), 0);
  134. t64[3] = vmull_lane_s32(input3h, vget_high_s32(cospis1), 0);
  135. t64[4] = vmull_lane_s32(input3l, vget_low_s32(cospis1), 1);
  136. t64[5] = vmull_lane_s32(input3h, vget_low_s32(cospis1), 1);
  137. t64[6] = vmull_lane_s32(input1l, vget_low_s32(cospis1), 0);
  138. t64[7] = vmull_lane_s32(input1h, vget_low_s32(cospis1), 0);
  139. t32[0] = vrshrn_n_s64(t64[0], DCT_CONST_BITS);
  140. t32[1] = vrshrn_n_s64(t64[1], DCT_CONST_BITS);
  141. t32[2] = vrshrn_n_s64(t64[2], DCT_CONST_BITS);
  142. t32[3] = vrshrn_n_s64(t64[3], DCT_CONST_BITS);
  143. t32[4] = vrshrn_n_s64(t64[4], DCT_CONST_BITS);
  144. t32[5] = vrshrn_n_s64(t64[5], DCT_CONST_BITS);
  145. t32[6] = vrshrn_n_s64(t64[6], DCT_CONST_BITS);
  146. t32[7] = vrshrn_n_s64(t64[7], DCT_CONST_BITS);
  147. step1[4] = vcombine_s32(t32[0], t32[1]);
  148. step1[5] = vcombine_s32(t32[2], t32[3]);
  149. step1[6] = vcombine_s32(t32[4], t32[5]);
  150. step1[7] = vcombine_s32(t32[6], t32[7]);
  151. // stage 2
  152. t64[2] = vmull_lane_s32(step1l[0], vget_high_s32(cospis0), 0);
  153. t64[3] = vmull_lane_s32(step1h[0], vget_high_s32(cospis0), 0);
  154. t64[4] = vmull_lane_s32(step1l[1], vget_high_s32(cospis0), 1);
  155. t64[5] = vmull_lane_s32(step1h[1], vget_high_s32(cospis0), 1);
  156. t64[6] = vmull_lane_s32(step1l[1], vget_low_s32(cospis0), 1);
  157. t64[7] = vmull_lane_s32(step1h[1], vget_low_s32(cospis0), 1);
  158. t32[2] = vrshrn_n_s64(t64[2], DCT_CONST_BITS);
  159. t32[3] = vrshrn_n_s64(t64[3], DCT_CONST_BITS);
  160. t32[4] = vrshrn_n_s64(t64[4], DCT_CONST_BITS);
  161. t32[5] = vrshrn_n_s64(t64[5], DCT_CONST_BITS);
  162. t32[6] = vrshrn_n_s64(t64[6], DCT_CONST_BITS);
  163. t32[7] = vrshrn_n_s64(t64[7], DCT_CONST_BITS);
  164. step2[1] = vcombine_s32(t32[2], t32[3]);
  165. step2[2] = vcombine_s32(t32[4], t32[5]);
  166. step2[3] = vcombine_s32(t32[6], t32[7]);
  167. step2[4] = vaddq_s32(step1[4], step1[5]);
  168. step2[5] = vsubq_s32(step1[4], step1[5]);
  169. step2[6] = vsubq_s32(step1[7], step1[6]);
  170. step2[7] = vaddq_s32(step1[7], step1[6]);
  171. // stage 3
  172. step1[0] = vaddq_s32(step2[1], step2[3]);
  173. step1[1] = vaddq_s32(step2[1], step2[2]);
  174. step1[2] = vsubq_s32(step2[1], step2[2]);
  175. step1[3] = vsubq_s32(step2[1], step2[3]);
  176. t64[2] = vmull_lane_s32(vget_low_s32(step2[6]), vget_high_s32(cospis0), 0);
  177. t64[3] = vmull_lane_s32(vget_high_s32(step2[6]), vget_high_s32(cospis0), 0);
  178. t64[0] =
  179. vmlsl_lane_s32(t64[2], vget_low_s32(step2[5]), vget_high_s32(cospis0), 0);
  180. t64[1] = vmlsl_lane_s32(t64[3], vget_high_s32(step2[5]),
  181. vget_high_s32(cospis0), 0);
  182. t64[2] =
  183. vmlal_lane_s32(t64[2], vget_low_s32(step2[5]), vget_high_s32(cospis0), 0);
  184. t64[3] = vmlal_lane_s32(t64[3], vget_high_s32(step2[5]),
  185. vget_high_s32(cospis0), 0);
  186. t32[0] = vrshrn_n_s64(t64[0], DCT_CONST_BITS);
  187. t32[1] = vrshrn_n_s64(t64[1], DCT_CONST_BITS);
  188. t32[2] = vrshrn_n_s64(t64[2], DCT_CONST_BITS);
  189. t32[3] = vrshrn_n_s64(t64[3], DCT_CONST_BITS);
  190. step1[5] = vcombine_s32(t32[0], t32[1]);
  191. step1[6] = vcombine_s32(t32[2], t32[3]);
  192. // stage 4
  193. *io0 = vaddq_s32(step1[0], step2[7]);
  194. *io1 = vaddq_s32(step1[1], step1[6]);
  195. *io2 = vaddq_s32(step1[2], step1[5]);
  196. *io3 = vaddq_s32(step1[3], step2[4]);
  197. *io4 = vsubq_s32(step1[3], step2[4]);
  198. *io5 = vsubq_s32(step1[2], step1[5]);
  199. *io6 = vsubq_s32(step1[1], step1[6]);
  200. *io7 = vsubq_s32(step1[0], step2[7]);
  201. }
  202. void vpx_highbd_idct8x8_12_add_neon(const tran_low_t *input, uint16_t *dest,
  203. int stride, int bd) {
  204. int32x4_t a[16];
  205. int16x8_t c[8];
  206. a[0] = vld1q_s32(input);
  207. a[1] = vld1q_s32(input + 8);
  208. a[2] = vld1q_s32(input + 16);
  209. a[3] = vld1q_s32(input + 24);
  210. if (bd == 8) {
  211. const int16x8_t cospis = vld1q_s16(kCospi);
  212. const int16x8_t cospisd = vaddq_s16(cospis, cospis);
  213. const int16x4_t cospis0 = vget_low_s16(cospis); // cospi 0, 8, 16, 24
  214. const int16x4_t cospisd0 = vget_low_s16(cospisd); // doubled 0, 8, 16, 24
  215. const int16x4_t cospisd1 = vget_high_s16(cospisd); // doubled 4, 12, 20, 28
  216. int16x4_t b[8];
  217. b[0] = vmovn_s32(a[0]);
  218. b[1] = vmovn_s32(a[1]);
  219. b[2] = vmovn_s32(a[2]);
  220. b[3] = vmovn_s32(a[3]);
  221. idct8x8_12_pass1_bd8(cospis0, cospisd0, cospisd1, b);
  222. idct8x8_12_pass2_bd8(cospis0, cospisd0, cospisd1, b, c);
  223. c[0] = vrshrq_n_s16(c[0], 5);
  224. c[1] = vrshrq_n_s16(c[1], 5);
  225. c[2] = vrshrq_n_s16(c[2], 5);
  226. c[3] = vrshrq_n_s16(c[3], 5);
  227. c[4] = vrshrq_n_s16(c[4], 5);
  228. c[5] = vrshrq_n_s16(c[5], 5);
  229. c[6] = vrshrq_n_s16(c[6], 5);
  230. c[7] = vrshrq_n_s16(c[7], 5);
  231. } else {
  232. const int32x4_t cospis0 = vld1q_s32(kCospi32); // cospi 0, 8, 16, 24
  233. const int32x4_t cospis1 = vld1q_s32(kCospi32 + 4); // cospi 4, 12, 20, 28
  234. if (bd == 10) {
  235. idct8x8_12_half1d_bd10(cospis0, cospis1, &a[0], &a[1], &a[2], &a[3],
  236. &a[4], &a[5], &a[6], &a[7]);
  237. idct8x8_12_half1d_bd10(cospis0, cospis1, &a[0], &a[1], &a[2], &a[3],
  238. &a[8], &a[9], &a[10], &a[11]);
  239. idct8x8_12_half1d_bd10(cospis0, cospis1, &a[4], &a[5], &a[6], &a[7],
  240. &a[12], &a[13], &a[14], &a[15]);
  241. } else {
  242. idct8x8_12_half1d_bd12(cospis0, cospis1, &a[0], &a[1], &a[2], &a[3],
  243. &a[4], &a[5], &a[6], &a[7]);
  244. idct8x8_12_half1d_bd12(cospis0, cospis1, &a[0], &a[1], &a[2], &a[3],
  245. &a[8], &a[9], &a[10], &a[11]);
  246. idct8x8_12_half1d_bd12(cospis0, cospis1, &a[4], &a[5], &a[6], &a[7],
  247. &a[12], &a[13], &a[14], &a[15]);
  248. }
  249. c[0] = vcombine_s16(vrshrn_n_s32(a[0], 5), vrshrn_n_s32(a[4], 5));
  250. c[1] = vcombine_s16(vrshrn_n_s32(a[1], 5), vrshrn_n_s32(a[5], 5));
  251. c[2] = vcombine_s16(vrshrn_n_s32(a[2], 5), vrshrn_n_s32(a[6], 5));
  252. c[3] = vcombine_s16(vrshrn_n_s32(a[3], 5), vrshrn_n_s32(a[7], 5));
  253. c[4] = vcombine_s16(vrshrn_n_s32(a[8], 5), vrshrn_n_s32(a[12], 5));
  254. c[5] = vcombine_s16(vrshrn_n_s32(a[9], 5), vrshrn_n_s32(a[13], 5));
  255. c[6] = vcombine_s16(vrshrn_n_s32(a[10], 5), vrshrn_n_s32(a[14], 5));
  256. c[7] = vcombine_s16(vrshrn_n_s32(a[11], 5), vrshrn_n_s32(a[15], 5));
  257. }
  258. highbd_add8x8(c, dest, stride, bd);
  259. }
  260. void vpx_highbd_idct8x8_64_add_neon(const tran_low_t *input, uint16_t *dest,
  261. int stride, int bd) {
  262. int32x4_t a[16];
  263. int16x8_t c[8];
  264. a[0] = vld1q_s32(input);
  265. a[1] = vld1q_s32(input + 4);
  266. a[2] = vld1q_s32(input + 8);
  267. a[3] = vld1q_s32(input + 12);
  268. a[4] = vld1q_s32(input + 16);
  269. a[5] = vld1q_s32(input + 20);
  270. a[6] = vld1q_s32(input + 24);
  271. a[7] = vld1q_s32(input + 28);
  272. a[8] = vld1q_s32(input + 32);
  273. a[9] = vld1q_s32(input + 36);
  274. a[10] = vld1q_s32(input + 40);
  275. a[11] = vld1q_s32(input + 44);
  276. a[12] = vld1q_s32(input + 48);
  277. a[13] = vld1q_s32(input + 52);
  278. a[14] = vld1q_s32(input + 56);
  279. a[15] = vld1q_s32(input + 60);
  280. if (bd == 8) {
  281. const int16x8_t cospis = vld1q_s16(kCospi);
  282. const int16x4_t cospis0 = vget_low_s16(cospis); // cospi 0, 8, 16, 24
  283. const int16x4_t cospis1 = vget_high_s16(cospis); // cospi 4, 12, 20, 28
  284. int16x8_t b[8];
  285. b[0] = vcombine_s16(vmovn_s32(a[0]), vmovn_s32(a[1]));
  286. b[1] = vcombine_s16(vmovn_s32(a[2]), vmovn_s32(a[3]));
  287. b[2] = vcombine_s16(vmovn_s32(a[4]), vmovn_s32(a[5]));
  288. b[3] = vcombine_s16(vmovn_s32(a[6]), vmovn_s32(a[7]));
  289. b[4] = vcombine_s16(vmovn_s32(a[8]), vmovn_s32(a[9]));
  290. b[5] = vcombine_s16(vmovn_s32(a[10]), vmovn_s32(a[11]));
  291. b[6] = vcombine_s16(vmovn_s32(a[12]), vmovn_s32(a[13]));
  292. b[7] = vcombine_s16(vmovn_s32(a[14]), vmovn_s32(a[15]));
  293. idct8x8_64_1d_bd8(cospis0, cospis1, b);
  294. idct8x8_64_1d_bd8(cospis0, cospis1, b);
  295. c[0] = vrshrq_n_s16(b[0], 5);
  296. c[1] = vrshrq_n_s16(b[1], 5);
  297. c[2] = vrshrq_n_s16(b[2], 5);
  298. c[3] = vrshrq_n_s16(b[3], 5);
  299. c[4] = vrshrq_n_s16(b[4], 5);
  300. c[5] = vrshrq_n_s16(b[5], 5);
  301. c[6] = vrshrq_n_s16(b[6], 5);
  302. c[7] = vrshrq_n_s16(b[7], 5);
  303. } else {
  304. const int32x4_t cospis0 = vld1q_s32(kCospi32); // cospi 0, 8, 16, 24
  305. const int32x4_t cospis1 = vld1q_s32(kCospi32 + 4); // cospi 4, 12, 20, 28
  306. if (bd == 10) {
  307. idct8x8_64_half1d_bd10(cospis0, cospis1, &a[0], &a[1], &a[2], &a[3],
  308. &a[4], &a[5], &a[6], &a[7]);
  309. idct8x8_64_half1d_bd10(cospis0, cospis1, &a[8], &a[9], &a[10], &a[11],
  310. &a[12], &a[13], &a[14], &a[15]);
  311. idct8x8_64_half1d_bd10(cospis0, cospis1, &a[0], &a[8], &a[1], &a[9],
  312. &a[2], &a[10], &a[3], &a[11]);
  313. idct8x8_64_half1d_bd10(cospis0, cospis1, &a[4], &a[12], &a[5], &a[13],
  314. &a[6], &a[14], &a[7], &a[15]);
  315. } else {
  316. idct8x8_64_half1d_bd12(cospis0, cospis1, &a[0], &a[1], &a[2], &a[3],
  317. &a[4], &a[5], &a[6], &a[7]);
  318. idct8x8_64_half1d_bd12(cospis0, cospis1, &a[8], &a[9], &a[10], &a[11],
  319. &a[12], &a[13], &a[14], &a[15]);
  320. idct8x8_64_half1d_bd12(cospis0, cospis1, &a[0], &a[8], &a[1], &a[9],
  321. &a[2], &a[10], &a[3], &a[11]);
  322. idct8x8_64_half1d_bd12(cospis0, cospis1, &a[4], &a[12], &a[5], &a[13],
  323. &a[6], &a[14], &a[7], &a[15]);
  324. }
  325. c[0] = vcombine_s16(vrshrn_n_s32(a[0], 5), vrshrn_n_s32(a[4], 5));
  326. c[1] = vcombine_s16(vrshrn_n_s32(a[8], 5), vrshrn_n_s32(a[12], 5));
  327. c[2] = vcombine_s16(vrshrn_n_s32(a[1], 5), vrshrn_n_s32(a[5], 5));
  328. c[3] = vcombine_s16(vrshrn_n_s32(a[9], 5), vrshrn_n_s32(a[13], 5));
  329. c[4] = vcombine_s16(vrshrn_n_s32(a[2], 5), vrshrn_n_s32(a[6], 5));
  330. c[5] = vcombine_s16(vrshrn_n_s32(a[10], 5), vrshrn_n_s32(a[14], 5));
  331. c[6] = vcombine_s16(vrshrn_n_s32(a[3], 5), vrshrn_n_s32(a[7], 5));
  332. c[7] = vcombine_s16(vrshrn_n_s32(a[11], 5), vrshrn_n_s32(a[15], 5));
  333. }
  334. highbd_add8x8(c, dest, stride, bd);
  335. }