vp3data.h 80 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180
  1. /*
  2. * Copyright (C) 2003 The FFmpeg project
  3. *
  4. * This file is part of FFmpeg.
  5. *
  6. * FFmpeg is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * FFmpeg is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with FFmpeg; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. #ifndef AVCODEC_VP3DATA_H
  21. #define AVCODEC_VP3DATA_H
  22. #include <stdint.h>
  23. #include <stdlib.h>
  24. /* these coefficients dequantize intraframe Y plane coefficients
  25. * (note: same as JPEG) */
  26. static const uint8_t vp31_intra_y_dequant[64] = {
  27. 16, 11, 10, 16, 24, 40, 51, 61,
  28. 12, 12, 14, 19, 26, 58, 60, 55,
  29. 14, 13, 16, 24, 40, 57, 69, 56,
  30. 14, 17, 22, 29, 51, 87, 80, 62,
  31. 18, 22, 37, 58, 68, 109, 103, 77,
  32. 24, 35, 55, 64, 81, 104, 113, 92,
  33. 49, 64, 78, 87, 103, 121, 120, 101,
  34. 72, 92, 95, 98, 112, 100, 103, 99
  35. };
  36. /* these coefficients dequantize intraframe C plane coefficients
  37. * (note: same as JPEG) */
  38. static const uint8_t vp31_intra_c_dequant[64] = {
  39. 17, 18, 24, 47, 99, 99, 99, 99,
  40. 18, 21, 26, 66, 99, 99, 99, 99,
  41. 24, 26, 56, 99, 99, 99, 99, 99,
  42. 47, 66, 99, 99, 99, 99, 99, 99,
  43. 99, 99, 99, 99, 99, 99, 99, 99,
  44. 99, 99, 99, 99, 99, 99, 99, 99,
  45. 99, 99, 99, 99, 99, 99, 99, 99,
  46. 99, 99, 99, 99, 99, 99, 99, 99
  47. };
  48. /* these coefficients dequantize interframe coefficients (all planes) */
  49. static const uint8_t vp31_inter_dequant[64] = {
  50. 16, 16, 16, 20, 24, 28, 32, 40,
  51. 16, 16, 20, 24, 28, 32, 40, 48,
  52. 16, 20, 24, 28, 32, 40, 48, 64,
  53. 20, 24, 28, 32, 40, 48, 64, 64,
  54. 24, 28, 32, 40, 48, 64, 64, 64,
  55. 28, 32, 40, 48, 64, 64, 64, 96,
  56. 32, 40, 48, 64, 64, 64, 96, 128,
  57. 40, 48, 64, 64, 64, 96, 128, 128
  58. };
  59. static const uint8_t vp31_dc_scale_factor[64] = {
  60. 220, 200, 190, 180, 170, 170, 160, 160,
  61. 150, 150, 140, 140, 130, 130, 120, 120,
  62. 110, 110, 100, 100, 90, 90, 90, 80,
  63. 80, 80, 70, 70, 70, 60, 60, 60,
  64. 60, 50, 50, 50, 50, 40, 40, 40,
  65. 40, 40, 30, 30, 30, 30, 30, 30,
  66. 30, 20, 20, 20, 20, 20, 20, 20,
  67. 20, 10, 10, 10, 10, 10, 10, 10
  68. };
  69. static const uint16_t vp31_ac_scale_factor[64] = {
  70. 500, 450, 400, 370, 340, 310, 285, 265,
  71. 245, 225, 210, 195, 185, 180, 170, 160,
  72. 150, 145, 135, 130, 125, 115, 110, 107,
  73. 100, 96, 93, 89, 85, 82, 75, 74,
  74. 70, 68, 64, 60, 57, 56, 52, 50,
  75. 49, 45, 44, 43, 40, 38, 37, 35,
  76. 33, 32, 30, 29, 28, 25, 24, 22,
  77. 21, 19, 18, 17, 15, 13, 12, 10
  78. };
  79. static const uint8_t vp31_filter_limit_values[64] = {
  80. 30, 25, 20, 20, 15, 15, 14, 14,
  81. 13, 13, 12, 12, 11, 11, 10, 10,
  82. 9, 9, 8, 8, 7, 7, 7, 7,
  83. 6, 6, 6, 6, 5, 5, 5, 5,
  84. 4, 4, 4, 4, 3, 3, 3, 3,
  85. 2, 2, 2, 2, 2, 2, 2, 2,
  86. 0, 0, 0, 0, 0, 0, 0, 0,
  87. 0, 0, 0, 0, 0, 0, 0, 0
  88. };
  89. static const uint16_t superblock_run_length_vlc_table[34][2] = {
  90. { 0, 1 },
  91. { 4, 3 }, { 5, 3 },
  92. { 0xC, 4 }, { 0xD, 4 },
  93. { 0x38, 6 }, { 0x39, 6 }, { 0x3A, 6 }, { 0x3B, 6 },
  94. { 0xF0, 8 }, { 0xF1, 8 }, { 0xF2, 8 }, { 0xF3, 8 },
  95. { 0xF4, 8 }, { 0xF5, 8 }, { 0xF6, 8 }, { 0xF7, 8 },
  96. { 0x3E0, 10 }, { 0x3E1, 10 }, { 0x3E2, 10 }, { 0x3E3, 10 },
  97. { 0x3E4, 10 }, { 0x3E5, 10 }, { 0x3E6, 10 }, { 0x3E7, 10 },
  98. { 0x3E8, 10 }, { 0x3E9, 10 }, { 0x3EA, 10 }, { 0x3EB, 10 },
  99. { 0x3EC, 10 }, { 0x3ED, 10 }, { 0x3EE, 10 }, { 0x3EF, 10 },
  100. { 0x3F, 6 } /* this last VLC is a special case for reading 12 more
  101. * bits from stream and adding the value 34 */
  102. };
  103. static const uint16_t fragment_run_length_vlc_table[30][2] = {
  104. /* 1 -> 2 */
  105. { 0x0, 2 }, { 0x1, 2 },
  106. /* 3 -> 4 */
  107. { 0x4, 3 }, { 0x5, 3 },
  108. /* 5 -> 6 */
  109. { 0xC, 4 }, { 0xD, 4 },
  110. /* 7 -> 10 */
  111. { 0x38, 6 }, { 0x39, 6 },
  112. { 0x3A, 6 }, { 0x3B, 6 },
  113. /* 11 -> 14 */
  114. { 0x78, 7 }, { 0x79, 7 },
  115. { 0x7A, 7 }, { 0x7B, 7 },
  116. /* 15 -> 30 */
  117. { 0x1F0, 9 }, { 0x1F1, 9 }, { 0x1F2, 9 }, { 0x1F3, 9 },
  118. { 0x1F4, 9 }, { 0x1F5, 9 }, { 0x1F6, 9 }, { 0x1F7, 9 },
  119. { 0x1F8, 9 }, { 0x1F9, 9 }, { 0x1FA, 9 }, { 0x1FB, 9 },
  120. { 0x1FC, 9 }, { 0x1FD, 9 }, { 0x1FE, 9 }, { 0x1FF, 9 }
  121. };
  122. static const uint8_t mode_code_vlc_table[8][2] = {
  123. { 0, 1 }, { 2, 2 },
  124. { 6, 3 }, { 14, 4 },
  125. { 30, 5 }, { 62, 6 },
  126. { 126, 7 }, { 127, 7 }
  127. };
  128. static const uint8_t motion_vector_vlc_table[63][2] = {
  129. { 0, 3 },
  130. { 1, 3 },
  131. { 2, 3 },
  132. { 6, 4 }, { 7, 4 },
  133. { 8, 4 }, { 9, 4 },
  134. { 40, 6 }, { 41, 6 }, { 42, 6 }, { 43, 6 },
  135. { 44, 6 }, { 45, 6 }, { 46, 6 }, { 47, 6 },
  136. { 96, 7 }, { 97, 7 }, { 98, 7 }, { 99, 7 },
  137. { 100, 7 }, { 101, 7 }, { 102, 7 }, { 103, 7 },
  138. { 104, 7 }, { 105, 7 }, { 106, 7 }, { 107, 7 },
  139. { 108, 7 }, { 109, 7 }, { 110, 7 }, { 111, 7 },
  140. { 0xE0, 8 }, { 0xE1, 8 }, { 0xE2, 8 }, { 0xE3, 8 },
  141. { 0xE4, 8 }, { 0xE5, 8 }, { 0xE6, 8 }, { 0xE7, 8 },
  142. { 0xE8, 8 }, { 0xE9, 8 }, { 0xEA, 8 }, { 0xEB, 8 },
  143. { 0xEC, 8 }, { 0xED, 8 }, { 0xEE, 8 }, { 0xEF, 8 },
  144. { 0xF0, 8 }, { 0xF1, 8 }, { 0xF2, 8 }, { 0xF3, 8 },
  145. { 0xF4, 8 }, { 0xF5, 8 }, { 0xF6, 8 }, { 0xF7, 8 },
  146. { 0xF8, 8 }, { 0xF9, 8 }, { 0xFA, 8 }, { 0xFB, 8 },
  147. { 0xFC, 8 }, { 0xFD, 8 }, { 0xFE, 8 }, { 0xFF, 8 }
  148. };
  149. static const int8_t motion_vector_table[63] = {
  150. 0, 1, -1,
  151. 2, -2,
  152. 3, -3,
  153. 4, -4, 5, -5, 6, -6, 7, -7,
  154. 8, -8, 9, -9, 10, -10, 11, -11, 12, -12, 13, -13, 14, -14, 15, -15,
  155. 16, -16, 17, -17, 18, -18, 19, -19, 20, -20, 21, -21, 22, -22, 23, -23,
  156. 24, -24, 25, -25, 26, -26, 27, -27, 28, -28, 29, -29, 30, -30, 31, -31
  157. };
  158. static const int8_t fixed_motion_vector_table[64] = {
  159. 0, 0, 1, -1, 2, -2, 3, -3,
  160. 4, -4, 5, -5, 6, -6, 7, -7,
  161. 8, -8, 9, -9, 10, -10, 11, -11,
  162. 12, -12, 13, -13, 14, -14, 15, -15,
  163. 16, -16, 17, -17, 18, -18, 19, -19,
  164. 20, -20, 21, -21, 22, -22, 23, -23,
  165. 24, -24, 25, -25, 26, -26, 27, -27,
  166. 28, -28, 29, -29, 30, -30, 31, -31
  167. };
  168. /* only tokens 0..6 indicate eob runs */
  169. static const struct {
  170. uint8_t base, bits;
  171. } eob_run_table[7] = {
  172. {1, 0}, {2, 0}, {3, 0}, {4, 2}, {8, 3}, {16, 4}, {0, 12}
  173. };
  174. static const uint8_t zero_run_base[32] = {
  175. 0, 0, 0, 0, 0, 0, 0, /* 0..6 are never used */
  176. 0, 0, /* 7..8 */
  177. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 9..22 */
  178. 1, 2, 3, 4, 5, /* 23..27 */
  179. 6, 10, 1, 2 /* 28..31 */
  180. };
  181. static const uint8_t zero_run_get_bits[32] = {
  182. 0, 0, 0, 0, 0, 0, 0, /* 0..6 are never used */
  183. 3, 6, /* 7..8 */
  184. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 9..22 */
  185. 0, 0, 0, 0, 0, /* 23..27 */
  186. 2, 3, 0, 1 /* 28..31 */
  187. };
  188. static const uint8_t coeff_get_bits[32] = {
  189. 0, 0, 0, 0, 0, 0, 0, /* 0..6 are never used */
  190. 0, 0, 0, 0, 0, 0, /* 7..12 use constant coeffs */
  191. 1, 1, 1, 1, /* 13..16 are constants but still need sign bit */
  192. 2, 3, 4, 5, 6,10, /* 17..22, for reading large coeffs */
  193. 1, 1, 1, 1, 1, 1, 1, /* 23..29 are constants but still need sign bit */
  194. 2, 2 /* 30..31 */
  195. };
  196. static const int16_t coeff_table_token_7_8[1] = { 0 };
  197. static const int16_t coeff_table_token_9[1] = { 1 };
  198. static const int16_t coeff_table_token_10[1] = { -1 };
  199. static const int16_t coeff_table_token_11[1] = { 2 };
  200. static const int16_t coeff_table_token_12[1] = { -2 };
  201. static const int16_t coeff_table_token_13[2] = { 3, -3 };
  202. static const int16_t coeff_table_token_14[2] = { 4, -4 };
  203. static const int16_t coeff_table_token_15[2] = { 5, -5 };
  204. static const int16_t coeff_table_token_16[2] = { 6, -6 };
  205. static const int16_t coeff_table_token_23_24_25_26_27_28_29[2] = { 1, -1 };
  206. static const int16_t coeff_table_token_30[4] = { 2, 3, -2, -3 };
  207. static const int16_t coeff_table_token_31[4] = { 2, 3, -2, -3 };
  208. static const int16_t coeff_table_token_17[4] = {
  209. 7, 8, -7, -8
  210. };
  211. static const int16_t coeff_table_token_18[8] = {
  212. 9, 10, 11, 12, -9, -10, -11, -12
  213. };
  214. static const int16_t coeff_table_token_19[16] = {
  215. 13, 14, 15, 16, 17, 18, 19, 20, -13, -14, -15, -16, -17, -18, -19, -20
  216. };
  217. static const int16_t coeff_table_token_20[32] = {
  218. 21, 22, 23, 24, 25, 26, 27, 28,
  219. 29, 30, 31, 32, 33, 34, 35, 36,
  220. -21, -22, -23, -24, -25, -26, -27, -28,
  221. -29, -30, -31, -32, -33, -34, -35, -36
  222. };
  223. static const int16_t coeff_table_token_21[64] = {
  224. 37, 38, 39, 40, 41, 42, 43, 44,
  225. 45, 46, 47, 48, 49, 50, 51, 52,
  226. 53, 54, 55, 56, 57, 58, 59, 60,
  227. 61, 62, 63, 64, 65, 66, 67, 68,
  228. -37, -38, -39, -40, -41, -42, -43, -44,
  229. -45, -46, -47, -48, -49, -50, -51, -52,
  230. -53, -54, -55, -56, -57, -58, -59, -60,
  231. -61, -62, -63, -64, -65, -66, -67, -68
  232. };
  233. static const int16_t coeff_table_token_22[1024] = {
  234. 69, 70, 71, 72, 73, 74, 75, 76,
  235. 77, 78, 79, 80, 81, 82, 83, 84,
  236. 85, 86, 87, 88, 89, 90, 91, 92,
  237. 93, 94, 95, 96, 97, 98, 99, 100,
  238. 101, 102, 103, 104, 105, 106, 107, 108,
  239. 109, 110, 111, 112, 113, 114, 115, 116,
  240. 117, 118, 119, 120, 121, 122, 123, 124,
  241. 125, 126, 127, 128, 129, 130, 131, 132,
  242. 133, 134, 135, 136, 137, 138, 139, 140,
  243. 141, 142, 143, 144, 145, 146, 147, 148,
  244. 149, 150, 151, 152, 153, 154, 155, 156,
  245. 157, 158, 159, 160, 161, 162, 163, 164,
  246. 165, 166, 167, 168, 169, 170, 171, 172,
  247. 173, 174, 175, 176, 177, 178, 179, 180,
  248. 181, 182, 183, 184, 185, 186, 187, 188,
  249. 189, 190, 191, 192, 193, 194, 195, 196,
  250. 197, 198, 199, 200, 201, 202, 203, 204,
  251. 205, 206, 207, 208, 209, 210, 211, 212,
  252. 213, 214, 215, 216, 217, 218, 219, 220,
  253. 221, 222, 223, 224, 225, 226, 227, 228,
  254. 229, 230, 231, 232, 233, 234, 235, 236,
  255. 237, 238, 239, 240, 241, 242, 243, 244,
  256. 245, 246, 247, 248, 249, 250, 251, 252,
  257. 253, 254, 255, 256, 257, 258, 259, 260,
  258. 261, 262, 263, 264, 265, 266, 267, 268,
  259. 269, 270, 271, 272, 273, 274, 275, 276,
  260. 277, 278, 279, 280, 281, 282, 283, 284,
  261. 285, 286, 287, 288, 289, 290, 291, 292,
  262. 293, 294, 295, 296, 297, 298, 299, 300,
  263. 301, 302, 303, 304, 305, 306, 307, 308,
  264. 309, 310, 311, 312, 313, 314, 315, 316,
  265. 317, 318, 319, 320, 321, 322, 323, 324,
  266. 325, 326, 327, 328, 329, 330, 331, 332,
  267. 333, 334, 335, 336, 337, 338, 339, 340,
  268. 341, 342, 343, 344, 345, 346, 347, 348,
  269. 349, 350, 351, 352, 353, 354, 355, 356,
  270. 357, 358, 359, 360, 361, 362, 363, 364,
  271. 365, 366, 367, 368, 369, 370, 371, 372,
  272. 373, 374, 375, 376, 377, 378, 379, 380,
  273. 381, 382, 383, 384, 385, 386, 387, 388,
  274. 389, 390, 391, 392, 393, 394, 395, 396,
  275. 397, 398, 399, 400, 401, 402, 403, 404,
  276. 405, 406, 407, 408, 409, 410, 411, 412,
  277. 413, 414, 415, 416, 417, 418, 419, 420,
  278. 421, 422, 423, 424, 425, 426, 427, 428,
  279. 429, 430, 431, 432, 433, 434, 435, 436,
  280. 437, 438, 439, 440, 441, 442, 443, 444,
  281. 445, 446, 447, 448, 449, 450, 451, 452,
  282. 453, 454, 455, 456, 457, 458, 459, 460,
  283. 461, 462, 463, 464, 465, 466, 467, 468,
  284. 469, 470, 471, 472, 473, 474, 475, 476,
  285. 477, 478, 479, 480, 481, 482, 483, 484,
  286. 485, 486, 487, 488, 489, 490, 491, 492,
  287. 493, 494, 495, 496, 497, 498, 499, 500,
  288. 501, 502, 503, 504, 505, 506, 507, 508,
  289. 509, 510, 511, 512, 513, 514, 515, 516,
  290. 517, 518, 519, 520, 521, 522, 523, 524,
  291. 525, 526, 527, 528, 529, 530, 531, 532,
  292. 533, 534, 535, 536, 537, 538, 539, 540,
  293. 541, 542, 543, 544, 545, 546, 547, 548,
  294. 549, 550, 551, 552, 553, 554, 555, 556,
  295. 557, 558, 559, 560, 561, 562, 563, 564,
  296. 565, 566, 567, 568, 569, 570, 571, 572,
  297. 573, 574, 575, 576, 577, 578, 579, 580,
  298. -69, -70, -71, -72, -73, -74, -75, -76,
  299. -77, -78, -79, -80, -81, -82, -83, -84,
  300. -85, -86, -87, -88, -89, -90, -91, -92,
  301. -93, -94, -95, -96, -97, -98, -99, -100,
  302. -101, -102, -103, -104, -105, -106, -107, -108,
  303. -109, -110, -111, -112, -113, -114, -115, -116,
  304. -117, -118, -119, -120, -121, -122, -123, -124,
  305. -125, -126, -127, -128, -129, -130, -131, -132,
  306. -133, -134, -135, -136, -137, -138, -139, -140,
  307. -141, -142, -143, -144, -145, -146, -147, -148,
  308. -149, -150, -151, -152, -153, -154, -155, -156,
  309. -157, -158, -159, -160, -161, -162, -163, -164,
  310. -165, -166, -167, -168, -169, -170, -171, -172,
  311. -173, -174, -175, -176, -177, -178, -179, -180,
  312. -181, -182, -183, -184, -185, -186, -187, -188,
  313. -189, -190, -191, -192, -193, -194, -195, -196,
  314. -197, -198, -199, -200, -201, -202, -203, -204,
  315. -205, -206, -207, -208, -209, -210, -211, -212,
  316. -213, -214, -215, -216, -217, -218, -219, -220,
  317. -221, -222, -223, -224, -225, -226, -227, -228,
  318. -229, -230, -231, -232, -233, -234, -235, -236,
  319. -237, -238, -239, -240, -241, -242, -243, -244,
  320. -245, -246, -247, -248, -249, -250, -251, -252,
  321. -253, -254, -255, -256, -257, -258, -259, -260,
  322. -261, -262, -263, -264, -265, -266, -267, -268,
  323. -269, -270, -271, -272, -273, -274, -275, -276,
  324. -277, -278, -279, -280, -281, -282, -283, -284,
  325. -285, -286, -287, -288, -289, -290, -291, -292,
  326. -293, -294, -295, -296, -297, -298, -299, -300,
  327. -301, -302, -303, -304, -305, -306, -307, -308,
  328. -309, -310, -311, -312, -313, -314, -315, -316,
  329. -317, -318, -319, -320, -321, -322, -323, -324,
  330. -325, -326, -327, -328, -329, -330, -331, -332,
  331. -333, -334, -335, -336, -337, -338, -339, -340,
  332. -341, -342, -343, -344, -345, -346, -347, -348,
  333. -349, -350, -351, -352, -353, -354, -355, -356,
  334. -357, -358, -359, -360, -361, -362, -363, -364,
  335. -365, -366, -367, -368, -369, -370, -371, -372,
  336. -373, -374, -375, -376, -377, -378, -379, -380,
  337. -381, -382, -383, -384, -385, -386, -387, -388,
  338. -389, -390, -391, -392, -393, -394, -395, -396,
  339. -397, -398, -399, -400, -401, -402, -403, -404,
  340. -405, -406, -407, -408, -409, -410, -411, -412,
  341. -413, -414, -415, -416, -417, -418, -419, -420,
  342. -421, -422, -423, -424, -425, -426, -427, -428,
  343. -429, -430, -431, -432, -433, -434, -435, -436,
  344. -437, -438, -439, -440, -441, -442, -443, -444,
  345. -445, -446, -447, -448, -449, -450, -451, -452,
  346. -453, -454, -455, -456, -457, -458, -459, -460,
  347. -461, -462, -463, -464, -465, -466, -467, -468,
  348. -469, -470, -471, -472, -473, -474, -475, -476,
  349. -477, -478, -479, -480, -481, -482, -483, -484,
  350. -485, -486, -487, -488, -489, -490, -491, -492,
  351. -493, -494, -495, -496, -497, -498, -499, -500,
  352. -501, -502, -503, -504, -505, -506, -507, -508,
  353. -509, -510, -511, -512, -513, -514, -515, -516,
  354. -517, -518, -519, -520, -521, -522, -523, -524,
  355. -525, -526, -527, -528, -529, -530, -531, -532,
  356. -533, -534, -535, -536, -537, -538, -539, -540,
  357. -541, -542, -543, -544, -545, -546, -547, -548,
  358. -549, -550, -551, -552, -553, -554, -555, -556,
  359. -557, -558, -559, -560, -561, -562, -563, -564,
  360. -565, -566, -567, -568, -569, -570, -571, -572,
  361. -573, -574, -575, -576, -577, -578, -579, -580
  362. };
  363. static const int16_t *const coeff_tables[32] = {
  364. NULL,
  365. NULL,
  366. NULL,
  367. NULL,
  368. NULL,
  369. NULL,
  370. NULL,
  371. coeff_table_token_7_8,
  372. coeff_table_token_7_8,
  373. coeff_table_token_9,
  374. coeff_table_token_10,
  375. coeff_table_token_11,
  376. coeff_table_token_12,
  377. coeff_table_token_13,
  378. coeff_table_token_14,
  379. coeff_table_token_15,
  380. coeff_table_token_16,
  381. coeff_table_token_17,
  382. coeff_table_token_18,
  383. coeff_table_token_19,
  384. coeff_table_token_20,
  385. coeff_table_token_21,
  386. coeff_table_token_22,
  387. coeff_table_token_23_24_25_26_27_28_29,
  388. coeff_table_token_23_24_25_26_27_28_29,
  389. coeff_table_token_23_24_25_26_27_28_29,
  390. coeff_table_token_23_24_25_26_27_28_29,
  391. coeff_table_token_23_24_25_26_27_28_29,
  392. coeff_table_token_23_24_25_26_27_28_29,
  393. coeff_table_token_23_24_25_26_27_28_29,
  394. coeff_table_token_30,
  395. coeff_table_token_31
  396. };
  397. static const uint16_t dc_bias[16][32][2] = {
  398. { /* DC bias table 0 */
  399. { 0x2D, 6 },
  400. { 0x26, 7 },
  401. { 0x166, 9 },
  402. { 0x4E, 8 },
  403. { 0x2CE, 10 },
  404. { 0x59E, 11 },
  405. { 0x27D, 11 },
  406. { 0x8, 5 },
  407. { 0x4F9, 12 },
  408. { 0xF, 4 },
  409. { 0xE, 4 },
  410. { 0x1B, 5 },
  411. { 0x6, 4 },
  412. { 0x8, 4 },
  413. { 0x5, 4 },
  414. { 0x1A, 5 },
  415. { 0x15, 5 },
  416. { 0x7, 4 },
  417. { 0xC, 4 },
  418. { 0x1, 3 },
  419. { 0x0, 3 },
  420. { 0x9, 4 },
  421. { 0x17, 5 },
  422. { 0x29, 6 },
  423. { 0x28, 6 },
  424. { 0xB2, 8 },
  425. { 0x4F8, 12 },
  426. { 0x59F, 11 },
  427. { 0x9E, 9 },
  428. { 0x13F, 10 },
  429. { 0x12, 6 },
  430. { 0x58, 7 }
  431. },
  432. { /* DC bias table 1 */
  433. { 0x10, 5 },
  434. { 0x47, 7 },
  435. { 0x1FF, 9 },
  436. { 0x8C, 8 },
  437. { 0x3FC, 10 },
  438. { 0x46A, 11 },
  439. { 0x469, 11 },
  440. { 0x22, 6 },
  441. { 0x11A1, 13 },
  442. { 0xE, 4 },
  443. { 0xD, 4 },
  444. { 0x4, 4 },
  445. { 0x5, 4 },
  446. { 0x9, 4 },
  447. { 0x6, 4 },
  448. { 0x1E, 5 },
  449. { 0x16, 5 },
  450. { 0x7, 4 },
  451. { 0xC, 4 },
  452. { 0x1, 3 },
  453. { 0x0, 3 },
  454. { 0xA, 4 },
  455. { 0x17, 5 },
  456. { 0x7D, 7 },
  457. { 0x7E, 7 },
  458. { 0x11B, 9 },
  459. { 0x8D1, 12 },
  460. { 0x3FD, 10 },
  461. { 0x46B, 11 },
  462. { 0x11A0, 13 },
  463. { 0x7C, 7 },
  464. { 0xFE, 8 }
  465. },
  466. { /* DC bias table 2 */
  467. { 0x16, 5 },
  468. { 0x20, 6 },
  469. { 0x86, 8 },
  470. { 0x87, 8 },
  471. { 0x367, 10 },
  472. { 0x6CC, 11 },
  473. { 0x6CB, 11 },
  474. { 0x6E, 7 },
  475. { 0x366D, 14 },
  476. { 0xF, 4 },
  477. { 0xE, 4 },
  478. { 0x4, 4 },
  479. { 0x5, 4 },
  480. { 0xA, 4 },
  481. { 0x6, 4 },
  482. { 0x1A, 5 },
  483. { 0x11, 5 },
  484. { 0x7, 4 },
  485. { 0xC, 4 },
  486. { 0x1, 3 },
  487. { 0x0, 3 },
  488. { 0x9, 4 },
  489. { 0x17, 5 },
  490. { 0x6F, 7 },
  491. { 0x6D, 7 },
  492. { 0x364, 10 },
  493. { 0xD9A, 12 },
  494. { 0x6CA, 11 },
  495. { 0x1B37, 13 },
  496. { 0x366C, 14 },
  497. { 0x42, 7 },
  498. { 0xD8, 8 }
  499. },
  500. { /* DC bias table 3 */
  501. { 0x0, 4 },
  502. { 0x2D, 6 },
  503. { 0xF7, 8 },
  504. { 0x58, 7 },
  505. { 0x167, 9 },
  506. { 0x2CB, 10 },
  507. { 0x2CA, 10 },
  508. { 0xE, 6 },
  509. { 0x1661, 13 },
  510. { 0x3, 3 },
  511. { 0x2, 3 },
  512. { 0x8, 4 },
  513. { 0x9, 4 },
  514. { 0xD, 4 },
  515. { 0x2, 4 },
  516. { 0x1F, 5 },
  517. { 0x17, 5 },
  518. { 0x1, 4 },
  519. { 0xC, 4 },
  520. { 0xE, 4 },
  521. { 0xA, 4 },
  522. { 0x6, 5 },
  523. { 0x78, 7 },
  524. { 0xF, 6 },
  525. { 0x7A, 7 },
  526. { 0x164, 9 },
  527. { 0x599, 11 },
  528. { 0x2CD, 10 },
  529. { 0xB31, 12 },
  530. { 0x1660, 13 },
  531. { 0x79, 7 },
  532. { 0xF6, 8 }
  533. },
  534. { /* DC bias table 4 */
  535. { 0x3, 4 },
  536. { 0x3C, 6 },
  537. { 0xF, 7 },
  538. { 0x7A, 7 },
  539. { 0x1D, 8 },
  540. { 0x20, 9 },
  541. { 0x72, 10 },
  542. { 0x6, 6 },
  543. { 0x399, 13 },
  544. { 0x4, 3 },
  545. { 0x5, 3 },
  546. { 0x5, 4 },
  547. { 0x6, 4 },
  548. { 0xE, 4 },
  549. { 0x4, 4 },
  550. { 0x0, 4 },
  551. { 0x19, 5 },
  552. { 0x2, 4 },
  553. { 0xD, 4 },
  554. { 0x7, 4 },
  555. { 0x1F, 5 },
  556. { 0x30, 6 },
  557. { 0x11, 8 },
  558. { 0x31, 6 },
  559. { 0x5, 6 },
  560. { 0x21, 9 },
  561. { 0xE7, 11 },
  562. { 0x38, 9 },
  563. { 0x1CD, 12 },
  564. { 0x398, 13 },
  565. { 0x7B, 7 },
  566. { 0x9, 7 }
  567. },
  568. { /* DC bias table 5 */
  569. { 0x9, 4 },
  570. { 0x2, 5 },
  571. { 0x74, 7 },
  572. { 0x7, 6 },
  573. { 0xEC, 8 },
  574. { 0xD1, 9 },
  575. { 0x1A6, 10 },
  576. { 0x6, 6 },
  577. { 0xD21, 13 },
  578. { 0x5, 3 },
  579. { 0x6, 3 },
  580. { 0x8, 4 },
  581. { 0x7, 4 },
  582. { 0xF, 4 },
  583. { 0x4, 4 },
  584. { 0x0, 4 },
  585. { 0x1C, 5 },
  586. { 0x2, 4 },
  587. { 0x5, 4 },
  588. { 0x3, 4 },
  589. { 0xC, 5 },
  590. { 0x35, 7 },
  591. { 0x1A7, 10 },
  592. { 0x1B, 6 },
  593. { 0x77, 7 },
  594. { 0x1A5, 10 },
  595. { 0x349, 11 },
  596. { 0xD0, 9 },
  597. { 0x691, 12 },
  598. { 0xD20, 13 },
  599. { 0x75, 7 },
  600. { 0xED, 8 }
  601. },
  602. { /* DC bias table 6 */
  603. { 0xA, 4 },
  604. { 0xC, 5 },
  605. { 0x12, 6 },
  606. { 0x1B, 6 },
  607. { 0xB7, 8 },
  608. { 0x16C, 9 },
  609. { 0x99, 9 },
  610. { 0x5A, 7 },
  611. { 0x16D8, 13 },
  612. { 0x7, 3 },
  613. { 0x6, 3 },
  614. { 0x9, 4 },
  615. { 0x8, 4 },
  616. { 0x0, 3 },
  617. { 0x5, 4 },
  618. { 0x17, 5 },
  619. { 0xE, 5 },
  620. { 0x2, 4 },
  621. { 0x3, 4 },
  622. { 0xF, 5 },
  623. { 0x1A, 6 },
  624. { 0x4D, 8 },
  625. { 0x2DB3, 14 },
  626. { 0x2C, 6 },
  627. { 0x11, 6 },
  628. { 0x2DA, 10 },
  629. { 0x5B7, 11 },
  630. { 0x98, 9 },
  631. { 0xB6D, 12 },
  632. { 0x2DB2, 14 },
  633. { 0x10, 6 },
  634. { 0x27, 7 }
  635. },
  636. { /* DC bias table 7 */
  637. { 0xD, 4 },
  638. { 0xF, 5 },
  639. { 0x1D, 6 },
  640. { 0x8, 5 },
  641. { 0x51, 7 },
  642. { 0x56, 8 },
  643. { 0xAF, 9 },
  644. { 0x2A, 7 },
  645. { 0x148A, 13 },
  646. { 0x7, 3 },
  647. { 0x0, 2 },
  648. { 0x8, 4 },
  649. { 0x9, 4 },
  650. { 0xC, 4 },
  651. { 0x6, 4 },
  652. { 0x17, 5 },
  653. { 0xB, 5 },
  654. { 0x16, 5 },
  655. { 0x15, 5 },
  656. { 0x9, 5 },
  657. { 0x50, 7 },
  658. { 0xAE, 9 },
  659. { 0x2917, 14 },
  660. { 0x1C, 6 },
  661. { 0x14, 6 },
  662. { 0x290, 10 },
  663. { 0x523, 11 },
  664. { 0x149, 9 },
  665. { 0xA44, 12 },
  666. { 0x2916, 14 },
  667. { 0x53, 7 },
  668. { 0xA5, 8 }
  669. },
  670. { /* DC bias table 8 */
  671. { 0x1, 4 },
  672. { 0x1D, 6 },
  673. { 0xF5, 8 },
  674. { 0xF4, 8 },
  675. { 0x24D, 10 },
  676. { 0x499, 11 },
  677. { 0x498, 11 },
  678. { 0x1, 5 },
  679. { 0x21, 6 },
  680. { 0x6, 3 },
  681. { 0x5, 3 },
  682. { 0x6, 4 },
  683. { 0x5, 4 },
  684. { 0x2, 4 },
  685. { 0x7, 5 },
  686. { 0x25, 6 },
  687. { 0x7B, 7 },
  688. { 0x1C, 6 },
  689. { 0x20, 6 },
  690. { 0xD, 6 },
  691. { 0x48, 7 },
  692. { 0x92, 8 },
  693. { 0x127, 9 },
  694. { 0xE, 4 },
  695. { 0x4, 4 },
  696. { 0x11, 5 },
  697. { 0xC, 6 },
  698. { 0x3C, 6 },
  699. { 0xF, 5 },
  700. { 0x0, 5 },
  701. { 0x1F, 5 },
  702. { 0x13, 5 }
  703. },
  704. { /* DC bias table 9 */
  705. { 0x5, 4 },
  706. { 0x3C, 6 },
  707. { 0x40, 7 },
  708. { 0xD, 7 },
  709. { 0x31, 9 },
  710. { 0x61, 10 },
  711. { 0x60, 10 },
  712. { 0x2, 5 },
  713. { 0xF5, 8 },
  714. { 0x6, 3 },
  715. { 0x5, 3 },
  716. { 0x7, 4 },
  717. { 0x6, 4 },
  718. { 0x2, 4 },
  719. { 0x9, 5 },
  720. { 0x25, 6 },
  721. { 0x7, 6 },
  722. { 0x21, 6 },
  723. { 0x24, 6 },
  724. { 0x10, 6 },
  725. { 0x41, 7 },
  726. { 0xF4, 8 },
  727. { 0x19, 8 },
  728. { 0xE, 4 },
  729. { 0x3, 4 },
  730. { 0x11, 5 },
  731. { 0x11, 6 },
  732. { 0x3F, 6 },
  733. { 0x3E, 6 },
  734. { 0x7B, 7 },
  735. { 0x0, 4 },
  736. { 0x13, 5 }
  737. },
  738. { /* DC bias table 10 */
  739. { 0xA, 4 },
  740. { 0x7, 5 },
  741. { 0x1, 6 },
  742. { 0x9, 6 },
  743. { 0x131, 9 },
  744. { 0x261, 10 },
  745. { 0x260, 10 },
  746. { 0x15, 6 },
  747. { 0x1, 7 },
  748. { 0x7, 3 },
  749. { 0x6, 3 },
  750. { 0x8, 4 },
  751. { 0x7, 4 },
  752. { 0x6, 4 },
  753. { 0x12, 5 },
  754. { 0x2F, 6 },
  755. { 0x14, 6 },
  756. { 0x27, 6 },
  757. { 0x2D, 6 },
  758. { 0x16, 6 },
  759. { 0x4D, 7 },
  760. { 0x99, 8 },
  761. { 0x0, 7 },
  762. { 0x4, 4 },
  763. { 0x1, 4 },
  764. { 0x5, 5 },
  765. { 0x17, 6 },
  766. { 0x2E, 6 },
  767. { 0x2C, 6 },
  768. { 0x8, 6 },
  769. { 0x6, 5 },
  770. { 0x1, 5 }
  771. },
  772. { /* DC bias table 11 */
  773. { 0x0, 3 },
  774. { 0xE, 5 },
  775. { 0x17, 6 },
  776. { 0x2A, 6 },
  777. { 0x10, 7 },
  778. { 0xF9, 10 },
  779. { 0xF8, 10 },
  780. { 0x1E, 7 },
  781. { 0x3F, 8 },
  782. { 0x7, 3 },
  783. { 0x6, 3 },
  784. { 0x9, 4 },
  785. { 0x8, 4 },
  786. { 0x6, 4 },
  787. { 0xF, 5 },
  788. { 0x5, 5 },
  789. { 0x16, 6 },
  790. { 0x29, 6 },
  791. { 0x2B, 6 },
  792. { 0x15, 6 },
  793. { 0x50, 7 },
  794. { 0x11, 7 },
  795. { 0x7D, 9 },
  796. { 0x4, 4 },
  797. { 0x17, 5 },
  798. { 0x6, 5 },
  799. { 0x14, 6 },
  800. { 0x2C, 6 },
  801. { 0x2D, 6 },
  802. { 0xE, 6 },
  803. { 0x9, 6 },
  804. { 0x51, 7 }
  805. },
  806. { /* DC bias table 12 */
  807. { 0x2, 3 },
  808. { 0x18, 5 },
  809. { 0x2F, 6 },
  810. { 0xD, 5 },
  811. { 0x53, 7 },
  812. { 0x295, 10 },
  813. { 0x294, 10 },
  814. { 0xA4, 8 },
  815. { 0x7C, 8 },
  816. { 0x0, 2 },
  817. { 0x7, 3 },
  818. { 0x9, 4 },
  819. { 0x8, 4 },
  820. { 0x1B, 5 },
  821. { 0xC, 5 },
  822. { 0x28, 6 },
  823. { 0x6A, 7 },
  824. { 0x1E, 6 },
  825. { 0x1D, 6 },
  826. { 0x69, 7 },
  827. { 0xD7, 8 },
  828. { 0x7D, 8 },
  829. { 0x14B, 9 },
  830. { 0x19, 5 },
  831. { 0x16, 5 },
  832. { 0x2E, 6 },
  833. { 0x1C, 6 },
  834. { 0x2B, 6 },
  835. { 0x2A, 6 },
  836. { 0x68, 7 },
  837. { 0x3F, 7 },
  838. { 0xD6, 8 }
  839. },
  840. { /* DC bias table 13 */
  841. { 0x2, 3 },
  842. { 0x1B, 5 },
  843. { 0xC, 5 },
  844. { 0x18, 5 },
  845. { 0x29, 6 },
  846. { 0x7F, 8 },
  847. { 0x2F0, 10 },
  848. { 0x198, 9 },
  849. { 0x179, 9 },
  850. { 0x0, 2 },
  851. { 0x7, 3 },
  852. { 0x9, 4 },
  853. { 0x8, 4 },
  854. { 0x1A, 5 },
  855. { 0xD, 5 },
  856. { 0x2A, 6 },
  857. { 0x64, 7 },
  858. { 0x1E, 6 },
  859. { 0x67, 7 },
  860. { 0x5F, 7 },
  861. { 0xCD, 8 },
  862. { 0x7E, 8 },
  863. { 0x2F1, 10 },
  864. { 0x16, 5 },
  865. { 0xE, 5 },
  866. { 0x2E, 6 },
  867. { 0x65, 7 },
  868. { 0x2B, 6 },
  869. { 0x28, 6 },
  870. { 0x3E, 7 },
  871. { 0xBD, 8 },
  872. { 0x199, 9 }
  873. },
  874. { /* DC bias table 14 */
  875. { 0x2, 3 },
  876. { 0x7, 4 },
  877. { 0x16, 5 },
  878. { 0x6, 4 },
  879. { 0x36, 6 },
  880. { 0x5C, 7 },
  881. { 0x15D, 9 },
  882. { 0x15C, 9 },
  883. { 0x2BF, 10 },
  884. { 0x0, 2 },
  885. { 0x7, 3 },
  886. { 0x9, 4 },
  887. { 0x8, 4 },
  888. { 0x18, 5 },
  889. { 0x34, 6 },
  890. { 0x2A, 6 },
  891. { 0x5E, 7 },
  892. { 0x6A, 7 },
  893. { 0x64, 7 },
  894. { 0x5D, 7 },
  895. { 0xCB, 8 },
  896. { 0xAD, 8 },
  897. { 0x2BE, 10 },
  898. { 0x14, 5 },
  899. { 0x33, 6 },
  900. { 0x6E, 7 },
  901. { 0x5F, 7 },
  902. { 0x6F, 7 },
  903. { 0x6B, 7 },
  904. { 0xCA, 8 },
  905. { 0xAC, 8 },
  906. { 0x15E, 9 }
  907. },
  908. { /* DC bias table 15 */
  909. { 0xF, 4 },
  910. { 0x1D, 5 },
  911. { 0x18, 5 },
  912. { 0xB, 4 },
  913. { 0x19, 5 },
  914. { 0x29, 6 },
  915. { 0xD6, 8 },
  916. { 0x551, 11 },
  917. { 0xAA1, 12 },
  918. { 0x1, 2 },
  919. { 0x0, 2 },
  920. { 0x9, 4 },
  921. { 0x8, 4 },
  922. { 0x1B, 5 },
  923. { 0x38, 6 },
  924. { 0x28, 6 },
  925. { 0x57, 7 },
  926. { 0x6A, 7 },
  927. { 0x68, 7 },
  928. { 0x56, 7 },
  929. { 0xE5, 8 },
  930. { 0x155, 9 },
  931. { 0xAA0, 12 },
  932. { 0x73, 7 },
  933. { 0x69, 7 },
  934. { 0xD7, 8 },
  935. { 0xAB, 8 },
  936. { 0xE4, 8 },
  937. { 0xA9, 8 },
  938. { 0x151, 9 },
  939. { 0x150, 9 },
  940. { 0x2A9, 10 }
  941. }
  942. };
  943. static const uint16_t ac_bias_0[16][32][2] = {
  944. { /* AC bias group 1, table 0 */
  945. { 0x8, 5 },
  946. { 0x25, 7 },
  947. { 0x17A, 9 },
  948. { 0x2F7, 10 },
  949. { 0xBDB, 12 },
  950. { 0x17B4, 13 },
  951. { 0x2F6B, 14 },
  952. { 0x1D, 5 },
  953. { 0x2F6A, 14 },
  954. { 0x8, 4 },
  955. { 0x7, 4 },
  956. { 0x1, 4 },
  957. { 0x2, 4 },
  958. { 0xA, 4 },
  959. { 0x6, 4 },
  960. { 0x0, 4 },
  961. { 0x1C, 5 },
  962. { 0x9, 4 },
  963. { 0xD, 4 },
  964. { 0xF, 4 },
  965. { 0xC, 4 },
  966. { 0x3, 4 },
  967. { 0xA, 5 },
  968. { 0x16, 5 },
  969. { 0x13, 6 },
  970. { 0x5D, 7 },
  971. { 0x24, 7 },
  972. { 0xBC, 8 },
  973. { 0x5C, 7 },
  974. { 0x5EC, 11 },
  975. { 0xB, 5 },
  976. { 0x5F, 7 }
  977. },
  978. { /* AC bias group 1, table 1 */
  979. { 0xF, 5 },
  980. { 0x10, 6 },
  981. { 0x4B, 8 },
  982. { 0xC6, 8 },
  983. { 0x31D, 10 },
  984. { 0xC71, 12 },
  985. { 0xC70, 12 },
  986. { 0x1, 4 },
  987. { 0xC73, 12 },
  988. { 0x8, 4 },
  989. { 0x9, 4 },
  990. { 0x2, 4 },
  991. { 0x3, 4 },
  992. { 0xB, 4 },
  993. { 0x6, 4 },
  994. { 0x0, 4 },
  995. { 0x1C, 5 },
  996. { 0x5, 4 },
  997. { 0xD, 4 },
  998. { 0xF, 4 },
  999. { 0xA, 4 },
  1000. { 0x19, 5 },
  1001. { 0x13, 6 },
  1002. { 0x1D, 5 },
  1003. { 0x30, 6 },
  1004. { 0x62, 7 },
  1005. { 0x24, 7 },
  1006. { 0x4A, 8 },
  1007. { 0x18F, 9 },
  1008. { 0xC72, 12 },
  1009. { 0xE, 5 },
  1010. { 0x11, 6 }
  1011. },
  1012. { /* AC bias group 1, table 2 */
  1013. { 0x1B, 5 },
  1014. { 0x3, 6 },
  1015. { 0x8D, 8 },
  1016. { 0x40, 7 },
  1017. { 0x239, 10 },
  1018. { 0x471, 11 },
  1019. { 0x8E0, 12 },
  1020. { 0x3, 4 },
  1021. { 0x11C3, 13 },
  1022. { 0xA, 4 },
  1023. { 0x9, 4 },
  1024. { 0x4, 4 },
  1025. { 0x5, 4 },
  1026. { 0xE, 4 },
  1027. { 0x7, 4 },
  1028. { 0x1, 4 },
  1029. { 0x1E, 5 },
  1030. { 0x6, 4 },
  1031. { 0xC, 4 },
  1032. { 0xB, 4 },
  1033. { 0x2, 4 },
  1034. { 0x0, 5 },
  1035. { 0x41, 7 },
  1036. { 0x1F, 5 },
  1037. { 0x22, 6 },
  1038. { 0x2, 6 },
  1039. { 0x8F, 8 },
  1040. { 0x8C, 8 },
  1041. { 0x11D, 9 },
  1042. { 0x11C2, 13 },
  1043. { 0x1A, 5 },
  1044. { 0x21, 6 }
  1045. },
  1046. { /* AC bias group 1, table 3 */
  1047. { 0x1F, 5 },
  1048. { 0x3, 6 },
  1049. { 0x3, 7 },
  1050. { 0x43, 7 },
  1051. { 0xB, 9 },
  1052. { 0x15, 10 },
  1053. { 0x51, 12 },
  1054. { 0x3, 4 },
  1055. { 0x50, 12 },
  1056. { 0xD, 4 },
  1057. { 0xC, 4 },
  1058. { 0x4, 4 },
  1059. { 0x6, 4 },
  1060. { 0xE, 4 },
  1061. { 0xA, 4 },
  1062. { 0x1, 4 },
  1063. { 0x1E, 5 },
  1064. { 0x5, 4 },
  1065. { 0x9, 4 },
  1066. { 0x7, 4 },
  1067. { 0x11, 5 },
  1068. { 0x2, 6 },
  1069. { 0x4, 8 },
  1070. { 0x2, 4 },
  1071. { 0x2D, 6 },
  1072. { 0x20, 6 },
  1073. { 0x42, 7 },
  1074. { 0x1, 7 },
  1075. { 0x0, 7 },
  1076. { 0x29, 11 },
  1077. { 0x17, 5 },
  1078. { 0x2C, 6 }
  1079. },
  1080. { /* AC bias group 1, table 4 */
  1081. { 0x3, 4 },
  1082. { 0x1F, 6 },
  1083. { 0x3A, 7 },
  1084. { 0x5D, 7 },
  1085. { 0x173, 9 },
  1086. { 0x2E4, 10 },
  1087. { 0x172D, 13 },
  1088. { 0x4, 4 },
  1089. { 0x172C, 13 },
  1090. { 0xF, 4 },
  1091. { 0xE, 4 },
  1092. { 0x9, 4 },
  1093. { 0x8, 4 },
  1094. { 0xC, 4 },
  1095. { 0xA, 4 },
  1096. { 0x1, 4 },
  1097. { 0x16, 5 },
  1098. { 0x2, 4 },
  1099. { 0x5, 4 },
  1100. { 0x1A, 5 },
  1101. { 0x2F, 6 },
  1102. { 0x38, 7 },
  1103. { 0x5CA, 11 },
  1104. { 0x6, 4 },
  1105. { 0x37, 6 },
  1106. { 0x1E, 6 },
  1107. { 0x3B, 7 },
  1108. { 0x39, 7 },
  1109. { 0xB8, 8 },
  1110. { 0xB97, 12 },
  1111. { 0x0, 4 },
  1112. { 0x36, 6 }
  1113. },
  1114. { /* AC bias group 1, table 5 */
  1115. { 0x6, 4 },
  1116. { 0x37, 6 },
  1117. { 0x5D, 7 },
  1118. { 0xC, 6 },
  1119. { 0xB9, 8 },
  1120. { 0x2E3, 10 },
  1121. { 0x5C4, 11 },
  1122. { 0x4, 4 },
  1123. { 0x1715, 13 },
  1124. { 0x0, 3 },
  1125. { 0xF, 4 },
  1126. { 0x8, 4 },
  1127. { 0x7, 4 },
  1128. { 0xC, 4 },
  1129. { 0x9, 4 },
  1130. { 0x1D, 5 },
  1131. { 0x16, 5 },
  1132. { 0x1C, 5 },
  1133. { 0x1A, 5 },
  1134. { 0xB, 5 },
  1135. { 0x5E, 7 },
  1136. { 0x170, 9 },
  1137. { 0x1714, 13 },
  1138. { 0xA, 4 },
  1139. { 0xA, 5 },
  1140. { 0x36, 6 },
  1141. { 0x5F, 7 },
  1142. { 0x1B, 7 },
  1143. { 0x1A, 7 },
  1144. { 0xB8B, 12 },
  1145. { 0x2, 4 },
  1146. { 0x7, 5 }
  1147. },
  1148. { /* AC bias group 1, table 6 */
  1149. { 0xC, 4 },
  1150. { 0xB, 5 },
  1151. { 0x79, 7 },
  1152. { 0x22, 6 },
  1153. { 0xF0, 8 },
  1154. { 0x119, 9 },
  1155. { 0x230, 10 },
  1156. { 0x1D, 5 },
  1157. { 0x8C4, 12 },
  1158. { 0x1, 3 },
  1159. { 0x0, 3 },
  1160. { 0xA, 4 },
  1161. { 0x9, 4 },
  1162. { 0xB, 4 },
  1163. { 0x7, 4 },
  1164. { 0x1C, 5 },
  1165. { 0x3D, 6 },
  1166. { 0xD, 5 },
  1167. { 0x8, 5 },
  1168. { 0x15, 6 },
  1169. { 0x8D, 8 },
  1170. { 0x118B, 13 },
  1171. { 0x118A, 13 },
  1172. { 0xD, 4 },
  1173. { 0x10, 5 },
  1174. { 0x9, 5 },
  1175. { 0x14, 6 },
  1176. { 0x47, 7 },
  1177. { 0xF1, 8 },
  1178. { 0x463, 11 },
  1179. { 0x1F, 5 },
  1180. { 0xC, 5 }
  1181. },
  1182. { /* AC bias group 1, table 7 */
  1183. { 0x0, 3 },
  1184. { 0x1A, 5 },
  1185. { 0x33, 6 },
  1186. { 0xC, 5 },
  1187. { 0x46, 7 },
  1188. { 0x1E3, 9 },
  1189. { 0x3C5, 10 },
  1190. { 0x17, 5 },
  1191. { 0x1E21, 13 },
  1192. { 0x2, 3 },
  1193. { 0x1, 3 },
  1194. { 0x9, 4 },
  1195. { 0xA, 4 },
  1196. { 0x7, 4 },
  1197. { 0x1B, 5 },
  1198. { 0x3D, 6 },
  1199. { 0x1B, 6 },
  1200. { 0x22, 6 },
  1201. { 0x79, 7 },
  1202. { 0xF0, 8 },
  1203. { 0x1E20, 13 },
  1204. { 0x1E23, 13 },
  1205. { 0x1E22, 13 },
  1206. { 0xE, 4 },
  1207. { 0x16, 5 },
  1208. { 0x18, 5 },
  1209. { 0x32, 6 },
  1210. { 0x1A, 6 },
  1211. { 0x47, 7 },
  1212. { 0x789, 11 },
  1213. { 0x1F, 5 },
  1214. { 0x10, 5 }
  1215. },
  1216. { /* AC bias group 1, table 8 */
  1217. { 0x1D, 5 },
  1218. { 0x61, 7 },
  1219. { 0x4E, 8 },
  1220. { 0x9E, 9 },
  1221. { 0x27C, 11 },
  1222. { 0x9F5, 13 },
  1223. { 0x9F4, 13 },
  1224. { 0x3, 4 },
  1225. { 0x60, 7 },
  1226. { 0x0, 3 },
  1227. { 0xF, 4 },
  1228. { 0xB, 4 },
  1229. { 0xA, 4 },
  1230. { 0x9, 4 },
  1231. { 0x5, 4 },
  1232. { 0xD, 5 },
  1233. { 0x31, 6 },
  1234. { 0x8, 5 },
  1235. { 0x38, 6 },
  1236. { 0x12, 6 },
  1237. { 0x26, 7 },
  1238. { 0x13F, 10 },
  1239. { 0x4FB, 12 },
  1240. { 0xD, 4 },
  1241. { 0x2, 4 },
  1242. { 0xC, 5 },
  1243. { 0x39, 6 },
  1244. { 0x1C, 6 },
  1245. { 0xF, 5 },
  1246. { 0x1D, 6 },
  1247. { 0x8, 4 },
  1248. { 0x19, 5 }
  1249. },
  1250. { /* AC bias group 1, table 9 */
  1251. { 0x7, 4 },
  1252. { 0x19, 6 },
  1253. { 0xAB, 8 },
  1254. { 0xAA, 8 },
  1255. { 0x119, 10 },
  1256. { 0x461, 12 },
  1257. { 0x460, 12 },
  1258. { 0x1B, 5 },
  1259. { 0x47, 8 },
  1260. { 0x1, 3 },
  1261. { 0x0, 3 },
  1262. { 0xC, 4 },
  1263. { 0xB, 4 },
  1264. { 0x9, 4 },
  1265. { 0x5, 4 },
  1266. { 0xD, 5 },
  1267. { 0x35, 6 },
  1268. { 0x3D, 6 },
  1269. { 0x3C, 6 },
  1270. { 0x18, 6 },
  1271. { 0x22, 7 },
  1272. { 0x8D, 9 },
  1273. { 0x231, 11 },
  1274. { 0xE, 4 },
  1275. { 0x1F, 5 },
  1276. { 0x9, 5 },
  1277. { 0x2B, 6 },
  1278. { 0x10, 6 },
  1279. { 0x34, 6 },
  1280. { 0x54, 7 },
  1281. { 0x8, 4 },
  1282. { 0x14, 5 }
  1283. },
  1284. { /* AC bias group 1, table 10 */
  1285. { 0xC, 4 },
  1286. { 0x5, 5 },
  1287. { 0x8, 6 },
  1288. { 0x5B, 7 },
  1289. { 0x4D, 9 },
  1290. { 0x131, 11 },
  1291. { 0x261, 12 },
  1292. { 0x1A, 5 },
  1293. { 0x12, 7 },
  1294. { 0x0, 3 },
  1295. { 0xF, 4 },
  1296. { 0xA, 4 },
  1297. { 0x9, 4 },
  1298. { 0x6, 4 },
  1299. { 0x1B, 5 },
  1300. { 0x6, 5 },
  1301. { 0x1C, 6 },
  1302. { 0x2C, 6 },
  1303. { 0x15, 6 },
  1304. { 0x5A, 7 },
  1305. { 0x27, 8 },
  1306. { 0x99, 10 },
  1307. { 0x260, 12 },
  1308. { 0xE, 4 },
  1309. { 0x4, 4 },
  1310. { 0xF, 5 },
  1311. { 0x7, 5 },
  1312. { 0x1D, 6 },
  1313. { 0xB, 5 },
  1314. { 0x14, 6 },
  1315. { 0x8, 4 },
  1316. { 0x17, 5 }
  1317. },
  1318. { /* AC bias group 1, table 11 */
  1319. { 0xF, 4 },
  1320. { 0x13, 5 },
  1321. { 0x75, 7 },
  1322. { 0x24, 6 },
  1323. { 0x95, 8 },
  1324. { 0x251, 10 },
  1325. { 0x4A0, 11 },
  1326. { 0x10, 5 },
  1327. { 0xC8, 8 },
  1328. { 0x2, 3 },
  1329. { 0x1, 3 },
  1330. { 0x1, 4 },
  1331. { 0x0, 4 },
  1332. { 0x1A, 5 },
  1333. { 0x11, 5 },
  1334. { 0x2C, 6 },
  1335. { 0x65, 7 },
  1336. { 0x74, 7 },
  1337. { 0x4B, 7 },
  1338. { 0xC9, 8 },
  1339. { 0x129, 9 },
  1340. { 0x943, 12 },
  1341. { 0x942, 12 },
  1342. { 0x3, 3 },
  1343. { 0xA, 4 },
  1344. { 0x1C, 5 },
  1345. { 0x18, 5 },
  1346. { 0x33, 6 },
  1347. { 0x17, 5 },
  1348. { 0x2D, 6 },
  1349. { 0x1B, 5 },
  1350. { 0x3B, 6 }
  1351. },
  1352. { /* AC bias group 1, table 12 */
  1353. { 0x3, 3 },
  1354. { 0x1A, 5 },
  1355. { 0x2D, 6 },
  1356. { 0x38, 6 },
  1357. { 0x28, 7 },
  1358. { 0x395, 10 },
  1359. { 0xE51, 12 },
  1360. { 0x37, 6 },
  1361. { 0xE4, 8 },
  1362. { 0x1, 3 },
  1363. { 0x0, 3 },
  1364. { 0x1F, 5 },
  1365. { 0x1E, 5 },
  1366. { 0x17, 5 },
  1367. { 0x3A, 6 },
  1368. { 0x73, 7 },
  1369. { 0x2A, 7 },
  1370. { 0x2B, 7 },
  1371. { 0x29, 7 },
  1372. { 0x1CB, 9 },
  1373. { 0x729, 11 },
  1374. { 0x1CA1, 13 },
  1375. { 0x1CA0, 13 },
  1376. { 0x4, 3 },
  1377. { 0xA, 4 },
  1378. { 0x4, 4 },
  1379. { 0x18, 5 },
  1380. { 0x36, 6 },
  1381. { 0xB, 5 },
  1382. { 0x2C, 6 },
  1383. { 0x19, 5 },
  1384. { 0x3B, 6 }
  1385. },
  1386. { /* AC bias group 1, table 13 */
  1387. { 0x4, 3 },
  1388. { 0x4, 4 },
  1389. { 0x3F, 6 },
  1390. { 0x17, 5 },
  1391. { 0x75, 7 },
  1392. { 0x1F5, 9 },
  1393. { 0x7D1, 11 },
  1394. { 0x17, 6 },
  1395. { 0x1F6, 9 },
  1396. { 0x1, 3 },
  1397. { 0x0, 3 },
  1398. { 0x1B, 5 },
  1399. { 0x1A, 5 },
  1400. { 0xA, 5 },
  1401. { 0x32, 6 },
  1402. { 0x74, 7 },
  1403. { 0xF8, 8 },
  1404. { 0xF9, 8 },
  1405. { 0x1F7, 9 },
  1406. { 0x3E9, 10 },
  1407. { 0xFA0, 12 },
  1408. { 0x1F43, 13 },
  1409. { 0x1F42, 13 },
  1410. { 0x3, 3 },
  1411. { 0xA, 4 },
  1412. { 0x1E, 5 },
  1413. { 0x1C, 5 },
  1414. { 0x3B, 6 },
  1415. { 0x18, 5 },
  1416. { 0x16, 6 },
  1417. { 0x16, 5 },
  1418. { 0x33, 6 }
  1419. },
  1420. { /* AC bias group 1, table 14 */
  1421. { 0x4, 3 },
  1422. { 0x7, 4 },
  1423. { 0x18, 5 },
  1424. { 0x1E, 5 },
  1425. { 0x36, 6 },
  1426. { 0x31, 7 },
  1427. { 0x177, 9 },
  1428. { 0x77, 7 },
  1429. { 0x176, 9 },
  1430. { 0x1, 3 },
  1431. { 0x0, 3 },
  1432. { 0x1A, 5 },
  1433. { 0x19, 5 },
  1434. { 0x3A, 6 },
  1435. { 0x19, 6 },
  1436. { 0x5C, 7 },
  1437. { 0xBA, 8 },
  1438. { 0x61, 8 },
  1439. { 0xC1, 9 },
  1440. { 0x180, 10 },
  1441. { 0x302, 11 },
  1442. { 0x607, 12 },
  1443. { 0x606, 12 },
  1444. { 0x2, 3 },
  1445. { 0xA, 4 },
  1446. { 0x1F, 5 },
  1447. { 0x1C, 5 },
  1448. { 0x37, 6 },
  1449. { 0x16, 5 },
  1450. { 0x76, 7 },
  1451. { 0xD, 5 },
  1452. { 0x2F, 6 }
  1453. },
  1454. { /* AC bias group 1, table 15 */
  1455. { 0x0, 3 },
  1456. { 0xA, 4 },
  1457. { 0x1A, 5 },
  1458. { 0xC, 4 },
  1459. { 0x1D, 5 },
  1460. { 0x39, 6 },
  1461. { 0x78, 7 },
  1462. { 0x5E, 7 },
  1463. { 0x393, 11 },
  1464. { 0x2, 3 },
  1465. { 0x1, 3 },
  1466. { 0x16, 5 },
  1467. { 0xF, 5 },
  1468. { 0x2E, 6 },
  1469. { 0x5F, 7 },
  1470. { 0x73, 8 },
  1471. { 0xE5, 9 },
  1472. { 0x1C8, 10 },
  1473. { 0xE4A, 13 },
  1474. { 0x1C97, 14 },
  1475. { 0x1C96, 14 },
  1476. { 0xE49, 13 },
  1477. { 0xE48, 13 },
  1478. { 0x4, 3 },
  1479. { 0x6, 4 },
  1480. { 0x1F, 5 },
  1481. { 0x1B, 5 },
  1482. { 0x1D, 6 },
  1483. { 0x38, 6 },
  1484. { 0x38, 7 },
  1485. { 0x3D, 6 },
  1486. { 0x79, 7 }
  1487. }
  1488. };
  1489. static const uint16_t ac_bias_1[16][32][2] = {
  1490. { /* AC bias group 2, table 0 */
  1491. { 0xB, 5 },
  1492. { 0x2B, 7 },
  1493. { 0x54, 8 },
  1494. { 0x1B7, 9 },
  1495. { 0x6D9, 11 },
  1496. { 0xDB1, 12 },
  1497. { 0xDB0, 12 },
  1498. { 0x2, 4 },
  1499. { 0xAB, 9 },
  1500. { 0x9, 4 },
  1501. { 0xA, 4 },
  1502. { 0x7, 4 },
  1503. { 0x8, 4 },
  1504. { 0xF, 4 },
  1505. { 0xC, 4 },
  1506. { 0x3, 4 },
  1507. { 0x1D, 5 },
  1508. { 0x4, 4 },
  1509. { 0xB, 4 },
  1510. { 0x6, 4 },
  1511. { 0x1A, 5 },
  1512. { 0x3, 6 },
  1513. { 0xAA, 9 },
  1514. { 0x1, 4 },
  1515. { 0x0, 5 },
  1516. { 0x14, 6 },
  1517. { 0x6C, 7 },
  1518. { 0xDA, 8 },
  1519. { 0x2, 6 },
  1520. { 0x36D, 10 },
  1521. { 0x1C, 5 },
  1522. { 0x37, 6 }
  1523. },
  1524. { /* AC bias group 2, table 1 */
  1525. { 0x1D, 5 },
  1526. { 0x4, 6 },
  1527. { 0xB6, 8 },
  1528. { 0x6A, 8 },
  1529. { 0x5B9, 11 },
  1530. { 0x16E1, 13 },
  1531. { 0x16E0, 13 },
  1532. { 0x7, 4 },
  1533. { 0x16F, 9 },
  1534. { 0xC, 4 },
  1535. { 0xD, 4 },
  1536. { 0x9, 4 },
  1537. { 0x8, 4 },
  1538. { 0xF, 4 },
  1539. { 0xA, 4 },
  1540. { 0x3, 4 },
  1541. { 0x17, 5 },
  1542. { 0x2, 4 },
  1543. { 0x4, 4 },
  1544. { 0x1C, 5 },
  1545. { 0x2C, 6 },
  1546. { 0x6B, 8 },
  1547. { 0xB71, 12 },
  1548. { 0x5, 4 },
  1549. { 0x3, 5 },
  1550. { 0x1B, 6 },
  1551. { 0x5A, 7 },
  1552. { 0x34, 7 },
  1553. { 0x5, 6 },
  1554. { 0x2DD, 10 },
  1555. { 0x0, 4 },
  1556. { 0xC, 5 }
  1557. },
  1558. { /* AC bias group 2, table 2 */
  1559. { 0x3, 4 },
  1560. { 0x7F, 7 },
  1561. { 0xA1, 8 },
  1562. { 0xA0, 8 },
  1563. { 0x20C, 10 },
  1564. { 0x834, 12 },
  1565. { 0x106B, 13 },
  1566. { 0x7, 4 },
  1567. { 0x82, 8 },
  1568. { 0xE, 4 },
  1569. { 0xD, 4 },
  1570. { 0xB, 4 },
  1571. { 0xC, 4 },
  1572. { 0x0, 3 },
  1573. { 0x9, 4 },
  1574. { 0x2, 4 },
  1575. { 0x11, 5 },
  1576. { 0x1E, 5 },
  1577. { 0x15, 5 },
  1578. { 0x3E, 6 },
  1579. { 0x40, 7 },
  1580. { 0x41B, 11 },
  1581. { 0x106A, 13 },
  1582. { 0x6, 4 },
  1583. { 0xA, 5 },
  1584. { 0x29, 6 },
  1585. { 0x7E, 7 },
  1586. { 0x51, 7 },
  1587. { 0x21, 6 },
  1588. { 0x107, 9 },
  1589. { 0x4, 4 },
  1590. { 0xB, 5 }
  1591. },
  1592. { /* AC bias group 2, table 3 */
  1593. { 0x7, 4 },
  1594. { 0x1B, 6 },
  1595. { 0xF6, 8 },
  1596. { 0xE9, 8 },
  1597. { 0x3A1, 10 },
  1598. { 0x740, 11 },
  1599. { 0xE82, 12 },
  1600. { 0x1F, 5 },
  1601. { 0x1EF, 9 },
  1602. { 0x1, 3 },
  1603. { 0x2, 3 },
  1604. { 0xB, 4 },
  1605. { 0xC, 4 },
  1606. { 0xD, 4 },
  1607. { 0x8, 4 },
  1608. { 0x1C, 5 },
  1609. { 0x3, 5 },
  1610. { 0x12, 5 },
  1611. { 0x2, 5 },
  1612. { 0x75, 7 },
  1613. { 0x1D1, 9 },
  1614. { 0x1D07, 13 },
  1615. { 0x1D06, 13 },
  1616. { 0xA, 4 },
  1617. { 0x13, 5 },
  1618. { 0x3B, 6 },
  1619. { 0x1A, 6 },
  1620. { 0x7A, 7 },
  1621. { 0x3C, 6 },
  1622. { 0x1EE, 9 },
  1623. { 0x0, 4 },
  1624. { 0xC, 5 }
  1625. },
  1626. { /* AC bias group 2, table 4 */
  1627. { 0xD, 4 },
  1628. { 0x3D, 6 },
  1629. { 0x42, 7 },
  1630. { 0x37, 7 },
  1631. { 0xD9, 9 },
  1632. { 0x362, 11 },
  1633. { 0x6C6, 12 },
  1634. { 0x1F, 5 },
  1635. { 0x86, 8 },
  1636. { 0x1, 3 },
  1637. { 0x2, 3 },
  1638. { 0xC, 4 },
  1639. { 0xB, 4 },
  1640. { 0xA, 4 },
  1641. { 0x1, 4 },
  1642. { 0xF, 5 },
  1643. { 0x25, 6 },
  1644. { 0x3C, 6 },
  1645. { 0x1A, 6 },
  1646. { 0x87, 8 },
  1647. { 0x1B0, 10 },
  1648. { 0xD8F, 13 },
  1649. { 0xD8E, 13 },
  1650. { 0xE, 4 },
  1651. { 0x13, 5 },
  1652. { 0xC, 5 },
  1653. { 0x24, 6 },
  1654. { 0x20, 6 },
  1655. { 0x11, 5 },
  1656. { 0x6D, 8 },
  1657. { 0x0, 4 },
  1658. { 0xE, 5 }
  1659. },
  1660. { /* AC bias group 2, table 5 */
  1661. { 0x0, 3 },
  1662. { 0x12, 5 },
  1663. { 0x76, 7 },
  1664. { 0x77, 7 },
  1665. { 0x14D, 9 },
  1666. { 0x533, 11 },
  1667. { 0x14C9, 13 },
  1668. { 0x13, 5 },
  1669. { 0xA5, 8 },
  1670. { 0x2, 3 },
  1671. { 0x3, 3 },
  1672. { 0xB, 4 },
  1673. { 0xC, 4 },
  1674. { 0x8, 4 },
  1675. { 0x1A, 5 },
  1676. { 0x2B, 6 },
  1677. { 0x75, 7 },
  1678. { 0x74, 7 },
  1679. { 0xA7, 8 },
  1680. { 0x298, 10 },
  1681. { 0x14C8, 13 },
  1682. { 0x14CB, 13 },
  1683. { 0x14CA, 13 },
  1684. { 0xF, 4 },
  1685. { 0x1C, 5 },
  1686. { 0x7, 5 },
  1687. { 0x2A, 6 },
  1688. { 0x28, 6 },
  1689. { 0x1B, 5 },
  1690. { 0xA4, 8 },
  1691. { 0x2, 4 },
  1692. { 0x6, 5 }
  1693. },
  1694. { /* AC bias group 2, table 6 */
  1695. { 0x2, 3 },
  1696. { 0x1A, 5 },
  1697. { 0x2B, 6 },
  1698. { 0x3A, 6 },
  1699. { 0xED, 8 },
  1700. { 0x283, 10 },
  1701. { 0xA0A, 12 },
  1702. { 0x4, 5 },
  1703. { 0xA1, 8 },
  1704. { 0x4, 3 },
  1705. { 0x3, 3 },
  1706. { 0xB, 4 },
  1707. { 0xC, 4 },
  1708. { 0x1F, 5 },
  1709. { 0x6, 5 },
  1710. { 0x77, 7 },
  1711. { 0xA3, 8 },
  1712. { 0xA2, 8 },
  1713. { 0x140, 9 },
  1714. { 0x1417, 13 },
  1715. { 0x1416, 13 },
  1716. { 0xA09, 12 },
  1717. { 0xA08, 12 },
  1718. { 0x0, 3 },
  1719. { 0x1E, 5 },
  1720. { 0x7, 5 },
  1721. { 0x2A, 6 },
  1722. { 0x29, 6 },
  1723. { 0x1C, 5 },
  1724. { 0xEC, 8 },
  1725. { 0x1B, 5 },
  1726. { 0x5, 5 }
  1727. },
  1728. { /* AC bias group 2, table 7 */
  1729. { 0x2, 3 },
  1730. { 0x2, 4 },
  1731. { 0x18, 5 },
  1732. { 0x1D, 5 },
  1733. { 0x35, 6 },
  1734. { 0xE4, 8 },
  1735. { 0x1CF, 11 },
  1736. { 0x1D, 7 },
  1737. { 0x72, 9 },
  1738. { 0x4, 3 },
  1739. { 0x5, 3 },
  1740. { 0x6, 4 },
  1741. { 0x7, 4 },
  1742. { 0x6, 5 },
  1743. { 0x73, 7 },
  1744. { 0x38, 8 },
  1745. { 0x1CE, 11 },
  1746. { 0x39B, 12 },
  1747. { 0x398, 12 },
  1748. { 0x733, 13 },
  1749. { 0x732, 13 },
  1750. { 0x735, 13 },
  1751. { 0x734, 13 },
  1752. { 0x0, 3 },
  1753. { 0x1F, 5 },
  1754. { 0x1B, 5 },
  1755. { 0x34, 6 },
  1756. { 0xF, 6 },
  1757. { 0x1E, 5 },
  1758. { 0xE5, 8 },
  1759. { 0x19, 5 },
  1760. { 0x38, 6 }
  1761. },
  1762. { /* AC bias group 2, table 8 */
  1763. { 0x16, 5 },
  1764. { 0x50, 7 },
  1765. { 0x172, 9 },
  1766. { 0x2E7, 10 },
  1767. { 0x1732, 13 },
  1768. { 0x2E67, 14 },
  1769. { 0x2E66, 14 },
  1770. { 0x6, 4 },
  1771. { 0x51, 7 },
  1772. { 0x1, 3 },
  1773. { 0x0, 3 },
  1774. { 0xD, 4 },
  1775. { 0xC, 4 },
  1776. { 0x9, 4 },
  1777. { 0x1C, 5 },
  1778. { 0x9, 5 },
  1779. { 0x1C, 6 },
  1780. { 0x1D, 6 },
  1781. { 0x5D, 7 },
  1782. { 0xB8, 8 },
  1783. { 0x5CD, 11 },
  1784. { 0x1731, 13 },
  1785. { 0x1730, 13 },
  1786. { 0xF, 4 },
  1787. { 0x5, 4 },
  1788. { 0xF, 5 },
  1789. { 0x8, 5 },
  1790. { 0x29, 6 },
  1791. { 0x1D, 5 },
  1792. { 0x2F, 6 },
  1793. { 0x8, 4 },
  1794. { 0x15, 5 }
  1795. },
  1796. { /* AC bias group 2, table 9 */
  1797. { 0x9, 4 },
  1798. { 0x21, 6 },
  1799. { 0x40, 7 },
  1800. { 0xAD, 8 },
  1801. { 0x2B0, 10 },
  1802. { 0x1589, 13 },
  1803. { 0x1588, 13 },
  1804. { 0x1C, 5 },
  1805. { 0x5F, 7 },
  1806. { 0x0, 3 },
  1807. { 0xF, 4 },
  1808. { 0xD, 4 },
  1809. { 0xC, 4 },
  1810. { 0x6, 4 },
  1811. { 0x11, 5 },
  1812. { 0x2A, 6 },
  1813. { 0x57, 7 },
  1814. { 0x5E, 7 },
  1815. { 0x41, 7 },
  1816. { 0x159, 9 },
  1817. { 0x563, 11 },
  1818. { 0x158B, 13 },
  1819. { 0x158A, 13 },
  1820. { 0x1, 3 },
  1821. { 0x5, 4 },
  1822. { 0x14, 5 },
  1823. { 0x3B, 6 },
  1824. { 0x2E, 6 },
  1825. { 0x4, 4 },
  1826. { 0x3A, 6 },
  1827. { 0x7, 4 },
  1828. { 0x16, 5 }
  1829. },
  1830. { /* AC bias group 2, table 10 */
  1831. { 0xE, 4 },
  1832. { 0x7, 5 },
  1833. { 0x46, 7 },
  1834. { 0x45, 7 },
  1835. { 0x64, 9 },
  1836. { 0x32A, 12 },
  1837. { 0x657, 13 },
  1838. { 0x18, 5 },
  1839. { 0xD, 6 },
  1840. { 0x0, 3 },
  1841. { 0xF, 4 },
  1842. { 0xA, 4 },
  1843. { 0xB, 4 },
  1844. { 0x1A, 5 },
  1845. { 0x36, 6 },
  1846. { 0x47, 7 },
  1847. { 0x44, 7 },
  1848. { 0x18, 7 },
  1849. { 0x33, 8 },
  1850. { 0xCB, 10 },
  1851. { 0x656, 13 },
  1852. { 0x329, 12 },
  1853. { 0x328, 12 },
  1854. { 0x2, 3 },
  1855. { 0x6, 4 },
  1856. { 0x19, 5 },
  1857. { 0xE, 5 },
  1858. { 0x37, 6 },
  1859. { 0x9, 4 },
  1860. { 0xF, 5 },
  1861. { 0x2, 4 },
  1862. { 0x10, 5 }
  1863. },
  1864. { /* AC bias group 2, table 11 */
  1865. { 0x3, 3 },
  1866. { 0x18, 5 },
  1867. { 0x23, 6 },
  1868. { 0x77, 7 },
  1869. { 0x194, 9 },
  1870. { 0x1956, 13 },
  1871. { 0x32AF, 14 },
  1872. { 0x3A, 6 },
  1873. { 0x76, 7 },
  1874. { 0x2, 3 },
  1875. { 0x1, 3 },
  1876. { 0x1F, 5 },
  1877. { 0x1E, 5 },
  1878. { 0x14, 5 },
  1879. { 0x22, 6 },
  1880. { 0x64, 7 },
  1881. { 0x197, 9 },
  1882. { 0x196, 9 },
  1883. { 0x32B, 10 },
  1884. { 0x654, 11 },
  1885. { 0x32AE, 14 },
  1886. { 0x1955, 13 },
  1887. { 0x1954, 13 },
  1888. { 0x0, 3 },
  1889. { 0x9, 4 },
  1890. { 0x1C, 5 },
  1891. { 0x15, 5 },
  1892. { 0x10, 5 },
  1893. { 0xD, 4 },
  1894. { 0x17, 5 },
  1895. { 0x16, 5 },
  1896. { 0x33, 6 }
  1897. },
  1898. { /* AC bias group 2, table 12 */
  1899. { 0x5, 3 },
  1900. { 0x6, 4 },
  1901. { 0x3E, 6 },
  1902. { 0x10, 5 },
  1903. { 0x48, 7 },
  1904. { 0x93F, 12 },
  1905. { 0x24FA, 14 },
  1906. { 0x32, 6 },
  1907. { 0x67, 7 },
  1908. { 0x2, 3 },
  1909. { 0x1, 3 },
  1910. { 0x1B, 5 },
  1911. { 0x1E, 5 },
  1912. { 0x34, 6 },
  1913. { 0x66, 7 },
  1914. { 0x92, 8 },
  1915. { 0x126, 9 },
  1916. { 0x24E, 10 },
  1917. { 0x49E, 11 },
  1918. { 0x49F7, 15 },
  1919. { 0x49F6, 15 },
  1920. { 0x24F9, 14 },
  1921. { 0x24F8, 14 },
  1922. { 0x0, 3 },
  1923. { 0x7, 4 },
  1924. { 0x18, 5 },
  1925. { 0x11, 5 },
  1926. { 0x3F, 6 },
  1927. { 0xE, 4 },
  1928. { 0x13, 5 },
  1929. { 0x35, 6 },
  1930. { 0x25, 6 }
  1931. },
  1932. { /* AC bias group 2, table 13 */
  1933. { 0x5, 3 },
  1934. { 0x8, 4 },
  1935. { 0x12, 5 },
  1936. { 0x1C, 5 },
  1937. { 0x1C, 6 },
  1938. { 0xEA, 9 },
  1939. { 0x1D75, 14 },
  1940. { 0x1E, 6 },
  1941. { 0x66, 7 },
  1942. { 0x1, 3 },
  1943. { 0x2, 3 },
  1944. { 0x1B, 5 },
  1945. { 0x1A, 5 },
  1946. { 0x1F, 6 },
  1947. { 0x3B, 7 },
  1948. { 0x74, 8 },
  1949. { 0x1D6, 10 },
  1950. { 0x3AF, 11 },
  1951. { 0x1D74, 14 },
  1952. { 0x1D77, 14 },
  1953. { 0x1D76, 14 },
  1954. { 0xEB9, 13 },
  1955. { 0xEB8, 13 },
  1956. { 0xF, 4 },
  1957. { 0x6, 4 },
  1958. { 0x13, 5 },
  1959. { 0x3B, 6 },
  1960. { 0x3A, 6 },
  1961. { 0x0, 3 },
  1962. { 0x18, 5 },
  1963. { 0x32, 6 },
  1964. { 0x67, 7 }
  1965. },
  1966. { /* AC bias group 2, table 14 */
  1967. { 0x4, 3 },
  1968. { 0xA, 4 },
  1969. { 0x1B, 5 },
  1970. { 0xC, 4 },
  1971. { 0xD, 5 },
  1972. { 0xE6, 8 },
  1973. { 0x684, 11 },
  1974. { 0x72, 7 },
  1975. { 0xE7, 8 },
  1976. { 0x2, 3 },
  1977. { 0x1, 3 },
  1978. { 0x17, 5 },
  1979. { 0x16, 5 },
  1980. { 0x18, 6 },
  1981. { 0xD1, 8 },
  1982. { 0x1A0, 9 },
  1983. { 0x686, 11 },
  1984. { 0xD0F, 12 },
  1985. { 0xD0A, 12 },
  1986. { 0x1A17, 13 },
  1987. { 0x1A16, 13 },
  1988. { 0x1A1D, 13 },
  1989. { 0x1A1C, 13 },
  1990. { 0xF, 4 },
  1991. { 0x1D, 5 },
  1992. { 0xE, 5 },
  1993. { 0x35, 6 },
  1994. { 0x38, 6 },
  1995. { 0x0, 3 },
  1996. { 0xF, 5 },
  1997. { 0x19, 6 },
  1998. { 0x69, 7 }
  1999. },
  2000. { /* AC bias group 2, table 15 */
  2001. { 0x3, 3 },
  2002. { 0xC, 4 },
  2003. { 0x1B, 5 },
  2004. { 0x0, 3 },
  2005. { 0x3, 4 },
  2006. { 0x2E, 6 },
  2007. { 0x51, 9 },
  2008. { 0xBC, 8 },
  2009. { 0x53, 9 },
  2010. { 0x4, 3 },
  2011. { 0x2, 3 },
  2012. { 0x16, 5 },
  2013. { 0x15, 5 },
  2014. { 0x15, 7 },
  2015. { 0x50, 9 },
  2016. { 0xA4, 10 },
  2017. { 0x294, 12 },
  2018. { 0x52B, 13 },
  2019. { 0x52A, 13 },
  2020. { 0x52D, 13 },
  2021. { 0x52C, 13 },
  2022. { 0x52F, 13 },
  2023. { 0x52E, 13 },
  2024. { 0xE, 4 },
  2025. { 0x1A, 5 },
  2026. { 0x4, 5 },
  2027. { 0x28, 6 },
  2028. { 0x29, 6 },
  2029. { 0xF, 4 },
  2030. { 0xB, 6 },
  2031. { 0x5F, 7 },
  2032. { 0xBD, 8 }
  2033. }
  2034. };
  2035. static const uint16_t ac_bias_2[16][32][2] = {
  2036. { /* AC bias group 3, table 0 */
  2037. { 0x3, 4 },
  2038. { 0x9, 6 },
  2039. { 0xD0, 8 },
  2040. { 0x1A3, 9 },
  2041. { 0x344, 10 },
  2042. { 0xD14, 12 },
  2043. { 0x1A2B, 13 },
  2044. { 0x4, 4 },
  2045. { 0x15, 7 },
  2046. { 0x0, 3 },
  2047. { 0xF, 4 },
  2048. { 0xB, 4 },
  2049. { 0xC, 4 },
  2050. { 0xE, 4 },
  2051. { 0x9, 4 },
  2052. { 0x1B, 5 },
  2053. { 0xA, 5 },
  2054. { 0x14, 5 },
  2055. { 0xD, 5 },
  2056. { 0x2A, 6 },
  2057. { 0x14, 7 },
  2058. { 0x68B, 11 },
  2059. { 0x1A2A, 13 },
  2060. { 0x8, 4 },
  2061. { 0xB, 5 },
  2062. { 0x2B, 6 },
  2063. { 0xB, 6 },
  2064. { 0x69, 7 },
  2065. { 0x35, 6 },
  2066. { 0x8, 6 },
  2067. { 0x7, 4 },
  2068. { 0xC, 5 }
  2069. },
  2070. { /* AC bias group 3, table 1 */
  2071. { 0xA, 4 },
  2072. { 0x3C, 6 },
  2073. { 0x32, 7 },
  2074. { 0x30, 7 },
  2075. { 0xC5, 9 },
  2076. { 0x621, 12 },
  2077. { 0x620, 12 },
  2078. { 0x1F, 5 },
  2079. { 0x33, 7 },
  2080. { 0x1, 3 },
  2081. { 0x0, 3 },
  2082. { 0xE, 4 },
  2083. { 0xD, 4 },
  2084. { 0xC, 4 },
  2085. { 0x4, 4 },
  2086. { 0xD, 5 },
  2087. { 0x26, 6 },
  2088. { 0x27, 6 },
  2089. { 0x14, 6 },
  2090. { 0x63, 8 },
  2091. { 0x189, 10 },
  2092. { 0x623, 12 },
  2093. { 0x622, 12 },
  2094. { 0xB, 4 },
  2095. { 0x12, 5 },
  2096. { 0x3D, 6 },
  2097. { 0x22, 6 },
  2098. { 0x15, 6 },
  2099. { 0xB, 5 },
  2100. { 0x23, 6 },
  2101. { 0x7, 4 },
  2102. { 0x10, 5 }
  2103. },
  2104. { /* AC bias group 3, table 2 */
  2105. { 0xF, 4 },
  2106. { 0xC, 5 },
  2107. { 0x43, 7 },
  2108. { 0x10, 6 },
  2109. { 0x44, 8 },
  2110. { 0x114, 10 },
  2111. { 0x455, 12 },
  2112. { 0x18, 5 },
  2113. { 0x23, 7 },
  2114. { 0x1, 3 },
  2115. { 0x0, 3 },
  2116. { 0xE, 4 },
  2117. { 0xD, 4 },
  2118. { 0x9, 4 },
  2119. { 0x19, 5 },
  2120. { 0x9, 5 },
  2121. { 0x17, 6 },
  2122. { 0x16, 6 },
  2123. { 0x42, 7 },
  2124. { 0x8B, 9 },
  2125. { 0x454, 12 },
  2126. { 0x457, 12 },
  2127. { 0x456, 12 },
  2128. { 0xB, 4 },
  2129. { 0x15, 5 },
  2130. { 0xA, 5 },
  2131. { 0x29, 6 },
  2132. { 0x20, 6 },
  2133. { 0xD, 5 },
  2134. { 0x28, 6 },
  2135. { 0x7, 4 },
  2136. { 0x11, 5 }
  2137. },
  2138. { /* AC bias group 3, table 3 */
  2139. { 0x1, 3 },
  2140. { 0x1A, 5 },
  2141. { 0x29, 6 },
  2142. { 0x2A, 6 },
  2143. { 0xA0, 8 },
  2144. { 0x285, 10 },
  2145. { 0x1425, 13 },
  2146. { 0x2, 5 },
  2147. { 0x0, 7 },
  2148. { 0x2, 3 },
  2149. { 0x3, 3 },
  2150. { 0xC, 4 },
  2151. { 0xB, 4 },
  2152. { 0x8, 4 },
  2153. { 0x12, 5 },
  2154. { 0x1, 6 },
  2155. { 0x51, 7 },
  2156. { 0x1, 7 },
  2157. { 0x143, 9 },
  2158. { 0x508, 11 },
  2159. { 0x1424, 13 },
  2160. { 0x1427, 13 },
  2161. { 0x1426, 13 },
  2162. { 0xF, 4 },
  2163. { 0x1C, 5 },
  2164. { 0x3, 5 },
  2165. { 0x37, 6 },
  2166. { 0x2B, 6 },
  2167. { 0x13, 5 },
  2168. { 0x36, 6 },
  2169. { 0x1D, 5 },
  2170. { 0x1, 5 }
  2171. },
  2172. { /* AC bias group 3, table 4 */
  2173. { 0x4, 3 },
  2174. { 0x1F, 5 },
  2175. { 0x3D, 6 },
  2176. { 0x6, 5 },
  2177. { 0x16, 7 },
  2178. { 0x53, 9 },
  2179. { 0x14A, 11 },
  2180. { 0x34, 6 },
  2181. { 0x2A, 8 },
  2182. { 0x2, 3 },
  2183. { 0x3, 3 },
  2184. { 0xB, 4 },
  2185. { 0xC, 4 },
  2186. { 0x1C, 5 },
  2187. { 0x37, 6 },
  2188. { 0x17, 7 },
  2189. { 0x2B, 8 },
  2190. { 0x28, 8 },
  2191. { 0xA4, 10 },
  2192. { 0x52D, 13 },
  2193. { 0x52C, 13 },
  2194. { 0x52F, 13 },
  2195. { 0x52E, 13 },
  2196. { 0x0, 3 },
  2197. { 0x1D, 5 },
  2198. { 0x7, 5 },
  2199. { 0x4, 5 },
  2200. { 0x35, 6 },
  2201. { 0x14, 5 },
  2202. { 0x36, 6 },
  2203. { 0x15, 5 },
  2204. { 0x3C, 6 }
  2205. },
  2206. { /* AC bias group 3, table 5 */
  2207. { 0x4, 3 },
  2208. { 0xA, 4 },
  2209. { 0x7, 5 },
  2210. { 0x1D, 5 },
  2211. { 0x9, 6 },
  2212. { 0x1F3, 9 },
  2213. { 0x7C7, 11 },
  2214. { 0x8, 6 },
  2215. { 0x1F0, 9 },
  2216. { 0x3, 3 },
  2217. { 0x2, 3 },
  2218. { 0xD, 4 },
  2219. { 0xC, 4 },
  2220. { 0x17, 5 },
  2221. { 0x7D, 7 },
  2222. { 0x1F2, 9 },
  2223. { 0x7C6, 11 },
  2224. { 0x7C5, 11 },
  2225. { 0x1F12, 13 },
  2226. { 0x3E27, 14 },
  2227. { 0x3E26, 14 },
  2228. { 0x1F11, 13 },
  2229. { 0x1F10, 13 },
  2230. { 0x0, 3 },
  2231. { 0x1E, 5 },
  2232. { 0x6, 5 },
  2233. { 0x39, 6 },
  2234. { 0x38, 6 },
  2235. { 0x3F, 6 },
  2236. { 0x2C, 6 },
  2237. { 0x5, 5 },
  2238. { 0x2D, 6 }
  2239. },
  2240. { /* AC bias group 3, table 6 */
  2241. { 0x2, 3 },
  2242. { 0x7, 4 },
  2243. { 0x18, 5 },
  2244. { 0x3, 4 },
  2245. { 0x5, 5 },
  2246. { 0x35, 7 },
  2247. { 0x4F, 9 },
  2248. { 0x12, 7 },
  2249. { 0x4E5, 13 },
  2250. { 0x5, 3 },
  2251. { 0x4, 3 },
  2252. { 0xD, 4 },
  2253. { 0xE, 4 },
  2254. { 0x33, 6 },
  2255. { 0x26, 8 },
  2256. { 0x9D, 10 },
  2257. { 0x4E4, 13 },
  2258. { 0x4E7, 13 },
  2259. { 0x4E6, 13 },
  2260. { 0x4E1, 13 },
  2261. { 0x4E0, 13 },
  2262. { 0x4E3, 13 },
  2263. { 0x4E2, 13 },
  2264. { 0x0, 3 },
  2265. { 0x1F, 5 },
  2266. { 0xC, 5 },
  2267. { 0x3D, 6 },
  2268. { 0x3C, 6 },
  2269. { 0x32, 6 },
  2270. { 0x34, 7 },
  2271. { 0x1B, 6 },
  2272. { 0x8, 6 }
  2273. },
  2274. { /* AC bias group 3, table 7 */
  2275. { 0x0, 3 },
  2276. { 0x4, 4 },
  2277. { 0x1C, 5 },
  2278. { 0xF, 4 },
  2279. { 0x2, 4 },
  2280. { 0x7, 5 },
  2281. { 0x75, 7 },
  2282. { 0xE8, 8 },
  2283. { 0x1D2A, 13 },
  2284. { 0x5, 3 },
  2285. { 0x4, 3 },
  2286. { 0xD, 4 },
  2287. { 0xC, 4 },
  2288. { 0x77, 7 },
  2289. { 0xE96, 12 },
  2290. { 0x3A57, 14 },
  2291. { 0x3A56, 14 },
  2292. { 0x3A5D, 14 },
  2293. { 0x3A5C, 14 },
  2294. { 0x3A5F, 14 },
  2295. { 0x3A5E, 14 },
  2296. { 0x1D29, 13 },
  2297. { 0x1D28, 13 },
  2298. { 0x3, 3 },
  2299. { 0x6, 5 },
  2300. { 0xA, 5 },
  2301. { 0x2C, 7 },
  2302. { 0x17, 6 },
  2303. { 0x76, 7 },
  2304. { 0x1D3, 9 },
  2305. { 0x3A4, 10 },
  2306. { 0x2D, 7 }
  2307. },
  2308. { /* AC bias group 3, table 8 */
  2309. { 0xA, 4 },
  2310. { 0x24, 6 },
  2311. { 0xBF, 8 },
  2312. { 0x85, 8 },
  2313. { 0x211, 10 },
  2314. { 0x842, 12 },
  2315. { 0x1087, 13 },
  2316. { 0x18, 5 },
  2317. { 0x20, 6 },
  2318. { 0x1, 3 },
  2319. { 0x2, 3 },
  2320. { 0xE, 4 },
  2321. { 0xD, 4 },
  2322. { 0x7, 4 },
  2323. { 0x13, 5 },
  2324. { 0x25, 6 },
  2325. { 0x5E, 7 },
  2326. { 0x43, 7 },
  2327. { 0xBE, 8 },
  2328. { 0x109, 9 },
  2329. { 0x1086, 13 },
  2330. { 0x841, 12 },
  2331. { 0x840, 12 },
  2332. { 0xF, 4 },
  2333. { 0x1, 4 },
  2334. { 0x11, 5 },
  2335. { 0x0, 5 },
  2336. { 0x2E, 6 },
  2337. { 0x19, 5 },
  2338. { 0x1, 5 },
  2339. { 0x6, 4 },
  2340. { 0x16, 5 }
  2341. },
  2342. { /* AC bias group 3, table 9 */
  2343. { 0x2, 3 },
  2344. { 0xF, 5 },
  2345. { 0x6F, 7 },
  2346. { 0x61, 7 },
  2347. { 0x374, 10 },
  2348. { 0x1BA8, 13 },
  2349. { 0x3753, 14 },
  2350. { 0x12, 5 },
  2351. { 0x36, 6 },
  2352. { 0x0, 3 },
  2353. { 0x1, 3 },
  2354. { 0xA, 4 },
  2355. { 0xB, 4 },
  2356. { 0x1A, 5 },
  2357. { 0x31, 6 },
  2358. { 0x60, 7 },
  2359. { 0xDC, 8 },
  2360. { 0x1BB, 9 },
  2361. { 0x6EB, 11 },
  2362. { 0x1BAB, 13 },
  2363. { 0x3752, 14 },
  2364. { 0x3755, 14 },
  2365. { 0x3754, 14 },
  2366. { 0xE, 4 },
  2367. { 0x6, 4 },
  2368. { 0x13, 5 },
  2369. { 0xE, 5 },
  2370. { 0x3E, 6 },
  2371. { 0x8, 4 },
  2372. { 0x1E, 5 },
  2373. { 0x19, 5 },
  2374. { 0x3F, 6 }
  2375. },
  2376. { /* AC bias group 3, table 10 */
  2377. { 0x3, 3 },
  2378. { 0x1C, 5 },
  2379. { 0x25, 6 },
  2380. { 0x24, 6 },
  2381. { 0x1DA, 9 },
  2382. { 0x1DBD, 13 },
  2383. { 0x3B7C, 14 },
  2384. { 0x3C, 6 },
  2385. { 0x3D, 6 },
  2386. { 0x0, 3 },
  2387. { 0x1, 3 },
  2388. { 0xB, 4 },
  2389. { 0xA, 4 },
  2390. { 0xB, 5 },
  2391. { 0x77, 7 },
  2392. { 0xEC, 8 },
  2393. { 0x3B6, 10 },
  2394. { 0x76E, 11 },
  2395. { 0x1DBF, 13 },
  2396. { 0x76FB, 15 },
  2397. { 0x76FA, 15 },
  2398. { 0x3B79, 14 },
  2399. { 0x3B78, 14 },
  2400. { 0xD, 4 },
  2401. { 0x1F, 5 },
  2402. { 0x13, 5 },
  2403. { 0xA, 5 },
  2404. { 0x8, 5 },
  2405. { 0xC, 4 },
  2406. { 0x8, 4 },
  2407. { 0x9, 5 },
  2408. { 0x3A, 6 }
  2409. },
  2410. { /* AC bias group 3, table 11 */
  2411. { 0x5, 3 },
  2412. { 0x3, 4 },
  2413. { 0x4, 5 },
  2414. { 0x10, 5 },
  2415. { 0x8F, 8 },
  2416. { 0x475, 11 },
  2417. { 0x11D1, 13 },
  2418. { 0x79, 7 },
  2419. { 0x27, 6 },
  2420. { 0x2, 3 },
  2421. { 0x3, 3 },
  2422. { 0x1, 4 },
  2423. { 0x0, 4 },
  2424. { 0x26, 6 },
  2425. { 0x46, 7 },
  2426. { 0x11C, 9 },
  2427. { 0x477, 11 },
  2428. { 0x8ED, 12 },
  2429. { 0x11D0, 13 },
  2430. { 0x11D3, 13 },
  2431. { 0x11D2, 13 },
  2432. { 0x11D9, 13 },
  2433. { 0x11D8, 13 },
  2434. { 0xD, 4 },
  2435. { 0x1F, 5 },
  2436. { 0x12, 5 },
  2437. { 0x5, 5 },
  2438. { 0x3D, 6 },
  2439. { 0xC, 4 },
  2440. { 0xE, 4 },
  2441. { 0x22, 6 },
  2442. { 0x78, 7 }
  2443. },
  2444. { /* AC bias group 3, table 12 */
  2445. { 0x5, 3 },
  2446. { 0xC, 4 },
  2447. { 0x1B, 5 },
  2448. { 0x0, 4 },
  2449. { 0x6, 6 },
  2450. { 0x3E2, 10 },
  2451. { 0x3E3D, 14 },
  2452. { 0xF, 7 },
  2453. { 0x34, 6 },
  2454. { 0x3, 3 },
  2455. { 0x2, 3 },
  2456. { 0x1E, 5 },
  2457. { 0x1D, 5 },
  2458. { 0x7D, 7 },
  2459. { 0x1F0, 9 },
  2460. { 0x7C6, 11 },
  2461. { 0x3E3C, 14 },
  2462. { 0x3E3F, 14 },
  2463. { 0x3E3E, 14 },
  2464. { 0x3E39, 14 },
  2465. { 0x3E38, 14 },
  2466. { 0x3E3B, 14 },
  2467. { 0x3E3A, 14 },
  2468. { 0x8, 4 },
  2469. { 0x1C, 5 },
  2470. { 0x2, 5 },
  2471. { 0x3F, 6 },
  2472. { 0x35, 6 },
  2473. { 0x9, 4 },
  2474. { 0x1, 3 },
  2475. { 0xE, 7 },
  2476. { 0xF9, 8 }
  2477. },
  2478. { /* AC bias group 3, table 13 */
  2479. { 0x4, 3 },
  2480. { 0xB, 4 },
  2481. { 0x1, 4 },
  2482. { 0xA, 4 },
  2483. { 0x1E, 6 },
  2484. { 0xE0, 9 },
  2485. { 0xE1E, 13 },
  2486. { 0x71, 8 },
  2487. { 0x39, 7 },
  2488. { 0x7, 3 },
  2489. { 0x6, 3 },
  2490. { 0xD, 5 },
  2491. { 0xC, 5 },
  2492. { 0x20, 7 },
  2493. { 0x1C2, 10 },
  2494. { 0x1C3F, 14 },
  2495. { 0x1C3E, 14 },
  2496. { 0xE19, 13 },
  2497. { 0xE18, 13 },
  2498. { 0xE1B, 13 },
  2499. { 0xE1A, 13 },
  2500. { 0xE1D, 13 },
  2501. { 0xE1C, 13 },
  2502. { 0x0, 4 },
  2503. { 0x9, 5 },
  2504. { 0x1D, 6 },
  2505. { 0x1F, 6 },
  2506. { 0x11, 6 },
  2507. { 0x5, 4 },
  2508. { 0x1, 3 },
  2509. { 0x43, 8 },
  2510. { 0x42, 8 }
  2511. },
  2512. { /* AC bias group 3, table 14 */
  2513. { 0x4, 3 },
  2514. { 0xD, 4 },
  2515. { 0x7, 4 },
  2516. { 0x2, 3 },
  2517. { 0x14, 5 },
  2518. { 0x16C, 9 },
  2519. { 0x16D1, 13 },
  2520. { 0x2DF, 10 },
  2521. { 0x16E, 9 },
  2522. { 0x0, 2 },
  2523. { 0x7, 3 },
  2524. { 0x2C, 6 },
  2525. { 0x2B, 6 },
  2526. { 0x2DE, 10 },
  2527. { 0x16D0, 13 },
  2528. { 0x16D3, 13 },
  2529. { 0x16D2, 13 },
  2530. { 0x2DB5, 14 },
  2531. { 0x2DB4, 14 },
  2532. { 0x2DB7, 14 },
  2533. { 0x2DB6, 14 },
  2534. { 0x16D9, 13 },
  2535. { 0x16D8, 13 },
  2536. { 0xC, 5 },
  2537. { 0x2A, 6 },
  2538. { 0x5A, 7 },
  2539. { 0x1B, 6 },
  2540. { 0x1A, 6 },
  2541. { 0x17, 5 },
  2542. { 0xC, 4 },
  2543. { 0x5B7, 11 },
  2544. { 0x5B5, 11 }
  2545. },
  2546. { /* AC bias group 3, table 15 */
  2547. { 0x2, 2 },
  2548. { 0xF, 4 },
  2549. { 0x1C, 5 },
  2550. { 0xC, 4 },
  2551. { 0x3B, 6 },
  2552. { 0x1AC, 9 },
  2553. { 0x1AD8, 13 },
  2554. { 0x35B3, 14 },
  2555. { 0x35B2, 14 },
  2556. { 0x1, 2 },
  2557. { 0x0, 2 },
  2558. { 0x69, 7 },
  2559. { 0x68, 7 },
  2560. { 0x35BD, 14 },
  2561. { 0x35BC, 14 },
  2562. { 0x35BF, 14 },
  2563. { 0x35BE, 14 },
  2564. { 0x35B9, 14 },
  2565. { 0x35B8, 14 },
  2566. { 0x35BB, 14 },
  2567. { 0x35BA, 14 },
  2568. { 0x35B5, 14 },
  2569. { 0x35B4, 14 },
  2570. { 0x1A9, 9 },
  2571. { 0x1A8, 9 },
  2572. { 0x35A, 10 },
  2573. { 0xD7, 8 },
  2574. { 0xD5, 8 },
  2575. { 0x3A, 6 },
  2576. { 0x1B, 5 },
  2577. { 0x35B7, 14 },
  2578. { 0x35B6, 14 }
  2579. }
  2580. };
  2581. static const uint16_t ac_bias_3[16][32][2] = {
  2582. { /* AC bias group 4, table 0 */
  2583. { 0x0, 3 },
  2584. { 0x10, 5 },
  2585. { 0x72, 7 },
  2586. { 0x71, 7 },
  2587. { 0x154, 9 },
  2588. { 0xAAB, 12 },
  2589. { 0xAA8, 12 },
  2590. { 0x14, 5 },
  2591. { 0x70, 7 },
  2592. { 0x2, 3 },
  2593. { 0x3, 3 },
  2594. { 0xC, 4 },
  2595. { 0xB, 4 },
  2596. { 0x3, 4 },
  2597. { 0x11, 5 },
  2598. { 0x73, 7 },
  2599. { 0x54, 7 },
  2600. { 0xAB, 8 },
  2601. { 0x2AB, 10 },
  2602. { 0x1553, 13 },
  2603. { 0x1552, 13 },
  2604. { 0x1555, 13 },
  2605. { 0x1554, 13 },
  2606. { 0xD, 4 },
  2607. { 0x1E, 5 },
  2608. { 0x12, 5 },
  2609. { 0x3E, 6 },
  2610. { 0x2B, 6 },
  2611. { 0x2, 4 },
  2612. { 0x3F, 6 },
  2613. { 0x1D, 5 },
  2614. { 0x13, 5 }
  2615. },
  2616. { /* AC bias group 4, table 1 */
  2617. { 0x3, 3 },
  2618. { 0x1F, 5 },
  2619. { 0x29, 6 },
  2620. { 0x3D, 6 },
  2621. { 0xC, 7 },
  2622. { 0x69, 10 },
  2623. { 0x345, 13 },
  2624. { 0x2, 5 },
  2625. { 0x28, 6 },
  2626. { 0x2, 3 },
  2627. { 0x1, 3 },
  2628. { 0xE, 4 },
  2629. { 0xC, 4 },
  2630. { 0x15, 5 },
  2631. { 0x7, 6 },
  2632. { 0x1B, 8 },
  2633. { 0x6B, 10 },
  2634. { 0x6A, 10 },
  2635. { 0x344, 13 },
  2636. { 0x347, 13 },
  2637. { 0x346, 13 },
  2638. { 0x1A1, 12 },
  2639. { 0x1A0, 12 },
  2640. { 0xB, 4 },
  2641. { 0x1A, 5 },
  2642. { 0x12, 5 },
  2643. { 0x0, 5 },
  2644. { 0x3C, 6 },
  2645. { 0x8, 4 },
  2646. { 0x1B, 5 },
  2647. { 0x13, 5 },
  2648. { 0x1, 5 }
  2649. },
  2650. { /* AC bias group 4, table 2 */
  2651. { 0x4, 3 },
  2652. { 0x4, 4 },
  2653. { 0x3F, 6 },
  2654. { 0x14, 5 },
  2655. { 0x56, 7 },
  2656. { 0x15C, 9 },
  2657. { 0x15D5, 13 },
  2658. { 0x3C, 6 },
  2659. { 0x2A, 6 },
  2660. { 0x0, 3 },
  2661. { 0x1, 3 },
  2662. { 0xE, 4 },
  2663. { 0xD, 4 },
  2664. { 0xC, 5 },
  2665. { 0xAF, 8 },
  2666. { 0x2BB, 10 },
  2667. { 0x15D4, 13 },
  2668. { 0x15D7, 13 },
  2669. { 0x15D6, 13 },
  2670. { 0x15D1, 13 },
  2671. { 0x15D0, 13 },
  2672. { 0x15D3, 13 },
  2673. { 0x15D2, 13 },
  2674. { 0xB, 4 },
  2675. { 0x19, 5 },
  2676. { 0xD, 5 },
  2677. { 0x3E, 6 },
  2678. { 0x31, 6 },
  2679. { 0x7, 4 },
  2680. { 0x5, 4 },
  2681. { 0x3D, 6 },
  2682. { 0x30, 6 }
  2683. },
  2684. { /* AC bias group 4, table 3 */
  2685. { 0x5, 3 },
  2686. { 0x8, 4 },
  2687. { 0x1A, 5 },
  2688. { 0x0, 4 },
  2689. { 0x36, 6 },
  2690. { 0x11, 8 },
  2691. { 0x106, 12 },
  2692. { 0xA, 7 },
  2693. { 0x6E, 7 },
  2694. { 0x2, 3 },
  2695. { 0x3, 3 },
  2696. { 0x3, 4 },
  2697. { 0x2, 4 },
  2698. { 0x6F, 7 },
  2699. { 0x21, 9 },
  2700. { 0x20F, 13 },
  2701. { 0x20E, 13 },
  2702. { 0x101, 12 },
  2703. { 0x100, 12 },
  2704. { 0x103, 12 },
  2705. { 0x102, 12 },
  2706. { 0x105, 12 },
  2707. { 0x104, 12 },
  2708. { 0xC, 4 },
  2709. { 0x1E, 5 },
  2710. { 0x3, 5 },
  2711. { 0x3E, 6 },
  2712. { 0x3F, 6 },
  2713. { 0x9, 4 },
  2714. { 0xE, 4 },
  2715. { 0xB, 7 },
  2716. { 0x9, 7 }
  2717. },
  2718. { /* AC bias group 4, table 4 */
  2719. { 0x2, 3 },
  2720. { 0xE, 4 },
  2721. { 0x1E, 5 },
  2722. { 0xC, 4 },
  2723. { 0x1F, 5 },
  2724. { 0x6E, 7 },
  2725. { 0xAD, 10 },
  2726. { 0xAF, 10 },
  2727. { 0x14, 7 },
  2728. { 0x4, 3 },
  2729. { 0x3, 3 },
  2730. { 0x1A, 5 },
  2731. { 0x17, 5 },
  2732. { 0x2A, 8 },
  2733. { 0x576, 13 },
  2734. { 0xAEF, 14 },
  2735. { 0xAEE, 14 },
  2736. { 0x571, 13 },
  2737. { 0x570, 13 },
  2738. { 0x573, 13 },
  2739. { 0x572, 13 },
  2740. { 0x575, 13 },
  2741. { 0x574, 13 },
  2742. { 0x3, 4 },
  2743. { 0x16, 5 },
  2744. { 0x4, 5 },
  2745. { 0x36, 6 },
  2746. { 0xB, 6 },
  2747. { 0xA, 4 },
  2748. { 0x0, 3 },
  2749. { 0x6F, 7 },
  2750. { 0xAC, 10 }
  2751. },
  2752. { /* AC bias group 4, table 5 */
  2753. { 0x4, 3 },
  2754. { 0x5, 4 },
  2755. { 0x3, 3 },
  2756. { 0x1, 3 },
  2757. { 0x4, 4 },
  2758. { 0x2F, 6 },
  2759. { 0x526, 11 },
  2760. { 0x1495, 13 },
  2761. { 0xA6, 8 },
  2762. { 0x7, 3 },
  2763. { 0x6, 3 },
  2764. { 0x2D, 6 },
  2765. { 0x2C, 6 },
  2766. { 0x1494, 13 },
  2767. { 0x1497, 13 },
  2768. { 0x1496, 13 },
  2769. { 0x1491, 13 },
  2770. { 0x1490, 13 },
  2771. { 0x1493, 13 },
  2772. { 0x1492, 13 },
  2773. { 0x293D, 14 },
  2774. { 0x293C, 14 },
  2775. { 0x293F, 14 },
  2776. { 0x0, 3 },
  2777. { 0x28, 6 },
  2778. { 0xA5, 8 },
  2779. { 0x148, 9 },
  2780. { 0xA7, 8 },
  2781. { 0x2E, 6 },
  2782. { 0x15, 5 },
  2783. { 0xA4E, 12 },
  2784. { 0x293E, 14 }
  2785. },
  2786. { /* AC bias group 4, table 6 */
  2787. { 0x4, 3 },
  2788. { 0x5, 4 },
  2789. { 0x3, 3 },
  2790. { 0x1, 3 },
  2791. { 0x4, 4 },
  2792. { 0x2F, 6 },
  2793. { 0x526, 11 },
  2794. { 0x1495, 13 },
  2795. { 0xA6, 8 },
  2796. { 0x7, 3 },
  2797. { 0x6, 3 },
  2798. { 0x2D, 6 },
  2799. { 0x2C, 6 },
  2800. { 0x1494, 13 },
  2801. { 0x1497, 13 },
  2802. { 0x1496, 13 },
  2803. { 0x1491, 13 },
  2804. { 0x1490, 13 },
  2805. { 0x1493, 13 },
  2806. { 0x1492, 13 },
  2807. { 0x293D, 14 },
  2808. { 0x293C, 14 },
  2809. { 0x293F, 14 },
  2810. { 0x0, 3 },
  2811. { 0x28, 6 },
  2812. { 0xA5, 8 },
  2813. { 0x148, 9 },
  2814. { 0xA7, 8 },
  2815. { 0x2E, 6 },
  2816. { 0x15, 5 },
  2817. { 0xA4E, 12 },
  2818. { 0x293E, 14 }
  2819. },
  2820. { /* AC bias group 4, table 7 */
  2821. { 0x4, 3 },
  2822. { 0x5, 4 },
  2823. { 0x3, 3 },
  2824. { 0x1, 3 },
  2825. { 0x4, 4 },
  2826. { 0x2F, 6 },
  2827. { 0x526, 11 },
  2828. { 0x1495, 13 },
  2829. { 0xA6, 8 },
  2830. { 0x7, 3 },
  2831. { 0x6, 3 },
  2832. { 0x2D, 6 },
  2833. { 0x2C, 6 },
  2834. { 0x1494, 13 },
  2835. { 0x1497, 13 },
  2836. { 0x1496, 13 },
  2837. { 0x1491, 13 },
  2838. { 0x1490, 13 },
  2839. { 0x1493, 13 },
  2840. { 0x1492, 13 },
  2841. { 0x293D, 14 },
  2842. { 0x293C, 14 },
  2843. { 0x293F, 14 },
  2844. { 0x0, 3 },
  2845. { 0x28, 6 },
  2846. { 0xA5, 8 },
  2847. { 0x148, 9 },
  2848. { 0xA7, 8 },
  2849. { 0x2E, 6 },
  2850. { 0x15, 5 },
  2851. { 0xA4E, 12 },
  2852. { 0x293E, 14 }
  2853. },
  2854. { /* AC bias group 4, table 8 */
  2855. { 0x3, 3 },
  2856. { 0x11, 5 },
  2857. { 0x20, 6 },
  2858. { 0x74, 7 },
  2859. { 0x10D, 9 },
  2860. { 0x863, 12 },
  2861. { 0x860, 12 },
  2862. { 0xA, 5 },
  2863. { 0x75, 7 },
  2864. { 0x1, 3 },
  2865. { 0x0, 3 },
  2866. { 0xB, 4 },
  2867. { 0xA, 4 },
  2868. { 0x18, 5 },
  2869. { 0x38, 6 },
  2870. { 0x42, 7 },
  2871. { 0x10F, 9 },
  2872. { 0x10E, 9 },
  2873. { 0x219, 10 },
  2874. { 0x10C3, 13 },
  2875. { 0x10C2, 13 },
  2876. { 0x10C5, 13 },
  2877. { 0x10C4, 13 },
  2878. { 0xF, 4 },
  2879. { 0x4, 4 },
  2880. { 0x19, 5 },
  2881. { 0xB, 5 },
  2882. { 0x39, 6 },
  2883. { 0x9, 4 },
  2884. { 0x1B, 5 },
  2885. { 0x1A, 5 },
  2886. { 0x3B, 6 }
  2887. },
  2888. { /* AC bias group 4, table 9 */
  2889. { 0x5, 3 },
  2890. { 0x1, 4 },
  2891. { 0x3E, 6 },
  2892. { 0x1, 5 },
  2893. { 0xE2, 8 },
  2894. { 0x1C6F, 13 },
  2895. { 0x38D9, 14 },
  2896. { 0x39, 6 },
  2897. { 0x1F, 6 },
  2898. { 0x2, 3 },
  2899. { 0x1, 3 },
  2900. { 0x9, 4 },
  2901. { 0x8, 4 },
  2902. { 0x0, 5 },
  2903. { 0x70, 7 },
  2904. { 0x1C7, 9 },
  2905. { 0x38C, 10 },
  2906. { 0x71A, 11 },
  2907. { 0x38D8, 14 },
  2908. { 0x38DB, 14 },
  2909. { 0x38DA, 14 },
  2910. { 0x38DD, 14 },
  2911. { 0x38DC, 14 },
  2912. { 0xD, 4 },
  2913. { 0x1D, 5 },
  2914. { 0xE, 5 },
  2915. { 0x3F, 6 },
  2916. { 0x3C, 6 },
  2917. { 0xC, 4 },
  2918. { 0x6, 4 },
  2919. { 0x3D, 6 },
  2920. { 0x1E, 6 }
  2921. },
  2922. { /* AC bias group 4, table 10 */
  2923. { 0x6, 3 },
  2924. { 0xB, 4 },
  2925. { 0x11, 5 },
  2926. { 0x1E, 5 },
  2927. { 0x74, 7 },
  2928. { 0x3AA, 10 },
  2929. { 0x1D5C, 13 },
  2930. { 0x1, 6 },
  2931. { 0x21, 6 },
  2932. { 0x1, 3 },
  2933. { 0x2, 3 },
  2934. { 0x7, 4 },
  2935. { 0x6, 4 },
  2936. { 0x3E, 6 },
  2937. { 0xEB, 8 },
  2938. { 0x1D4, 9 },
  2939. { 0xEAF, 12 },
  2940. { 0x3ABB, 14 },
  2941. { 0x3ABA, 14 },
  2942. { 0x1D59, 13 },
  2943. { 0x1D58, 13 },
  2944. { 0x1D5B, 13 },
  2945. { 0x1D5A, 13 },
  2946. { 0xA, 4 },
  2947. { 0x1C, 5 },
  2948. { 0x1, 5 },
  2949. { 0x3F, 6 },
  2950. { 0x3B, 6 },
  2951. { 0x1, 4 },
  2952. { 0x9, 4 },
  2953. { 0x20, 6 },
  2954. { 0x0, 6 }
  2955. },
  2956. { /* AC bias group 4, table 11 */
  2957. { 0x4, 3 },
  2958. { 0xA, 4 },
  2959. { 0x17, 5 },
  2960. { 0x4, 4 },
  2961. { 0x16, 6 },
  2962. { 0x16A, 9 },
  2963. { 0x16B1, 13 },
  2964. { 0x17, 7 },
  2965. { 0x5B, 7 },
  2966. { 0x6, 3 },
  2967. { 0x7, 3 },
  2968. { 0x1, 4 },
  2969. { 0x0, 4 },
  2970. { 0xA, 6 },
  2971. { 0x2D7, 10 },
  2972. { 0xB5A, 12 },
  2973. { 0x16B0, 13 },
  2974. { 0x16B3, 13 },
  2975. { 0x16B2, 13 },
  2976. { 0x2D6D, 14 },
  2977. { 0x2D6C, 14 },
  2978. { 0x2D6F, 14 },
  2979. { 0x2D6E, 14 },
  2980. { 0x6, 4 },
  2981. { 0xA, 5 },
  2982. { 0x4, 5 },
  2983. { 0x2C, 6 },
  2984. { 0x17, 6 },
  2985. { 0x3, 4 },
  2986. { 0x7, 4 },
  2987. { 0x16, 7 },
  2988. { 0xB4, 8 }
  2989. },
  2990. { /* AC bias group 4, table 12 */
  2991. { 0x5, 3 },
  2992. { 0xD, 4 },
  2993. { 0x5, 4 },
  2994. { 0x9, 4 },
  2995. { 0x33, 6 },
  2996. { 0x193, 9 },
  2997. { 0x192C, 13 },
  2998. { 0x61, 8 },
  2999. { 0x31, 7 },
  3000. { 0x0, 2 },
  3001. { 0x7, 3 },
  3002. { 0x10, 5 },
  3003. { 0x11, 5 },
  3004. { 0xC8, 8 },
  3005. { 0x192F, 13 },
  3006. { 0x325B, 14 },
  3007. { 0x325A, 14 },
  3008. { 0x1929, 13 },
  3009. { 0x1928, 13 },
  3010. { 0x192B, 13 },
  3011. { 0x192A, 13 },
  3012. { 0x325D, 14 },
  3013. { 0x325C, 14 },
  3014. { 0x18, 5 },
  3015. { 0x1A, 6 },
  3016. { 0x1B, 6 },
  3017. { 0x65, 7 },
  3018. { 0x19, 6 },
  3019. { 0x4, 4 },
  3020. { 0x7, 4 },
  3021. { 0x60, 8 },
  3022. { 0x324, 10 }
  3023. },
  3024. { /* AC bias group 4, table 13 */
  3025. { 0x6, 3 },
  3026. { 0x0, 3 },
  3027. { 0x2, 4 },
  3028. { 0xF, 4 },
  3029. { 0x39, 6 },
  3030. { 0x1D9, 9 },
  3031. { 0x1D82, 13 },
  3032. { 0x761, 11 },
  3033. { 0x3BE, 10 },
  3034. { 0x1, 2 },
  3035. { 0x2, 2 },
  3036. { 0xF, 6 },
  3037. { 0xE, 6 },
  3038. { 0x762, 11 },
  3039. { 0x3B07, 14 },
  3040. { 0x3B06, 14 },
  3041. { 0x3B1D, 14 },
  3042. { 0x3B1C, 14 },
  3043. { 0x3B1F, 14 },
  3044. { 0x3B1E, 14 },
  3045. { 0x3B19, 14 },
  3046. { 0x3B18, 14 },
  3047. { 0x3B1B, 14 },
  3048. { 0x38, 6 },
  3049. { 0x1DE, 9 },
  3050. { 0xED, 8 },
  3051. { 0x3BF, 10 },
  3052. { 0xEE, 8 },
  3053. { 0x3A, 6 },
  3054. { 0x6, 5 },
  3055. { 0xEC0, 12 },
  3056. { 0x3B1A, 14 }
  3057. },
  3058. { /* AC bias group 4, table 14 */
  3059. { 0x0, 2 },
  3060. { 0x2, 3 },
  3061. { 0xF, 5 },
  3062. { 0x6, 4 },
  3063. { 0x1C, 6 },
  3064. { 0x1D0, 10 },
  3065. { 0xE8C, 13 },
  3066. { 0x1D1B, 14 },
  3067. { 0x1D1A, 14 },
  3068. { 0x3, 2 },
  3069. { 0x2, 2 },
  3070. { 0xEA, 9 },
  3071. { 0xE9, 9 },
  3072. { 0xE89, 13 },
  3073. { 0xE88, 13 },
  3074. { 0xE8B, 13 },
  3075. { 0xE8A, 13 },
  3076. { 0x1D65, 14 },
  3077. { 0x1D64, 14 },
  3078. { 0x1D67, 14 },
  3079. { 0x1D66, 14 },
  3080. { 0x1D61, 14 },
  3081. { 0x1D60, 14 },
  3082. { 0x3AD, 11 },
  3083. { 0x1D63, 14 },
  3084. { 0x1D62, 14 },
  3085. { 0x1D1D, 14 },
  3086. { 0x1D1C, 14 },
  3087. { 0x3B, 7 },
  3088. { 0x1D7, 10 },
  3089. { 0x1D1F, 14 },
  3090. { 0x1D1E, 14 }
  3091. },
  3092. { /* AC bias group 4, table 15 */
  3093. { 0x2, 2 },
  3094. { 0xF, 4 },
  3095. { 0x1C, 5 },
  3096. { 0xC, 4 },
  3097. { 0x3B, 6 },
  3098. { 0x1AC, 9 },
  3099. { 0x1AD8, 13 },
  3100. { 0x35B3, 14 },
  3101. { 0x35B2, 14 },
  3102. { 0x1, 2 },
  3103. { 0x0, 2 },
  3104. { 0x69, 7 },
  3105. { 0x68, 7 },
  3106. { 0x35BD, 14 },
  3107. { 0x35BC, 14 },
  3108. { 0x35BF, 14 },
  3109. { 0x35BE, 14 },
  3110. { 0x35B9, 14 },
  3111. { 0x35B8, 14 },
  3112. { 0x35BB, 14 },
  3113. { 0x35BA, 14 },
  3114. { 0x35B5, 14 },
  3115. { 0x35B4, 14 },
  3116. { 0x1A9, 9 },
  3117. { 0x1A8, 9 },
  3118. { 0x35A, 10 },
  3119. { 0xD7, 8 },
  3120. { 0xD5, 8 },
  3121. { 0x3A, 6 },
  3122. { 0x1B, 5 },
  3123. { 0x35B7, 14 },
  3124. { 0x35B6, 14 }
  3125. }
  3126. };
  3127. #endif /* AVCODEC_VP3DATA_H */