vpx_dsp_rtcd_defs.pl 108 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655
  1. ##
  2. ## Copyright (c) 2017 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. sub vpx_dsp_forward_decls() {
  11. print <<EOF
  12. /*
  13. * DSP
  14. */
  15. #include "vpx/vpx_integer.h"
  16. #include "vpx_dsp/vpx_dsp_common.h"
  17. #include "vpx_dsp/vpx_filter.h"
  18. EOF
  19. }
  20. forward_decls qw/vpx_dsp_forward_decls/;
  21. # functions that are 64 bit only.
  22. $mmx_x86_64 = $sse2_x86_64 = $ssse3_x86_64 = $avx_x86_64 = $avx2_x86_64 = '';
  23. if ($opts{arch} eq "x86_64") {
  24. $mmx_x86_64 = 'mmx';
  25. $sse2_x86_64 = 'sse2';
  26. $ssse3_x86_64 = 'ssse3';
  27. $avx_x86_64 = 'avx';
  28. $avx2_x86_64 = 'avx2';
  29. $avx512_x86_64 = 'avx512';
  30. }
  31. #
  32. # Intra prediction
  33. #
  34. add_proto qw/void vpx_d207_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  35. specialize qw/vpx_d207_predictor_4x4 sse2/;
  36. add_proto qw/void vpx_d45_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  37. specialize qw/vpx_d45_predictor_4x4 neon sse2/;
  38. add_proto qw/void vpx_d45e_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  39. add_proto qw/void vpx_d63_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  40. specialize qw/vpx_d63_predictor_4x4 ssse3/;
  41. add_proto qw/void vpx_d63e_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  42. add_proto qw/void vpx_h_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  43. # TODO(crbug.com/webm/1522): Re-enable vsx implementation.
  44. specialize qw/vpx_h_predictor_4x4 neon dspr2 msa sse2/;
  45. add_proto qw/void vpx_he_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  46. add_proto qw/void vpx_d117_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  47. add_proto qw/void vpx_d135_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  48. specialize qw/vpx_d135_predictor_4x4 neon/;
  49. add_proto qw/void vpx_d153_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  50. specialize qw/vpx_d153_predictor_4x4 ssse3/;
  51. add_proto qw/void vpx_v_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  52. specialize qw/vpx_v_predictor_4x4 neon msa sse2/;
  53. add_proto qw/void vpx_ve_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  54. add_proto qw/void vpx_tm_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  55. # TODO(crbug.com/webm/1522): Re-enable vsx implementation.
  56. specialize qw/vpx_tm_predictor_4x4 neon dspr2 msa sse2/;
  57. add_proto qw/void vpx_dc_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  58. specialize qw/vpx_dc_predictor_4x4 dspr2 msa neon sse2/;
  59. add_proto qw/void vpx_dc_top_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  60. specialize qw/vpx_dc_top_predictor_4x4 msa neon sse2/;
  61. add_proto qw/void vpx_dc_left_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  62. specialize qw/vpx_dc_left_predictor_4x4 msa neon sse2/;
  63. add_proto qw/void vpx_dc_128_predictor_4x4/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  64. specialize qw/vpx_dc_128_predictor_4x4 msa neon sse2/;
  65. add_proto qw/void vpx_d207_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  66. specialize qw/vpx_d207_predictor_8x8 ssse3/;
  67. add_proto qw/void vpx_d45_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  68. # TODO(crbug.com/webm/1522): Re-enable vsx implementation.
  69. specialize qw/vpx_d45_predictor_8x8 neon sse2/;
  70. add_proto qw/void vpx_d63_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  71. # TODO(crbug.com/webm/1522): Re-enable vsx implementation.
  72. specialize qw/vpx_d63_predictor_8x8 ssse3/;
  73. add_proto qw/void vpx_h_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  74. # TODO(crbug.com/webm/1522): Re-enable vsx implementation.
  75. specialize qw/vpx_h_predictor_8x8 neon dspr2 msa sse2/;
  76. add_proto qw/void vpx_d117_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  77. add_proto qw/void vpx_d135_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  78. specialize qw/vpx_d135_predictor_8x8 neon/;
  79. add_proto qw/void vpx_d153_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  80. specialize qw/vpx_d153_predictor_8x8 ssse3/;
  81. add_proto qw/void vpx_v_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  82. specialize qw/vpx_v_predictor_8x8 neon msa sse2/;
  83. add_proto qw/void vpx_tm_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  84. # TODO(crbug.com/webm/1522): Re-enable vsx implementation.
  85. specialize qw/vpx_tm_predictor_8x8 neon dspr2 msa sse2/;
  86. add_proto qw/void vpx_dc_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  87. # TODO(crbug.com/webm/1522): Re-enable vsx implementation.
  88. specialize qw/vpx_dc_predictor_8x8 dspr2 neon msa sse2/;
  89. add_proto qw/void vpx_dc_top_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  90. specialize qw/vpx_dc_top_predictor_8x8 neon msa sse2/;
  91. add_proto qw/void vpx_dc_left_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  92. specialize qw/vpx_dc_left_predictor_8x8 neon msa sse2/;
  93. add_proto qw/void vpx_dc_128_predictor_8x8/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  94. specialize qw/vpx_dc_128_predictor_8x8 neon msa sse2/;
  95. add_proto qw/void vpx_d207_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  96. specialize qw/vpx_d207_predictor_16x16 ssse3/;
  97. add_proto qw/void vpx_d45_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  98. specialize qw/vpx_d45_predictor_16x16 neon ssse3 vsx/;
  99. add_proto qw/void vpx_d63_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  100. specialize qw/vpx_d63_predictor_16x16 ssse3 vsx/;
  101. add_proto qw/void vpx_h_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  102. specialize qw/vpx_h_predictor_16x16 neon dspr2 msa sse2 vsx/;
  103. add_proto qw/void vpx_d117_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  104. add_proto qw/void vpx_d135_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  105. specialize qw/vpx_d135_predictor_16x16 neon/;
  106. add_proto qw/void vpx_d153_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  107. specialize qw/vpx_d153_predictor_16x16 ssse3/;
  108. add_proto qw/void vpx_v_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  109. specialize qw/vpx_v_predictor_16x16 neon msa sse2 vsx/;
  110. add_proto qw/void vpx_tm_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  111. specialize qw/vpx_tm_predictor_16x16 neon msa sse2 vsx/;
  112. add_proto qw/void vpx_dc_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  113. specialize qw/vpx_dc_predictor_16x16 dspr2 neon msa sse2 vsx/;
  114. add_proto qw/void vpx_dc_top_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  115. specialize qw/vpx_dc_top_predictor_16x16 neon msa sse2 vsx/;
  116. add_proto qw/void vpx_dc_left_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  117. specialize qw/vpx_dc_left_predictor_16x16 neon msa sse2 vsx/;
  118. add_proto qw/void vpx_dc_128_predictor_16x16/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  119. specialize qw/vpx_dc_128_predictor_16x16 neon msa sse2 vsx/;
  120. add_proto qw/void vpx_d207_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  121. specialize qw/vpx_d207_predictor_32x32 ssse3/;
  122. add_proto qw/void vpx_d45_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  123. specialize qw/vpx_d45_predictor_32x32 neon ssse3 vsx/;
  124. add_proto qw/void vpx_d63_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  125. specialize qw/vpx_d63_predictor_32x32 ssse3 vsx/;
  126. add_proto qw/void vpx_h_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  127. specialize qw/vpx_h_predictor_32x32 neon msa sse2 vsx/;
  128. add_proto qw/void vpx_d117_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  129. add_proto qw/void vpx_d135_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  130. specialize qw/vpx_d135_predictor_32x32 neon/;
  131. add_proto qw/void vpx_d153_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  132. specialize qw/vpx_d153_predictor_32x32 ssse3/;
  133. add_proto qw/void vpx_v_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  134. specialize qw/vpx_v_predictor_32x32 neon msa sse2 vsx/;
  135. add_proto qw/void vpx_tm_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  136. specialize qw/vpx_tm_predictor_32x32 neon msa sse2 vsx/;
  137. add_proto qw/void vpx_dc_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  138. specialize qw/vpx_dc_predictor_32x32 msa neon sse2 vsx/;
  139. add_proto qw/void vpx_dc_top_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  140. specialize qw/vpx_dc_top_predictor_32x32 msa neon sse2 vsx/;
  141. add_proto qw/void vpx_dc_left_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  142. specialize qw/vpx_dc_left_predictor_32x32 msa neon sse2 vsx/;
  143. add_proto qw/void vpx_dc_128_predictor_32x32/, "uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left";
  144. specialize qw/vpx_dc_128_predictor_32x32 msa neon sse2 vsx/;
  145. # High bitdepth functions
  146. if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
  147. add_proto qw/void vpx_highbd_d207_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  148. specialize qw/vpx_highbd_d207_predictor_4x4 sse2/;
  149. add_proto qw/void vpx_highbd_d45_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  150. specialize qw/vpx_highbd_d45_predictor_4x4 neon ssse3/;
  151. add_proto qw/void vpx_highbd_d63_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  152. specialize qw/vpx_highbd_d63_predictor_4x4 sse2/;
  153. add_proto qw/void vpx_highbd_h_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  154. specialize qw/vpx_highbd_h_predictor_4x4 neon sse2/;
  155. add_proto qw/void vpx_highbd_d117_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  156. specialize qw/vpx_highbd_d117_predictor_4x4 sse2/;
  157. add_proto qw/void vpx_highbd_d135_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  158. specialize qw/vpx_highbd_d135_predictor_4x4 neon sse2/;
  159. add_proto qw/void vpx_highbd_d153_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  160. specialize qw/vpx_highbd_d153_predictor_4x4 sse2/;
  161. add_proto qw/void vpx_highbd_v_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  162. specialize qw/vpx_highbd_v_predictor_4x4 neon sse2/;
  163. add_proto qw/void vpx_highbd_tm_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  164. specialize qw/vpx_highbd_tm_predictor_4x4 neon sse2/;
  165. add_proto qw/void vpx_highbd_dc_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  166. specialize qw/vpx_highbd_dc_predictor_4x4 neon sse2/;
  167. add_proto qw/void vpx_highbd_dc_top_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  168. specialize qw/vpx_highbd_dc_top_predictor_4x4 neon sse2/;
  169. add_proto qw/void vpx_highbd_dc_left_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  170. specialize qw/vpx_highbd_dc_left_predictor_4x4 neon sse2/;
  171. add_proto qw/void vpx_highbd_dc_128_predictor_4x4/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  172. specialize qw/vpx_highbd_dc_128_predictor_4x4 neon sse2/;
  173. add_proto qw/void vpx_highbd_d207_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  174. specialize qw/vpx_highbd_d207_predictor_8x8 ssse3/;
  175. add_proto qw/void vpx_highbd_d45_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  176. specialize qw/vpx_highbd_d45_predictor_8x8 neon ssse3/;
  177. add_proto qw/void vpx_highbd_d63_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  178. specialize qw/vpx_highbd_d63_predictor_8x8 ssse3/;
  179. add_proto qw/void vpx_highbd_h_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  180. specialize qw/vpx_highbd_h_predictor_8x8 neon sse2/;
  181. add_proto qw/void vpx_highbd_d117_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  182. specialize qw/vpx_highbd_d117_predictor_8x8 ssse3/;
  183. add_proto qw/void vpx_highbd_d135_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  184. specialize qw/vpx_highbd_d135_predictor_8x8 neon ssse3/;
  185. add_proto qw/void vpx_highbd_d153_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  186. specialize qw/vpx_highbd_d153_predictor_8x8 ssse3/;
  187. add_proto qw/void vpx_highbd_v_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  188. specialize qw/vpx_highbd_v_predictor_8x8 neon sse2/;
  189. add_proto qw/void vpx_highbd_tm_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  190. specialize qw/vpx_highbd_tm_predictor_8x8 neon sse2/;
  191. add_proto qw/void vpx_highbd_dc_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  192. specialize qw/vpx_highbd_dc_predictor_8x8 neon sse2/;
  193. add_proto qw/void vpx_highbd_dc_top_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  194. specialize qw/vpx_highbd_dc_top_predictor_8x8 neon sse2/;
  195. add_proto qw/void vpx_highbd_dc_left_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  196. specialize qw/vpx_highbd_dc_left_predictor_8x8 neon sse2/;
  197. add_proto qw/void vpx_highbd_dc_128_predictor_8x8/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  198. specialize qw/vpx_highbd_dc_128_predictor_8x8 neon sse2/;
  199. add_proto qw/void vpx_highbd_d207_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  200. specialize qw/vpx_highbd_d207_predictor_16x16 ssse3/;
  201. add_proto qw/void vpx_highbd_d45_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  202. specialize qw/vpx_highbd_d45_predictor_16x16 neon ssse3/;
  203. add_proto qw/void vpx_highbd_d63_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  204. specialize qw/vpx_highbd_d63_predictor_16x16 ssse3/;
  205. add_proto qw/void vpx_highbd_h_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  206. specialize qw/vpx_highbd_h_predictor_16x16 neon sse2/;
  207. add_proto qw/void vpx_highbd_d117_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  208. specialize qw/vpx_highbd_d117_predictor_16x16 ssse3/;
  209. add_proto qw/void vpx_highbd_d135_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  210. specialize qw/vpx_highbd_d135_predictor_16x16 neon ssse3/;
  211. add_proto qw/void vpx_highbd_d153_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  212. specialize qw/vpx_highbd_d153_predictor_16x16 ssse3/;
  213. add_proto qw/void vpx_highbd_v_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  214. specialize qw/vpx_highbd_v_predictor_16x16 neon sse2/;
  215. add_proto qw/void vpx_highbd_tm_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  216. specialize qw/vpx_highbd_tm_predictor_16x16 neon sse2/;
  217. add_proto qw/void vpx_highbd_dc_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  218. specialize qw/vpx_highbd_dc_predictor_16x16 neon sse2/;
  219. add_proto qw/void vpx_highbd_dc_top_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  220. specialize qw/vpx_highbd_dc_top_predictor_16x16 neon sse2/;
  221. add_proto qw/void vpx_highbd_dc_left_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  222. specialize qw/vpx_highbd_dc_left_predictor_16x16 neon sse2/;
  223. add_proto qw/void vpx_highbd_dc_128_predictor_16x16/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  224. specialize qw/vpx_highbd_dc_128_predictor_16x16 neon sse2/;
  225. add_proto qw/void vpx_highbd_d207_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  226. specialize qw/vpx_highbd_d207_predictor_32x32 ssse3/;
  227. add_proto qw/void vpx_highbd_d45_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  228. specialize qw/vpx_highbd_d45_predictor_32x32 neon ssse3/;
  229. add_proto qw/void vpx_highbd_d63_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  230. specialize qw/vpx_highbd_d63_predictor_32x32 ssse3/;
  231. add_proto qw/void vpx_highbd_h_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  232. specialize qw/vpx_highbd_h_predictor_32x32 neon sse2/;
  233. add_proto qw/void vpx_highbd_d117_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  234. specialize qw/vpx_highbd_d117_predictor_32x32 ssse3/;
  235. add_proto qw/void vpx_highbd_d135_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  236. specialize qw/vpx_highbd_d135_predictor_32x32 neon ssse3/;
  237. add_proto qw/void vpx_highbd_d153_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  238. specialize qw/vpx_highbd_d153_predictor_32x32 ssse3/;
  239. add_proto qw/void vpx_highbd_v_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  240. specialize qw/vpx_highbd_v_predictor_32x32 neon sse2/;
  241. add_proto qw/void vpx_highbd_tm_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  242. specialize qw/vpx_highbd_tm_predictor_32x32 neon sse2/;
  243. add_proto qw/void vpx_highbd_dc_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  244. specialize qw/vpx_highbd_dc_predictor_32x32 neon sse2/;
  245. add_proto qw/void vpx_highbd_dc_top_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  246. specialize qw/vpx_highbd_dc_top_predictor_32x32 neon sse2/;
  247. add_proto qw/void vpx_highbd_dc_left_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  248. specialize qw/vpx_highbd_dc_left_predictor_32x32 neon sse2/;
  249. add_proto qw/void vpx_highbd_dc_128_predictor_32x32/, "uint16_t *dst, ptrdiff_t stride, const uint16_t *above, const uint16_t *left, int bd";
  250. specialize qw/vpx_highbd_dc_128_predictor_32x32 neon sse2/;
  251. } # CONFIG_VP9_HIGHBITDEPTH
  252. if (vpx_config("CONFIG_VP9") eq "yes") {
  253. #
  254. # Sub Pixel Filters
  255. #
  256. add_proto qw/void vpx_convolve_copy/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  257. specialize qw/vpx_convolve_copy neon dspr2 msa sse2 vsx/;
  258. add_proto qw/void vpx_convolve_avg/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  259. specialize qw/vpx_convolve_avg neon dspr2 msa sse2 vsx mmi/;
  260. add_proto qw/void vpx_convolve8/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  261. specialize qw/vpx_convolve8 sse2 ssse3 avx2 neon dspr2 msa vsx mmi/;
  262. add_proto qw/void vpx_convolve8_horiz/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  263. specialize qw/vpx_convolve8_horiz sse2 ssse3 avx2 neon dspr2 msa vsx mmi/;
  264. add_proto qw/void vpx_convolve8_vert/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  265. specialize qw/vpx_convolve8_vert sse2 ssse3 avx2 neon dspr2 msa vsx mmi/;
  266. add_proto qw/void vpx_convolve8_avg/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  267. specialize qw/vpx_convolve8_avg sse2 ssse3 avx2 neon dspr2 msa vsx mmi/;
  268. add_proto qw/void vpx_convolve8_avg_horiz/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  269. specialize qw/vpx_convolve8_avg_horiz sse2 ssse3 avx2 neon dspr2 msa vsx mmi/;
  270. add_proto qw/void vpx_convolve8_avg_vert/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  271. specialize qw/vpx_convolve8_avg_vert sse2 ssse3 avx2 neon dspr2 msa vsx mmi/;
  272. add_proto qw/void vpx_scaled_2d/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  273. specialize qw/vpx_scaled_2d ssse3 neon msa/;
  274. add_proto qw/void vpx_scaled_horiz/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  275. add_proto qw/void vpx_scaled_vert/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  276. add_proto qw/void vpx_scaled_avg_2d/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  277. add_proto qw/void vpx_scaled_avg_horiz/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  278. add_proto qw/void vpx_scaled_avg_vert/, "const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h";
  279. } #CONFIG_VP9
  280. if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
  281. #
  282. # Sub Pixel Filters
  283. #
  284. add_proto qw/void vpx_highbd_convolve_copy/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h, int bd";
  285. specialize qw/vpx_highbd_convolve_copy sse2 avx2 neon/;
  286. add_proto qw/void vpx_highbd_convolve_avg/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h, int bd";
  287. specialize qw/vpx_highbd_convolve_avg sse2 avx2 neon/;
  288. add_proto qw/void vpx_highbd_convolve8/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h, int bd";
  289. specialize qw/vpx_highbd_convolve8 avx2 neon/, "$sse2_x86_64";
  290. add_proto qw/void vpx_highbd_convolve8_horiz/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h, int bd";
  291. specialize qw/vpx_highbd_convolve8_horiz avx2 neon/, "$sse2_x86_64";
  292. add_proto qw/void vpx_highbd_convolve8_vert/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h, int bd";
  293. specialize qw/vpx_highbd_convolve8_vert avx2 neon/, "$sse2_x86_64";
  294. add_proto qw/void vpx_highbd_convolve8_avg/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h, int bd";
  295. specialize qw/vpx_highbd_convolve8_avg avx2 neon/, "$sse2_x86_64";
  296. add_proto qw/void vpx_highbd_convolve8_avg_horiz/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h, int bd";
  297. specialize qw/vpx_highbd_convolve8_avg_horiz avx2 neon/, "$sse2_x86_64";
  298. add_proto qw/void vpx_highbd_convolve8_avg_vert/, "const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h, int bd";
  299. specialize qw/vpx_highbd_convolve8_avg_vert avx2 neon/, "$sse2_x86_64";
  300. } # CONFIG_VP9_HIGHBITDEPTH
  301. if (vpx_config("CONFIG_VP9") eq "yes") {
  302. #
  303. # Loopfilter
  304. #
  305. add_proto qw/void vpx_lpf_vertical_16/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
  306. specialize qw/vpx_lpf_vertical_16 sse2 neon dspr2 msa/;
  307. add_proto qw/void vpx_lpf_vertical_16_dual/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
  308. specialize qw/vpx_lpf_vertical_16_dual sse2 neon dspr2 msa/;
  309. add_proto qw/void vpx_lpf_vertical_8/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
  310. specialize qw/vpx_lpf_vertical_8 sse2 neon dspr2 msa/;
  311. add_proto qw/void vpx_lpf_vertical_8_dual/, "uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1";
  312. specialize qw/vpx_lpf_vertical_8_dual sse2 neon dspr2 msa/;
  313. add_proto qw/void vpx_lpf_vertical_4/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
  314. specialize qw/vpx_lpf_vertical_4 sse2 neon dspr2 msa/;
  315. add_proto qw/void vpx_lpf_vertical_4_dual/, "uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1";
  316. specialize qw/vpx_lpf_vertical_4_dual sse2 neon dspr2 msa/;
  317. add_proto qw/void vpx_lpf_horizontal_16/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
  318. specialize qw/vpx_lpf_horizontal_16 sse2 avx2 neon dspr2 msa/;
  319. add_proto qw/void vpx_lpf_horizontal_16_dual/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
  320. specialize qw/vpx_lpf_horizontal_16_dual sse2 avx2 neon dspr2 msa/;
  321. add_proto qw/void vpx_lpf_horizontal_8/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
  322. specialize qw/vpx_lpf_horizontal_8 sse2 neon dspr2 msa/;
  323. add_proto qw/void vpx_lpf_horizontal_8_dual/, "uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1";
  324. specialize qw/vpx_lpf_horizontal_8_dual sse2 neon dspr2 msa/;
  325. add_proto qw/void vpx_lpf_horizontal_4/, "uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh";
  326. specialize qw/vpx_lpf_horizontal_4 sse2 neon dspr2 msa/;
  327. add_proto qw/void vpx_lpf_horizontal_4_dual/, "uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1";
  328. specialize qw/vpx_lpf_horizontal_4_dual sse2 neon dspr2 msa/;
  329. } #CONFIG_VP9
  330. if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
  331. add_proto qw/void vpx_highbd_lpf_vertical_16/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
  332. specialize qw/vpx_highbd_lpf_vertical_16 sse2 neon/;
  333. add_proto qw/void vpx_highbd_lpf_vertical_16_dual/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
  334. specialize qw/vpx_highbd_lpf_vertical_16_dual sse2 neon/;
  335. add_proto qw/void vpx_highbd_lpf_vertical_8/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
  336. specialize qw/vpx_highbd_lpf_vertical_8 sse2 neon/;
  337. add_proto qw/void vpx_highbd_lpf_vertical_8_dual/, "uint16_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1, int bd";
  338. specialize qw/vpx_highbd_lpf_vertical_8_dual sse2 neon/;
  339. add_proto qw/void vpx_highbd_lpf_vertical_4/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
  340. specialize qw/vpx_highbd_lpf_vertical_4 sse2 neon/;
  341. add_proto qw/void vpx_highbd_lpf_vertical_4_dual/, "uint16_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1, int bd";
  342. specialize qw/vpx_highbd_lpf_vertical_4_dual sse2 neon/;
  343. add_proto qw/void vpx_highbd_lpf_horizontal_16/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
  344. specialize qw/vpx_highbd_lpf_horizontal_16 sse2 neon/;
  345. add_proto qw/void vpx_highbd_lpf_horizontal_16_dual/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
  346. specialize qw/vpx_highbd_lpf_horizontal_16_dual sse2 neon/;
  347. add_proto qw/void vpx_highbd_lpf_horizontal_8/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
  348. specialize qw/vpx_highbd_lpf_horizontal_8 sse2 neon/;
  349. add_proto qw/void vpx_highbd_lpf_horizontal_8_dual/, "uint16_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1, int bd";
  350. specialize qw/vpx_highbd_lpf_horizontal_8_dual sse2 neon/;
  351. add_proto qw/void vpx_highbd_lpf_horizontal_4/, "uint16_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int bd";
  352. specialize qw/vpx_highbd_lpf_horizontal_4 sse2 neon/;
  353. add_proto qw/void vpx_highbd_lpf_horizontal_4_dual/, "uint16_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1, int bd";
  354. specialize qw/vpx_highbd_lpf_horizontal_4_dual sse2 neon/;
  355. } # CONFIG_VP9_HIGHBITDEPTH
  356. #
  357. # Encoder functions.
  358. #
  359. #
  360. # Forward transform
  361. #
  362. if (vpx_config("CONFIG_VP9_ENCODER") eq "yes") {
  363. if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
  364. add_proto qw/void vpx_fdct4x4/, "const int16_t *input, tran_low_t *output, int stride";
  365. specialize qw/vpx_fdct4x4 neon sse2/;
  366. add_proto qw/void vpx_fdct4x4_1/, "const int16_t *input, tran_low_t *output, int stride";
  367. specialize qw/vpx_fdct4x4_1 sse2 neon/;
  368. add_proto qw/void vpx_fdct8x8/, "const int16_t *input, tran_low_t *output, int stride";
  369. specialize qw/vpx_fdct8x8 neon sse2/;
  370. add_proto qw/void vpx_fdct8x8_1/, "const int16_t *input, tran_low_t *output, int stride";
  371. specialize qw/vpx_fdct8x8_1 neon sse2 msa/;
  372. add_proto qw/void vpx_fdct16x16/, "const int16_t *input, tran_low_t *output, int stride";
  373. specialize qw/vpx_fdct16x16 neon sse2/;
  374. add_proto qw/void vpx_fdct16x16_1/, "const int16_t *input, tran_low_t *output, int stride";
  375. specialize qw/vpx_fdct16x16_1 sse2 neon/;
  376. add_proto qw/void vpx_fdct32x32/, "const int16_t *input, tran_low_t *output, int stride";
  377. specialize qw/vpx_fdct32x32 neon sse2/;
  378. add_proto qw/void vpx_fdct32x32_rd/, "const int16_t *input, tran_low_t *output, int stride";
  379. specialize qw/vpx_fdct32x32_rd neon sse2/;
  380. add_proto qw/void vpx_fdct32x32_1/, "const int16_t *input, tran_low_t *output, int stride";
  381. specialize qw/vpx_fdct32x32_1 sse2 neon/;
  382. add_proto qw/void vpx_highbd_fdct4x4/, "const int16_t *input, tran_low_t *output, int stride";
  383. specialize qw/vpx_highbd_fdct4x4 sse2/;
  384. add_proto qw/void vpx_highbd_fdct8x8/, "const int16_t *input, tran_low_t *output, int stride";
  385. specialize qw/vpx_highbd_fdct8x8 sse2/;
  386. add_proto qw/void vpx_highbd_fdct8x8_1/, "const int16_t *input, tran_low_t *output, int stride";
  387. specialize qw/vpx_highbd_fdct8x8_1 neon/;
  388. $vpx_highbd_fdct8x8_1_neon=vpx_fdct8x8_1_neon;
  389. add_proto qw/void vpx_highbd_fdct16x16/, "const int16_t *input, tran_low_t *output, int stride";
  390. specialize qw/vpx_highbd_fdct16x16 sse2/;
  391. add_proto qw/void vpx_highbd_fdct16x16_1/, "const int16_t *input, tran_low_t *output, int stride";
  392. add_proto qw/void vpx_highbd_fdct32x32/, "const int16_t *input, tran_low_t *output, int stride";
  393. specialize qw/vpx_highbd_fdct32x32 sse2/;
  394. add_proto qw/void vpx_highbd_fdct32x32_rd/, "const int16_t *input, tran_low_t *output, int stride";
  395. specialize qw/vpx_highbd_fdct32x32_rd sse2/;
  396. add_proto qw/void vpx_highbd_fdct32x32_1/, "const int16_t *input, tran_low_t *output, int stride";
  397. } else {
  398. add_proto qw/void vpx_fdct4x4/, "const int16_t *input, tran_low_t *output, int stride";
  399. specialize qw/vpx_fdct4x4 neon sse2 msa/;
  400. add_proto qw/void vpx_fdct4x4_1/, "const int16_t *input, tran_low_t *output, int stride";
  401. specialize qw/vpx_fdct4x4_1 sse2 neon/;
  402. add_proto qw/void vpx_fdct8x8/, "const int16_t *input, tran_low_t *output, int stride";
  403. specialize qw/vpx_fdct8x8 sse2 neon msa/, "$ssse3_x86_64";
  404. add_proto qw/void vpx_fdct8x8_1/, "const int16_t *input, tran_low_t *output, int stride";
  405. specialize qw/vpx_fdct8x8_1 sse2 neon msa/;
  406. add_proto qw/void vpx_fdct16x16/, "const int16_t *input, tran_low_t *output, int stride";
  407. specialize qw/vpx_fdct16x16 neon sse2 msa/;
  408. add_proto qw/void vpx_fdct16x16_1/, "const int16_t *input, tran_low_t *output, int stride";
  409. specialize qw/vpx_fdct16x16_1 sse2 neon msa/;
  410. add_proto qw/void vpx_fdct32x32/, "const int16_t *input, tran_low_t *output, int stride";
  411. specialize qw/vpx_fdct32x32 neon sse2 avx2 msa/;
  412. add_proto qw/void vpx_fdct32x32_rd/, "const int16_t *input, tran_low_t *output, int stride";
  413. specialize qw/vpx_fdct32x32_rd sse2 avx2 neon msa vsx/;
  414. add_proto qw/void vpx_fdct32x32_1/, "const int16_t *input, tran_low_t *output, int stride";
  415. specialize qw/vpx_fdct32x32_1 sse2 neon msa/;
  416. } # CONFIG_VP9_HIGHBITDEPTH
  417. } # CONFIG_VP9_ENCODER
  418. #
  419. # Inverse transform
  420. if (vpx_config("CONFIG_VP9") eq "yes") {
  421. add_proto qw/void vpx_idct4x4_16_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  422. add_proto qw/void vpx_idct4x4_1_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  423. add_proto qw/void vpx_idct8x8_64_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  424. add_proto qw/void vpx_idct8x8_12_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  425. add_proto qw/void vpx_idct8x8_1_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  426. add_proto qw/void vpx_idct16x16_256_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  427. add_proto qw/void vpx_idct16x16_38_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  428. add_proto qw/void vpx_idct16x16_10_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  429. add_proto qw/void vpx_idct16x16_1_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  430. add_proto qw/void vpx_idct32x32_1024_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  431. add_proto qw/void vpx_idct32x32_135_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  432. add_proto qw/void vpx_idct32x32_34_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  433. add_proto qw/void vpx_idct32x32_1_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  434. add_proto qw/void vpx_iwht4x4_16_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  435. add_proto qw/void vpx_iwht4x4_1_add/, "const tran_low_t *input, uint8_t *dest, int stride";
  436. if (vpx_config("CONFIG_EMULATE_HARDWARE") ne "yes") {
  437. # Note that there are more specializations appended when
  438. # CONFIG_VP9_HIGHBITDEPTH is off.
  439. specialize qw/vpx_idct4x4_16_add neon sse2 vsx/;
  440. specialize qw/vpx_idct4x4_1_add neon sse2/;
  441. specialize qw/vpx_idct8x8_64_add neon sse2 vsx/;
  442. specialize qw/vpx_idct8x8_12_add neon sse2 ssse3/;
  443. specialize qw/vpx_idct8x8_1_add neon sse2/;
  444. specialize qw/vpx_idct16x16_256_add neon sse2 vsx/;
  445. specialize qw/vpx_idct16x16_38_add neon sse2/;
  446. specialize qw/vpx_idct16x16_10_add neon sse2/;
  447. specialize qw/vpx_idct16x16_1_add neon sse2/;
  448. specialize qw/vpx_idct32x32_1024_add neon sse2 vsx/;
  449. specialize qw/vpx_idct32x32_135_add neon sse2 ssse3/;
  450. specialize qw/vpx_idct32x32_34_add neon sse2 ssse3/;
  451. specialize qw/vpx_idct32x32_1_add neon sse2/;
  452. specialize qw/vpx_iwht4x4_16_add sse2 vsx/;
  453. if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") ne "yes") {
  454. # Note that these specializations are appended to the above ones.
  455. specialize qw/vpx_idct4x4_16_add dspr2 msa/;
  456. specialize qw/vpx_idct4x4_1_add dspr2 msa/;
  457. specialize qw/vpx_idct8x8_64_add dspr2 msa/;
  458. specialize qw/vpx_idct8x8_12_add dspr2 msa/;
  459. specialize qw/vpx_idct8x8_1_add dspr2 msa/;
  460. specialize qw/vpx_idct16x16_256_add dspr2 msa/;
  461. specialize qw/vpx_idct16x16_38_add dspr2 msa/;
  462. $vpx_idct16x16_38_add_dspr2=vpx_idct16x16_256_add_dspr2;
  463. $vpx_idct16x16_38_add_msa=vpx_idct16x16_256_add_msa;
  464. specialize qw/vpx_idct16x16_10_add dspr2 msa/;
  465. specialize qw/vpx_idct16x16_1_add dspr2 msa/;
  466. specialize qw/vpx_idct32x32_1024_add dspr2 msa/;
  467. specialize qw/vpx_idct32x32_135_add dspr2 msa/;
  468. $vpx_idct32x32_135_add_dspr2=vpx_idct32x32_1024_add_dspr2;
  469. $vpx_idct32x32_135_add_msa=vpx_idct32x32_1024_add_msa;
  470. specialize qw/vpx_idct32x32_34_add dspr2 msa/;
  471. specialize qw/vpx_idct32x32_1_add dspr2 msa/;
  472. specialize qw/vpx_iwht4x4_16_add msa/;
  473. specialize qw/vpx_iwht4x4_1_add msa/;
  474. } # !CONFIG_VP9_HIGHBITDEPTH
  475. } # !CONFIG_EMULATE_HARDWARE
  476. if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
  477. # Note as optimized versions of these functions are added we need to add a check to ensure
  478. # that when CONFIG_EMULATE_HARDWARE is on, it defaults to the C versions only.
  479. add_proto qw/void vpx_highbd_idct4x4_16_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  480. add_proto qw/void vpx_highbd_idct4x4_1_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  481. specialize qw/vpx_highbd_idct4x4_1_add neon sse2/;
  482. add_proto qw/void vpx_highbd_idct8x8_64_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  483. add_proto qw/void vpx_highbd_idct8x8_12_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  484. add_proto qw/void vpx_highbd_idct8x8_1_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  485. specialize qw/vpx_highbd_idct8x8_1_add neon sse2/;
  486. add_proto qw/void vpx_highbd_idct16x16_256_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  487. add_proto qw/void vpx_highbd_idct16x16_38_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  488. add_proto qw/void vpx_highbd_idct16x16_10_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  489. add_proto qw/void vpx_highbd_idct16x16_1_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  490. specialize qw/vpx_highbd_idct16x16_1_add neon sse2/;
  491. add_proto qw/void vpx_highbd_idct32x32_1024_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  492. add_proto qw/void vpx_highbd_idct32x32_135_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  493. add_proto qw/void vpx_highbd_idct32x32_34_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  494. add_proto qw/void vpx_highbd_idct32x32_1_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  495. specialize qw/vpx_highbd_idct32x32_1_add neon sse2/;
  496. add_proto qw/void vpx_highbd_iwht4x4_16_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  497. add_proto qw/void vpx_highbd_iwht4x4_1_add/, "const tran_low_t *input, uint16_t *dest, int stride, int bd";
  498. if (vpx_config("CONFIG_EMULATE_HARDWARE") ne "yes") {
  499. specialize qw/vpx_highbd_idct4x4_16_add neon sse2 sse4_1/;
  500. specialize qw/vpx_highbd_idct8x8_64_add neon sse2 sse4_1/;
  501. specialize qw/vpx_highbd_idct8x8_12_add neon sse2 sse4_1/;
  502. specialize qw/vpx_highbd_idct16x16_256_add neon sse2 sse4_1/;
  503. specialize qw/vpx_highbd_idct16x16_38_add neon sse2 sse4_1/;
  504. specialize qw/vpx_highbd_idct16x16_10_add neon sse2 sse4_1/;
  505. specialize qw/vpx_highbd_idct32x32_1024_add neon sse2 sse4_1/;
  506. specialize qw/vpx_highbd_idct32x32_135_add neon sse2 sse4_1/;
  507. specialize qw/vpx_highbd_idct32x32_34_add neon sse2 sse4_1/;
  508. } # !CONFIG_EMULATE_HARDWARE
  509. } # CONFIG_VP9_HIGHBITDEPTH
  510. } # CONFIG_VP9
  511. #
  512. # Quantization
  513. #
  514. if (vpx_config("CONFIG_VP9_ENCODER") eq "yes") {
  515. add_proto qw/void vpx_quantize_b/, "const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan";
  516. specialize qw/vpx_quantize_b neon sse2 ssse3 avx vsx/;
  517. add_proto qw/void vpx_quantize_b_32x32/, "const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan";
  518. specialize qw/vpx_quantize_b_32x32 neon ssse3 avx vsx/;
  519. if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
  520. add_proto qw/void vpx_highbd_quantize_b/, "const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan";
  521. specialize qw/vpx_highbd_quantize_b sse2/;
  522. add_proto qw/void vpx_highbd_quantize_b_32x32/, "const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan";
  523. specialize qw/vpx_highbd_quantize_b_32x32 sse2/;
  524. } # CONFIG_VP9_HIGHBITDEPTH
  525. } # CONFIG_VP9_ENCODER
  526. if (vpx_config("CONFIG_ENCODERS") eq "yes") {
  527. #
  528. # Block subtraction
  529. #
  530. add_proto qw/void vpx_subtract_block/, "int rows, int cols, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src_ptr, ptrdiff_t src_stride, const uint8_t *pred_ptr, ptrdiff_t pred_stride";
  531. specialize qw/vpx_subtract_block neon msa mmi sse2 vsx/;
  532. #
  533. # Single block SAD
  534. #
  535. add_proto qw/unsigned int vpx_sad64x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  536. specialize qw/vpx_sad64x64 neon avx2 msa sse2 vsx mmi/;
  537. add_proto qw/unsigned int vpx_sad64x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  538. specialize qw/vpx_sad64x32 neon avx2 msa sse2 vsx mmi/;
  539. add_proto qw/unsigned int vpx_sad32x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  540. specialize qw/vpx_sad32x64 neon avx2 msa sse2 vsx mmi/;
  541. add_proto qw/unsigned int vpx_sad32x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  542. specialize qw/vpx_sad32x32 neon avx2 msa sse2 vsx mmi/;
  543. add_proto qw/unsigned int vpx_sad32x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  544. specialize qw/vpx_sad32x16 neon avx2 msa sse2 vsx mmi/;
  545. add_proto qw/unsigned int vpx_sad16x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  546. specialize qw/vpx_sad16x32 neon msa sse2 vsx mmi/;
  547. add_proto qw/unsigned int vpx_sad16x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  548. specialize qw/vpx_sad16x16 neon msa sse2 vsx mmi/;
  549. add_proto qw/unsigned int vpx_sad16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  550. specialize qw/vpx_sad16x8 neon msa sse2 vsx mmi/;
  551. add_proto qw/unsigned int vpx_sad8x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  552. specialize qw/vpx_sad8x16 neon msa sse2 vsx mmi/;
  553. add_proto qw/unsigned int vpx_sad8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  554. specialize qw/vpx_sad8x8 neon msa sse2 vsx mmi/;
  555. add_proto qw/unsigned int vpx_sad8x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  556. specialize qw/vpx_sad8x4 neon msa sse2 vsx mmi/;
  557. add_proto qw/unsigned int vpx_sad4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  558. specialize qw/vpx_sad4x8 neon msa sse2 mmi/;
  559. add_proto qw/unsigned int vpx_sad4x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  560. specialize qw/vpx_sad4x4 neon msa sse2 mmi/;
  561. #
  562. # Avg
  563. #
  564. if (vpx_config("CONFIG_VP9_ENCODER") eq "yes") {
  565. add_proto qw/unsigned int vpx_avg_8x8/, "const uint8_t *, int p";
  566. specialize qw/vpx_avg_8x8 sse2 neon msa/;
  567. add_proto qw/unsigned int vpx_avg_4x4/, "const uint8_t *, int p";
  568. specialize qw/vpx_avg_4x4 sse2 neon msa/;
  569. add_proto qw/void vpx_minmax_8x8/, "const uint8_t *s, int p, const uint8_t *d, int dp, int *min, int *max";
  570. specialize qw/vpx_minmax_8x8 sse2 neon msa/;
  571. if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
  572. add_proto qw/void vpx_hadamard_8x8/, "const int16_t *src_diff, ptrdiff_t src_stride, tran_low_t *coeff";
  573. specialize qw/vpx_hadamard_8x8 sse2 neon vsx/, "$ssse3_x86_64";
  574. add_proto qw/void vpx_hadamard_16x16/, "const int16_t *src_diff, ptrdiff_t src_stride, tran_low_t *coeff";
  575. specialize qw/vpx_hadamard_16x16 avx2 sse2 neon vsx/;
  576. add_proto qw/void vpx_hadamard_32x32/, "const int16_t *src_diff, ptrdiff_t src_stride, tran_low_t *coeff";
  577. specialize qw/vpx_hadamard_32x32 sse2 avx2/;
  578. add_proto qw/void vpx_highbd_hadamard_8x8/, "const int16_t *src_diff, ptrdiff_t src_stride, tran_low_t *coeff";
  579. specialize qw/vpx_highbd_hadamard_8x8 avx2/;
  580. add_proto qw/void vpx_highbd_hadamard_16x16/, "const int16_t *src_diff, ptrdiff_t src_stride, tran_low_t *coeff";
  581. specialize qw/vpx_highbd_hadamard_16x16 avx2/;
  582. add_proto qw/void vpx_highbd_hadamard_32x32/, "const int16_t *src_diff, ptrdiff_t src_stride, tran_low_t *coeff";
  583. specialize qw/vpx_highbd_hadamard_32x32 avx2/;
  584. add_proto qw/int vpx_satd/, "const tran_low_t *coeff, int length";
  585. specialize qw/vpx_satd avx2 sse2 neon/;
  586. add_proto qw/int vpx_highbd_satd/, "const tran_low_t *coeff, int length";
  587. specialize qw/vpx_highbd_satd avx2/;
  588. } else {
  589. add_proto qw/void vpx_hadamard_8x8/, "const int16_t *src_diff, ptrdiff_t src_stride, int16_t *coeff";
  590. specialize qw/vpx_hadamard_8x8 sse2 neon msa vsx/, "$ssse3_x86_64";
  591. add_proto qw/void vpx_hadamard_16x16/, "const int16_t *src_diff, ptrdiff_t src_stride, int16_t *coeff";
  592. specialize qw/vpx_hadamard_16x16 avx2 sse2 neon msa vsx/;
  593. add_proto qw/void vpx_hadamard_32x32/, "const int16_t *src_diff, ptrdiff_t src_stride, int16_t *coeff";
  594. specialize qw/vpx_hadamard_32x32 sse2 avx2/;
  595. add_proto qw/int vpx_satd/, "const int16_t *coeff, int length";
  596. specialize qw/vpx_satd avx2 sse2 neon msa/;
  597. }
  598. add_proto qw/void vpx_int_pro_row/, "int16_t *hbuf, const uint8_t *ref, const int ref_stride, const int height";
  599. specialize qw/vpx_int_pro_row sse2 neon msa/;
  600. add_proto qw/int16_t vpx_int_pro_col/, "const uint8_t *ref, const int width";
  601. specialize qw/vpx_int_pro_col sse2 neon msa/;
  602. add_proto qw/int vpx_vector_var/, "const int16_t *ref, const int16_t *src, const int bwl";
  603. specialize qw/vpx_vector_var neon sse2 msa/;
  604. } # CONFIG_VP9_ENCODER
  605. add_proto qw/unsigned int vpx_sad64x64_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  606. specialize qw/vpx_sad64x64_avg neon avx2 msa sse2 vsx mmi/;
  607. add_proto qw/unsigned int vpx_sad64x32_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  608. specialize qw/vpx_sad64x32_avg neon avx2 msa sse2 vsx mmi/;
  609. add_proto qw/unsigned int vpx_sad32x64_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  610. specialize qw/vpx_sad32x64_avg neon avx2 msa sse2 vsx mmi/;
  611. add_proto qw/unsigned int vpx_sad32x32_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  612. specialize qw/vpx_sad32x32_avg neon avx2 msa sse2 vsx mmi/;
  613. add_proto qw/unsigned int vpx_sad32x16_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  614. specialize qw/vpx_sad32x16_avg neon avx2 msa sse2 vsx mmi/;
  615. add_proto qw/unsigned int vpx_sad16x32_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  616. specialize qw/vpx_sad16x32_avg neon msa sse2 vsx mmi/;
  617. add_proto qw/unsigned int vpx_sad16x16_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  618. specialize qw/vpx_sad16x16_avg neon msa sse2 vsx mmi/;
  619. add_proto qw/unsigned int vpx_sad16x8_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  620. specialize qw/vpx_sad16x8_avg neon msa sse2 vsx mmi/;
  621. add_proto qw/unsigned int vpx_sad8x16_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  622. specialize qw/vpx_sad8x16_avg neon msa sse2 mmi/;
  623. add_proto qw/unsigned int vpx_sad8x8_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  624. specialize qw/vpx_sad8x8_avg neon msa sse2 mmi/;
  625. add_proto qw/unsigned int vpx_sad8x4_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  626. specialize qw/vpx_sad8x4_avg neon msa sse2 mmi/;
  627. add_proto qw/unsigned int vpx_sad4x8_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  628. specialize qw/vpx_sad4x8_avg neon msa sse2 mmi/;
  629. add_proto qw/unsigned int vpx_sad4x4_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  630. specialize qw/vpx_sad4x4_avg neon msa sse2 mmi/;
  631. #
  632. # Multi-block SAD, comparing a reference to N blocks 1 pixel apart horizontally
  633. #
  634. # Blocks of 3
  635. add_proto qw/void vpx_sad16x16x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
  636. specialize qw/vpx_sad16x16x3 sse3 ssse3 msa mmi/;
  637. add_proto qw/void vpx_sad16x8x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
  638. specialize qw/vpx_sad16x8x3 sse3 ssse3 msa mmi/;
  639. add_proto qw/void vpx_sad8x16x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
  640. specialize qw/vpx_sad8x16x3 sse3 msa mmi/;
  641. add_proto qw/void vpx_sad8x8x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
  642. specialize qw/vpx_sad8x8x3 sse3 msa mmi/;
  643. add_proto qw/void vpx_sad4x4x3/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
  644. specialize qw/vpx_sad4x4x3 sse3 msa mmi/;
  645. # Blocks of 8
  646. add_proto qw/void vpx_sad16x16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
  647. specialize qw/vpx_sad16x16x8 sse4_1 msa mmi/;
  648. add_proto qw/void vpx_sad16x8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
  649. specialize qw/vpx_sad16x8x8 sse4_1 msa mmi/;
  650. add_proto qw/void vpx_sad8x16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
  651. specialize qw/vpx_sad8x16x8 sse4_1 msa mmi/;
  652. add_proto qw/void vpx_sad8x8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
  653. specialize qw/vpx_sad8x8x8 sse4_1 msa mmi/;
  654. add_proto qw/void vpx_sad4x4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array";
  655. specialize qw/vpx_sad4x4x8 sse4_1 msa mmi/;
  656. #
  657. # Multi-block SAD, comparing a reference to N independent blocks
  658. #
  659. add_proto qw/void vpx_sad64x64x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  660. specialize qw/vpx_sad64x64x4d avx512 avx2 neon msa sse2 vsx mmi/;
  661. add_proto qw/void vpx_sad64x32x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  662. specialize qw/vpx_sad64x32x4d neon msa sse2 vsx mmi/;
  663. add_proto qw/void vpx_sad32x64x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  664. specialize qw/vpx_sad32x64x4d neon msa sse2 vsx mmi/;
  665. add_proto qw/void vpx_sad32x32x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  666. specialize qw/vpx_sad32x32x4d avx2 neon msa sse2 vsx mmi/;
  667. add_proto qw/void vpx_sad32x16x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  668. specialize qw/vpx_sad32x16x4d neon msa sse2 vsx mmi/;
  669. add_proto qw/void vpx_sad16x32x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  670. specialize qw/vpx_sad16x32x4d neon msa sse2 vsx mmi/;
  671. add_proto qw/void vpx_sad16x16x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  672. specialize qw/vpx_sad16x16x4d neon msa sse2 vsx mmi/;
  673. add_proto qw/void vpx_sad16x8x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  674. specialize qw/vpx_sad16x8x4d neon msa sse2 vsx mmi/;
  675. add_proto qw/void vpx_sad8x16x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  676. specialize qw/vpx_sad8x16x4d neon msa sse2 mmi/;
  677. add_proto qw/void vpx_sad8x8x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  678. specialize qw/vpx_sad8x8x4d neon msa sse2 mmi/;
  679. add_proto qw/void vpx_sad8x4x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  680. specialize qw/vpx_sad8x4x4d neon msa sse2 mmi/;
  681. add_proto qw/void vpx_sad4x8x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  682. specialize qw/vpx_sad4x8x4d neon msa sse2 mmi/;
  683. add_proto qw/void vpx_sad4x4x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_array[], int ref_stride, uint32_t *sad_array";
  684. specialize qw/vpx_sad4x4x4d neon msa sse2 mmi/;
  685. add_proto qw/uint64_t vpx_sum_squares_2d_i16/, "const int16_t *src, int stride, int size";
  686. specialize qw/vpx_sum_squares_2d_i16 neon sse2 msa/;
  687. #
  688. # Structured Similarity (SSIM)
  689. #
  690. if (vpx_config("CONFIG_INTERNAL_STATS") eq "yes") {
  691. add_proto qw/void vpx_ssim_parms_8x8/, "const uint8_t *s, int sp, const uint8_t *r, int rp, uint32_t *sum_s, uint32_t *sum_r, uint32_t *sum_sq_s, uint32_t *sum_sq_r, uint32_t *sum_sxr";
  692. specialize qw/vpx_ssim_parms_8x8/, "$sse2_x86_64";
  693. add_proto qw/void vpx_ssim_parms_16x16/, "const uint8_t *s, int sp, const uint8_t *r, int rp, uint32_t *sum_s, uint32_t *sum_r, uint32_t *sum_sq_s, uint32_t *sum_sq_r, uint32_t *sum_sxr";
  694. specialize qw/vpx_ssim_parms_16x16/, "$sse2_x86_64";
  695. }
  696. if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
  697. #
  698. # Block subtraction
  699. #
  700. add_proto qw/void vpx_highbd_subtract_block/, "int rows, int cols, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src8_ptr, ptrdiff_t src_stride, const uint8_t *pred8_ptr, ptrdiff_t pred_stride, int bd";
  701. #
  702. # Single block SAD
  703. #
  704. add_proto qw/unsigned int vpx_highbd_sad64x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  705. specialize qw/vpx_highbd_sad64x64 sse2/;
  706. add_proto qw/unsigned int vpx_highbd_sad64x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  707. specialize qw/vpx_highbd_sad64x32 sse2/;
  708. add_proto qw/unsigned int vpx_highbd_sad32x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  709. specialize qw/vpx_highbd_sad32x64 sse2/;
  710. add_proto qw/unsigned int vpx_highbd_sad32x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  711. specialize qw/vpx_highbd_sad32x32 sse2/;
  712. add_proto qw/unsigned int vpx_highbd_sad32x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  713. specialize qw/vpx_highbd_sad32x16 sse2/;
  714. add_proto qw/unsigned int vpx_highbd_sad16x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  715. specialize qw/vpx_highbd_sad16x32 sse2/;
  716. add_proto qw/unsigned int vpx_highbd_sad16x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  717. specialize qw/vpx_highbd_sad16x16 sse2/;
  718. add_proto qw/unsigned int vpx_highbd_sad16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  719. specialize qw/vpx_highbd_sad16x8 sse2/;
  720. add_proto qw/unsigned int vpx_highbd_sad8x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  721. specialize qw/vpx_highbd_sad8x16 sse2/;
  722. add_proto qw/unsigned int vpx_highbd_sad8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  723. specialize qw/vpx_highbd_sad8x8 sse2/;
  724. add_proto qw/unsigned int vpx_highbd_sad8x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  725. specialize qw/vpx_highbd_sad8x4 sse2/;
  726. add_proto qw/unsigned int vpx_highbd_sad4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  727. add_proto qw/unsigned int vpx_highbd_sad4x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride";
  728. #
  729. # Avg
  730. #
  731. add_proto qw/unsigned int vpx_highbd_avg_8x8/, "const uint8_t *s8, int p";
  732. specialize qw/vpx_highbd_avg_8x8 sse2/;
  733. add_proto qw/unsigned int vpx_highbd_avg_4x4/, "const uint8_t *s8, int p";
  734. specialize qw/vpx_highbd_avg_4x4 sse2/;
  735. add_proto qw/void vpx_highbd_minmax_8x8/, "const uint8_t *s8, int p, const uint8_t *d8, int dp, int *min, int *max";
  736. add_proto qw/unsigned int vpx_highbd_sad64x64_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  737. specialize qw/vpx_highbd_sad64x64_avg sse2/;
  738. add_proto qw/unsigned int vpx_highbd_sad64x32_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  739. specialize qw/vpx_highbd_sad64x32_avg sse2/;
  740. add_proto qw/unsigned int vpx_highbd_sad32x64_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  741. specialize qw/vpx_highbd_sad32x64_avg sse2/;
  742. add_proto qw/unsigned int vpx_highbd_sad32x32_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  743. specialize qw/vpx_highbd_sad32x32_avg sse2/;
  744. add_proto qw/unsigned int vpx_highbd_sad32x16_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  745. specialize qw/vpx_highbd_sad32x16_avg sse2/;
  746. add_proto qw/unsigned int vpx_highbd_sad16x32_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  747. specialize qw/vpx_highbd_sad16x32_avg sse2/;
  748. add_proto qw/unsigned int vpx_highbd_sad16x16_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  749. specialize qw/vpx_highbd_sad16x16_avg sse2/;
  750. add_proto qw/unsigned int vpx_highbd_sad16x8_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  751. specialize qw/vpx_highbd_sad16x8_avg sse2/;
  752. add_proto qw/unsigned int vpx_highbd_sad8x16_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  753. specialize qw/vpx_highbd_sad8x16_avg sse2/;
  754. add_proto qw/unsigned int vpx_highbd_sad8x8_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  755. specialize qw/vpx_highbd_sad8x8_avg sse2/;
  756. add_proto qw/unsigned int vpx_highbd_sad8x4_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  757. specialize qw/vpx_highbd_sad8x4_avg sse2/;
  758. add_proto qw/unsigned int vpx_highbd_sad4x8_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  759. add_proto qw/unsigned int vpx_highbd_sad4x4_avg/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred";
  760. #
  761. # Multi-block SAD, comparing a reference to N independent blocks
  762. #
  763. add_proto qw/void vpx_highbd_sad64x64x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  764. specialize qw/vpx_highbd_sad64x64x4d sse2/;
  765. add_proto qw/void vpx_highbd_sad64x32x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  766. specialize qw/vpx_highbd_sad64x32x4d sse2/;
  767. add_proto qw/void vpx_highbd_sad32x64x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  768. specialize qw/vpx_highbd_sad32x64x4d sse2/;
  769. add_proto qw/void vpx_highbd_sad32x32x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  770. specialize qw/vpx_highbd_sad32x32x4d sse2/;
  771. add_proto qw/void vpx_highbd_sad32x16x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  772. specialize qw/vpx_highbd_sad32x16x4d sse2/;
  773. add_proto qw/void vpx_highbd_sad16x32x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  774. specialize qw/vpx_highbd_sad16x32x4d sse2/;
  775. add_proto qw/void vpx_highbd_sad16x16x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  776. specialize qw/vpx_highbd_sad16x16x4d sse2/;
  777. add_proto qw/void vpx_highbd_sad16x8x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  778. specialize qw/vpx_highbd_sad16x8x4d sse2/;
  779. add_proto qw/void vpx_highbd_sad8x16x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  780. specialize qw/vpx_highbd_sad8x16x4d sse2/;
  781. add_proto qw/void vpx_highbd_sad8x8x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  782. specialize qw/vpx_highbd_sad8x8x4d sse2/;
  783. add_proto qw/void vpx_highbd_sad8x4x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  784. specialize qw/vpx_highbd_sad8x4x4d sse2/;
  785. add_proto qw/void vpx_highbd_sad4x8x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  786. specialize qw/vpx_highbd_sad4x8x4d sse2/;
  787. add_proto qw/void vpx_highbd_sad4x4x4d/, "const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_array[], int ref_stride, uint32_t *sad_array";
  788. specialize qw/vpx_highbd_sad4x4x4d sse2/;
  789. #
  790. # Structured Similarity (SSIM)
  791. #
  792. if (vpx_config("CONFIG_INTERNAL_STATS") eq "yes") {
  793. add_proto qw/void vpx_highbd_ssim_parms_8x8/, "const uint16_t *s, int sp, const uint16_t *r, int rp, uint32_t *sum_s, uint32_t *sum_r, uint32_t *sum_sq_s, uint32_t *sum_sq_r, uint32_t *sum_sxr";
  794. }
  795. } # CONFIG_VP9_HIGHBITDEPTH
  796. } # CONFIG_ENCODERS
  797. if (vpx_config("CONFIG_ENCODERS") eq "yes" || vpx_config("CONFIG_POSTPROC") eq "yes" || vpx_config("CONFIG_VP9_POSTPROC") eq "yes") {
  798. #
  799. # Variance
  800. #
  801. add_proto qw/unsigned int vpx_variance64x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  802. specialize qw/vpx_variance64x64 sse2 avx2 neon msa mmi vsx/;
  803. add_proto qw/unsigned int vpx_variance64x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  804. specialize qw/vpx_variance64x32 sse2 avx2 neon msa mmi vsx/;
  805. add_proto qw/unsigned int vpx_variance32x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  806. specialize qw/vpx_variance32x64 sse2 avx2 neon msa mmi vsx/;
  807. add_proto qw/unsigned int vpx_variance32x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  808. specialize qw/vpx_variance32x32 sse2 avx2 neon msa mmi vsx/;
  809. add_proto qw/unsigned int vpx_variance32x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  810. specialize qw/vpx_variance32x16 sse2 avx2 neon msa mmi vsx/;
  811. add_proto qw/unsigned int vpx_variance16x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  812. specialize qw/vpx_variance16x32 sse2 avx2 neon msa mmi vsx/;
  813. add_proto qw/unsigned int vpx_variance16x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  814. specialize qw/vpx_variance16x16 sse2 avx2 neon msa mmi vsx/;
  815. add_proto qw/unsigned int vpx_variance16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  816. specialize qw/vpx_variance16x8 sse2 avx2 neon msa mmi vsx/;
  817. add_proto qw/unsigned int vpx_variance8x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  818. specialize qw/vpx_variance8x16 sse2 neon msa mmi vsx/;
  819. add_proto qw/unsigned int vpx_variance8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  820. specialize qw/vpx_variance8x8 sse2 neon msa mmi vsx/;
  821. add_proto qw/unsigned int vpx_variance8x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  822. specialize qw/vpx_variance8x4 sse2 neon msa mmi vsx/;
  823. add_proto qw/unsigned int vpx_variance4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  824. specialize qw/vpx_variance4x8 sse2 neon msa mmi vsx/;
  825. add_proto qw/unsigned int vpx_variance4x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  826. specialize qw/vpx_variance4x4 sse2 neon msa mmi vsx/;
  827. #
  828. # Specialty Variance
  829. #
  830. add_proto qw/void vpx_get16x16var/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
  831. specialize qw/vpx_get16x16var sse2 avx2 neon msa vsx/;
  832. add_proto qw/void vpx_get8x8var/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
  833. specialize qw/vpx_get8x8var sse2 neon msa vsx/;
  834. add_proto qw/unsigned int vpx_mse16x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  835. specialize qw/vpx_mse16x16 sse2 avx2 neon msa mmi vsx/;
  836. add_proto qw/unsigned int vpx_mse16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  837. specialize qw/vpx_mse16x8 sse2 avx2 msa mmi vsx/;
  838. add_proto qw/unsigned int vpx_mse8x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  839. specialize qw/vpx_mse8x16 sse2 msa mmi vsx/;
  840. add_proto qw/unsigned int vpx_mse8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  841. specialize qw/vpx_mse8x8 sse2 msa mmi vsx/;
  842. add_proto qw/unsigned int vpx_get_mb_ss/, "const int16_t *";
  843. specialize qw/vpx_get_mb_ss sse2 msa vsx/;
  844. add_proto qw/unsigned int vpx_get4x4sse_cs/, "const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride";
  845. specialize qw/vpx_get4x4sse_cs neon msa vsx/;
  846. add_proto qw/void vpx_comp_avg_pred/, "uint8_t *comp_pred, const uint8_t *pred, int width, int height, const uint8_t *ref, int ref_stride";
  847. specialize qw/vpx_comp_avg_pred neon sse2 vsx/;
  848. #
  849. # Subpixel Variance
  850. #
  851. add_proto qw/uint32_t vpx_sub_pixel_variance64x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  852. specialize qw/vpx_sub_pixel_variance64x64 avx2 neon msa mmi sse2 ssse3/;
  853. add_proto qw/uint32_t vpx_sub_pixel_variance64x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  854. specialize qw/vpx_sub_pixel_variance64x32 neon msa mmi sse2 ssse3/;
  855. add_proto qw/uint32_t vpx_sub_pixel_variance32x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  856. specialize qw/vpx_sub_pixel_variance32x64 neon msa mmi sse2 ssse3/;
  857. add_proto qw/uint32_t vpx_sub_pixel_variance32x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  858. specialize qw/vpx_sub_pixel_variance32x32 avx2 neon msa mmi sse2 ssse3/;
  859. add_proto qw/uint32_t vpx_sub_pixel_variance32x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  860. specialize qw/vpx_sub_pixel_variance32x16 neon msa mmi sse2 ssse3/;
  861. add_proto qw/uint32_t vpx_sub_pixel_variance16x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  862. specialize qw/vpx_sub_pixel_variance16x32 neon msa mmi sse2 ssse3/;
  863. add_proto qw/uint32_t vpx_sub_pixel_variance16x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  864. specialize qw/vpx_sub_pixel_variance16x16 neon msa mmi sse2 ssse3/;
  865. add_proto qw/uint32_t vpx_sub_pixel_variance16x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  866. specialize qw/vpx_sub_pixel_variance16x8 neon msa mmi sse2 ssse3/;
  867. add_proto qw/uint32_t vpx_sub_pixel_variance8x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  868. specialize qw/vpx_sub_pixel_variance8x16 neon msa mmi sse2 ssse3/;
  869. add_proto qw/uint32_t vpx_sub_pixel_variance8x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  870. specialize qw/vpx_sub_pixel_variance8x8 neon msa mmi sse2 ssse3/;
  871. add_proto qw/uint32_t vpx_sub_pixel_variance8x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  872. specialize qw/vpx_sub_pixel_variance8x4 neon msa mmi sse2 ssse3/;
  873. add_proto qw/uint32_t vpx_sub_pixel_variance4x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  874. specialize qw/vpx_sub_pixel_variance4x8 neon msa mmi sse2 ssse3/;
  875. add_proto qw/uint32_t vpx_sub_pixel_variance4x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  876. specialize qw/vpx_sub_pixel_variance4x4 neon msa mmi sse2 ssse3/;
  877. add_proto qw/uint32_t vpx_sub_pixel_avg_variance64x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  878. specialize qw/vpx_sub_pixel_avg_variance64x64 neon avx2 msa mmi sse2 ssse3/;
  879. add_proto qw/uint32_t vpx_sub_pixel_avg_variance64x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  880. specialize qw/vpx_sub_pixel_avg_variance64x32 neon msa mmi sse2 ssse3/;
  881. add_proto qw/uint32_t vpx_sub_pixel_avg_variance32x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  882. specialize qw/vpx_sub_pixel_avg_variance32x64 neon msa mmi sse2 ssse3/;
  883. add_proto qw/uint32_t vpx_sub_pixel_avg_variance32x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  884. specialize qw/vpx_sub_pixel_avg_variance32x32 neon avx2 msa mmi sse2 ssse3/;
  885. add_proto qw/uint32_t vpx_sub_pixel_avg_variance32x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  886. specialize qw/vpx_sub_pixel_avg_variance32x16 neon msa mmi sse2 ssse3/;
  887. add_proto qw/uint32_t vpx_sub_pixel_avg_variance16x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  888. specialize qw/vpx_sub_pixel_avg_variance16x32 neon msa mmi sse2 ssse3/;
  889. add_proto qw/uint32_t vpx_sub_pixel_avg_variance16x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  890. specialize qw/vpx_sub_pixel_avg_variance16x16 neon msa mmi sse2 ssse3/;
  891. add_proto qw/uint32_t vpx_sub_pixel_avg_variance16x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  892. specialize qw/vpx_sub_pixel_avg_variance16x8 neon msa mmi sse2 ssse3/;
  893. add_proto qw/uint32_t vpx_sub_pixel_avg_variance8x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  894. specialize qw/vpx_sub_pixel_avg_variance8x16 neon msa mmi sse2 ssse3/;
  895. add_proto qw/uint32_t vpx_sub_pixel_avg_variance8x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  896. specialize qw/vpx_sub_pixel_avg_variance8x8 neon msa mmi sse2 ssse3/;
  897. add_proto qw/uint32_t vpx_sub_pixel_avg_variance8x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  898. specialize qw/vpx_sub_pixel_avg_variance8x4 neon msa mmi sse2 ssse3/;
  899. add_proto qw/uint32_t vpx_sub_pixel_avg_variance4x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  900. specialize qw/vpx_sub_pixel_avg_variance4x8 neon msa mmi sse2 ssse3/;
  901. add_proto qw/uint32_t vpx_sub_pixel_avg_variance4x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  902. specialize qw/vpx_sub_pixel_avg_variance4x4 neon msa mmi sse2 ssse3/;
  903. if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
  904. add_proto qw/unsigned int vpx_highbd_12_variance64x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  905. specialize qw/vpx_highbd_12_variance64x64 sse2/;
  906. add_proto qw/unsigned int vpx_highbd_12_variance64x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  907. specialize qw/vpx_highbd_12_variance64x32 sse2/;
  908. add_proto qw/unsigned int vpx_highbd_12_variance32x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  909. specialize qw/vpx_highbd_12_variance32x64 sse2/;
  910. add_proto qw/unsigned int vpx_highbd_12_variance32x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  911. specialize qw/vpx_highbd_12_variance32x32 sse2/;
  912. add_proto qw/unsigned int vpx_highbd_12_variance32x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  913. specialize qw/vpx_highbd_12_variance32x16 sse2/;
  914. add_proto qw/unsigned int vpx_highbd_12_variance16x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  915. specialize qw/vpx_highbd_12_variance16x32 sse2/;
  916. add_proto qw/unsigned int vpx_highbd_12_variance16x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  917. specialize qw/vpx_highbd_12_variance16x16 sse2/;
  918. add_proto qw/unsigned int vpx_highbd_12_variance16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  919. specialize qw/vpx_highbd_12_variance16x8 sse2/;
  920. add_proto qw/unsigned int vpx_highbd_12_variance8x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  921. specialize qw/vpx_highbd_12_variance8x16 sse2/;
  922. add_proto qw/unsigned int vpx_highbd_12_variance8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  923. specialize qw/vpx_highbd_12_variance8x8 sse2/;
  924. add_proto qw/unsigned int vpx_highbd_12_variance8x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  925. add_proto qw/unsigned int vpx_highbd_12_variance4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  926. add_proto qw/unsigned int vpx_highbd_12_variance4x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  927. add_proto qw/unsigned int vpx_highbd_10_variance64x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  928. specialize qw/vpx_highbd_10_variance64x64 sse2/;
  929. add_proto qw/unsigned int vpx_highbd_10_variance64x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  930. specialize qw/vpx_highbd_10_variance64x32 sse2/;
  931. add_proto qw/unsigned int vpx_highbd_10_variance32x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  932. specialize qw/vpx_highbd_10_variance32x64 sse2/;
  933. add_proto qw/unsigned int vpx_highbd_10_variance32x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  934. specialize qw/vpx_highbd_10_variance32x32 sse2/;
  935. add_proto qw/unsigned int vpx_highbd_10_variance32x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  936. specialize qw/vpx_highbd_10_variance32x16 sse2/;
  937. add_proto qw/unsigned int vpx_highbd_10_variance16x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  938. specialize qw/vpx_highbd_10_variance16x32 sse2/;
  939. add_proto qw/unsigned int vpx_highbd_10_variance16x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  940. specialize qw/vpx_highbd_10_variance16x16 sse2/;
  941. add_proto qw/unsigned int vpx_highbd_10_variance16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  942. specialize qw/vpx_highbd_10_variance16x8 sse2/;
  943. add_proto qw/unsigned int vpx_highbd_10_variance8x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  944. specialize qw/vpx_highbd_10_variance8x16 sse2/;
  945. add_proto qw/unsigned int vpx_highbd_10_variance8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  946. specialize qw/vpx_highbd_10_variance8x8 sse2/;
  947. add_proto qw/unsigned int vpx_highbd_10_variance8x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  948. add_proto qw/unsigned int vpx_highbd_10_variance4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  949. add_proto qw/unsigned int vpx_highbd_10_variance4x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  950. add_proto qw/unsigned int vpx_highbd_8_variance64x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  951. specialize qw/vpx_highbd_8_variance64x64 sse2/;
  952. add_proto qw/unsigned int vpx_highbd_8_variance64x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  953. specialize qw/vpx_highbd_8_variance64x32 sse2/;
  954. add_proto qw/unsigned int vpx_highbd_8_variance32x64/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  955. specialize qw/vpx_highbd_8_variance32x64 sse2/;
  956. add_proto qw/unsigned int vpx_highbd_8_variance32x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  957. specialize qw/vpx_highbd_8_variance32x32 sse2/;
  958. add_proto qw/unsigned int vpx_highbd_8_variance32x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  959. specialize qw/vpx_highbd_8_variance32x16 sse2/;
  960. add_proto qw/unsigned int vpx_highbd_8_variance16x32/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  961. specialize qw/vpx_highbd_8_variance16x32 sse2/;
  962. add_proto qw/unsigned int vpx_highbd_8_variance16x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  963. specialize qw/vpx_highbd_8_variance16x16 sse2/;
  964. add_proto qw/unsigned int vpx_highbd_8_variance16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  965. specialize qw/vpx_highbd_8_variance16x8 sse2/;
  966. add_proto qw/unsigned int vpx_highbd_8_variance8x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  967. specialize qw/vpx_highbd_8_variance8x16 sse2/;
  968. add_proto qw/unsigned int vpx_highbd_8_variance8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  969. specialize qw/vpx_highbd_8_variance8x8 sse2/;
  970. add_proto qw/unsigned int vpx_highbd_8_variance8x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  971. add_proto qw/unsigned int vpx_highbd_8_variance4x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  972. add_proto qw/unsigned int vpx_highbd_8_variance4x4/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  973. add_proto qw/void vpx_highbd_8_get16x16var/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
  974. specialize qw/vpx_highbd_8_get16x16var sse2/;
  975. add_proto qw/void vpx_highbd_8_get8x8var/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
  976. specialize qw/vpx_highbd_8_get8x8var sse2/;
  977. add_proto qw/void vpx_highbd_10_get16x16var/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
  978. specialize qw/vpx_highbd_10_get16x16var sse2/;
  979. add_proto qw/void vpx_highbd_10_get8x8var/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
  980. specialize qw/vpx_highbd_10_get8x8var sse2/;
  981. add_proto qw/void vpx_highbd_12_get16x16var/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
  982. specialize qw/vpx_highbd_12_get16x16var sse2/;
  983. add_proto qw/void vpx_highbd_12_get8x8var/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum";
  984. specialize qw/vpx_highbd_12_get8x8var sse2/;
  985. add_proto qw/unsigned int vpx_highbd_8_mse16x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  986. specialize qw/vpx_highbd_8_mse16x16 sse2/;
  987. add_proto qw/unsigned int vpx_highbd_8_mse16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  988. add_proto qw/unsigned int vpx_highbd_8_mse8x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  989. add_proto qw/unsigned int vpx_highbd_8_mse8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  990. specialize qw/vpx_highbd_8_mse8x8 sse2/;
  991. add_proto qw/unsigned int vpx_highbd_10_mse16x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  992. specialize qw/vpx_highbd_10_mse16x16 sse2/;
  993. add_proto qw/unsigned int vpx_highbd_10_mse16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  994. add_proto qw/unsigned int vpx_highbd_10_mse8x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  995. add_proto qw/unsigned int vpx_highbd_10_mse8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  996. specialize qw/vpx_highbd_10_mse8x8 sse2/;
  997. add_proto qw/unsigned int vpx_highbd_12_mse16x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  998. specialize qw/vpx_highbd_12_mse16x16 sse2/;
  999. add_proto qw/unsigned int vpx_highbd_12_mse16x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  1000. add_proto qw/unsigned int vpx_highbd_12_mse8x16/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  1001. add_proto qw/unsigned int vpx_highbd_12_mse8x8/, "const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
  1002. specialize qw/vpx_highbd_12_mse8x8 sse2/;
  1003. add_proto qw/void vpx_highbd_comp_avg_pred/, "uint16_t *comp_pred, const uint16_t *pred, int width, int height, const uint16_t *ref, int ref_stride";
  1004. #
  1005. # Subpixel Variance
  1006. #
  1007. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance64x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1008. specialize qw/vpx_highbd_12_sub_pixel_variance64x64 sse2/;
  1009. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance64x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1010. specialize qw/vpx_highbd_12_sub_pixel_variance64x32 sse2/;
  1011. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance32x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1012. specialize qw/vpx_highbd_12_sub_pixel_variance32x64 sse2/;
  1013. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance32x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1014. specialize qw/vpx_highbd_12_sub_pixel_variance32x32 sse2/;
  1015. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance32x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1016. specialize qw/vpx_highbd_12_sub_pixel_variance32x16 sse2/;
  1017. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance16x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1018. specialize qw/vpx_highbd_12_sub_pixel_variance16x32 sse2/;
  1019. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance16x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1020. specialize qw/vpx_highbd_12_sub_pixel_variance16x16 sse2/;
  1021. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance16x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1022. specialize qw/vpx_highbd_12_sub_pixel_variance16x8 sse2/;
  1023. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance8x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1024. specialize qw/vpx_highbd_12_sub_pixel_variance8x16 sse2/;
  1025. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance8x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1026. specialize qw/vpx_highbd_12_sub_pixel_variance8x8 sse2/;
  1027. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance8x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1028. specialize qw/vpx_highbd_12_sub_pixel_variance8x4 sse2/;
  1029. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance4x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1030. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_variance4x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1031. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance64x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1032. specialize qw/vpx_highbd_10_sub_pixel_variance64x64 sse2/;
  1033. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance64x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1034. specialize qw/vpx_highbd_10_sub_pixel_variance64x32 sse2/;
  1035. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance32x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1036. specialize qw/vpx_highbd_10_sub_pixel_variance32x64 sse2/;
  1037. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance32x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1038. specialize qw/vpx_highbd_10_sub_pixel_variance32x32 sse2/;
  1039. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance32x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1040. specialize qw/vpx_highbd_10_sub_pixel_variance32x16 sse2/;
  1041. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance16x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1042. specialize qw/vpx_highbd_10_sub_pixel_variance16x32 sse2/;
  1043. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance16x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1044. specialize qw/vpx_highbd_10_sub_pixel_variance16x16 sse2/;
  1045. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance16x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1046. specialize qw/vpx_highbd_10_sub_pixel_variance16x8 sse2/;
  1047. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance8x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1048. specialize qw/vpx_highbd_10_sub_pixel_variance8x16 sse2/;
  1049. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance8x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1050. specialize qw/vpx_highbd_10_sub_pixel_variance8x8 sse2/;
  1051. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance8x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1052. specialize qw/vpx_highbd_10_sub_pixel_variance8x4 sse2/;
  1053. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance4x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1054. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_variance4x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1055. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance64x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1056. specialize qw/vpx_highbd_8_sub_pixel_variance64x64 sse2/;
  1057. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance64x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1058. specialize qw/vpx_highbd_8_sub_pixel_variance64x32 sse2/;
  1059. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance32x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1060. specialize qw/vpx_highbd_8_sub_pixel_variance32x64 sse2/;
  1061. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance32x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1062. specialize qw/vpx_highbd_8_sub_pixel_variance32x32 sse2/;
  1063. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance32x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1064. specialize qw/vpx_highbd_8_sub_pixel_variance32x16 sse2/;
  1065. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance16x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1066. specialize qw/vpx_highbd_8_sub_pixel_variance16x32 sse2/;
  1067. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance16x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1068. specialize qw/vpx_highbd_8_sub_pixel_variance16x16 sse2/;
  1069. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance16x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1070. specialize qw/vpx_highbd_8_sub_pixel_variance16x8 sse2/;
  1071. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance8x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1072. specialize qw/vpx_highbd_8_sub_pixel_variance8x16 sse2/;
  1073. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance8x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1074. specialize qw/vpx_highbd_8_sub_pixel_variance8x8 sse2/;
  1075. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance8x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1076. specialize qw/vpx_highbd_8_sub_pixel_variance8x4 sse2/;
  1077. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance4x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1078. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_variance4x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse";
  1079. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance64x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1080. specialize qw/vpx_highbd_12_sub_pixel_avg_variance64x64 sse2/;
  1081. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance64x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1082. specialize qw/vpx_highbd_12_sub_pixel_avg_variance64x32 sse2/;
  1083. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance32x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1084. specialize qw/vpx_highbd_12_sub_pixel_avg_variance32x64 sse2/;
  1085. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance32x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1086. specialize qw/vpx_highbd_12_sub_pixel_avg_variance32x32 sse2/;
  1087. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance32x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1088. specialize qw/vpx_highbd_12_sub_pixel_avg_variance32x16 sse2/;
  1089. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance16x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1090. specialize qw/vpx_highbd_12_sub_pixel_avg_variance16x32 sse2/;
  1091. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance16x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1092. specialize qw/vpx_highbd_12_sub_pixel_avg_variance16x16 sse2/;
  1093. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance16x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1094. specialize qw/vpx_highbd_12_sub_pixel_avg_variance16x8 sse2/;
  1095. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance8x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1096. specialize qw/vpx_highbd_12_sub_pixel_avg_variance8x16 sse2/;
  1097. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance8x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1098. specialize qw/vpx_highbd_12_sub_pixel_avg_variance8x8 sse2/;
  1099. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance8x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1100. specialize qw/vpx_highbd_12_sub_pixel_avg_variance8x4 sse2/;
  1101. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance4x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1102. add_proto qw/uint32_t vpx_highbd_12_sub_pixel_avg_variance4x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1103. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance64x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1104. specialize qw/vpx_highbd_10_sub_pixel_avg_variance64x64 sse2/;
  1105. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance64x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1106. specialize qw/vpx_highbd_10_sub_pixel_avg_variance64x32 sse2/;
  1107. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance32x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1108. specialize qw/vpx_highbd_10_sub_pixel_avg_variance32x64 sse2/;
  1109. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance32x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1110. specialize qw/vpx_highbd_10_sub_pixel_avg_variance32x32 sse2/;
  1111. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance32x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1112. specialize qw/vpx_highbd_10_sub_pixel_avg_variance32x16 sse2/;
  1113. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance16x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1114. specialize qw/vpx_highbd_10_sub_pixel_avg_variance16x32 sse2/;
  1115. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance16x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1116. specialize qw/vpx_highbd_10_sub_pixel_avg_variance16x16 sse2/;
  1117. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance16x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1118. specialize qw/vpx_highbd_10_sub_pixel_avg_variance16x8 sse2/;
  1119. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance8x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1120. specialize qw/vpx_highbd_10_sub_pixel_avg_variance8x16 sse2/;
  1121. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance8x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1122. specialize qw/vpx_highbd_10_sub_pixel_avg_variance8x8 sse2/;
  1123. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance8x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1124. specialize qw/vpx_highbd_10_sub_pixel_avg_variance8x4 sse2/;
  1125. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance4x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1126. add_proto qw/uint32_t vpx_highbd_10_sub_pixel_avg_variance4x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1127. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance64x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1128. specialize qw/vpx_highbd_8_sub_pixel_avg_variance64x64 sse2/;
  1129. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance64x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1130. specialize qw/vpx_highbd_8_sub_pixel_avg_variance64x32 sse2/;
  1131. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance32x64/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1132. specialize qw/vpx_highbd_8_sub_pixel_avg_variance32x64 sse2/;
  1133. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance32x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1134. specialize qw/vpx_highbd_8_sub_pixel_avg_variance32x32 sse2/;
  1135. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance32x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1136. specialize qw/vpx_highbd_8_sub_pixel_avg_variance32x16 sse2/;
  1137. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance16x32/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1138. specialize qw/vpx_highbd_8_sub_pixel_avg_variance16x32 sse2/;
  1139. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance16x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1140. specialize qw/vpx_highbd_8_sub_pixel_avg_variance16x16 sse2/;
  1141. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance16x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1142. specialize qw/vpx_highbd_8_sub_pixel_avg_variance16x8 sse2/;
  1143. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance8x16/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1144. specialize qw/vpx_highbd_8_sub_pixel_avg_variance8x16 sse2/;
  1145. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance8x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1146. specialize qw/vpx_highbd_8_sub_pixel_avg_variance8x8 sse2/;
  1147. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance8x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1148. specialize qw/vpx_highbd_8_sub_pixel_avg_variance8x4 sse2/;
  1149. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance4x8/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1150. add_proto qw/uint32_t vpx_highbd_8_sub_pixel_avg_variance4x4/, "const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred";
  1151. } # CONFIG_VP9_HIGHBITDEPTH
  1152. #
  1153. # Post Processing
  1154. #
  1155. if (vpx_config("CONFIG_POSTPROC") eq "yes" || vpx_config("CONFIG_VP9_POSTPROC") eq "yes") {
  1156. add_proto qw/void vpx_plane_add_noise/, "uint8_t *start, const int8_t *noise, int blackclamp, int whiteclamp, int width, int height, int pitch";
  1157. specialize qw/vpx_plane_add_noise sse2 msa/;
  1158. add_proto qw/void vpx_mbpost_proc_down/, "unsigned char *dst, int pitch, int rows, int cols,int flimit";
  1159. specialize qw/vpx_mbpost_proc_down sse2 neon msa vsx/;
  1160. add_proto qw/void vpx_mbpost_proc_across_ip/, "unsigned char *src, int pitch, int rows, int cols,int flimit";
  1161. specialize qw/vpx_mbpost_proc_across_ip sse2 neon msa vsx/;
  1162. add_proto qw/void vpx_post_proc_down_and_across_mb_row/, "unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size";
  1163. specialize qw/vpx_post_proc_down_and_across_mb_row sse2 neon msa vsx/;
  1164. }
  1165. } # CONFIG_ENCODERS || CONFIG_POSTPROC || CONFIG_VP9_POSTPROC
  1166. 1;