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.

440 lines
18KB

  1. /*
  2. * DSP utils
  3. * Copyright (c) 2000, 2001 Fabrice Bellard
  4. * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
  5. *
  6. * gmc & q-pel & 32/64 bit based MC by Michael Niedermayer <michaelni@gmx.at>
  7. *
  8. * This file is part of Libav.
  9. *
  10. * Libav is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Lesser General Public
  12. * License as published by the Free Software Foundation; either
  13. * version 2.1 of the License, or (at your option) any later version.
  14. *
  15. * Libav 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 GNU
  18. * Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public
  21. * License along with Libav; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  23. */
  24. /**
  25. * @file
  26. * DSP utils
  27. */
  28. #include "bit_depth_template.c"
  29. /* draw the edges of width 'w' of an image of size width, height */
  30. //FIXME check that this is ok for mpeg4 interlaced
  31. static void FUNCC(draw_edges)(uint8_t *_buf, int _wrap, int width, int height, int w, int h, int sides)
  32. {
  33. pixel *buf = (pixel*)_buf;
  34. int wrap = _wrap / sizeof(pixel);
  35. pixel *ptr, *last_line;
  36. int i;
  37. /* left and right */
  38. ptr = buf;
  39. for(i=0;i<height;i++) {
  40. #if BIT_DEPTH > 8
  41. int j;
  42. for (j = 0; j < w; j++) {
  43. ptr[j-w] = ptr[0];
  44. ptr[j+width] = ptr[width-1];
  45. }
  46. #else
  47. memset(ptr - w, ptr[0], w);
  48. memset(ptr + width, ptr[width-1], w);
  49. #endif
  50. ptr += wrap;
  51. }
  52. /* top and bottom + corners */
  53. buf -= w;
  54. last_line = buf + (height - 1) * wrap;
  55. if (sides & EDGE_TOP)
  56. for(i = 0; i < h; i++)
  57. memcpy(buf - (i + 1) * wrap, buf, (width + w + w) * sizeof(pixel)); // top
  58. if (sides & EDGE_BOTTOM)
  59. for (i = 0; i < h; i++)
  60. memcpy(last_line + (i + 1) * wrap, last_line, (width + w + w) * sizeof(pixel)); // bottom
  61. }
  62. #define DCTELEM_FUNCS(dctcoef, suffix) \
  63. static void FUNCC(get_pixels ## suffix)(int16_t *restrict _block, \
  64. const uint8_t *_pixels, \
  65. int line_size) \
  66. { \
  67. const pixel *pixels = (const pixel *) _pixels; \
  68. dctcoef *restrict block = (dctcoef *) _block; \
  69. int i; \
  70. \
  71. /* read the pixels */ \
  72. for(i=0;i<8;i++) { \
  73. block[0] = pixels[0]; \
  74. block[1] = pixels[1]; \
  75. block[2] = pixels[2]; \
  76. block[3] = pixels[3]; \
  77. block[4] = pixels[4]; \
  78. block[5] = pixels[5]; \
  79. block[6] = pixels[6]; \
  80. block[7] = pixels[7]; \
  81. pixels += line_size / sizeof(pixel); \
  82. block += 8; \
  83. } \
  84. } \
  85. \
  86. static void FUNCC(clear_block ## suffix)(int16_t *block) \
  87. { \
  88. memset(block, 0, sizeof(dctcoef)*64); \
  89. } \
  90. \
  91. /** \
  92. * memset(blocks, 0, sizeof(int16_t)*6*64) \
  93. */ \
  94. static void FUNCC(clear_blocks ## suffix)(int16_t *blocks) \
  95. { \
  96. memset(blocks, 0, sizeof(dctcoef)*6*64); \
  97. }
  98. DCTELEM_FUNCS(int16_t, _16)
  99. #if BIT_DEPTH > 8
  100. DCTELEM_FUNCS(dctcoef, _32)
  101. #endif
  102. #include "hpel_template.c"
  103. #define PIXOP2(OPNAME, OP) \
  104. static inline void FUNC(OPNAME ## _no_rnd_pixels8_l2)(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, \
  105. int src_stride1, int src_stride2, int h){\
  106. int i;\
  107. for(i=0; i<h; i++){\
  108. pixel4 a,b;\
  109. a= AV_RN4P(&src1[i*src_stride1 ]);\
  110. b= AV_RN4P(&src2[i*src_stride2 ]);\
  111. OP(*((pixel4*)&dst[i*dst_stride ]), no_rnd_avg_pixel4(a, b));\
  112. a= AV_RN4P(&src1[i*src_stride1+4*sizeof(pixel)]);\
  113. b= AV_RN4P(&src2[i*src_stride2+4*sizeof(pixel)]);\
  114. OP(*((pixel4*)&dst[i*dst_stride+4*sizeof(pixel)]), no_rnd_avg_pixel4(a, b));\
  115. }\
  116. }\
  117. \
  118. static inline void FUNC(OPNAME ## _no_rnd_pixels16_l2)(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, \
  119. int src_stride1, int src_stride2, int h){\
  120. FUNC(OPNAME ## _no_rnd_pixels8_l2)(dst , src1 , src2 , dst_stride, src_stride1, src_stride2, h);\
  121. FUNC(OPNAME ## _no_rnd_pixels8_l2)(dst+8*sizeof(pixel), src1+8*sizeof(pixel), src2+8*sizeof(pixel), dst_stride, src_stride1, src_stride2, h);\
  122. }\
  123. \
  124. static inline void FUNCC(OPNAME ## _no_rnd_pixels8_x2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h){\
  125. FUNC(OPNAME ## _no_rnd_pixels8_l2)(block, pixels, pixels+sizeof(pixel), line_size, line_size, line_size, h);\
  126. }\
  127. \
  128. static inline void FUNCC(OPNAME ## _pixels8_x2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h){\
  129. FUNC(OPNAME ## _pixels8_l2)(block, pixels, pixels+sizeof(pixel), line_size, line_size, line_size, h);\
  130. }\
  131. \
  132. static inline void FUNCC(OPNAME ## _no_rnd_pixels8_y2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h){\
  133. FUNC(OPNAME ## _no_rnd_pixels8_l2)(block, pixels, pixels+line_size, line_size, line_size, line_size, h);\
  134. }\
  135. \
  136. static inline void FUNCC(OPNAME ## _pixels8_y2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h){\
  137. FUNC(OPNAME ## _pixels8_l2)(block, pixels, pixels+line_size, line_size, line_size, line_size, h);\
  138. }\
  139. \
  140. static inline void FUNC(OPNAME ## _pixels8_l4)(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, const uint8_t *src3, const uint8_t *src4,\
  141. int dst_stride, int src_stride1, int src_stride2,int src_stride3,int src_stride4, int h){\
  142. /* FIXME HIGH BIT DEPTH */\
  143. int i;\
  144. for(i=0; i<h; i++){\
  145. uint32_t a, b, c, d, l0, l1, h0, h1;\
  146. a= AV_RN32(&src1[i*src_stride1]);\
  147. b= AV_RN32(&src2[i*src_stride2]);\
  148. c= AV_RN32(&src3[i*src_stride3]);\
  149. d= AV_RN32(&src4[i*src_stride4]);\
  150. l0= (a&0x03030303UL)\
  151. + (b&0x03030303UL)\
  152. + 0x02020202UL;\
  153. h0= ((a&0xFCFCFCFCUL)>>2)\
  154. + ((b&0xFCFCFCFCUL)>>2);\
  155. l1= (c&0x03030303UL)\
  156. + (d&0x03030303UL);\
  157. h1= ((c&0xFCFCFCFCUL)>>2)\
  158. + ((d&0xFCFCFCFCUL)>>2);\
  159. OP(*((uint32_t*)&dst[i*dst_stride]), h0+h1+(((l0+l1)>>2)&0x0F0F0F0FUL));\
  160. a= AV_RN32(&src1[i*src_stride1+4]);\
  161. b= AV_RN32(&src2[i*src_stride2+4]);\
  162. c= AV_RN32(&src3[i*src_stride3+4]);\
  163. d= AV_RN32(&src4[i*src_stride4+4]);\
  164. l0= (a&0x03030303UL)\
  165. + (b&0x03030303UL)\
  166. + 0x02020202UL;\
  167. h0= ((a&0xFCFCFCFCUL)>>2)\
  168. + ((b&0xFCFCFCFCUL)>>2);\
  169. l1= (c&0x03030303UL)\
  170. + (d&0x03030303UL);\
  171. h1= ((c&0xFCFCFCFCUL)>>2)\
  172. + ((d&0xFCFCFCFCUL)>>2);\
  173. OP(*((uint32_t*)&dst[i*dst_stride+4]), h0+h1+(((l0+l1)>>2)&0x0F0F0F0FUL));\
  174. }\
  175. }\
  176. \
  177. static inline void FUNCC(OPNAME ## _pixels4_x2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h){\
  178. FUNC(OPNAME ## _pixels4_l2)(block, pixels, pixels+sizeof(pixel), line_size, line_size, line_size, h);\
  179. }\
  180. \
  181. static inline void FUNCC(OPNAME ## _pixels4_y2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h){\
  182. FUNC(OPNAME ## _pixels4_l2)(block, pixels, pixels+line_size, line_size, line_size, line_size, h);\
  183. }\
  184. \
  185. static inline void FUNCC(OPNAME ## _pixels2_x2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h){\
  186. FUNC(OPNAME ## _pixels2_l2)(block, pixels, pixels+sizeof(pixel), line_size, line_size, line_size, h);\
  187. }\
  188. \
  189. static inline void FUNCC(OPNAME ## _pixels2_y2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h){\
  190. FUNC(OPNAME ## _pixels2_l2)(block, pixels, pixels+line_size, line_size, line_size, line_size, h);\
  191. }\
  192. \
  193. static inline void FUNC(OPNAME ## _no_rnd_pixels8_l4)(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, const uint8_t *src3, const uint8_t *src4,\
  194. int dst_stride, int src_stride1, int src_stride2,int src_stride3,int src_stride4, int h){\
  195. /* FIXME HIGH BIT DEPTH*/\
  196. int i;\
  197. for(i=0; i<h; i++){\
  198. uint32_t a, b, c, d, l0, l1, h0, h1;\
  199. a= AV_RN32(&src1[i*src_stride1]);\
  200. b= AV_RN32(&src2[i*src_stride2]);\
  201. c= AV_RN32(&src3[i*src_stride3]);\
  202. d= AV_RN32(&src4[i*src_stride4]);\
  203. l0= (a&0x03030303UL)\
  204. + (b&0x03030303UL)\
  205. + 0x01010101UL;\
  206. h0= ((a&0xFCFCFCFCUL)>>2)\
  207. + ((b&0xFCFCFCFCUL)>>2);\
  208. l1= (c&0x03030303UL)\
  209. + (d&0x03030303UL);\
  210. h1= ((c&0xFCFCFCFCUL)>>2)\
  211. + ((d&0xFCFCFCFCUL)>>2);\
  212. OP(*((uint32_t*)&dst[i*dst_stride]), h0+h1+(((l0+l1)>>2)&0x0F0F0F0FUL));\
  213. a= AV_RN32(&src1[i*src_stride1+4]);\
  214. b= AV_RN32(&src2[i*src_stride2+4]);\
  215. c= AV_RN32(&src3[i*src_stride3+4]);\
  216. d= AV_RN32(&src4[i*src_stride4+4]);\
  217. l0= (a&0x03030303UL)\
  218. + (b&0x03030303UL)\
  219. + 0x01010101UL;\
  220. h0= ((a&0xFCFCFCFCUL)>>2)\
  221. + ((b&0xFCFCFCFCUL)>>2);\
  222. l1= (c&0x03030303UL)\
  223. + (d&0x03030303UL);\
  224. h1= ((c&0xFCFCFCFCUL)>>2)\
  225. + ((d&0xFCFCFCFCUL)>>2);\
  226. OP(*((uint32_t*)&dst[i*dst_stride+4]), h0+h1+(((l0+l1)>>2)&0x0F0F0F0FUL));\
  227. }\
  228. }\
  229. static inline void FUNC(OPNAME ## _pixels16_l4)(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, const uint8_t *src3, const uint8_t *src4,\
  230. int dst_stride, int src_stride1, int src_stride2,int src_stride3,int src_stride4, int h){\
  231. FUNC(OPNAME ## _pixels8_l4)(dst , src1 , src2 , src3 , src4 , dst_stride, src_stride1, src_stride2, src_stride3, src_stride4, h);\
  232. FUNC(OPNAME ## _pixels8_l4)(dst+8*sizeof(pixel), src1+8*sizeof(pixel), src2+8*sizeof(pixel), src3+8*sizeof(pixel), src4+8*sizeof(pixel), dst_stride, src_stride1, src_stride2, src_stride3, src_stride4, h);\
  233. }\
  234. static inline void FUNC(OPNAME ## _no_rnd_pixels16_l4)(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, const uint8_t *src3, const uint8_t *src4,\
  235. int dst_stride, int src_stride1, int src_stride2,int src_stride3,int src_stride4, int h){\
  236. FUNC(OPNAME ## _no_rnd_pixels8_l4)(dst , src1 , src2 , src3 , src4 , dst_stride, src_stride1, src_stride2, src_stride3, src_stride4, h);\
  237. FUNC(OPNAME ## _no_rnd_pixels8_l4)(dst+8*sizeof(pixel), src1+8*sizeof(pixel), src2+8*sizeof(pixel), src3+8*sizeof(pixel), src4+8*sizeof(pixel), dst_stride, src_stride1, src_stride2, src_stride3, src_stride4, h);\
  238. }\
  239. \
  240. static inline void FUNCC(OPNAME ## _pixels2_xy2)(uint8_t *_block, const uint8_t *_pixels, ptrdiff_t line_size, int h)\
  241. {\
  242. int i, a0, b0, a1, b1;\
  243. pixel *block = (pixel*)_block;\
  244. const pixel *pixels = (const pixel*)_pixels;\
  245. line_size /= sizeof(pixel);\
  246. a0= pixels[0];\
  247. b0= pixels[1] + 2;\
  248. a0 += b0;\
  249. b0 += pixels[2];\
  250. \
  251. pixels+=line_size;\
  252. for(i=0; i<h; i+=2){\
  253. a1= pixels[0];\
  254. b1= pixels[1];\
  255. a1 += b1;\
  256. b1 += pixels[2];\
  257. \
  258. block[0]= (a1+a0)>>2; /* FIXME non put */\
  259. block[1]= (b1+b0)>>2;\
  260. \
  261. pixels+=line_size;\
  262. block +=line_size;\
  263. \
  264. a0= pixels[0];\
  265. b0= pixels[1] + 2;\
  266. a0 += b0;\
  267. b0 += pixels[2];\
  268. \
  269. block[0]= (a1+a0)>>2;\
  270. block[1]= (b1+b0)>>2;\
  271. pixels+=line_size;\
  272. block +=line_size;\
  273. }\
  274. }\
  275. \
  276. static inline void FUNCC(OPNAME ## _pixels4_xy2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\
  277. {\
  278. /* FIXME HIGH BIT DEPTH */\
  279. int i;\
  280. const uint32_t a= AV_RN32(pixels );\
  281. const uint32_t b= AV_RN32(pixels+1);\
  282. uint32_t l0= (a&0x03030303UL)\
  283. + (b&0x03030303UL)\
  284. + 0x02020202UL;\
  285. uint32_t h0= ((a&0xFCFCFCFCUL)>>2)\
  286. + ((b&0xFCFCFCFCUL)>>2);\
  287. uint32_t l1,h1;\
  288. \
  289. pixels+=line_size;\
  290. for(i=0; i<h; i+=2){\
  291. uint32_t a= AV_RN32(pixels );\
  292. uint32_t b= AV_RN32(pixels+1);\
  293. l1= (a&0x03030303UL)\
  294. + (b&0x03030303UL);\
  295. h1= ((a&0xFCFCFCFCUL)>>2)\
  296. + ((b&0xFCFCFCFCUL)>>2);\
  297. OP(*((uint32_t*)block), h0+h1+(((l0+l1)>>2)&0x0F0F0F0FUL));\
  298. pixels+=line_size;\
  299. block +=line_size;\
  300. a= AV_RN32(pixels );\
  301. b= AV_RN32(pixels+1);\
  302. l0= (a&0x03030303UL)\
  303. + (b&0x03030303UL)\
  304. + 0x02020202UL;\
  305. h0= ((a&0xFCFCFCFCUL)>>2)\
  306. + ((b&0xFCFCFCFCUL)>>2);\
  307. OP(*((uint32_t*)block), h0+h1+(((l0+l1)>>2)&0x0F0F0F0FUL));\
  308. pixels+=line_size;\
  309. block +=line_size;\
  310. }\
  311. }\
  312. \
  313. static inline void FUNCC(OPNAME ## _pixels8_xy2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\
  314. {\
  315. /* FIXME HIGH BIT DEPTH */\
  316. int j;\
  317. for(j=0; j<2; j++){\
  318. int i;\
  319. const uint32_t a= AV_RN32(pixels );\
  320. const uint32_t b= AV_RN32(pixels+1);\
  321. uint32_t l0= (a&0x03030303UL)\
  322. + (b&0x03030303UL)\
  323. + 0x02020202UL;\
  324. uint32_t h0= ((a&0xFCFCFCFCUL)>>2)\
  325. + ((b&0xFCFCFCFCUL)>>2);\
  326. uint32_t l1,h1;\
  327. \
  328. pixels+=line_size;\
  329. for(i=0; i<h; i+=2){\
  330. uint32_t a= AV_RN32(pixels );\
  331. uint32_t b= AV_RN32(pixels+1);\
  332. l1= (a&0x03030303UL)\
  333. + (b&0x03030303UL);\
  334. h1= ((a&0xFCFCFCFCUL)>>2)\
  335. + ((b&0xFCFCFCFCUL)>>2);\
  336. OP(*((uint32_t*)block), h0+h1+(((l0+l1)>>2)&0x0F0F0F0FUL));\
  337. pixels+=line_size;\
  338. block +=line_size;\
  339. a= AV_RN32(pixels );\
  340. b= AV_RN32(pixels+1);\
  341. l0= (a&0x03030303UL)\
  342. + (b&0x03030303UL)\
  343. + 0x02020202UL;\
  344. h0= ((a&0xFCFCFCFCUL)>>2)\
  345. + ((b&0xFCFCFCFCUL)>>2);\
  346. OP(*((uint32_t*)block), h0+h1+(((l0+l1)>>2)&0x0F0F0F0FUL));\
  347. pixels+=line_size;\
  348. block +=line_size;\
  349. }\
  350. pixels+=4-line_size*(h+1);\
  351. block +=4-line_size*h;\
  352. }\
  353. }\
  354. \
  355. static inline void FUNCC(OPNAME ## _no_rnd_pixels8_xy2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\
  356. {\
  357. /* FIXME HIGH BIT DEPTH */\
  358. int j;\
  359. for(j=0; j<2; j++){\
  360. int i;\
  361. const uint32_t a= AV_RN32(pixels );\
  362. const uint32_t b= AV_RN32(pixels+1);\
  363. uint32_t l0= (a&0x03030303UL)\
  364. + (b&0x03030303UL)\
  365. + 0x01010101UL;\
  366. uint32_t h0= ((a&0xFCFCFCFCUL)>>2)\
  367. + ((b&0xFCFCFCFCUL)>>2);\
  368. uint32_t l1,h1;\
  369. \
  370. pixels+=line_size;\
  371. for(i=0; i<h; i+=2){\
  372. uint32_t a= AV_RN32(pixels );\
  373. uint32_t b= AV_RN32(pixels+1);\
  374. l1= (a&0x03030303UL)\
  375. + (b&0x03030303UL);\
  376. h1= ((a&0xFCFCFCFCUL)>>2)\
  377. + ((b&0xFCFCFCFCUL)>>2);\
  378. OP(*((uint32_t*)block), h0+h1+(((l0+l1)>>2)&0x0F0F0F0FUL));\
  379. pixels+=line_size;\
  380. block +=line_size;\
  381. a= AV_RN32(pixels );\
  382. b= AV_RN32(pixels+1);\
  383. l0= (a&0x03030303UL)\
  384. + (b&0x03030303UL)\
  385. + 0x01010101UL;\
  386. h0= ((a&0xFCFCFCFCUL)>>2)\
  387. + ((b&0xFCFCFCFCUL)>>2);\
  388. OP(*((uint32_t*)block), h0+h1+(((l0+l1)>>2)&0x0F0F0F0FUL));\
  389. pixels+=line_size;\
  390. block +=line_size;\
  391. }\
  392. pixels+=4-line_size*(h+1);\
  393. block +=4-line_size*h;\
  394. }\
  395. }\
  396. \
  397. CALL_2X_PIXELS(FUNCC(OPNAME ## _pixels16_x2) , FUNCC(OPNAME ## _pixels8_x2) , 8*sizeof(pixel))\
  398. CALL_2X_PIXELS(FUNCC(OPNAME ## _pixels16_y2) , FUNCC(OPNAME ## _pixels8_y2) , 8*sizeof(pixel))\
  399. CALL_2X_PIXELS(FUNCC(OPNAME ## _pixels16_xy2), FUNCC(OPNAME ## _pixels8_xy2), 8*sizeof(pixel))\
  400. av_unused CALL_2X_PIXELS(FUNCC(OPNAME ## _no_rnd_pixels16) , FUNCC(OPNAME ## _pixels8) , 8*sizeof(pixel))\
  401. CALL_2X_PIXELS(FUNCC(OPNAME ## _no_rnd_pixels16_x2) , FUNCC(OPNAME ## _no_rnd_pixels8_x2) , 8*sizeof(pixel))\
  402. CALL_2X_PIXELS(FUNCC(OPNAME ## _no_rnd_pixels16_y2) , FUNCC(OPNAME ## _no_rnd_pixels8_y2) , 8*sizeof(pixel))\
  403. CALL_2X_PIXELS(FUNCC(OPNAME ## _no_rnd_pixels16_xy2), FUNCC(OPNAME ## _no_rnd_pixels8_xy2), 8*sizeof(pixel))\
  404. #define op_avg(a, b) a = rnd_avg_pixel4(a, b)
  405. #define op_put(a, b) a = b
  406. #if BIT_DEPTH == 8
  407. #define put_no_rnd_pixels8_8_c put_pixels8_8_c
  408. PIXOP2(avg, op_avg)
  409. PIXOP2(put, op_put)
  410. #endif
  411. #undef op_avg
  412. #undef op_put
  413. void FUNCC(ff_put_pixels8x8)(uint8_t *dst, uint8_t *src, ptrdiff_t stride)
  414. {
  415. FUNCC(put_pixels8)(dst, src, stride, 8);
  416. }
  417. void FUNCC(ff_avg_pixels8x8)(uint8_t *dst, uint8_t *src, ptrdiff_t stride)
  418. {
  419. FUNCC(avg_pixels8)(dst, src, stride, 8);
  420. }
  421. void FUNCC(ff_put_pixels16x16)(uint8_t *dst, uint8_t *src, ptrdiff_t stride)
  422. {
  423. FUNCC(put_pixels16)(dst, src, stride, 16);
  424. }
  425. void FUNCC(ff_avg_pixels16x16)(uint8_t *dst, uint8_t *src, ptrdiff_t stride)
  426. {
  427. FUNCC(avg_pixels16)(dst, src, stride, 16);
  428. }