ippsr.h 292 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241
  1. /* /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // INTEL CORPORATION PROPRIETARY INFORMATION
  4. // This software is supplied under the terms of a license agreement or
  5. // nondisclosure agreement with Intel Corporation and may not be copied
  6. // or disclosed except in accordance with the terms of that agreement.
  7. // Copyright (c) 2001-2009 Intel Corporation. All Rights Reserved.
  8. //
  9. // Intel(R) Integrated Performance Primitives
  10. // Speech Recognition Reference Library
  11. //
  12. */
  13. #if !defined( __IPPSR_H__ ) || defined( _OWN_BLDPCS )
  14. #define __IPPSR_H__
  15. #if defined (_WIN32_WCE) && defined (_M_IX86) && defined (__stdcall)
  16. #define _IPP_STDCALL_CDECL
  17. #undef __stdcall
  18. #endif
  19. #ifndef __IPPDEFS_H__
  20. #include "ippdefs.h"
  21. #endif
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. #if !defined( _OWN_BLDPCS )
  26. /* /////////////////////////////////////////////////////////////////////////////
  27. // Common Types & Definitions
  28. ///////////////////////////////////////////////////////////////////////////// */
  29. typedef enum {
  30. IPP_DELTA_BEGIN=0x0001,
  31. IPP_DELTA_END=0x0002
  32. } DeltaMode;
  33. #define ippsDeltaBegin IPP_DELTA_BEGIN
  34. #define ippsDeltaEnd IPP_DELTA_END
  35. typedef enum {
  36. IPP_FBANK_MELWGT = 1,
  37. IPP_FBANK_FREQWGT = 2,
  38. IPP_POWER_SPECTRUM = 4
  39. } IppMelMode;
  40. typedef enum {
  41. IPP_VOICE = 1,
  42. IPP_UNVOICE = 2,
  43. IPP_PREPARE = 4
  44. } IppVADDecision_Aurora;
  45. typedef enum {
  46. IPP_CDBK_FULL = 1,
  47. IPP_CDBK_KMEANS_LONG = 2,
  48. IPP_CDBK_KMEANS_NUM = 3
  49. } Ipp_Cdbk_Hint;
  50. struct BlockDMatrix_32f;
  51. struct BlockDMatrix_64f;
  52. struct BlockDMatrix_16s;
  53. typedef struct BlockDMatrix_32f IppsBlockDMatrix_32f;
  54. typedef struct BlockDMatrix_64f IppsBlockDMatrix_64f;
  55. typedef struct BlockDMatrix_16s IppsBlockDMatrix_16s;
  56. struct FBankState_16s;
  57. struct DCTLifterState_16s;
  58. struct FBankState_32f;
  59. struct DCTLifterState_32f;
  60. struct VADDrop_32f;
  61. struct VADDrop_16s;
  62. struct ResamplingPolyphase_16s;
  63. struct ResamplingPolyphaseFixed_16s;
  64. struct ResamplingPolyphase_32f;
  65. struct ResamplingPolyphaseFixed_32f;
  66. struct FBankState_32s;
  67. typedef struct ResamplingPolyphase_16s IppsResamplingPolyphase_16s;
  68. typedef struct ResamplingPolyphaseFixed_16s IppsResamplingPolyphaseFixed_16s;
  69. typedef struct ResamplingPolyphase_32f IppsResamplingPolyphase_32f;
  70. typedef struct ResamplingPolyphaseFixed_32f IppsResamplingPolyphaseFixed_32f;
  71. #define IppsResamlingPolyphase_16s IppsResamplingPolyphase_16s
  72. #define IppsResamlingPolyphaseFixed_16s IppsResamplingPolyphaseFixed_16s
  73. #define IppsResamlingPolyphase_32f IppsResamplingPolyphase_32f
  74. #define IppsResamlingPolyphaseFixed_32f IppsResamplingPolyphaseFixed_32f
  75. typedef struct VADDrop_32f IppsVADDrop_32f;
  76. typedef struct VADDrop_16s IppsVADDrop_16s;
  77. typedef struct FBankState_16s IppsFBankState_16s;
  78. typedef struct DCTLifterState_16s IppsDCTLifterState_16s;
  79. typedef struct FBankState_32f IppsFBankState_32f;
  80. typedef struct DCTLifterState_32f IppsDCTLifterState_32f;
  81. typedef struct FBankState_32s IppsFBankState_32s;
  82. struct CdbkState_32f;
  83. typedef struct CdbkState_32f IppsCdbkState_32f;
  84. struct CdbkState_16s;
  85. typedef struct CdbkState_16s IppsCdbkState_16s;
  86. #endif /* _OWN_BLDPCS */
  87. #define IPP_TRUNC(a,b) ((a)&~((b)-1))
  88. #define IPP_APPEND(a,b) (((a)+(b)-1)&~((b)-1))
  89. /* /////////////////////////////////////////////////////////////////////////////
  90. // Definitions for LogAdd Functions
  91. ///////////////////////////////////////////////////////////////////////////// */
  92. /*Ipp64f*/
  93. #define IPPSLOGZERO (-1.0e+10)
  94. #define IPPSLOGSMALL (-0.9e+10)
  95. #define IPPSMINLOGEXP -23.0258509299405 /*-log(-LOGZERO)*/
  96. #define IPPSMAXFWDP (-1.0e-8) /* highest p<0: exp(p) < DBL_EPSILON */
  97. #define IPPSMINFWDP -20.0 /* minimum forward probability */
  98. /*Ipp32f*/
  99. #define IPPSLOGZERO_F (-4.5e+6)
  100. #define IPPSLOGSMALL_F (-4.5e+6)
  101. #define IPPSMINLOGEXP_F -15.3195879547406 /*-log(-LOGZERO) */
  102. #define IPPSMAXFWDP_F (-1.0e-4) /* highest p<0: exp(p) < FLT_EPSILON */
  103. #define IPPSMINFWDP_F -10.0 /* minimum forward probability */
  104. /* /////////////////////////////////////////////////////////////////////////////
  105. // Definitions for LogSub Functions
  106. ///////////////////////////////////////////////////////////////////////////// */
  107. #define IPPSMINLARG (2.45E-308) /* lowest log() arg = exp(MINEARG) */
  108. #define IPPSMINMIX (-11.5129254649702) /* log(1.0e-5) */
  109. #define IPPSMINEARG (-708.3) /* lowest exp() arg = log(MINLARG) */
  110. #define IPPSMINEARG_F (-85.19) /* lowest exp() arg = log(MINLARG_F) */
  111. #define IPPSMINLARG_F (1.0057e-037) /* lowest log() arg = exp(MINEARG_F) */
  112. /* /////////////////////////////////////////////////////////////////////////////
  113. ////////////////////////////////////////////////////////////////////////////////
  114. // Functions declarations
  115. ////////////////////////////////////////////////////////////////////////////////
  116. ///////////////////////////////////////////////////////////////////////////// */
  117. /* /////////////////////////////////////////////////////////////////////////////
  118. // Name: ippsrGetLibVersion
  119. // Purpose: getting of the library version
  120. // Returns: the structure of information about version of ippsr library
  121. // Parameters:
  122. //
  123. // Notes: not necessary to release the returned structure
  124. */
  125. IPPAPI( const IppLibraryVersion*, ippsrGetLibVersion, (void) )
  126. /* /////////////////////////////////////////////////////////////////////////////
  127. // Basic Arithmetics
  128. ///////////////////////////////////////////////////////////////////////////// */
  129. /* /////////////////////////////////////////////////////////////////////////////
  130. // Name: ippsAddAllRowSum_32f_D2
  131. // Purpose: Calculates the sums of column vectors in a matrix
  132. // and adds the sums to a vector.
  133. // Parameters:
  134. // pSrc Pointer to the input vector [height*sStep].
  135. // mSrc Pointer to the input matrix [height][width].
  136. // step The row step in pSrc.
  137. // height The number of rows in the input matrix mSrc.
  138. // width Number of columns in the input matrix mSrc, and also the
  139. // length of the output vector pSrcDst.
  140. //
  141. // Returns:
  142. // ippStsNoErr Indicates no error.
  143. // ippStsNullPtrErr Indicates an error when the pSrc, or mSrc, or pSrcDst
  144. // pointer is null.
  145. // ippStsSizeErr Indicates an error when height or width is less than
  146. // or equal to 0.
  147. // ippStsStrideErr Indicates an error when width > step.
  148. //
  149. */
  150. IPPAPI(IppStatus, ippsAddAllRowSum_32f_D2, (const Ipp32f* pSrc, int step,
  151. int height, Ipp32f* pSrcDst, int width))
  152. IPPAPI(IppStatus, ippsAddAllRowSum_32f_D2L, (const Ipp32f** mSrc, int height,
  153. Ipp32f* pSrcDst, int width))
  154. /* /////////////////////////////////////////////////////////////////////////////
  155. // Name: ippsSumColumn_*
  156. // Purpose: Calculates sums of column vectors in a matrix.
  157. //
  158. // Parameters:
  159. // pSrc Pointer to the input vector [height*step].
  160. // mSrc Pointer to the input matrix [height][width].
  161. // step The row step in the input vector pSrc.
  162. // height The number of rows in the input matrix mSrc.
  163. // pDst Pointer to the output vector [width].
  164. // width The number of columns in the input matrix and the length
  165. // of the result vector pDst.
  166. //
  167. // Returns:
  168. // ippStsNoErr Indicates no error.
  169. // ippStsNullPtrErr Indicates an error when the pSrc, mSrc, or pDst pointer
  170. // is null.
  171. // ippStsSizeErr Indicates an error when height or width is less than
  172. // or equal to 0.
  173. // ippStsStrideErr Indicates an error when width > step.
  174. //
  175. */
  176. IPPAPI(IppStatus, ippsSumColumn_16s32s_D2Sfs,(const Ipp16s* pSrc, int step,
  177. int height, Ipp32s* pDst, int width, int scaleFactor))
  178. IPPAPI(IppStatus, ippsSumColumn_16s32f_D2,(const Ipp16s* pSrc, int step,
  179. int height, Ipp32f* pDst, int width))
  180. IPPAPI(IppStatus, ippsSumColumn_16s32s_D2LSfs,(const Ipp16s** mSrc, int height,
  181. Ipp32s* pDst, int width, int scaleFactor))
  182. IPPAPI(IppStatus, ippsSumColumn_16s32f_D2L,(const Ipp16s** mSrc, int height,
  183. Ipp32f* pDst, int width))
  184. IPPAPI(IppStatus, ippsSumColumn_32f_D2,(const Ipp32f* pSrc, int step,
  185. int height, Ipp32f* pDst, int width))
  186. IPPAPI(IppStatus, ippsSumColumn_64f_D2,(const Ipp64f* pSrc, int step,
  187. int height, Ipp64f* pDst, int width))
  188. IPPAPI(IppStatus, ippsSumColumn_32f_D2L,(const Ipp32f** mSrc, int height,
  189. Ipp32f* pDst, int width))
  190. IPPAPI(IppStatus, ippsSumColumn_64f_D2L,(const Ipp64f** mSrc, int height,
  191. Ipp64f* pDst, int width))
  192. /* /////////////////////////////////////////////////////////////////////////////
  193. // Name: ippsSumRow_*
  194. // Purpose: Computes the sum of a list of vectors row-wise.
  195. // Parameters:
  196. // pSrc Pointer to the input vector [height*step].
  197. // mSrc Pointer to the input matrix [height][width].
  198. // height The number of rows in the matrix mSrc and also the length
  199. // of the output vector pDst.
  200. // step The row step in input vector pSrc.
  201. // pDst Pointer to the output vector [height].
  202. // width The number of columns in the matrix mSrc.
  203. // scaleFactor
  204. //
  205. // Returns:
  206. // ippStsNoErr Indicates no error.
  207. // ippStsNullPtrErr Indicates an error when pSrc, mSrc, or pDst pointer
  208. // is null.
  209. // ippStsSizeErr Indicates an error when height or srcWidth is less than
  210. // or equal to 0.
  211. // ippStsStrideErr Indicates an error when srcWidth > step.
  212. //
  213. */
  214. IPPAPI(IppStatus, ippsSumRow_32f_D2,(const Ipp32f* pSrc, int width,
  215. int step, Ipp32f* pDst, int height))
  216. IPPAPI(IppStatus, ippsSumRow_64f_D2,(const Ipp64f* pSrc, int width,
  217. int step, Ipp64f* pDst, int height))
  218. IPPAPI(IppStatus, ippsSumRow_32f_D2L,(const Ipp32f** mSrc, int width,
  219. Ipp32f* pDst, int height))
  220. IPPAPI(IppStatus, ippsSumRow_64f_D2L,(const Ipp64f** mSrc, int width,
  221. Ipp64f* pDst, int height))
  222. IPPAPI(IppStatus, ippsSumRow_16s32s_D2Sfs,(const Ipp16s* pSrc, int width,
  223. int step, Ipp32s* pDst, int height, int scaleFactor))
  224. IPPAPI(IppStatus, ippsSumRow_16s32f_D2,(const Ipp16s* pSrc, int width,
  225. int step, Ipp32f* pDst, int height))
  226. IPPAPI(IppStatus, ippsSumRow_16s32s_D2LSfs,(const Ipp16s** mSrc, int width,
  227. Ipp32s* pDst, int height, int scaleFactor))
  228. IPPAPI(IppStatus, ippsSumRow_16s32f_D2L,(const Ipp16s** mSrc, int width,
  229. Ipp32f* pDst, int height))
  230. /* /////////////////////////////////////////////////////////////////////////////
  231. // Name: ippsSubRow_*
  232. // Purpose: Subtracts a vector from all matrix rows.
  233. // Parameters:
  234. // pSrc Pointer to the input vector [width].
  235. // pSrcDst Pointer to the the source and destination vector
  236. // [height*dstStep].
  237. // mSrcDst Pointer to the source and destination matrix
  238. // [height][width].
  239. // width The number of columns in the matrix mSrcDst.
  240. // dstStep The row step in the vector pSrcDst.
  241. // height The number of rows in the matrix mSrcDst.
  242. //
  243. // Returns:
  244. // ippStsNoErr Indicates no error.
  245. // ippStsNullPtrErr Indicates an error when the pSrc, pSrcDst, or mSrcDst
  246. // pointer is null.
  247. // ippStsSizeErr Indicates an error when height or width is less than or
  248. // equal to 0.
  249. // ippStsStrideErr Indicates an error when width > dstStep.
  250. //
  251. */
  252. IPPAPI(IppStatus, ippsSubRow_32f_D2, (const Ipp32f* pSrc, int width,
  253. Ipp32f* pSrcDst, int dstStep, int height))
  254. IPPAPI(IppStatus, ippsSubRow_32f_D2L, (const Ipp32f* pSrc, Ipp32f** mSrcDst,
  255. int width, int height))
  256. IPPAPI(IppStatus, ippsSubRow_16s_D2,(const Ipp16s* pSrc, int width,
  257. Ipp16s* pSrcDst, int dstStep, int height))
  258. IPPAPI(IppStatus, ippsSubRow_16s_D2L,(const Ipp16s* pSrc, Ipp16s** mSrcDst,
  259. int width, int height))
  260. /*///////////////////////////////////////////////////////////////////////////////
  261. // Name: ippsCopyColumn_Indirect_*
  262. // Purpose: Copies the input matrix with columns redirection.
  263. // Parameters:
  264. // pSrc Pointer to the input vector [height*srcStep].
  265. // mSrc Pointer to the input matrix [height][srcLen].
  266. // srcLen The number of columns in the input matrix mSrc.
  267. // srcStep The row step in pSrc
  268. // pDst Pointer to the output vector [height*dstStep]
  269. // mDst Pointer to the output matrix [height][dstLen]
  270. // pIndx Pointer to the redirection vector [dstLen]
  271. // dstLen The number of columns in the output matrix mDst
  272. // dstStep The row step in pDst
  273. // height The number of rows in both the input and output matrices.
  274. // Return:
  275. // ippStsNoErr Indicates no error.
  276. // ippStsNullPtrErr Indicates an error when the pSrc, mSrc, pDst, mDst or
  277. // pIndx pointer is null.
  278. // ippStsSizeErr Indicates an error when height, srcLen, or dstLen is less
  279. // than or equal to 0,
  280. // pIndx[j]>=srcLen or pIndx[j]<0 for j=0,:,dstlen-1
  281. // ippStsStrideErr Indicates an error when srcLen > srcStep, dstLen > dstStep.
  282. //
  283. */
  284. IPPAPI(IppStatus, ippsCopyColumn_Indirect_64f_D2, (const Ipp64f* pSrc,
  285. int srcLen, int srcStep, Ipp64f* pDst, const Ipp32s* pIndx, int dstLen,
  286. int dstStep, int height))
  287. IPPAPI(IppStatus, ippsCopyColumn_Indirect_32f_D2, (const Ipp32f* pSrc,
  288. int srcLen, int srcStep, Ipp32f* pDst, const Ipp32s* pIndx, int dstLen,
  289. int dstStep, int height))
  290. IPPAPI(IppStatus, ippsCopyColumn_Indirect_16s_D2, (const Ipp16s* pSrc,
  291. int srcLen, int srcStep, Ipp16s* pDst, const Ipp32s* pIndx, int dstLen,
  292. int dstStep, int height))
  293. IPPAPI(IppStatus, ippsCopyColumn_Indirect_64f_D2L, (const Ipp64f** mSrc,
  294. int srcLen, Ipp64f** mDst, const Ipp32s* pIndx, int dstLen, int height))
  295. IPPAPI(IppStatus, ippsCopyColumn_Indirect_32f_D2L, (const Ipp32f** mSrc,
  296. int srcLen, Ipp32f** mDst, const Ipp32s* pIndx, int dstLen, int height))
  297. IPPAPI(IppStatus, ippsCopyColumn_Indirect_16s_D2L, (const Ipp16s** mSrc,
  298. int srcLen, Ipp16s** mDst, const Ipp32s* pIndx, int dstLen, int height))
  299. /*///////////////////////////////////////////////////////////////////////////////
  300. // Name: ippsBlockDMatrixInitAlloc_*
  301. // Purpose: Initializes the structure that represents a symmetric
  302. // block diagonal matrix.
  303. // Parameters:
  304. // pMatrix Pointer to the block diagonal matrix to be created.
  305. // mSrc Pointer to the vector of pointers to matrix rows.
  306. // bSize Pointer to vector of block sizes [nBlocks].
  307. // nBlocks Number of blocks.
  308. // Return:
  309. // ippStsNoErr Indicates no error.
  310. // ippStsNullPtrErr Indicates an error when the pMatrix or mSrc pointer is null.
  311. // ippStsSizeErr Indicates an error when bSize or nBlocks is less than or
  312. // equal to 0
  313. // ippStsMemAllocErr Indicates an error when no memory allocated.
  314. //
  315. */
  316. IPPAPI(IppStatus, ippsBlockDMatrixInitAlloc_64f,(IppsBlockDMatrix_64f** pMatrix,
  317. const Ipp64f** mSrc, const int* bSize, int nBlocks))
  318. IPPAPI(IppStatus, ippsBlockDMatrixInitAlloc_16s,(IppsBlockDMatrix_16s** pMatrix,
  319. const Ipp16s** mSrc, const int* bSize, int nBlocks))
  320. IPPAPI(IppStatus, ippsBlockDMatrixInitAlloc_32f,(IppsBlockDMatrix_32f** pMatrix,
  321. const Ipp32f** mSrc, const int* bSize, int nBlocks))
  322. /*///////////////////////////////////////////////////////////////////////////////
  323. // Name: ippsBlockDMatrixFree_*
  324. // Purpose: Deallocates the block diagonal matrix structure.
  325. //
  326. // Parameters:
  327. // pMatrix Pointer to the block diagonal matrix.
  328. // Return:
  329. // ippStsNoErr Indicates no error.
  330. // ippStsNullPtrErr Indicates an error when the mSrc.
  331. //
  332. */
  333. IPPAPI(IppStatus, ippsBlockDMatrixFree_32f,(IppsBlockDMatrix_32f* pMatrix))
  334. IPPAPI(IppStatus, ippsBlockDMatrixFree_64f,(IppsBlockDMatrix_64f* pMatrix))
  335. IPPAPI(IppStatus, ippsBlockDMatrixFree_16s,(IppsBlockDMatrix_16s* pMatrix))
  336. /* /////////////////////////////////////////////////////////////////////////////
  337. // Feature Processing functions
  338. ///////////////////////////////////////////////////////////////////////////// */
  339. /* /////////////////////////////////////////////////////////////////////////////
  340. // Name: ippsZeroMean_16s
  341. // Purpose: Subtracts the mean value from all elements of
  342. // the input vector.
  343. //
  344. // Parameters:
  345. // pSrcDst Pointer to the source and destination vector [len].
  346. // len The number of elements in the vector.
  347. // Return:
  348. // ippStsNoErr Indicates no error.
  349. // ippStsNullPtrErr Indicates an error when the pSrcDst pointer is null.
  350. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  351. //
  352. */
  353. IPPAPI(IppStatus, ippsZeroMean_16s, (Ipp16s *pSrcDst, int len))
  354. /* /////////////////////////////////////////////////////////////////////////////
  355. // Name: ippsCompensateOffset_*
  356. // Purpose: Removes the DC offset of the input signals.
  357. //
  358. // Parameters:
  359. // pSrc Pointer to the source vector[len].
  360. // pDst Pointer to the destination vector[len].
  361. // pSrcDst Pointer to the source and destination vector for in-place
  362. // operations [len].
  363. // pSrcDst0 Pointer to the previous source element.
  364. // pSrc0 Pointer to previous source element. The last source
  365. // element is saved there.
  366. // dst0 Previous destination element.
  367. // val Constant of offset compensation formula.
  368. // len The number of elements in the vector.
  369. // scaleFactor
  370. // Return:
  371. // ippStsNoErr Indicates no error.
  372. // ippStsNullPtrErr Indicates an error when the pSrc or pSrcDst or pDst or
  373. // pSrc0 pointer is null.
  374. // ippStsSizeErr Indicates an error when len is less than or equal to 0
  375. //
  376. */
  377. IPPAPI(IppStatus, ippsCompensateOffset_32f, (const Ipp32f* pSrc, Ipp32f* pDst,
  378. int len, Ipp32f* pSrc0, Ipp32f dst0, Ipp32f val))
  379. IPPAPI(IppStatus, ippsCompensateOffset_16s, (const Ipp16s* pSrc, Ipp16s* pDst,
  380. int len, Ipp16s* pSrcDst0, Ipp16s dst0, Ipp32f val))
  381. IPPAPI(IppStatus, ippsCompensateOffset_32f_I, (Ipp32f* pSrcDst, int len,
  382. Ipp32f* pSrc0, Ipp32f dst0, Ipp32f val))
  383. IPPAPI(IppStatus, ippsCompensateOffset_16s_I, (Ipp16s* pSrcDst, int len,
  384. Ipp16s* pSrcDst0, Ipp16s dst0, Ipp32f val))
  385. IPPAPI(IppStatus, ippsCompensateOffsetQ15_16s, (const Ipp16s* pSrc, Ipp16s* pDst,
  386. int len, Ipp16s* pSrcDst0, Ipp16s dst0, Ipp16s valQ15))
  387. IPPAPI(IppStatus, ippsCompensateOffsetQ15_16s_I, (Ipp16s* pSrcDst, int len,
  388. Ipp16s* pSrc0, Ipp16s dst0, Ipp16s valQ15))
  389. /* /////////////////////////////////////////////////////////////////////////////
  390. // Name: ippsSignChangeRate_*
  391. // Purpose: Counts the zero-cross rate for the input signal.
  392. //
  393. // Parameters:
  394. // pSrc Pointer to the input signal [len].
  395. // len Number of elements in the input signal.
  396. // pRes Pointer to the result variable.
  397. // Return:
  398. // ippStsNoErr Indicates no error.
  399. // ippStsNullPtrErr Indicates an error when the pSrc or pRes pointer is null.
  400. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  401. //
  402. */
  403. IPPAPI(IppStatus, ippsSignChangeRate_16s,(const Ipp16s* pSrc, int len,
  404. Ipp32s* pRes))
  405. IPPAPI(IppStatus, ippsSignChangeRate_32f,(const Ipp32f* pSrc, int len,
  406. Ipp32f* pRes))
  407. IPPAPI(IppStatus, ippsSignChangeRateXor_32f,(const Ipp32f* pSrc, int len,
  408. Ipp32s* pRes))
  409. IPPAPI(IppStatus, ippsSignChangeRate_Count0_16s,(const Ipp16s* pSrc, int len,
  410. Ipp32s* pRes))
  411. IPPAPI(IppStatus, ippsSignChangeRate_Count0_32f,(const Ipp32f* pSrc, int len,
  412. Ipp32f* pRes))
  413. /* /////////////////////////////////////////////////////////////////////////////
  414. // Name: ippsLinearPrediction_*
  415. // Purpose: Performs linear prediction analysis on the input vector.
  416. //
  417. // Parameters:
  418. // pSrc Pointer to the input vector [lenSrc]
  419. // lenSrc Length of the input vector pSrc.
  420. // pDst Pointer to the output LPC coefficients vector [lenDst].
  421. // lenDst Length of the output vector pDst.
  422. // scaleFactor
  423. // Return:
  424. // ippStsNoErr Indicates no error.
  425. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  426. // ippStsSizeErr Indicates an error when lenSrc or lenDst is less than or
  427. // equal to 0, lenDst is greater or equal than lenSrc.
  428. // ippStsNoOperation Indicates no solution to the LPC problem.
  429. //
  430. */
  431. IPPAPI(IppStatus, ippsLinearPrediction_Cov_32f,(const Ipp32f *pSrc, int lenSrc,
  432. Ipp32f *pDst, int lenDst))
  433. IPPAPI(IppStatus, ippsLinearPrediction_Cov_16s_Sfs,(const Ipp16s* pSrc, int lenSrc,
  434. Ipp16s* pDst, int lenDst, int scaleFactor))
  435. IPPAPI(IppStatus, ippsLinearPrediction_Auto_32f,(const Ipp32f *pSrc, int lenSrc,
  436. Ipp32f *pDst, int lenDst))
  437. IPPAPI(IppStatus, ippsLinearPrediction_Auto_16s_Sfs,(const Ipp16s* pSrc, int lenSrc,
  438. Ipp16s* pDst, int lenDst, int scaleFactor))
  439. /* /////////////////////////////////////////////////////////////////////////////
  440. // Name: ippsLinearPredictionNeg_Auto_*
  441. // Purpose: Performs linear prediction analysis on the input vector.
  442. // The same formula as ippsLinearPrediction_Auto with -r[k] in the right part
  443. //
  444. // Parameters:
  445. // pSrc Pointer to the input vector [lenSrc]
  446. // lenSrc Length of the input vector pSrc.
  447. // pDst Pointer to the output LPC coefficients vector [lenDst].
  448. // lenDst Length of the output vector pDst.
  449. // scaleFactor
  450. // Return:
  451. // ippStsNoErr Indicates no error.
  452. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  453. // ippStsSizeErr Indicates an error when lenSrc or lenDst is less than or
  454. // equal to 0, lenDst is greater or equal than lenSrc.
  455. // ippStsNoOperation Indicates no solution to the LPC problem.
  456. //
  457. */
  458. IPPAPI(IppStatus, ippsLinearPredictionNeg_Auto_32f,(const float *pSrc,int lenSrc,float *pDst,
  459. int lenDst))
  460. IPPAPI(IppStatus, ippsLinearPredictionNeg_Auto_16s_Sfs, (const Ipp16s* pSrc, int lenSrc,
  461. Ipp16s* pDst, int lenDst, int scaleFactor))
  462. /* /////////////////////////////////////////////////////////////////////////////
  463. // Name: ippsDurbin_*
  464. // Purpose: Performs Durbin's recursion on an input vector
  465. // of autocorrelations.
  466. // Parameters:
  467. // pSrc Pointer to the input vector [ len+1].
  468. // pDst Pointer to the output LPC coefficients vector [len].
  469. // len Length of the input and output vectors.
  470. // pErr Pointer to the residual prediction error.
  471. // scaleFactor
  472. // Return:
  473. // ippStsNoErr Indicates no error.
  474. // ippStsNullPtrErr Indicates an error when the pSrc or pDst or pErr
  475. // pointer is null.
  476. // ippStsSizeErr Indicates an error when lenis less than or equal to 0
  477. // ippStsMemAllocErr memory alllocation error
  478. // ippStsNoOperation ndicates no solution to the LPC problem.
  479. //
  480. */
  481. IPPAPI(IppStatus, ippsDurbin_32f,(const Ipp32f *pSrc, Ipp32f *pDst, int lenDst,
  482. Ipp32f* pErr))
  483. IPPAPI(IppStatus, ippsDurbin_16s_Sfs,(const Ipp16s* pSrc, Ipp16s* pDst,
  484. int lenDst,Ipp32f* pErr, int scaleFactor))
  485. /* /////////////////////////////////////////////////////////////////////////////
  486. // Name: ippsLPToCepstrum_*
  487. // Purpose: Calculates cepstrum coefficients from linear
  488. // prediction coefficients.
  489. // Parameters:
  490. // pSrc Pointer to the linear prediction coefficients [len].
  491. // pDst Pointer to the cepstrum coefficients [len].
  492. // len Number of elements in the source and destination vectors.
  493. // scaleFactor
  494. // Return:
  495. // ippStsNoErr Indicates no error.
  496. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  497. // ippStsSizeErr Indicates an error when len is less than or equal to 0
  498. //
  499. */
  500. IPPAPI(IppStatus, ippsLPToCepstrum_32f,(const Ipp32f* pSrc, Ipp32f* pDst,
  501. int len))
  502. IPPAPI(IppStatus, ippsLPToCepstrum_16s_Sfs,(const Ipp16s* pSrc, Ipp16s* pDst,
  503. int len, int scaleFactor))
  504. /* /////////////////////////////////////////////////////////////////////////////
  505. // Name: ippsCepstrumToLP_*
  506. // Purpose: Calculates linear prediction coefficients from
  507. // cepstrum coefficients.
  508. // Parameters:
  509. // pSrc Pointer to the cepstrum coefficients [len].
  510. // pDst Pointer to the linear prediction coefficients [len].
  511. // len Number of elements in the source and destination vectors.
  512. // scaleFactor
  513. // Return:
  514. // ippStsNoErr Indicates no error.
  515. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  516. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  517. //
  518. */
  519. IPPAPI(IppStatus, ippsCepstrumToLP_32f,(const Ipp32f* pSrc, Ipp32f* pDst,
  520. int len))
  521. IPPAPI(IppStatus, ippsCepstrumToLP_16s_Sfs,(const Ipp16s* pSrc, Ipp16s* pDst,
  522. int len, int scaleFactor))
  523. /* /////////////////////////////////////////////////////////////////////////////
  524. // Name: ippsLPToReflection_*
  525. // Purpose: Calculates the linear prediction reflection
  526. // coefficients from the linear prediction coefficients.
  527. // Parameters:
  528. // pSrc Pointer to the linear prediction coefficients [len].
  529. // pDst Pointer to the linear prediction reflection coefficients [len].
  530. // len Number of elements in the source and destination vectors.
  531. // scaleFactor
  532. // Return:
  533. // ippStsNoErr Indicates no error.
  534. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  535. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  536. // ippStsNoOperation Indicates that reflection coefficients could not be calculated
  537. //
  538. */
  539. IPPAPI(IppStatus, ippsLPToReflection_32f,(const Ipp32f* pSrc, Ipp32f* pDst,
  540. int len))
  541. IPPAPI(IppStatus, ippsLPToReflection_16s_Sfs,(const Ipp16s* pSrc, Ipp16s* pDst,
  542. int len, int scaleFactor))
  543. /* /////////////////////////////////////////////////////////////////////////////
  544. // Name: ippsDTW_L2_32f_D2L*
  545. // Purpose: Computes the distance between observation and reference vector
  546. // sequences using Dynamic Time Warping algorithm.
  547. //
  548. // Parameters:
  549. // pSrc1 Pointer to the first input (observation) vector [height1*step].
  550. // pSrc2 Pointer to the second input (reference) vector [height2*step].
  551. // mSrc1 Pointer to the first input (observation) matrix [height1][width].
  552. // mSrc2 Pointer to the second input (reference) matrix [height2][width].
  553. // height1 Number of rows in the first input matrix N1.
  554. // height2 Number of rows in the first input matrix N2.
  555. // width Length of the input matrices row M.
  556. // step Row step in pSrc1 and pSrc2.
  557. // pDist Pointer to the distance value.
  558. // beam Beam value, used if positive.
  559. // delta Endpoint constraint value.
  560. // scaleFactor Scale factor for input values .
  561. // Return Value
  562. // ippStsNoErr Indicates no error.
  563. // ippStsNullPtrErr Indicates an error when the pSrc1, pSrc2, mSrc1, mSrc2, or pDist pointer is null.
  564. // ippStsSizeErr Indicates an error when height1, height2, or width is less than or equal to 0 or delta is less than 0 or greater than height2.
  565. // ippStsStrideErr Indicates an error when step is less than width.
  566. // ippStsLPCCalcErr Indicates that there are now admissible paths for height1, height2 and delta values.
  567. */
  568. IPPAPI(IppStatus, ippsDTW_L2_32f_D2L,(const Ipp32f** mSrc1, int height1,
  569. const Ipp32f** mSrc2, int height2,
  570. int width, Ipp32f* pDist, int delta,
  571. Ipp32f beam))
  572. IPPAPI(IppStatus, ippsDTW_L2_32f_D2,(const Ipp32f* mSrc1, int height1,
  573. const Ipp32f* mSrc2, int height2,
  574. int width, int step, Ipp32f* pDist, int delta,
  575. Ipp32f beam))
  576. IPPAPI(IppStatus, ippsDTW_L2_8u32s_D2Sfs,(const Ipp8u* pSrc1, int height1,
  577. const Ipp8u* pSrc2, int height2,
  578. int width, int step, Ipp32s* pDist, int delta,
  579. Ipp32s beam, int scaleFactor))
  580. IPPAPI(IppStatus, ippsDTW_L2_8u32s_D2LSfs,(const Ipp8u** mSrc1, int height1,
  581. const Ipp8u** mSrc2, int height2,
  582. int width, Ipp32s* pDist, int delta,
  583. Ipp32s beam, int scaleFactor))
  584. IPPAPI(IppStatus, ippsDTW_L2Low_16s32s_D2Sfs,(const Ipp16s* pSrc1, int height1,
  585. const Ipp16s* pSrc2, int height2,
  586. int width, int step, Ipp32s* pDist, int delta,
  587. Ipp32s beam, int scaleFactor))
  588. IPPAPI(IppStatus, ippsDTW_L2Low_16s32s_D2LSfs,(const Ipp16s** mSrc1, int height1,
  589. const Ipp16s** mSrc2, int height2,
  590. int width, Ipp32s* pDist, int delta,
  591. Ipp32s beam, int scaleFactor))
  592. /* /////////////////////////////////////////////////////////////////////////////
  593. // Name: ippsSchur_*
  594. // Purpose: Schur's recursion for an input vector of
  595. // autocorrelations.
  596. //
  597. // Parameters:
  598. // pSrc Pointer to the input autocorrelations vector [len+1].
  599. // pDst Pointer to the output reflection coefficients vector [len].
  600. // len Length of the output vectors.
  601. // pErr Pointer to the resulting prediction error.
  602. // scaleFactor
  603. // Return:
  604. // ippStsNoErr Indicates no error.
  605. // ippStsNullPtrErr Indicates an error when the pSrc or pDst or pErr pointer
  606. // is null.
  607. // ippStsSizeErr Indicates an error when lenSrc or lenDst is less than or
  608. // equal to 0 or pSrc < pDst.
  609. // ippStsMemAllocErr memory alllocation error
  610. // ippStsDivByZeroErr Indicates no solution to the LPC problem
  611. */
  612. IPPAPI(IppStatus, ippsSchur_32f,(const Ipp32f* pSrc, Ipp32f* pDst, int len, Ipp32f* pErr))
  613. IPPAPI(IppStatus, ippsSchur_16s_Sfs,(const Ipp16s* pSrc, Ipp16s* pDst, int len,
  614. Ipp32f* pErr,int scaleFactor))
  615. /* /////////////////////////////////////////////////////////////////////////////
  616. // Name: ippsReflectionToLP_*
  617. // Purpose: Calculates the linear prediction coefficients from
  618. // the linear prediction reflection coefficients.
  619. // Parameters:
  620. // pSrc Pointer to the linear prediction reflection coefficients [len].
  621. // pDst Pointer to the linear prediction coefficients [len].
  622. // len Number of elements in the source and destination vectors.
  623. // scaleFactor
  624. // Return:
  625. // ippStsNoErr Indicates no error.
  626. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  627. // ippStsSizeErr Indicates an error when len is less than or equal to 0
  628. //
  629. */
  630. IPPAPI(IppStatus, ippsReflectionToLP_32f,(const Ipp32f* pSrc, Ipp32f* pDst,
  631. int len))
  632. IPPAPI(IppStatus, ippsReflectionToLP_16s_Sfs,(const Ipp16s* pSrc, Ipp16s* pDst,
  633. int len, int scaleFactor))
  634. /*/////////////////////////////////////////////////////////////////////////////
  635. // Name: ippsReflectionToAR_*
  636. // ippsReflectionToLAR_*
  637. // ippsReflectionToTrueAR_*
  638. // Purpose: Converts reflection coefficients to area ratios.
  639. //
  640. // Parameters:
  641. // pSrc Pointer to the input vector [len].
  642. // pDst Pointer to the destination vector [len].
  643. // val Threshold value ( 0 < val < 1 ).
  644. // len Length of the input and output vectors.
  645. //
  646. // Returns:
  647. // ippStsNoErr Indicates no error.
  648. // ippStsNullPtrErr Indicates an error when the pSrc or pDst
  649. // pointer is null.
  650. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  651. // ippStsDivByZero Indicates a warning for zero-valued divisor vector
  652. // element. Operation execution is not aborted. The value of
  653. // the destination vector element in the floating-point
  654. // operations +Inf. The value of the destination vector
  655. // element in the integer operations IPP_MAX_16S.
  656. // ippStsNoOperation Indicates an error when 0<val<1 is not true.
  657. // Notes:
  658. //
  659. */
  660. IPPAPI(IppStatus, ippsReflectionToAR_16s_Sfs, (const Ipp16s* pSrc,
  661. int srcShiftVal, Ipp16s* pDst, int len, int scaleFactor))
  662. IPPAPI(IppStatus, ippsReflectionToAR_32f, (const Ipp32f* pSrc, Ipp32f* pDst,
  663. int len))
  664. IPPAPI(IppStatus, ippsReflectionToLAR_16s_Sfs, (const Ipp16s* pSrc,
  665. int srcShiftVal, Ipp16s* pDst, int len, Ipp32f val, int scaleFactor))
  666. IPPAPI(IppStatus, ippsReflectionToLAR_32f, (const Ipp32f* pSrc,
  667. Ipp32f* pDst, int len, Ipp32f val))
  668. IPPAPI(IppStatus, ippsReflectionToTrueAR_16s_Sfs, (const Ipp16s* pSrc,
  669. int srcShiftVal, Ipp16s* pDst, int len, int scaleFactor))
  670. IPPAPI(IppStatus, ippsReflectionToTrueAR_32f, (const Ipp32f* pSrc,
  671. Ipp32f* pDst, int len))
  672. /*/////////////////////////////////////////////////////////////////////////////
  673. // Name: ippsPitchmarkToF0Cand_*
  674. // Purpose: Calculates rise and fall amplitude and duration for tilt.
  675. //
  676. // Parameters:
  677. // pSrc Pointer to the input vector [len].
  678. // pDst Pointer to the destination vector [len].
  679. // len Length of the input and output vectors.
  680. //
  681. // Returns:
  682. // ippStsNoErr Indicates no error.
  683. // ippStsNullPtrErr Indicates an error when the pSrc or pDst
  684. // pointer is null.
  685. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  686. // ippStsDivByZero Indicates a warning for zero-valued divisor vector
  687. // element. Operation execution is not aborted. The value of
  688. // the destination vector element in the floating-point
  689. // operations +Inf. The value of the destination vector
  690. // element in the integer operations IPP_MAX_16S.
  691. // Notes:
  692. */
  693. IPPAPI(IppStatus, ippsPitchmarkToF0Cand_32f, (const Ipp32f* pSrc,
  694. Ipp32f* pDst, int len))
  695. IPPAPI(IppStatus, ippsPitchmarkToF0Cand_16s_Sfs, (const Ipp16s* pSrc,
  696. Ipp16s* pDst, int len, int scaleFactor))
  697. /* /////////////////////////////////////////////////////////////////////////////
  698. // Name: ippsUnitCurve_*_*
  699. //
  700. // Purpose: Calculates tilt for rise and fall coefficients.
  701. //
  702. // Parameters:
  703. // pSrc Pointer to the input array [len].
  704. // pSrcDst Pointer to the input and destination vector [len].
  705. // pDst Pointer to the output array [len].
  706. // len Number of elements in the input vector.
  707. // srcShiftVal Input scale factor.
  708. // scaleFactor
  709. //
  710. // Return:
  711. // ippStsNoErr Indicates no error.
  712. // ippStsNullPtrErr Indicates an error when the pSrc, pSrcDst or pDst
  713. // pointer is null.
  714. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  715. //
  716. */
  717. IPPAPI(IppStatus, ippsUnitCurve_16s_Sfs, (const Ipp16s* pSrc, int srcShiftVal,
  718. Ipp16s* pDst, int len, int scaleFactor))
  719. IPPAPI(IppStatus, ippsUnitCurve_32f, (const Ipp32f* pSrc,
  720. Ipp32f* pDst, int len))
  721. IPPAPI(IppStatus, ippsUnitCurve_16s_ISfs, (Ipp16s* pSrcDst, int srcShiftVal,
  722. int len, int scaleFactor))
  723. IPPAPI(IppStatus, ippsUnitCurve_32f_I, (Ipp32f* pSrcDst, int len))
  724. /* /////////////////////////////////////////////////////////////////////////////
  725. // Name: ippsLPToLSP_32f
  726. // Purpose: computes linear spectral pairs from LPC (in the cosine domain).
  727. //
  728. // Parameters:
  729. // pSrcLPC Pointer to the input LPC coefficients vector [len].
  730. // pDstLSP Pointer to the output LSP coefficients vector [len].
  731. // len Number of LPC coefficients.
  732. // nRoots Number of found LSP values.
  733. // nInt Number of intervals while roots finding.
  734. // nDiv Number of interval divisions while roots finding.
  735. // inScale Scale factor for pSrcLPC values.
  736. // scaleFactor Scale factor for pDstLSP values .
  737. // srcShiftVal Scale factor for pSrcLP values .
  738. //
  739. // Return:
  740. // ippStsNoErr Indicates no error.
  741. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  742. // ippStsSizeErr Indicates an error when lenSrc or len is less than or equal to 0
  743. // or pSrc < pDst.
  744. // ippStsMemAllocErr memory alllocation error
  745. // ippStsNoRootFoundErr if no decision exists2
  746. */
  747. IPPAPI(IppStatus, ippsLPToLSP_32f,(const Ipp32f* pSrcLPC, Ipp32f* pDstLSP, int len,
  748. int* nRoots,int nInt, int nDiv))
  749. IPPAPI(IppStatus, ippsLPToLSP_16s_Sfs,(const Ipp16s* pSrcLP, int srcShiftVal, Ipp16s* pDstLSP,
  750. int len,int* nRoots,int nInt, int nDiv, int scaleFactor))
  751. /* /////////////////////////////////////////////////////////////////////////////
  752. // Name: ippsLSPToLP_32f
  753. // Purpose: computes linear spectral pairs from LPC (in the cosine domain).
  754. //
  755. // Arguments:
  756. // pDstLPC Pointer to the output LPC coefficients vector [len].
  757. // pSrcLSP Pointer to the input LSP coefficients vector [len].
  758. // len Number of LPC coefficients.
  759. // inScale Scale factor for pSrcLPC values.
  760. // scaleFactor Scale factor for pDstLSP values .
  761. //
  762. // Return Value
  763. // ippStsNoErr Indicates no error.
  764. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  765. // ippStsSizeErr Indicates an error when lenSrc or len is less than or equal to 0
  766. // or pSrc < pDst.
  767. // ippStsMemAllocErr memory alllocation error
  768. */
  769. IPPAPI(IppStatus, ippsLSPToLP_32f,(const Ipp32f* pSrcLSP, Ipp32f* pDstLPC, int len))
  770. IPPAPI(IppStatus, ippsLSPToLP_16s_Sfs,(const Ipp16s* pSrcLSP, int srcShiftVal, Ipp16s* pDstLP,
  771. int len, int scaleFactor))
  772. /* /////////////////////////////////////////////////////////////////////////////
  773. // Name: ippsLPToSpectrum_32f
  774. // Purpose: Computes first half of a LP magnitude spectrum
  775. // ippsLPToSpectrum_32f
  776. // Arguments:
  777. // pSrc Pointer to the input LPC coefficients vector [len].
  778. // pDst Pointer to the output LP spectrum coefficients vector [2order-1].
  779. // len Number of LPC coefficients.
  780. // order FFT order for spectrum calculation.
  781. // val The value of add to spectrum.
  782. // scaleFactor Scale factor for pDst values .
  783. //
  784. // Return Value
  785. // ippStsNoErr Indicates no error.
  786. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  787. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  788. // ippStsFftOrderErr Indicates an error when the order value is incorrect.
  789. // ippStsDivByZero Indicates a warning for zero-valued divisor vector element. Operation
  790. // execution is not aborted. The value of the destination vector element in the floating-point
  791. // operations is equal to +Inf : and in the integer operations is equal to IPP_MAX_16S.
  792. */
  793. IPPAPI(IppStatus, ippsLPToSpectrum_32f,(const Ipp32f *LPCoeffs,int nLP,Ipp32f *pDst,
  794. int lenFFT,Ipp32f val))
  795. IPPAPI(IppStatus, ippsLPToSpectrum_16s_Sfs,(const Ipp16s* pSrc, int len, Ipp16s* pDst, int order,
  796. Ipp32s val, int scaleFactor))
  797. /* /////////////////////////////////////////////////////////////////////////////
  798. // Name: ippsMelToLinear_32f
  799. // Purpose: Converts Mel-scaled values to linear scale values.
  800. //
  801. // Parameters:
  802. // pSrc Pointer to the input vector [len]
  803. // pDst Pointer to the output vector [len]
  804. // len The length of input and output vectors
  805. // melMul Multiply factor in the mel-scale equation
  806. // melDiv Divide factor in the mel-scale equation
  807. //
  808. // Return:
  809. // ippStsNoErr Indicates no error.
  810. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  811. // ippStsSizeErr Indicates an error when len is less than or equal to 0,
  812. // of melMul or melDiv is equal to 0.
  813. */
  814. IPPAPI(IppStatus, ippsMelToLinear_32f,(const Ipp32f* pSrc, Ipp32f* pDst, int len,
  815. Ipp32f melMul, Ipp32f melDiv))
  816. /* /////////////////////////////////////////////////////////////////////////////
  817. // Name: ippsLinearToMel_32f
  818. // Purpose: Converts linear-scale values to Mel-scale values.
  819. //
  820. // Parameters:
  821. // pSrc Pointer to the input vector [len]
  822. // pDst Pointer to the output vector [len]
  823. // len The length of input and output vectors
  824. // melMul Multiply factor in the mel-scale equation
  825. // melDiv Divide factor in the mel-scale equation
  826. //
  827. // Return:
  828. // ippStsNoErr Indicates no error.
  829. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  830. // ippStsSizeErr Indicates an error when len is less than or equal to 0,
  831. // of melMul or melDiv is equal to 0.
  832. //
  833. */
  834. IPPAPI(IppStatus, ippsLinearToMel_32f,(const Ipp32f* pSrc, Ipp32f* pDst, int len,
  835. Ipp32f melMul, Ipp32f melDiv))
  836. /* /////////////////////////////////////////////////////////////////////////////
  837. // Name: ippsCopyWithPadding_*
  838. // Purpose: Copies the input signal to the output with zero padding
  839. // Parameters:
  840. // pSrc Pointer to the input vector [lenSrc]
  841. // pDst Pointer to the output vector [lenDst]
  842. // lenSrc The length of pSrc vector.
  843. // lenDst The length of pDst vector.
  844. //
  845. // Return:
  846. // ippStsNoErr Indicates no error.
  847. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  848. // ippStsSizeErr Indicates an error when lenSrc or lenDst is less than or
  849. // equal to 0 or lenDst is less than lenSrc
  850. */
  851. IPPAPI(IppStatus, ippsCopyWithPadding_16s,(const Ipp16s* pSrc, int lenSrc,
  852. Ipp16s* pDst, int lenDst))
  853. IPPAPI(IppStatus, ippsCopyWithPadding_32f,(const Ipp32f* pSrc, int lenSrc,
  854. Ipp32f* pDst, int lenDst))
  855. /* /////////////////////////////////////////////////////////////////////////////
  856. // Name: IppStatus ippsMelFBankGetSize_* (int winSize,
  857. // int nFilter,
  858. // IppMelMode mode,
  859. // int* pSize))
  860. // IppStatus ippsMelFBankGetSizeLow_Aurora_* (int* pSize)
  861. // IppStatus ippsMelFBankGetSizeHigh_Aurora_* (int* pSize)
  862. //
  863. // Description: Mel-frequency filter bank structure size - this function determines the
  864. // size required for the Mel-frequency filter bank structure and associated
  865. // storage. It should be called before memory allocation and before ippsMelFBankInit_32s.
  866. //
  867. // Input Arguments: winSize - frame length in samples (32 = winSize = 8192).
  868. // sampFreq - input signal sampling frequency Fs in Hz (0 < sampFreq = 48000).
  869. // nFilter - number of Mel-scale filter banks K (0 < nFilter = winSize).
  870. // mode - flag that determines the execution mode. Currently only
  871. // IPP_FBANK_FREQWGT is supported.
  872. //
  873. // Output Arguments:pSize - pointer to the variable to contain the size of the filter bank structure.
  874. //
  875. //
  876. // Returns: ippStsNoErr - No Error.
  877. // ippStsFBankFlagErr - Indicates an error when the mode value is incorrect.
  878. // ippStsNullPtrErr - Indicates an error when pSize pointer is null.
  879. // ippStsSizeErr - Indicates an error when winSize, nFilter, or sampFreq is less than or equal to 0.
  880. //
  881. // Notes:
  882. */
  883. IPPAPI(IppStatus, ippsMelFBankGetSize_32s,(int winSize, int nFilter,
  884. IppMelMode mode, int* pSize))
  885. IPPAPI(IppStatus, ippsMelFBankGetSize_16s,(int winSize, int nFilter,
  886. IppMelMode mode, int* pSize))
  887. IPPAPI(IppStatus, ippsMelFBankGetSize_32f,(int winSize, int nFilter,
  888. IppMelMode mode, int* pSize))
  889. IPPAPI(IppStatus, ippsMelFBankGetSizeLow_Aurora_32f,(int* pSize))
  890. IPPAPI(IppStatus, ippsMelFBankGetSizeHigh_Aurora_32f,(int* pSize))
  891. IPPAPI(IppStatus, ippsMelFBankGetSizeLow_Aurora_16s,(int* pSize))
  892. IPPAPI(IppStatus, ippsMelFBankGetSizeHigh_Aurora_16s,(int* pSize))
  893. /* /////////////////////////////////////////////////////////////////////////////
  894. // Name: ippsMelFBankInitAlloc_*
  895. // Purpose: Initializes the structure for performing the Mel
  896. // frequency filter bank analysis.
  897. // Parameters:
  898. // pFBank Pointer to the Mel-scale filter bank structure to be created.
  899. // pFFTLen Pointer to the order of FFT used for the filter bank evaluation.
  900. // winSize Frame length (samples)
  901. // sampFreq Input signal sampling frequency (in Hz)
  902. // lowFreq Start frequency of the first band pass filter (in Hz)
  903. // highFreq End frequency of the last band pass filter (in Hz)
  904. // nFilter Number of Mel-scale filters banks K.
  905. // melMul Mel-scale formula multiply factor.
  906. // melDiv Mel-scale formula divisor.
  907. // mode Flags that determine the execution mode; can have
  908. // the following values:
  909. // IPP_FBANK_MELWGT - the function calculates filter bank
  910. // weights in Mel-scale;
  911. // IPP_FBANK_FREQWGT - the function calculates filter bank
  912. // weights in the frequency space.
  913. // One of the above two flags should necessarily be set.
  914. // IPP_POWER_SPECTRUM - indicates that the FFT power
  915. // spectrum is used during the filter bank analysis.
  916. // Return:
  917. // ippStsNoErr Indicates no error.
  918. // ippStsNullPtrErr Indicates an error when pFBank or pFFTLen pointer is null.
  919. // ippStsSizeErr Indicates an error when winSize, nFilter, sampFreq, or
  920. // lowFreqis less than or equal to 0.
  921. // ippStsFBankFreqErr Indicates an error when highFreqis less than lowFreqor
  922. // highFreq is greater than sampFreq/2.
  923. // ippStsFBankFlagErr Indicates an error when the modevalue is incorrect.
  924. // ippStsMemAllocErr Indicates an error when no memory was allocated.
  925. //
  926. */
  927. IPPAPI(IppStatus, ippsMelFBankInitAlloc_16s,(IppsFBankState_16s** pFBank,
  928. int* pFFTLen, int winSize, Ipp32f sampFreq, Ipp32f lowFreq,
  929. Ipp32f highFreq, int nFilter, Ipp32f melMul, Ipp32f melDiv,
  930. IppMelMode mode))
  931. IPPAPI(IppStatus, ippsMelFBankInitAlloc_32f,(IppsFBankState_32f** pFBank,
  932. int* pFFTLen, int winSize, Ipp32f sampFreq, Ipp32f lowFreq,
  933. Ipp32f highFreq, int nFilter, Ipp32f melMul, Ipp32f melDiv,
  934. IppMelMode mode))
  935. IPPAPI(IppStatus, ippsMelFBankInitAllocLow_Aurora_32f,(IppsFBankState_32f** pFBank))
  936. IPPAPI(IppStatus, ippsMelFBankInitAllocHigh_Aurora_32f,(IppsFBankState_32f** pFBank))
  937. IPPAPI(IppStatus, ippsMelFBankInitAllocLow_Aurora_16s,(IppsFBankState_16s** pFBank))
  938. IPPAPI(IppStatus, ippsMelFBankInitAllocHigh_Aurora_16s,(IppsFBankState_16s** pFBank))
  939. /* /////////////////////////////////////////////////////////////////////////////
  940. // Name: ippsMelFBankInit_*
  941. // Purpose: Initializes the structure for performing the Mel
  942. // frequency filter bank analysis.
  943. // Parameters:
  944. // pFBank Pointer to the Mel-scale filter bank structure to be created.
  945. // pFFTLen Pointer to the order of FFT used for the filter bank evaluation.
  946. // winSize Frame length (samples)
  947. // sampFreq Input signal sampling frequency (in Hz)
  948. // lowFreq Start frequency of the first band pass filter (in Hz)
  949. // highFreq End frequency of the last band pass filter (in Hz)
  950. // nFilter Number of Mel-scale filters banks K.
  951. // melMul Mel-scale formula multiply factor.
  952. // melDiv Mel-scale formula divisor.
  953. // mode Flags that determine the execution mode; can have
  954. // the following values:
  955. // IPP_FBANK_MELWGT - the function calculates filter bank
  956. // weights in Mel-scale;
  957. // IPP_FBANK_FREQWGT - the function calculates filter bank
  958. // weights in the frequency space.
  959. // One of the above two flags should necessarily be set.
  960. // IPP_POWER_SPECTRUM - indicates that the FFT power
  961. // spectrum is used during the filter bank analysis.
  962. // Return:
  963. // ippStsNoErr Indicates no error.
  964. // ippStsNullPtrErr Indicates an error when pFBank or pFFTLen pointer is null.
  965. // ippStsSizeErr Indicates an error when winSize, nFilter, sampFreq, or
  966. // lowFreqis less than or equal to 0.
  967. // ippStsFBankFreqErr Indicates an error when highFreqis less than lowFreqor
  968. // highFreq is greater than sampFreq/2.
  969. // ippStsFBankFlagErr Indicates an error when the modevalue is incorrect.
  970. // ippStsMemAllocErr Indicates an error when no memory was allocated.
  971. //
  972. */
  973. IPPAPI(IppStatus, ippsMelFBankInit_32s,(IppsFBankState_32s* pFBank,
  974. int* pFFTLen, int winSize, Ipp32s sampFreq,
  975. Ipp32s lowFreq, Ipp32s highFreq, int nFilter,
  976. Ipp32s melMulQ15, Ipp32s melDivQ15, IppMelMode mode))
  977. IPPAPI(IppStatus, ippsMelFBankInit_16s,(IppsFBankState_16s* pFBank,
  978. int* pFFTLen, int winSize, Ipp32f sampFreq, Ipp32f lowFreq,
  979. Ipp32f highFreq, int nFilter, Ipp32f melMul, Ipp32f melDiv,
  980. IppMelMode mode))
  981. IPPAPI(IppStatus, ippsMelFBankInit_32f,(IppsFBankState_32f* pFBank,
  982. int* pFFTLen, int winSize, Ipp32f sampFreq, Ipp32f lowFreq,
  983. Ipp32f highFreq, int nFilter, Ipp32f melMul, Ipp32f melDiv,
  984. IppMelMode mode))
  985. IPPAPI(IppStatus, ippsMelFBankInitLow_Aurora_32f,(IppsFBankState_32f* pFBank))
  986. IPPAPI(IppStatus, ippsMelFBankInitHigh_Aurora_32f,(IppsFBankState_32f* pFBank))
  987. IPPAPI(IppStatus, ippsMelFBankInitLow_Aurora_16s,(IppsFBankState_16s* pFBank))
  988. IPPAPI(IppStatus, ippsMelFBankInitHigh_Aurora_16s,(IppsFBankState_16s* pFBank))
  989. /* /////////////////////////////////////////////////////////////////////////////
  990. // Name: ippsMelLinFBankInitAlloc_*
  991. // Purpose: Initializes the linear and mel-frequency filter banks
  992. // Parameters:
  993. // pFBank Pointer to the mel scale filter bank structure to be created.
  994. // FFTLen Pointer to the length of FFT N used for filter bank evaluation.
  995. // winSize Frame length (samples)
  996. // sampFreq Input signal sampling frequency (in Hz)
  997. // lowFreq Start frequency of the first band pass filter (in Hz)
  998. // highLinFreq End frequency of the last band pass filter on linear
  999. // scale (in Hz)
  1000. // highFreq End frequency of the last band pass filter (in Hz)
  1001. // nFilter Number of Mel-scale filters in the filter bank
  1002. // nLinFilter umber of Linear-scale filters in the filter bank
  1003. // melMul Mel scale formula factor
  1004. // melDiv Mel scale formula divisor
  1005. // mode One of the following values:
  1006. // IPP_FBANK_MELWGT - calculate fbank weights in Mel-scale
  1007. // IPP_FBANK_FREQWGT - calculate fbank weights in
  1008. // frequency space
  1009. // IPP_POWER_SPECTRUM - indicates that FFT power logarithm
  1010. // of input signal is calculated before filter bank
  1011. // evaluation by ippsEvalFBank function.
  1012. // Corresponding internal structures are initialized in
  1013. // the result filter bank structure.
  1014. //
  1015. // Return:
  1016. // ippStsNoErr Indicates no error.
  1017. // ippStsSizeErr Indicates an error when winSize, nFilter, nLinFilter,
  1018. // freq, lowFreq is less than or equal to 0 or nLinFilter
  1019. // is greater than nFilter;
  1020. // ippStsFBankFreqErr Indicates an error when (lowFreq > highlinFreq)
  1021. // or (highlinFreq > highFreq) or (highFreq > sampFreq/2)
  1022. // or (highLinFreq> lowFreq)&&(nLinFilter==0)
  1023. // or (highLinFreq< highFreq)&&(nLinFilter==nFilter)
  1024. // ippStsFBankFlagErr Indicates an error when the mode value is incorrect.
  1025. // ippStsMemAllocErr Indicates an error when no memory allocated.
  1026. */
  1027. IPPAPI(IppStatus, ippsMelLinFBankInitAlloc_32f,(IppsFBankState_32f** pFBank,
  1028. int* pFFTLen, int winSize, Ipp32f sampFreq, Ipp32f lowFreq,
  1029. Ipp32f highFreq, int nFilter, Ipp32f highLinFreq, int nLinFilter,
  1030. Ipp32f melMul, Ipp32f melDiv, IppMelMode mode))
  1031. IPPAPI(IppStatus, ippsMelLinFBankInitAlloc_16s,(IppsFBankState_16s** pFBank,
  1032. int* pFFTLen, int winSize, Ipp32f sampFreq, Ipp32f lowFreq,
  1033. Ipp32f highFreq, int nFilter, Ipp32f highLinFreq, int nLinFilter,
  1034. Ipp32f melMul, Ipp32f melDiv, IppMelMode mode))
  1035. /* /////////////////////////////////////////////////////////////////////////////
  1036. // Name: ippsEmptyFBankInitAlloc_*
  1037. // Purpose: Initializes an empty filter bank structure.
  1038. // Parameters:
  1039. // pFBank Pointer to the filter bank structure to be created.
  1040. // pFFTLen Pointer to the order of FFT used for the
  1041. // filter bank evaluation.
  1042. // winSize Frame length (samples)
  1043. // nFilter Number of filters banks K.
  1044. // mode Flag determining the function's execution mode; can have
  1045. // the following value:
  1046. // IPP_POWER_SPECTRUM - indicates that the logarithm of the
  1047. // FFT power spectrum is used during the filter
  1048. // bank analysis.
  1049. //
  1050. // Return:
  1051. // ippStsNoErr Indicates no error.
  1052. // ippStsNullPtrErr Indicates an error when pFBank or pFFTLen pointer is null.
  1053. // ippStsSizeErr Indicates an error when winSize or nFilter or pFBank
  1054. // is less than or equal to 0;
  1055. // ippStsMemAllocErr Indicates an error when no memory allocated.
  1056. //
  1057. */
  1058. IPPAPI(IppStatus, ippsEmptyFBankInitAlloc_32f,(IppsFBankState_32f** pFBank, int* pFFTLen,
  1059. int winSize, int nFilter, IppMelMode mode))
  1060. IPPAPI(IppStatus, ippsEmptyFBankInitAlloc_16s,(IppsFBankState_16s** pFBank, int* pFFTLen,
  1061. int winSize, int nFilter, IppMelMode mode))
  1062. /* /////////////////////////////////////////////////////////////////////////////
  1063. // Name: ippsFBankFree_*
  1064. // Purpose: Destroys the structure for the filter bank analysis.
  1065. // Parameters:
  1066. // pFBank Pointer to the filter bank structure.
  1067. //
  1068. // Return:
  1069. // ippStsNoErr Indicates no error.
  1070. // ippStsNullPtrErr Indicates an error when the pFBank pointer is null.
  1071. */
  1072. IPPAPI(IppStatus, ippsFBankFree_16s,(IppsFBankState_16s* pFBank))
  1073. IPPAPI(IppStatus, ippsFBankFree_32f,(IppsFBankState_32f* pFBank))
  1074. /* /////////////////////////////////////////////////////////////////////////////
  1075. // Name: ippsFBankGetCenters_*
  1076. // Purpose: Retrieves the center frequencies of the
  1077. // triangular filter banks.
  1078. // Parameters:
  1079. // pFBank Pointer to the filter bank structure.
  1080. // pCenters Pointer to the output vector that contains the center
  1081. // frequencies.
  1082. //
  1083. // Return:
  1084. // ippStsNoErr Indicates no error.
  1085. // ippStsNullPtrErr Indicates an error when the pFBank or pCenters pointer is null.
  1086. // ippStsFBankErr Indicates an error when filter centers are not valid after filter
  1087. // bank initialization by ippsEmptyFBankInitAlloc function.
  1088. //
  1089. */
  1090. IPPAPI(IppStatus, ippsFBankGetCenters_32f,(const IppsFBankState_32f* pFBank, int* pCenters))
  1091. IPPAPI(IppStatus, ippsFBankGetCenters_16s,(const IppsFBankState_16s* pFBank, int* pCenters))
  1092. /* /////////////////////////////////////////////////////////////////////////////
  1093. // Name: ippsFBankSetCenters_*
  1094. // Purpose: Sets the center frequencies of the
  1095. // triangular filter banks.
  1096. // Parameters:
  1097. // pFBank Pointer to the filter bank structure
  1098. // pCenters Pointer to the vector that contains center frequencies.
  1099. //
  1100. // Return:
  1101. // ippStsNoErr Indicates no error.
  1102. // ippStsNullPtrErr Indicates an error when the pFBank or pCenters pointer is null.
  1103. //
  1104. */
  1105. IPPAPI(IppStatus, ippsFBankSetCenters_16s,(IppsFBankState_16s* pFBank,
  1106. const int* pCenters))
  1107. IPPAPI(IppStatus, ippsFBankSetCenters_32f,(IppsFBankState_32f* pFBank,
  1108. const int* pCenters))
  1109. /* /////////////////////////////////////////////////////////////////////////////
  1110. // Name: ippsFBankGetCoeffs_*
  1111. // Purpose: Retrieves the filter bank weight coefficients.
  1112. // Parameters:
  1113. // pFBank Pointer to the filter bank structure
  1114. // fIdx Filter index.
  1115. // pCoeffs Pointer to the filter coefficients vector.
  1116. //
  1117. // Return:
  1118. // ippStsNoErr Indicates no error.
  1119. // ippStsNullPtrErr Indicates an error when the pFBank or pCoeffs pointer is null.
  1120. // ippStsSizeErr Indicates an error when fIdx is less then 1 or greater
  1121. // then nFilter.
  1122. // ippStsFBankErr Indicates an error when fIdx filter coeffitients are not
  1123. // valid after filter centers reset or filter centers are not
  1124. // valid after filter bank initialization by
  1125. // ippsEmptyFBankInitAlloc function.
  1126. //
  1127. */
  1128. IPPAPI(IppStatus, ippsFBankGetCoeffs_16s,(const IppsFBankState_16s* pFBank,
  1129. int fIdx, Ipp32f* pCoeffs))
  1130. IPPAPI(IppStatus, ippsFBankGetCoeffs_32f,(const IppsFBankState_32f* pFBank,
  1131. int fIdx, Ipp32f* pCoeffs))
  1132. /* /////////////////////////////////////////////////////////////////////////////
  1133. // Name: ippsFBankSetCoeffs_*
  1134. // Purpose: Sets the filter bank weight coefficients.
  1135. // Parameters:
  1136. // pFBank Pointer to the filter bank structure
  1137. // fIdx Filter index.
  1138. // pCoeffs Pointer to the output coefficients vector.
  1139. //
  1140. // Return:
  1141. // ippStsNoErr Indicates no error.
  1142. // ippStsNullPtrErr Indicates an error when the pFBank or pCoeffs pointer is null.
  1143. // ippStsSizeErr Indicates an error when fIdx is less then 1 or greater
  1144. // then nFilter.
  1145. // ippStsFBankErr Indicates an error when the weight coefficients are not
  1146. // available or valid.
  1147. //
  1148. */
  1149. IPPAPI(IppStatus, ippsFBankSetCoeffs_16s,(IppsFBankState_16s* pFBank, int fIdx,
  1150. const Ipp32f* pCoeffs))
  1151. IPPAPI(IppStatus, ippsFBankSetCoeffs_32f,(IppsFBankState_32f* pFBank, int fIdx,
  1152. const Ipp32f* pCoeffs))
  1153. /* /////////////////////////////////////////////////////////////////////////////
  1154. // Name: ippsEvalFBank_*
  1155. // Purpose: Performs the filter bank analysis
  1156. // Parameters:
  1157. // pSrc Pointer to the source vector
  1158. // pDst Pointer to the filter bank coefficients vector [nFilter].
  1159. // pFBank Pointer to the filter bank structure.
  1160. // scaleFactor
  1161. //
  1162. // Return:
  1163. // ippStsNoErr Indicates no error.
  1164. // ippStsNullPtrErr Indicates an error when the pSrc, pDst pointer is null.
  1165. // ippStsFBankErr Indicates an error when pFBank structure is not ready for
  1166. // calculation.
  1167. //
  1168. */
  1169. IPPAPI(IppStatus, ippsEvalFBank_16s_Sfs,(const Ipp16s* pSrc, Ipp16s* pDst,
  1170. const IppsFBankState_16s* pFBank, int scaleFactor))
  1171. IPPAPI(IppStatus, ippsEvalFBank_16s32s_Sfs,(const Ipp16s* pSrc, Ipp32s* pDst,
  1172. const IppsFBankState_16s* pFBank, int scaleFactor))
  1173. IPPAPI(IppStatus, ippsEvalFBank_32f,(const Ipp32f* pSrc, Ipp32f* pDst,
  1174. const IppsFBankState_32f* pFBank))
  1175. IPPAPI(IppStatus, ippsEvalFBank_32s_Sfs,(const Ipp32s* pSrc, Ipp32s* pDst,
  1176. const IppsFBankState_32s* pFBank, int scaleFactor))
  1177. /* /////////////////////////////////////////////////////////////////////////////
  1178. // Name: ippsDCTLifterGetSize_*
  1179. // Purpose: This function determines the
  1180. // size required for initializes the structure to perform DCT
  1181. // and lift the DCT coefficients. It should be called before
  1182. // memory allocation and before ippsDCTLifterInit_*
  1183. // Parameters:
  1184. // lenDCT Length of DCT will be used for MFCC calculation
  1185. // lenCeps Number (without c0) of cepstral coefficients to be calculated.
  1186. // nLifter Liftering factor
  1187. // pSize output
  1188. //
  1189. // Return:
  1190. // ippStsNoErr Indicates no error.
  1191. // ippStsNullPtrErr Indicates an error when the pSize pointer is null.
  1192. // ippStsSizeErr Indicates an error when lenDCT, lenCeps or nLifter is
  1193. // less than or equal to 0 or lenDCT is less than lenCeps.
  1194. //
  1195. */
  1196. IPPAPI(IppStatus, ippsDCTLifterGetSize_32f,(int lenDCT, int lenCeps, int *pSize))
  1197. IPPAPI(IppStatus, ippsDCTLifterGetSize_C0_32f,(int lenDCT, int lenCeps, int *pSize))
  1198. IPPAPI(IppStatus, ippsDCTLifterGetSize_Mul_32f,(int lenDCT, int lenCeps, int *pSize))
  1199. IPPAPI(IppStatus, ippsDCTLifterGetSize_MulC0_32f,(int lenDCT, int lenCeps, int *pSize))
  1200. IPPAPI(IppStatus, ippsDCTLifterGetSize_16s,(int lenDCT, int lenCeps, int *pSize))
  1201. IPPAPI(IppStatus, ippsDCTLifterGetSize_C0_16s,(int lenDCT, int lenCeps, int *pSize))
  1202. IPPAPI(IppStatus, ippsDCTLifterGetSize_Mul_16s,(int lenDCT, int lenCeps, int *pSize))
  1203. IPPAPI(IppStatus, ippsDCTLifterGetSize_MulC0_16s,(int lenDCT, int lenCeps, int* pSize))
  1204. /* /////////////////////////////////////////////////////////////////////////////
  1205. // Name: ippsDCTLifterInit_*
  1206. // Purpose: Initializes the structure to perform DCT
  1207. // and lift the DCT coefficients.
  1208. // Parameters:
  1209. // pDCTLifter Pointer to the created structure for DCT calculation and
  1210. // liftering.
  1211. // lenDCT Length of DCT will be used for MFCC calculation
  1212. // lenCeps Number (without c0) of cepstral coefficients to be calculated.
  1213. // nLifter Liftering factor
  1214. // pLifter Pointer to liftering coefficients vector
  1215. // val Value to multiply output MFCC except c0 coefficient
  1216. // val0 Value to multiply output c0 coefficient
  1217. //
  1218. // Return:
  1219. // ippStsNoErr Indicates no error.
  1220. // ippStsNullPtrErr Indicates an error when the pLifter pointer is null.
  1221. // ippStsSizeErr Indicates an error when lenDCT, lenCeps or nLifter is
  1222. // less than or equal to 0 or lenDCT is less than lenCeps.
  1223. // ippStsMemAllocErr Indicates an error when no memory allocated.
  1224. //
  1225. */
  1226. IPPAPI(IppStatus, ippsDCTLifterInit_32f,(IppsDCTLifterState_32f* pDCTLifter,
  1227. int lenDCT, int lenCeps, int nLifter, Ipp32f val))
  1228. IPPAPI(IppStatus, ippsDCTLifterInit_C0_32f,(IppsDCTLifterState_32f* pDCTLifter,
  1229. int lenDCT, int lenCeps, int nLifter, Ipp32f val, Ipp32f val0))
  1230. IPPAPI(IppStatus, ippsDCTLifterInit_Mul_32f,(IppsDCTLifterState_32f* pDCTLifter,
  1231. int lenDCT, const Ipp32f* pLifter, int lenCeps))
  1232. IPPAPI(IppStatus, ippsDCTLifterInit_MulC0_32f,(IppsDCTLifterState_32f* pDCTLifter,
  1233. int lenDCT, const Ipp32f* pLifter, int lenCeps))
  1234. IPPAPI(IppStatus, ippsDCTLifterInit_16s,(IppsDCTLifterState_16s* pDCTLifter,
  1235. int lenDCT, int lenCeps, int nLifter, Ipp32f val))
  1236. IPPAPI(IppStatus, ippsDCTLifterInit_C0_16s,(IppsDCTLifterState_16s* pDCTLifter,
  1237. int lenDCT, int lenCeps, int nLifter, Ipp32f val, Ipp32f val0))
  1238. IPPAPI(IppStatus, ippsDCTLifterInit_Mul_16s,(IppsDCTLifterState_16s* pDCTLifter,
  1239. int lenDCT, const Ipp32f* pLifter, int lenCeps))
  1240. IPPAPI(IppStatus, ippsDCTLifterInit_MulC0_16s,(IppsDCTLifterState_16s* pDCTLifter,
  1241. int lenDCT, const Ipp32s* pLifter, int lenCeps))
  1242. /* /////////////////////////////////////////////////////////////////////////////
  1243. // Name: ippsDCTLifterInitAlloc_MulC0_*
  1244. // Purpose: Initializes the structure to perform DCT
  1245. // and lift the DCT coefficients.
  1246. // Parameters:
  1247. // pDCTLifter Pointer to the created structure for DCT calculation and
  1248. // liftering.
  1249. // lenDCT Length of DCT will be used for MFCC calculation
  1250. // lenCeps Number (without c0) of cepstral coefficients to be calculated.
  1251. // nLifter Liftering factor
  1252. // pLifter Pointer to liftering coefficients vector
  1253. // val Value to multiply output MFCC except c0 coefficient
  1254. // val0 Value to multiply output c0 coefficient
  1255. //
  1256. // Return:
  1257. // ippStsNoErr Indicates no error.
  1258. // ippStsNullPtrErr Indicates an error when the pLifter pointer is null.
  1259. // ippStsSizeErr Indicates an error when lenDCT, lenCeps or nLifter is
  1260. // less than or equal to 0 or lenDCT is less than lenCeps.
  1261. // ippStsMemAllocErr Indicates an error when no memory allocated.
  1262. //
  1263. */
  1264. IPPAPI(IppStatus, ippsDCTLifterInitAlloc_32f,(IppsDCTLifterState_32f** pDCTLifter,
  1265. int lenDCT, int lenCeps, int nLifter, Ipp32f val))
  1266. IPPAPI(IppStatus, ippsDCTLifterInitAlloc_C0_32f,(IppsDCTLifterState_32f** pDCTLifter,
  1267. int lenDCT, int lenCeps, int nLifter, Ipp32f val, Ipp32f val0))
  1268. IPPAPI(IppStatus, ippsDCTLifterInitAlloc_Mul_32f,(IppsDCTLifterState_32f** pDCTLifter,
  1269. int lenDCT, const Ipp32f* pLifter, int lenCeps))
  1270. IPPAPI(IppStatus, ippsDCTLifterInitAlloc_MulC0_32f,(IppsDCTLifterState_32f** pDCTLifter,
  1271. int lenDCT, const Ipp32f* pLifter, int lenCeps))
  1272. IPPAPI(IppStatus, ippsDCTLifterInitAlloc_16s,(IppsDCTLifterState_16s** pDCTLifter,
  1273. int lenDCT, int lenCeps, int nLifter, Ipp32f val))
  1274. IPPAPI(IppStatus, ippsDCTLifterInitAlloc_C0_16s,(IppsDCTLifterState_16s** pDCTLifter,
  1275. int lenDCT, int lenCeps, int nLifter, Ipp32f val, Ipp32f val0))
  1276. IPPAPI(IppStatus, ippsDCTLifterInitAlloc_Mul_16s,(IppsDCTLifterState_16s** pDCTLifter,
  1277. int lenDCT, const Ipp32f* pLifter, int lenCeps))
  1278. IPPAPI(IppStatus, ippsDCTLifterInitAlloc_MulC0_16s,(IppsDCTLifterState_16s** pDCTLifter,
  1279. int lenDCT, const Ipp32f* pLifter, int lenCeps))
  1280. /* /////////////////////////////////////////////////////////////////////////////
  1281. // Name: ippsDCTLifterFree_*
  1282. // Purpose: Destroys the structure for DCT and liftering
  1283. // Parameters:
  1284. // pDCTLifter Pointer to the filter bank structure
  1285. //
  1286. // Return:
  1287. // ippStsNoErr Indicates no error.
  1288. // ippStsNullPtrErr Indicates an error when the pDCTLifter pointer is null.
  1289. //
  1290. */
  1291. IPPAPI(IppStatus, ippsDCTLifterFree_32f,(IppsDCTLifterState_32f* pDCTLifter))
  1292. IPPAPI(IppStatus, ippsDCTLifterFree_16s,(IppsDCTLifterState_16s* pDCTLifter))
  1293. /* /////////////////////////////////////////////////////////////////////////////
  1294. // Name: ippsDCTLifter_*
  1295. // Purpose: Performs DCT and lifts the DCT coefficients.
  1296. // Parameters:
  1297. // pSrc Pointer to the filter output vector [lenDCT]
  1298. // pDst Pointer to the MFCC feature vector.
  1299. // pDCTLifter Pointer to the filter bank structure
  1300. // scaleFactor
  1301. //
  1302. // Return:
  1303. // ippStsNoErr Indicates no error.
  1304. // ippStsNullPtrErr Indicate an error when the pSrc, pDst, pFBank pointer is null.
  1305. //
  1306. */
  1307. IPPAPI(IppStatus, ippsDCTLifter_32f,(const Ipp32f* pSrc, Ipp32f* pDst,
  1308. const IppsDCTLifterState_32f* pDCTLifter))
  1309. IPPAPI(IppStatus, ippsDCTLifter_16s_Sfs,(const Ipp16s* pSrc, Ipp16s* pDst,
  1310. const IppsDCTLifterState_16s* pDCTLifter, int scaleFactor))
  1311. IPPAPI(IppStatus, ippsDCTLifter_32s16s_Sfs, (const Ipp32s* pSrc, Ipp16s* pDst,
  1312. const IppsDCTLifterState_16s* pDCTLifter, int scaleFactor))
  1313. /* /////////////////////////////////////////////////////////////////////////////
  1314. // Name: ippsNormEnergy_*
  1315. // Purpose: Normalizes a vector of energy values.
  1316. // Parameters:
  1317. // pSrcDst Pointer to the input/output vector [height*step].
  1318. // step Sample step in the vector pSrcDst.
  1319. // height Number of samples for normalization
  1320. // silFloor Silence floor in log10 value
  1321. // val Coefficient value.
  1322. // maxE Maximum energy value
  1323. // enScale Energy scale
  1324. // Returns:
  1325. // ippStsNoErr Indicates no error.
  1326. // ippStsNullPtrErr Indicates an error when the pSrcDst pointer is null.
  1327. // ippStsSizeErr Indicates an error when step or height is less than
  1328. // or equal to 0
  1329. //
  1330. */
  1331. IPPAPI(IppStatus, ippsNormEnergy_32f,(Ipp32f* pSrcDst, int step, int height,
  1332. Ipp32f silFloor, Ipp32f enScale))
  1333. IPPAPI(IppStatus, ippsNormEnergy_16s,(Ipp16s* pSrcDst, int step, int height,
  1334. Ipp16s silFloor, Ipp16s val, Ipp32f enScale))
  1335. IPPAPI(IppStatus, ippsNormEnergy_RT_32f,(Ipp32f* pSrcDst, int step, int height,
  1336. Ipp32f silFloor, Ipp32f maxE, Ipp32f enScale))
  1337. IPPAPI(IppStatus, ippsNormEnergy_RT_16s,(Ipp16s* pSrcDst, int step, int height,
  1338. Ipp16s silFloor, Ipp16s maxE, Ipp16s val, Ipp32f enScale))
  1339. /*/////////////////////////////////////////////////////////////////////////////
  1340. // Name: ippsSumMeanVar_*
  1341. // Purpose: The function sums the vector elements and their
  1342. // squares according.
  1343. //
  1344. // Parameters:
  1345. // pSrc Pointer to the source vector [height* srcStep].
  1346. // pDstMean Pointer to the result vector that contains sums [width].
  1347. // pdstVar Pointer to the result vector that contains square sums [width].
  1348. // width Number of columns in the pSrc.
  1349. // srcStep Row step in pSrc.
  1350. // height Number of rows in pSrc.
  1351. // scaleFactor
  1352. //
  1353. // Return:
  1354. // ippStsNoErr Indicates no error.
  1355. // ippStsNullPtrErr Indicates an error when the pSrc, pDstMean, pDstVar,
  1356. // pSrcDstMean or pSrcDstVar pointer is null.
  1357. // ippStsSizeErr Indicates an error when srcStep, width or height is less
  1358. // than or equal to 0 or width is greater than srcStep;
  1359. //
  1360. */
  1361. IPPAPI(IppStatus,ippsSumMeanVar_32f,(const Ipp32f* pSrc, int srcStep, int height,
  1362. Ipp32f* pDstMean, Ipp32f* pDstVar, int width))
  1363. IPPAPI(IppStatus,ippsSumMeanVar_16s32f,(const Ipp16s* pSrc, int srcStep,
  1364. int height, Ipp32f* pDstMean, Ipp32f* pDstVar, int width))
  1365. IPPAPI(IppStatus,ippsSumMeanVar_16s32s_Sfs,(const Ipp16s* pSrc, int srcStep,
  1366. int height, Ipp32s* pDstMean, Ipp32s* pDstVar, int width, int scaleFactor))
  1367. IPPAPI(IppStatus,ippsSumMeanVar_32f_I,(const Ipp32f* pSrc, int srcStep,
  1368. int height, Ipp32f* pSrcDstMean, Ipp32f* pSrcDstVar, int width))
  1369. IPPAPI(IppStatus,ippsSumMeanVar_16s32f_I,(const Ipp16s* pSrc, int srcStep,
  1370. int height, Ipp32f* pSrcDstMean, Ipp32f* pSrcDstVar, int width))
  1371. IPPAPI(IppStatus,ippsSumMeanVar_16s32s_ISfs,(const Ipp16s* pSrc, int srcStep,
  1372. int height, Ipp32s* pSrcDstMean, Ipp32s* pSrcDstVar, int width,
  1373. int scaleFactor))
  1374. /* /////////////////////////////////////////////////////////////////////////////
  1375. // Name: ippsNewVar_*
  1376. // Purpose: The function computes the variance vector.
  1377. //
  1378. // Parameters:
  1379. // pSrcMean Pointer to the source vector of element sums [width].
  1380. // pSrcVar Pointer to the source vector of element sum squares [width].
  1381. // pSrcDstVar Pointer to the source and result vector of element sum squares [width].
  1382. // width Number of columns in the pSrc.
  1383. // val1, val2 Multiplicative constants.
  1384. // scaleFactor
  1385. //
  1386. // Return:
  1387. // ippStsNoErr Indicates no error.
  1388. // ippStsNullPtrErr Indicates an error when the pSrcMean, pSrcVar, pDstVar or
  1389. // pSrcDstVar pointer is null.
  1390. // ippStsSizeErr Indicates an error when width is less than or equal to 0;
  1391. //
  1392. */
  1393. IPPAPI(IppStatus, ippsNewVar_32s_Sfs,(const Ipp32s* pSrcMean,
  1394. const Ipp32s* pSrcVar, Ipp32s* pDstVar, int width, Ipp32f val1,
  1395. Ipp32f val2, int scaleFactor))
  1396. IPPAPI(IppStatus, ippsNewVar_32s_ISfs,(const Ipp32s* pSrcMean,
  1397. Ipp32s* pSrcDstVar, int width, Ipp32f val1, Ipp32f val2, int scaleFactor))
  1398. IPPAPI(IppStatus, ippsNewVar_32f,(const Ipp32f* pSrcMean, const Ipp32f* pSrcVar,
  1399. Ipp32f* pDstVar, int width, Ipp32f val1, Ipp32f val2))
  1400. IPPAPI(IppStatus, ippsNewVar_32f_I,(const Ipp32f* pSrcMean, Ipp32f* pSrcDstVar,
  1401. int width, Ipp32f val1, Ipp32f val2))
  1402. /* /////////////////////////////////////////////////////////////////////////////
  1403. // Name: ippsRecSqrt_*
  1404. // Purpose: Computes square root reciprocals of vector
  1405. // elements in-place.
  1406. // Parameters:
  1407. // pSrcDst Pointer to the source and destination vector pSrcDst.
  1408. // len The number of elements in the vector.
  1409. // val The threshold factor.
  1410. // scaleFactor
  1411. //
  1412. // Return:
  1413. // ippStsNoErr Indicates no error.
  1414. // ippStsNullPtrErr Indicates an error when the pSrcDst pointer is null.
  1415. // ippStsInvByZero Indicates an error when pSrcDst[i]is less than val.
  1416. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  1417. // ippStsBadArgErr Indicates an error when val is less than or equal to 0
  1418. //
  1419. */
  1420. IPPAPI(IppStatus,ippsRecSqrt_32s_Sfs,(Ipp32s* pSrcDst, int len,Ipp32s val,
  1421. int scaleFactor))
  1422. IPPAPI(IppStatus,ippsRecSqrt_32s16s_Sfs,(const Ipp32s* pSrc, Ipp16s* pDst, int len,Ipp32s val,
  1423. int scaleFactor))
  1424. IPPAPI(IppStatus, ippsRecSqrt_32f, (Ipp32f* pSrcDst, int len, Ipp32f val))
  1425. /*//////////////////////////////////////////////////////////////////////
  1426. // Name: ippsAccCovarianceMatrix_*
  1427. // Purpose: Accumulate covariance matrix.
  1428. // Parameters:
  1429. // pSrc Pointer to the input vector [height*srcStep].
  1430. // mSrc Pointer to the input matrix [height][width].
  1431. // srcStep Row step in pSrc.
  1432. // pMean Pointer to the mean vector [width].
  1433. // width Length of the input matrix row, mean, and variance vectors.
  1434. // pSrcDst Pointer to the source and result matrix [width*dstStep].
  1435. // mSrcDst Pointer to the source and result matrix [width][width].
  1436. // dstStep Row step in pDst.
  1437. // height Number of rows in the input matrix.
  1438. // val Value to multiply to each distance.
  1439. // Return:
  1440. // ippStsNoErr Indicates no error.
  1441. // ippStsNullPtrErr Indicates an error when the pSrc, mSrc, pMean, pSrcDst,
  1442. // or mSrcDst pointer is null.
  1443. // ippStsSizeErr Indicates an error when width or height is less than
  1444. // or equal to 0.
  1445. // ippStsStrideErr Indicates an error when srcStep or dstStep is less
  1446. // than width.
  1447. */
  1448. IPPAPI(IppStatus, ippsAccCovarianceMatrix_16s64f_D2L,(const Ipp16s** mSrc,
  1449. int height, const Ipp16s* pMean, Ipp64f** mSrcDst, int width, Ipp64f val))
  1450. IPPAPI(IppStatus, ippsAccCovarianceMatrix_32f64f_D2L, (const Ipp32f** mSrc,
  1451. int height, const Ipp32f* pMean, Ipp64f** mSrcDst, int width, Ipp64f val))
  1452. IPPAPI(IppStatus, ippsAccCovarianceMatrix_16s64f_D2, (const Ipp16s* pSrc,
  1453. int srcStep, int height, const Ipp16s* pMean, Ipp64f* pSrcDst, int width,
  1454. int dstStep, Ipp64f val))
  1455. IPPAPI(IppStatus, ippsAccCovarianceMatrix_32f64f_D2, (const Ipp32f* pSrc,
  1456. int srcStep, int height, const Ipp32f* pMean, Ipp64f* pSrcDst, int width,
  1457. int dstStep, Ipp64f val))
  1458. /* /////////////////////////////////////////////////////////////////////////////
  1459. // Derivatives
  1460. /////////////////////////////////////////////////////////////////////////////
  1461. */
  1462. /* /////////////////////////////////////////////////////////////////////////////
  1463. // Name: ippsCopyColumn_*_D2
  1464. // Purpose: Copies the input sequence into the output sequence.
  1465. // Parameters:
  1466. // pSrc Pointer to the input feature sequence [height*srcWidth].
  1467. // srcWidth Length of each input feature vector.
  1468. // pDst Pointer to the output feature sequence [height*dstWidth].
  1469. // dstWidth Length of each output feature vector.
  1470. // height Number of features in the sequence.
  1471. //
  1472. // Returns:
  1473. // ippStsNoErr Indicates no error.
  1474. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  1475. // ippStsSizeErr Indicates an error when height or srcWidth is less than or
  1476. // equal to 0.
  1477. // ippStsStrideErr Indicates an error when dstWidth is less than srcWidth.
  1478. */
  1479. IPPAPI(IppStatus, ippsCopyColumn_16s_D2, (const Ipp16s* pSrc, int srcWidth,
  1480. Ipp16s* pDst, int dstWidth, int height))
  1481. IPPAPI(IppStatus, ippsCopyColumn_32f_D2, (const Ipp32f* pSrc, int srcWidth,
  1482. Ipp32f* pDst, int dstWidth, int height))
  1483. /* /////////////////////////////////////////////////////////////////////////////
  1484. // Name: ippsEvalDelta_D2
  1485. // Purpose: Computes the derivatives of vector elements.
  1486. //
  1487. // Parameters:
  1488. // pSrcDst Pointer to the input and output vector [height*step].
  1489. // height The number of rows in pSrcDst.
  1490. // step Length of each feature in pSrcDst
  1491. // width The number of derivatives to be calculated for each feature.
  1492. // offset Offset to place the derivative values.
  1493. // winSize The delta window size
  1494. // val The delta coefficient.
  1495. // pVal Pointer to the delta coefficients vector [width].
  1496. // scaleFactor
  1497. //
  1498. // Return:
  1499. // ippStsNoErr Indicates no error.
  1500. // ippStsNullPtrErr Indicates an error when the pSrcDst pointer is null.
  1501. // ippStsSizeErr Indicates an error when height, width, or winSize
  1502. // is less than or equal to 0 or offset is less than 0
  1503. // or width is less than or equal to offset or height is
  1504. // less than 2*winSize.
  1505. // ippStsStrideErr Indicates an error when step is less than offset+2*width.
  1506. */
  1507. IPPAPI(IppStatus, ippsEvalDelta_16s_D2Sfs, (Ipp16s*pSrcDst, int height, int step,
  1508. int width, int offset, int winSize, Ipp16s val, int scaleFactor))
  1509. IPPAPI(IppStatus, ippsEvalDelta_32f_D2, (Ipp32f *pSrcDst, int height, int step,
  1510. int width, int offset, int winSize, Ipp32f val))
  1511. IPPAPI(IppStatus, ippsEvalDeltaMul_16s_D2Sfs, (Ipp16s* pSrcDst, int height,
  1512. int step, const Ipp16s* pVal, int width, int offset, int winSize,
  1513. int scaleFactor))
  1514. IPPAPI(IppStatus, ippsEvalDeltaMul_32f_D2, (Ipp32f* pSrcDst, int height,
  1515. int step, const Ipp32f* pVal, int width, int offset, int winSize))
  1516. /* /////////////////////////////////////////////////////////////////////////////
  1517. // Name: ippsDelta*_D2
  1518. // Purpose: Copies the base features and calculates the
  1519. // derivatives of feature vectors.
  1520. // Parameters:
  1521. // pSrc Pointer to the source vector [height*srcWidth].
  1522. // srcWidth The number of columns in the pSrc.
  1523. // pDst Pointer to the result vector [height*dstStep].
  1524. // dstStep The row step in pDst.
  1525. // val The delta coefficient.
  1526. // height Number of feature vectors.
  1527. // deltaMode Execution mode.
  1528. // pVal Pointer to the delta coefficients vector [width].
  1529. // scaleFactor
  1530. //
  1531. // ippStsNoErr Indicates no error.
  1532. // ippStsNullPtrErr Indicates an error when the pSrc, pDst or pVal pointer is null.
  1533. // ippStsSizeErr Indicates an error when srcWidth is less than or equal to 0;
  1534. // or height is less than 0;
  1535. // or height is less than 2*winSize when deltaMode is equal to IPP_DELTA_BEGIN;
  1536. // or height is equal to 0 when deltaMode is not equal to IPP_DELTA_END.
  1537. // ippStsStrideErr Indicates an error when dstStep is less than 2*srcWidth.
  1538. */
  1539. IPPAPI(IppStatus, ippsDelta_Win1_16s_D2Sfs, (const Ipp16s* pSrc, int srcWidth,
  1540. Ipp16s* pDst, int dstStep, int height, Ipp16s val, int deltaMode,
  1541. int scaleFactor))
  1542. IPPAPI(IppStatus, ippsDelta_Win2_16s_D2Sfs, (const Ipp16s* pSrc, int srcWidth,
  1543. Ipp16s* pDst, int dstStep, int height, Ipp16s val, int deltaMode,
  1544. int scaleFactor))
  1545. IPPAPI(IppStatus, ippsDelta_Win1_32f_D2, (const Ipp32f* pSrc, int srcWidth,
  1546. Ipp32f* pDst, int dstStep, int height, Ipp32f val, int deltaMode))
  1547. IPPAPI(IppStatus, ippsDelta_Win2_32f_D2, (const Ipp32f* pSrc, int srcWidth,
  1548. Ipp32f* pDst, int dstStep, int height, Ipp32f val, int deltaMode))
  1549. IPPAPI(IppStatus, ippsDeltaMul_Win1_16s_D2Sfs, (const Ipp16s* pSrc,
  1550. const Ipp16s* pVal, int srcWidth, Ipp16s* pDst, int dstStep,
  1551. int height, int deltaMode, int scaleFactor))
  1552. IPPAPI(IppStatus, ippsDeltaMul_Win2_16s_D2Sfs, (const Ipp16s* pSrc,
  1553. const Ipp16s* pSrc1, int srcWidth, Ipp16s* pDst, int dstStep,
  1554. int height, int deltaMode, int scaleFactor))
  1555. IPPAPI(IppStatus, ippsDeltaMul_Win1_32f_D2, (const Ipp32f* pSrc,
  1556. const Ipp32f* pVal, int srcWidth, Ipp32f* pDst, int dstStep,
  1557. int height, int deltamode))
  1558. IPPAPI(IppStatus, ippsDeltaMul_Win2_32f_D2, (const Ipp32f* pSrc,
  1559. const Ipp32f* pVal, int srcWidth, Ipp32f* pDst, int dstStep,
  1560. int height, int deltamode))
  1561. /* /////////////////////////////////////////////////////////////////////////////
  1562. // Name: ippsDeltaDelta*_D2
  1563. // Purpose: Copies the base features and calculates their first
  1564. // and second derivatives.
  1565. // Parameters:
  1566. // pSrc Pointer to the source vector [height*srcWidth].
  1567. // srcWidth Length of the input feature in the input sequence pSrc.
  1568. // pDst Pointer to the result vector [height*dstStep].
  1569. // dstStep The row step in pDst.
  1570. // height The number of rows in pSrc and pDst.
  1571. // val1, val2 The first and second delta coefficients.
  1572. // deltaMode Execution mode.
  1573. // pVal Pointer to the delta coefficients vector [width].
  1574. // scaleFactor
  1575. //
  1576. // Return:
  1577. // ippStsNoErr Indicates no error.
  1578. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  1579. // ippStsSizeErr Indicates an error when srcWidth is less than or equal to 0;
  1580. // or height is less than 0;
  1581. // or height is less than 3*winSize when deltaMode is equal to IPP_DELTA_BEGIN;
  1582. // or height is equal to 0 when deltaMode is not equal to IPP_DELTA_END.
  1583. // ippStsStrideErr Indicates an error when dstStep is less than 3*srcWidth.
  1584. */
  1585. IPPAPI(IppStatus, ippsDeltaDelta_Win1_16s_D2Sfs, (const Ipp16s* pSrc, int srcWidth,
  1586. Ipp16s* pDst, int dstStep, int height, Ipp16s val1,
  1587. Ipp16s val2, int deltaMode, int scaleFactor))
  1588. IPPAPI(IppStatus, ippsDeltaDelta_Win2_16s_D2Sfs, (const Ipp16s* pSrc, int srcWidth,
  1589. Ipp16s* pDst, int dstStep, int height, Ipp16s val1,
  1590. Ipp16s val2, int deltaMode, int scaleFactor))
  1591. IPPAPI(IppStatus, ippsDeltaDeltaMul_Win1_16s_D2Sfs, (const Ipp16s* pSrc,
  1592. const Ipp16s* pVal, int srcWidth, Ipp16s* pDst, int dstStep, int height,
  1593. int deltamode, int scaleFactor))
  1594. IPPAPI(IppStatus, ippsDeltaDeltaMul_Win2_16s_D2Sfs, (const Ipp16s* pSrc,
  1595. const Ipp16s* pVal, int srcWidth, Ipp16s* pDst, int dstStep, int height,
  1596. int deltamode, int scaleFactor))
  1597. IPPAPI(IppStatus, ippsDeltaDeltaMul_Win1_32f_D2, (const Ipp32f* pSrc,
  1598. const Ipp32f* pSrc1, int srcWidth, Ipp32f* pDst, int dstStep, int height,
  1599. int deltamode))
  1600. IPPAPI(IppStatus, ippsDeltaDeltaMul_Win2_32f_D2, (const Ipp32f* pSrc,
  1601. const Ipp32f* pSrc1, int srcWidth, Ipp32f* pDst, int dstStep, int height,
  1602. int deltamode))
  1603. IPPAPI(IppStatus, ippsDeltaDelta_Win1_32f_D2, (const Ipp32f* pSrc, int srcWidth,
  1604. Ipp32f* pDst, int dstStep, int height, Ipp32f val1,
  1605. Ipp32f val2, int deltaMode))
  1606. IPPAPI(IppStatus, ippsDeltaDelta_Win2_32f_D2, (const Ipp32f* pSrc, int srcWidth,
  1607. Ipp32f* pDst, int dstStep, int height, Ipp32f val1,
  1608. Ipp32f val2, int deltaMode))
  1609. /* /////////////////////////////////////////////////////////////////////////////
  1610. // Name: ippsDeltaDelta_Aurora_*
  1611. // Purpose: The function ippsDeltaDelta_Aurora calculate full feature vectors
  1612. // according to ETSI ES 202 050 standard.
  1613. // Context:
  1614. // Returns:
  1615. // ippStsNoErr Indicates no error.
  1616. // ippStsNullPtrErr Indicates an error when pSrc, pDst, or pVal pointer is NULL.
  1617. // ippStsSizeErr Indicates an error when height is less than 0;
  1618. // or height is less than 8 when deltaMode is equal to IPP_DELTA_BEGIN;
  1619. // or height is equal to 0 when deltaMode is not equal to IPP_DELTA_END.
  1620. // ippStsStrideErr Indicates an error when dstStep is less than 39.
  1621. // Parameters:
  1622. // pSrc Pointer to the input feature sequence [height*14].
  1623. // pDst Pointer to the output feature sequence [height*dstStep].
  1624. // dstStep Length of the output feature in the output sequence pDst.
  1625. // height Number of feature vectors.
  1626. // deltaMode Execution mode.
  1627. // pVal Pointer to the delta coefficients vector [39].
  1628. // scaleFactor Refer to "Integer Scaling" in Chapter 2.
  1629. // Notes:
  1630. */
  1631. IPPAPI(IppStatus,ippsDeltaDelta_Aurora_16s_D2Sfs,(const Ipp16s* pSrc, Ipp16s* pDst,
  1632. int dstStep, int height, int deltaMode, int scaleFactor))
  1633. IPPAPI(IppStatus,ippsDeltaDelta_Aurora_32f_D2,(const Ipp32f* pSrc, Ipp32f* pDst,
  1634. int dstStep, int height, int deltaMode))
  1635. /* /////////////////////////////////////////////////////////////////////////////
  1636. // Name: ippsDeltaDeltaMul_Aurora_*
  1637. // Purpose: The function ippsDeltaDelta_Aurora calculate full feature vectors
  1638. // according to ETSI ES 202 050 standard.
  1639. // Context:
  1640. // Returns:
  1641. // ippStsNoErr Indicates no error.
  1642. // ippStsNullPtrErr Indicates an error when pSrc, pDst, or pVal pointer is NULL.
  1643. // ippStsSizeErr Indicates an error when height is less than 0;
  1644. // or height is less than 8 when deltaMode is equal to IPP_DELTA_BEGIN;
  1645. // or height is equal to 0 when deltaMode is not equal to IPP_DELTA_END.
  1646. // ippStsStrideErr Indicates an error when dstStep is less than 39.
  1647. // Parameters:
  1648. // pSrc Pointer to the input feature sequence [height*14].
  1649. // pDst Pointer to the output feature sequence [height*dstStep].
  1650. // dstStep Length of the output feature in the output sequence pDst.
  1651. // height Number of feature vectors.
  1652. // deltaMode Execution mode.
  1653. // pVal Pointer to the delta coefficients vector [39].
  1654. // scaleFactor Refer to "Integer Scaling" in Chapter 2.
  1655. // Notes:
  1656. */
  1657. IPPAPI(IppStatus,ippsDeltaDeltaMul_Aurora_32f_D2,(const Ipp32f* pSrc, const Ipp32f* pVal,
  1658. Ipp32f* pDst, int dstStep, int height, int deltaMode))
  1659. IPPAPI(IppStatus,ippsDeltaDeltaMul_Aurora_16s_D2Sfs,(const Ipp16s* pSrc, const Ipp16s* pVal,
  1660. Ipp16s* pDst, int dstStep, int height, int deltaMode, int scaleFactor))
  1661. /* /////////////////////////////////////////////////////////////////////////////
  1662. // Model Evaluation
  1663. ///////////////////////////////////////////////////////////////////////////// */
  1664. /* /////////////////////////////////////////////////////////////////////////////
  1665. // Name: ippsAddNRows_32f
  1666. // Purpose: Adds N vectors from the table
  1667. // Parameters:
  1668. // pSrc Pointer to the input vector [height*step].
  1669. // height The number of rows in the pSrc.
  1670. // offset
  1671. // step The row step in pSrc.
  1672. // pInd Pointer to the indexes vector [rows].
  1673. // pAddInd Pointer to the indexes addition vector [rows].
  1674. // rows The number of rows to add.
  1675. // pDst Pointer to the output vector [width].
  1676. // width The number of elements in the output vector pDst.
  1677. // weight The value to add to output vector elements.
  1678. //
  1679. // Returns:
  1680. // ippStsNoErr Indicates no error.
  1681. // ippStsNullPtrErr Indicates an error when the pSrc, pInd, pAddIndex, or
  1682. // pDst pointer is null.
  1683. // ippStsSizeErr Indicates an error when height, width, rows, or
  1684. // (pInd[i]+pAddIndex[i]) is less than 0;
  1685. // or (pInd[i]+pAddIndex[i]) >= height;
  1686. // or offset>segCount.
  1687. // ippStsStrideErr Indicates an error when width > step.
  1688. //
  1689. */
  1690. IPPAPI(IppStatus, ippsAddNRows_32f_D2, (Ipp32f* pSrc, int height, int offset,
  1691. int step, Ipp32s* pInd, Ipp16u* pAddInd, int rows, Ipp32f* pDst, int width,
  1692. Ipp32f weight))
  1693. /* /////////////////////////////////////////////////////////////////////////////
  1694. // Name: ippsScaleLM_*
  1695. // Purpose: Scales vector elements with thresholding.
  1696. //
  1697. // Parameters:
  1698. // pSrc Pointer to the input vector [len].
  1699. // pDst Pointer to the output vector [len].
  1700. // len The number of elements in the pSrc and pDst vectors.
  1701. // floor A value used to limit each element of pSrc.
  1702. // scale The multiplier factor value.
  1703. // base The additive value.
  1704. //
  1705. // Return:
  1706. // ippStsNoErr Indicates no error.
  1707. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  1708. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  1709. //
  1710. */
  1711. IPPAPI(IppStatus, ippsScaleLM_32f, (const Ipp32f *pSrc, Ipp32f *pDst,
  1712. int len, Ipp32f floor, Ipp32f scale, Ipp32f base))
  1713. IPPAPI(IppStatus, ippsScaleLM_16s32s, (const Ipp16s* pSrc, Ipp32s* pDst,
  1714. int len, Ipp16s floor, Ipp16s scale, Ipp32s base))
  1715. /* /////////////////////////////////////////////////////////////////////////////
  1716. // Name: ippsLogAdd_*
  1717. // Purpose: Logarithmically adds two vectors in-place.
  1718. // Parameters:
  1719. // pSrc The first input vector [len].
  1720. // pDst The second input and output vector [len].
  1721. // len The number of elements in the input and output vectors.
  1722. // hint Recommends to use a specific code for the
  1723. // Logarithmically adds.
  1724. // Return:
  1725. // ippStsNoErr Indicates no error.
  1726. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  1727. // ippStsSizeErr Indicates an error when lenis less than or equal to 0.
  1728. //
  1729. */
  1730. IPPAPI(IppStatus,ippsLogAdd_64f,(const Ipp64f* pSrc, Ipp64f* pSrcDst, int len,
  1731. IppHintAlgorithm hint))
  1732. IPPAPI(IppStatus,ippsLogAdd_32f,(const Ipp32f* pSrc, Ipp32f* pSrcDst, int len,
  1733. IppHintAlgorithm hint))
  1734. IPPAPI(IppStatus,ippsLogAdd_32s_Sfs,(const Ipp32s* pSrc, Ipp32s* pSrcDst, int len,
  1735. int scaleFactor, IppHintAlgorithm hint))
  1736. IPPAPI(IppStatus,ippsLogAdd_16s_Sfs,(const Ipp16s* pSrc, Ipp16s* pSrcDst, int len,
  1737. int scaleFactor, IppHintAlgorithm hint))
  1738. /* /////////////////////////////////////////////////////////////////////////////
  1739. // Name: ippsLogSub_*
  1740. // Purpose: Logarithmically subtracts two vectors in place .
  1741. // Parameters:
  1742. // pSrc Pointer to the input vector [len].
  1743. // pDst Pointer to the input and output vectors [len].
  1744. // len The number of elements in the input and output vectors.
  1745. // Return:
  1746. // ippStsNoErr Indicates no error.
  1747. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  1748. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  1749. // ippStsNoOperation Indicates an error when pDst[i] > pSrc[i]is more than 0.
  1750. */
  1751. IPPAPI(IppStatus,ippsLogSub_32f,(const Ipp32f* pSrc, Ipp32f* pSrcDst, int len))
  1752. IPPAPI(IppStatus,ippsLogSub_64f,(const Ipp64f* pSrc, Ipp64f* pSrcDst, int len))
  1753. IPPAPI(IppStatus,ippsLogSub_32s_Sfs,(const Ipp32s* pSrc, Ipp32s* pSrcDst, int len,
  1754. int scaleFactor))
  1755. IPPAPI(IppStatus,ippsLogSub_16s_Sfs,(const Ipp16s* pSrc, Ipp16s* pSrcDst, int len,
  1756. int scaleFactor))
  1757. /* /////////////////////////////////////////////////////////////////////////////
  1758. // Name: ippsMahDistSingle_*
  1759. // Purpose: Calculates the Mahalanobis distance
  1760. // for a single observation vector.
  1761. // Parameters:
  1762. // pSrc Pointer to the input vector [len].
  1763. // pMean Pointer to the mean vector [len].
  1764. // pVar Pointer to the variance vector [len].
  1765. // len The number of elements in the input, mean,
  1766. // and variance vectors.
  1767. // pResult Pointer to the result value.
  1768. // scaleFactor
  1769. //
  1770. // Return:
  1771. // ippStsNoErr Indicates no error.
  1772. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar, or
  1773. // pResult pointer is null.
  1774. // ippStsSizeErr Indicates an error when len is less than or equal to 0
  1775. */
  1776. IPPAPI(IppStatus, ippsMahDistSingle_32f, (const Ipp32f* pSrc,
  1777. const Ipp32f* pMean, const Ipp32f* pVar, int len,
  1778. Ipp32f* pResult))
  1779. IPPAPI(IppStatus, ippsMahDistSingle_64f, (const Ipp64f* pSrc,
  1780. const Ipp64f* pMean, const Ipp64f* pVar, int len,
  1781. Ipp64f* pResult))
  1782. IPPAPI(IppStatus, ippsMahDistSingle_32f64f,(const Ipp32f* pSrc,
  1783. const Ipp32f* pMean, const Ipp32f* pVar, int len, Ipp64f* pResult))
  1784. IPPAPI(IppStatus, ippsMahDistSingle_16s32f,(const Ipp16s* pSrc,
  1785. const Ipp16s* pMean, const Ipp16s* pVar, int len, Ipp32f* pResult))
  1786. IPPAPI(IppStatus, ippsMahDistSingle_16s32s_Sfs,(const Ipp16s* pSrc,
  1787. const Ipp16s* pMean, const Ipp16s* pVar, int len, Ipp32s* pResult,
  1788. int scaleFactor))
  1789. /* /////////////////////////////////////////////////////////////////////////////
  1790. // Name: ippsMahDist_*_*
  1791. // Purpose: Calculates the Mahalanobis distances
  1792. // for multiple observation vectors.
  1793. // Parameters:
  1794. // pSrc Pointer to the input vector [height*step].
  1795. // mSrc Pointer to the input matrix [height][width].
  1796. // step The row step in pSrc.
  1797. // pMean Pointer to the mean vector [width].
  1798. // pVar Pointer to the variance vector [width].
  1799. // width The length of the input matrix row, mean,
  1800. // and variance vectors.
  1801. // pDst Pointer to the result value [height].
  1802. // height The number of rows in the input matrix and the length of
  1803. // the result vector pDst.
  1804. //
  1805. // Return:
  1806. // ippStsNoErr Indicates no error.
  1807. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  1808. // pDst,o rmSrc pointer is null.
  1809. // ippStsSizeErr Indicates an error when width or heightis less than or
  1810. // equal to 0.
  1811. // ippStsStrideErr Indicates an error when width > step.
  1812. //
  1813. */
  1814. IPPAPI(IppStatus, ippsMahDist_32f_D2, (const Ipp32f* pSrc, int step,
  1815. const Ipp32f* pMean, const Ipp32f* pVar, int width, Ipp32f* pDst,
  1816. int height))
  1817. IPPAPI(IppStatus, ippsMahDist_64f_D2, (const Ipp64f* pSrc, int step,
  1818. const Ipp64f* pMean, const Ipp64f* pVar, int width, Ipp64f* pDst,
  1819. int height))
  1820. IPPAPI(IppStatus, ippsMahDist_32f_D2L, (const Ipp32f** mSrc,
  1821. const Ipp32f* pMean, const Ipp32f* pVar, int width, Ipp32f* pDst,
  1822. int height))
  1823. IPPAPI(IppStatus, ippsMahDist_64f_D2L, (const Ipp64f** mSrc,
  1824. const Ipp64f* pMean, const Ipp64f* pVar, int width, Ipp64f* pDst,
  1825. int height))
  1826. /* /////////////////////////////////////////////////////////////////////////////
  1827. // Name: ippsMahDistMultiMix_*_*
  1828. // Purpose: Calculates the Mahalanobis distances
  1829. // for multiple means and variances
  1830. // Parameters:
  1831. // pMean Pointer to the mean vector [height*step].
  1832. // pVar Pointer to the variance vector [height*step].
  1833. // mMean Pointer to the mean matrix [height][width].
  1834. // mVar Pointer to the variance matrix [height][width].
  1835. // step Row step in pSrc.
  1836. // pSrc Pointer to the input vector [width].
  1837. // width Length of the input matrix row and pSrc vector.
  1838. // pDst Pointer to the result vector [height].
  1839. // height Number of rows in input matrices and length of result
  1840. // vector pDst.
  1841. //
  1842. // Return:
  1843. // ippStsNoErr Indicates no error.
  1844. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  1845. // mMean, mVar, or pDst pointer is null.
  1846. // ippStsSizeErr Indicates an error when height or width is less than or
  1847. // equal to 0.
  1848. // ippStsStrideErr Indicates an error when width > step.
  1849. //
  1850. */
  1851. IPPAPI(IppStatus, ippsMahDistMultiMix_32f_D2, (const Ipp32f* pMean,
  1852. const Ipp32f* pVar, int step, const Ipp32f* pSrc, int width,
  1853. Ipp32f* pDst, int height))
  1854. IPPAPI(IppStatus, ippsMahDistMultiMix_64f_D2, (const Ipp64f* pMean,
  1855. const Ipp64f* pVar, int step, const Ipp64f* pSrc, int width,
  1856. Ipp64f* pDst, int height))
  1857. IPPAPI(IppStatus, ippsMahDistMultiMix_32f_D2L, (const Ipp32f** mMean,
  1858. const Ipp32f** mVar, const Ipp32f* pSrc, int width, Ipp32f* pDst,
  1859. int height))
  1860. IPPAPI(IppStatus, ippsMahDistMultiMix_64f_D2L, (const Ipp64f** mMean,
  1861. const Ipp64f** mVar, const Ipp64f* pSrc, int width, Ipp64f* pDst,
  1862. int height))
  1863. /* /////////////////////////////////////////////////////////////////////////////
  1864. // Name: ippsLogGaussSingle_*
  1865. // Purpose: Calculates the observation probability for a
  1866. // single Gaussian with an observation vector.
  1867. //
  1868. // Parameters:
  1869. // pSrc Pointer to the input vector [len].
  1870. // pMean Pointer to the mean vector [len].
  1871. // pVar Pointer to the variance vector [len].
  1872. // pBlockVar Pointer to the block diagonal variance matrix.
  1873. // len Number of elements in the input, mean, and variance
  1874. // vectors.
  1875. // pResult Pointer to the result value.
  1876. // val Gaussian constant.
  1877. // scaleFactor
  1878. //
  1879. // Return:
  1880. // ippStsNoErr Indicates no error.
  1881. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar, or
  1882. // pResult or pBlockVar pointer is null.
  1883. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  1884. //
  1885. */
  1886. /*
  1887. //Case 1: Operation for the inverse diagonal covariance matrix
  1888. */
  1889. IPPAPI(IppStatus, ippsLogGaussSingle_32f, (const Ipp32f* pSrc,
  1890. const Ipp32f* pMean, const Ipp32f* pVar, int len,
  1891. Ipp32f* pResult, Ipp32f val))
  1892. IPPAPI(IppStatus, ippsLogGaussSingle_64f, (const Ipp64f* pSrc,
  1893. const Ipp64f* pMean, const Ipp64f* pVar, int len,
  1894. Ipp64f* pResult, Ipp64f val))
  1895. IPPAPI(IppStatus, ippsLogGaussSingle_32f64f, (const Ipp32f* pSrc,
  1896. const Ipp32f* pMean, const Ipp32f* pVar, int len,
  1897. Ipp64f* pResult, Ipp64f val))
  1898. IPPAPI(IppStatus, ippsLogGaussSingle_Scaled_16s32f, (const Ipp16s* pSrc,
  1899. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32f* dst,
  1900. Ipp32f val, int scaleFactor))
  1901. IPPAPI(IppStatus, ippsLogGaussSingle_16s32s_Sfs, (const Ipp16s* pSrc,
  1902. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32s* dst,
  1903. Ipp32s val, int scaleFactor))
  1904. /*
  1905. //Case 2: Operation for the diagonal covariance matrix
  1906. */
  1907. IPPAPI(IppStatus, ippsLogGaussSingle_DirectVar_32f,(const Ipp32f* pSrc,
  1908. const Ipp32f* pMean, const Ipp32f* pVar, int len, Ipp32f* pResult,
  1909. Ipp32f val))
  1910. IPPAPI(IppStatus, ippsLogGaussSingle_DirectVar_64f,(const Ipp64f* pSrc,
  1911. const Ipp64f* pMean, const Ipp64f* pVar, int len, Ipp64f* pResult,
  1912. Ipp64f val))
  1913. IPPAPI(IppStatus, ippsLogGaussSingle_DirectVar_32f64f,(const Ipp32f* pSrc,
  1914. const Ipp32f* pMean, const Ipp32f* pVar, int len, Ipp64f* pResult,
  1915. Ipp64f val))
  1916. IPPAPI(IppStatus, ippsLogGaussSingle_DirectVarScaled_16s32f,(const Ipp16s* pSrc,
  1917. const Ipp16s* pMean, const Ipp16s* pVar, int len, Ipp32f* pResult,
  1918. Ipp32f val, int scaleFactor))
  1919. IPPAPI(IppStatus, ippsLogGaussSingle_DirectVar_16s32s_Sfs,(const Ipp16s* pSrc,
  1920. const Ipp16s* pMean, const Ipp16s* pVar, int len, Ipp32s* pResult,
  1921. Ipp32s val, int scaleFactor))
  1922. /*
  1923. //Case 3: Operation for the identity covariance matrix
  1924. */
  1925. IPPAPI(IppStatus, ippsLogGaussSingle_IdVar_32f,(const Ipp32f* pSrc,
  1926. const Ipp32f* pMean, int len, Ipp32f* pResult, Ipp32f val))
  1927. IPPAPI(IppStatus, ippsLogGaussSingle_IdVar_64f,(const Ipp64f* pSrc,
  1928. const Ipp64f* pMean, int len, Ipp64f* pResult, Ipp64f val))
  1929. IPPAPI(IppStatus, ippsLogGaussSingle_IdVar_32f64f,(const Ipp32f* pSrc,
  1930. const Ipp32f* pMean, int len, Ipp64f* pResult, Ipp64f val))
  1931. IPPAPI(IppStatus, ippsLogGaussSingle_IdVarScaled_16s32f,(const Ipp16s* pSrc,
  1932. const Ipp16s* pMean, int len, Ipp32f* pResult, Ipp32f va,
  1933. int scaleFactorl))
  1934. IPPAPI(IppStatus, ippsLogGaussSingle_IdVar_16s32s_Sfs,(const Ipp16s* pSrc,
  1935. const Ipp16s* pMean, int len, Ipp32s* pResult, Ipp32s val,
  1936. int scaleFactor))
  1937. /*
  1938. //Case 4: Operation for the block diagonal covariance matrix
  1939. */
  1940. IPPAPI(IppStatus, ippsLogGaussSingle_BlockDVar_32f,(const Ipp32f* pSrc,
  1941. const Ipp32f* pMean,const IppsBlockDMatrix_32f* pVar, int len,
  1942. Ipp32f* pResult, Ipp32f val))
  1943. IPPAPI(IppStatus, ippsLogGaussSingle_BlockDVar_64f,(const Ipp64f* pSrc,
  1944. const Ipp64f* pMean, const IppsBlockDMatrix_64f * pVar, int len,
  1945. Ipp64f* pResult, Ipp64f val))
  1946. IPPAPI(IppStatus, ippsLogGaussSingle_BlockDVar_32f64f,(const Ipp32f* pSrc,
  1947. const Ipp32f* pMean, const IppsBlockDMatrix_32f * pVar, int len,
  1948. Ipp64f* pResult, Ipp64f val))
  1949. IPPAPI(IppStatus, ippsLogGaussSingle_BlockDVarScaled_16s32f,(const Ipp16s* pSrc,
  1950. const Ipp16s* pSrcMean,const IppsBlockDMatrix_16s* pSrcVar, int srcLen,Ipp32f* pResult,
  1951. Ipp32f val,int scaleFactor))
  1952. IPPAPI(IppStatus, ippsLogGaussSingle_BlockDVar_16s32s_Sfs,(const Ipp16s* pSrc,
  1953. const Ipp16s* pMean, const IppsBlockDMatrix_16s * pVar, int len,
  1954. Ipp32s* pResult, Ipp32s val, int scaleFactor))
  1955. /* /////////////////////////////////////////////////////////////////////////////
  1956. // Name: ippsLogGauss_*
  1957. // Purpose: Calculates the observation probability for a single
  1958. // Gaussian with multiple observation vectors.
  1959. // Parameters:
  1960. // pSrc Pointer to the input vector [height*step].
  1961. // mSrc Pointer to the input matrix [height][width].
  1962. // step The row step in pSrc.
  1963. // pMean Pointer to the mean vector [width].
  1964. // pVar Pointer to the variance vector [width].
  1965. // width Length of the mean and variance vectors.
  1966. // pDst Pointer to the result value [height].
  1967. // pSrcDst Pointer to the input and output vector [height].
  1968. // height The number of rows in the input matrix and the length of
  1969. // the result vector pDst.
  1970. // val Gaussian constant.
  1971. // scaleFactor
  1972. //
  1973. // Return:
  1974. // ippStsNoErr Indicates no error.
  1975. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  1976. // pDst,or mSrc pointer is null.
  1977. // ippStsSizeErr Indicates an error when height or width is less than or
  1978. // equal to 0.
  1979. // ippStsStrideErr Indicates an error when width > step.
  1980. //
  1981. */
  1982. /*
  1983. //Case 1: Operation for the inverse diagonal covariance matrix
  1984. */
  1985. IPPAPI(IppStatus, ippsLogGauss_16s32s_D2Sfs, (const Ipp16s* pSrc, int step,
  1986. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32s* pDst,
  1987. int height, Ipp32s val, int scaleFactor))
  1988. IPPAPI(IppStatus, ippsLogGauss_16s32s_D2LSfs, (const Ipp16s** mSrc,
  1989. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32s* pDst,
  1990. int height, Ipp32s val, int scaleFactor))
  1991. IPPAPI(IppStatus, ippsLogGauss_32f_D2, (const Ipp32f* pSrc, int step,
  1992. const Ipp32f* pMean, const Ipp32f* pVar, int width, Ipp32f* pDst,
  1993. int height, Ipp32f val))
  1994. IPPAPI(IppStatus, ippsLogGauss_64f_D2, (const Ipp64f* pSrc, int step,
  1995. const Ipp64f* pMean, const Ipp64f* pVar, int width, Ipp64f* pDst,
  1996. int height, Ipp64f val))
  1997. IPPAPI(IppStatus, ippsLogGauss_32f_D2L, (const Ipp32f** mSrc,
  1998. const Ipp32f* pMean, const Ipp32f* pVar, int width,
  1999. Ipp32f* pDst, int height, Ipp32f val))
  2000. IPPAPI(IppStatus, ippsLogGauss_64f_D2L, (const Ipp64f** mSrc,
  2001. const Ipp64f* pMean, const Ipp64f* pVar, int width,
  2002. Ipp64f* pDst, int height, Ipp64f val))
  2003. IPPAPI(IppStatus, ippsLogGauss_Scaled_16s32f_D2, (const Ipp16s* pSrc, int step,
  2004. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32f* pDst,
  2005. int height, Ipp32f val, int scaleFactor))
  2006. IPPAPI(IppStatus, ippsLogGauss_Scaled_16s32f_D2L, (const Ipp16s** mSrc,
  2007. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32f* pDst,
  2008. int height, Ipp32f val, int scaleFactor))
  2009. /*
  2010. //Case 2: Operation for the identity covariance matrix
  2011. */
  2012. IPPAPI(IppStatus, ippsLogGauss_IdVar_16s32s_D2Sfs,(const Ipp16s* pSrc,
  2013. int step, const Ipp16s* pMean, int width, Ipp32s* pDst, int height,
  2014. Ipp32s val, int scaleFactor))
  2015. IPPAPI(IppStatus, ippsLogGauss_IdVarScaled_16s32f_D2,(const Ipp16s* pSrc,
  2016. int step, const Ipp16s* pMean, int width, Ipp32f* pDst, int height,
  2017. Ipp32f val, int scaleFactor))
  2018. IPPAPI(IppStatus, ippsLogGauss_IdVar_32f_D2,(const Ipp32f* pSrc, int step,
  2019. const Ipp32f* pMean, int width, Ipp32f* pDst, int height,
  2020. Ipp32f val))
  2021. IPPAPI(IppStatus, ippsLogGauss_IdVar_64f_D2,(const Ipp64f* pSrc, int step,
  2022. const Ipp64f* pMean, int width, Ipp64f* pDst, int height,
  2023. Ipp64f val))
  2024. IPPAPI(IppStatus, ippsLogGauss_IdVar_16s32s_D2LSfs,(const Ipp16s** mSrc,
  2025. const Ipp16s* pMean, int width, Ipp32s* pDst, int height, Ipp32s val,
  2026. int scaleFactor))
  2027. IPPAPI(IppStatus, ippsLogGauss_IdVarScaled_16s32f_D2L,(const Ipp16s** mSrc,
  2028. const Ipp16s* pMean, int width, Ipp32f* pDst, int height, Ipp32f val,
  2029. int scaleFactor))
  2030. IPPAPI(IppStatus, ippsLogGauss_IdVar_32f_D2L,(const Ipp32f** mSrc,
  2031. const Ipp32f* pMean, int width, Ipp32f* pDst, int height, Ipp32f val))
  2032. IPPAPI(IppStatus, ippsLogGauss_IdVar_64f_D2L,(const Ipp64f** mSrc,
  2033. const Ipp64f* pMean, int width, Ipp64f* pDst, int height, Ipp64f val))
  2034. /* /////////////////////////////////////////////////////////////////////////////
  2035. // Name: ippsLogGaussMultiMix_*
  2036. // Purpose: Calculates the observation probability for
  2037. // multiple Gaussian mixture components.
  2038. //
  2039. // Parameters:
  2040. // pMean Pointer to the mean vector [height*step].
  2041. // pVar Pointer to the variance vector [height*step].
  2042. // mMean Pointer to the mean matrix [height][width].
  2043. // mVar Pointer to the variance matrix [height][width].
  2044. // pSrcDst Pointer to the input additive values and
  2045. // the result vector [height].
  2046. // step The row step in pMean.
  2047. // pSrc Pointer to the input vector [width].
  2048. // height The number of rows in input matrices and the length of
  2049. // the result vector pSrcDst.
  2050. // width The length of the input matrices row and the vector pSrc.
  2051. // scaleFactor
  2052. //
  2053. // Return:
  2054. // ippStsNoErr Indicates no error.
  2055. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  2056. // pSrcDst, mMean, or mVar pointer is null.
  2057. // ippStsSizeErr Indicates an error when height or width is less than or
  2058. // equal to 0.
  2059. // ippStsStrideErr Indicates an error when width > step.
  2060. //
  2061. */
  2062. IPPAPI(IppStatus, ippsLogGaussMultiMix_16s32s_D2Sfs, (const Ipp16s* pMean,
  2063. const Ipp16s* pVar, int step, const Ipp16s* pSrc, int width,
  2064. Ipp32s* pSrcDst, int height, int scaleFactor))
  2065. IPPAPI(IppStatus, ippsLogGaussMultiMix_16s32s_D2LSfs, (const Ipp16s** mMean,
  2066. const Ipp16s** mVar, const Ipp16s* pSrc, int width, Ipp32s* pSrcDst,
  2067. int height, int scaleFactor))
  2068. IPPAPI(IppStatus, ippsLogGaussMultiMix_Scaled_16s32f_D2, (const Ipp16s* pMean,
  2069. const Ipp16s* pVar, int step, const Ipp16s* pSrc, int width,
  2070. Ipp32f* pSrcDst, int height, int scaleFactor))
  2071. IPPAPI(IppStatus, ippsLogGaussMultiMix_Scaled_16s32f_D2L, (const Ipp16s** mMean,
  2072. const Ipp16s** mVar, const Ipp16s* pSrc, int width, Ipp32f* pSrcDst,
  2073. int height, int scaleFactor))
  2074. IPPAPI(IppStatus, ippsLogGaussMultiMix_32f_D2, (const Ipp32f* pMean,
  2075. const Ipp32f* pVar, int step, const Ipp32f* pSrc, int width,
  2076. Ipp32f* pSrcDst, int height))
  2077. IPPAPI(IppStatus, ippsLogGaussMultiMix_64f_D2, (const Ipp64f* pMean,
  2078. const Ipp64f* pVar, int step, const Ipp64f* pSrc, int width,
  2079. Ipp64f* pSrcDst, int height))
  2080. IPPAPI(IppStatus, ippsLogGaussMultiMix_32f_D2L, (const Ipp32f** mMean,
  2081. const Ipp32f** mVar, const Ipp32f* pSrc, int width, Ipp32f* pSrcDst,
  2082. int height))
  2083. IPPAPI(IppStatus, ippsLogGaussMultiMix_64f_D2L, (const Ipp64f** mMean,
  2084. const Ipp64f** mVar, const Ipp64f* pSrc, int width, Ipp64f* pSrcDst,
  2085. int height))
  2086. /* /////////////////////////////////////////////////////////////////////////////
  2087. // Name: ippsLogGaussMax_*_D2
  2088. // Purpose: Computes maximum value of a vector dst and
  2089. // logarithms of the Gaussian probability distribution function.
  2090. // Parameters:
  2091. // pSrc Pointer to the input vector [height*step].
  2092. // mSrc Pointer to the input matrix [height][width].
  2093. // step The row step in pSrc.
  2094. // pMean Pointer to the mean vector [width].
  2095. // pVar Pointer to the variance vector [width].
  2096. // width The length of the input matrix row, mean,
  2097. // and variance vectors.
  2098. // pSrcDst Pointer to the input and output vector [height].
  2099. // height The number of rows in the input matrix and the length of
  2100. // the result vector pSrcDst.
  2101. // val The value to add to each distance.
  2102. // scaleFactor
  2103. //
  2104. // Return:
  2105. // ippStsNoErr Indicates no error.
  2106. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  2107. // pSrcDst, mSrc pointer is null.
  2108. // ippStsSizeErr Indicates an error when height or width is less than or
  2109. // equal to 0.
  2110. // ippStsStrideErr Indicates an error when width > step.
  2111. //
  2112. */
  2113. /*
  2114. //Case 1: Operation for the inverse diagonal covariance matrix
  2115. */
  2116. IPPAPI(IppStatus, ippsLogGaussMax_32f_D2, (const Ipp32f* pSrc, int step,
  2117. const Ipp32f* pMean, const Ipp32f* pVar, int width,
  2118. Ipp32f* pSrcDst, int height, Ipp32f val))
  2119. IPPAPI(IppStatus, ippsLogGaussMax_32f_D2L, (const Ipp32f** mSrc,
  2120. const Ipp32f* pMean, const Ipp32f* pVar, int width, Ipp32f* pSrcDst,
  2121. int height, Ipp32f val))
  2122. IPPAPI(IppStatus, ippsLogGaussMax_64f_D2, (const Ipp64f* pSrc, int step,
  2123. const Ipp64f* pMean, const Ipp64f* pVar, int width, Ipp64f* pSrcDst,
  2124. int height, Ipp64f val))
  2125. IPPAPI(IppStatus, ippsLogGaussMax_64f_D2L, (const Ipp64f** mSrc,
  2126. const Ipp64f* pMean, const Ipp64f* pVar, int width, Ipp64f* pSrcDst,
  2127. int height, Ipp64f val))
  2128. IPPAPI(IppStatus, ippsLogGaussMax_16s32s_D2Sfs, (const Ipp16s* pSrc,
  2129. int step, const Ipp16s* pMean, const Ipp16s* pVar, int width,
  2130. Ipp32s* pSrcDst, int height, Ipp32s val, int scaleFactor))
  2131. IPPAPI(IppStatus, ippsLogGaussMax_16s32s_D2LSfs, (const Ipp16s** mSrc,
  2132. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32s* pSrcDst,
  2133. int height, Ipp32s val, int scaleFactor))
  2134. IPPAPI(IppStatus, ippsLogGaussMax_Scaled_16s32f_D2, (const Ipp16s* pSrc, int step,
  2135. const Ipp16s* pMean, const Ipp16s* pVar, int width,
  2136. Ipp32f* pSrcDst, int height, Ipp32f val, int scaleFactor))
  2137. IPPAPI(IppStatus, ippsLogGaussMax_Scaled_16s32f_D2L, (const Ipp16s** mSrc,
  2138. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32f* pSrcDst,
  2139. int height, Ipp32f val, int scaleFactor))
  2140. /*
  2141. //Case 2: Operation for the identity covariance matrix
  2142. */
  2143. IPPAPI(IppStatus, ippsLogGaussMax_IdVar_32f_D2, (const Ipp32f* pSrc,
  2144. int step, const Ipp32f* pMean, int width, Ipp32f* pSrcDst,
  2145. int height, Ipp32f val))
  2146. IPPAPI(IppStatus, ippsLogGaussMax_IdVar_32f_D2L, (const Ipp32f** mSrc,
  2147. const Ipp32f* pMean, int width, Ipp32f* pSrcDst, int height,
  2148. Ipp32f val))
  2149. IPPAPI(IppStatus, ippsLogGaussMax_IdVar_64f_D2, (const Ipp64f* pSrc,
  2150. int step, const Ipp64f* pMean, int width, Ipp64f* pSrcDst,
  2151. int height, Ipp64f val))
  2152. IPPAPI(IppStatus, ippsLogGaussMax_IdVar_64f_D2L, (const Ipp64f** mSrc,
  2153. const Ipp64f* pMean, int width, Ipp64f* pSrcDst, int height,
  2154. Ipp64f val))
  2155. IPPAPI(IppStatus, ippsLogGaussMax_IdVar_16s32s_D2Sfs, (const Ipp16s* pSrc,
  2156. int step, const Ipp16s* pMean, int width, Ipp32s* pSrcDst,
  2157. int height, Ipp32s val, int scaleFactor))
  2158. IPPAPI(IppStatus, ippsLogGaussMax_IdVar_16s32s_D2LSfs, (const Ipp16s** mSrc,
  2159. const Ipp16s* pMean, int width, Ipp32s* pSrcDst, int height,
  2160. Ipp32s val, int scaleFactor))
  2161. IPPAPI(IppStatus, ippsLogGaussMax_IdVarScaled_16s32f_D2, (const Ipp16s* pSrc,
  2162. int step, const Ipp16s* pMean, int width, Ipp32f* pSrcDst,
  2163. int height, Ipp32f val, int scaleFactor))
  2164. IPPAPI(IppStatus, ippsLogGaussMax_IdVarScaled_16s32f_D2L, (const Ipp16s** mSrc,
  2165. const Ipp16s* pMean, int width, Ipp32f* pSrcDst, int height,
  2166. Ipp32f val, int scaleFactor))
  2167. /* /////////////////////////////////////////////////////////////////////////////
  2168. // Name: ippsLogGaussMaxMultiMix_*_*
  2169. // Purpose: Computes the maximum of the Gaussian probability
  2170. // distribution function.
  2171. // Parameters:
  2172. // pMean Pointer to the mean vector [height*step].
  2173. // pVar Pointer to the variance vector [height*step].
  2174. // mMean Pointer to the mean matrix [height][width].
  2175. // mVar Pointer to the variance matrix [height][width].
  2176. // pVal Pointer to the input vector of Max values [height].
  2177. // pSrcDst Pointer to the input and output vector [height].
  2178. // step Row step in pMean and pVar.
  2179. // pSrc Pointer to theinput vector [width].
  2180. // height Number of rows in input matrices and the length of
  2181. // the result vector pSrcDst.
  2182. // width Length of the input matrices row and the vector pSrc.
  2183. // scaleFactor
  2184. //
  2185. // Return:
  2186. // ippStsNoErr Indicates no error.
  2187. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  2188. // pSrcDst, mMean, mVar or pVal pointer is null.
  2189. // ippStsSizeErr Indicates an error when height or width is less than or
  2190. // equal to 0.
  2191. // ippStsStrideErr Indicates an error when width > step.
  2192. //
  2193. */
  2194. IPPAPI(IppStatus, ippsLogGaussMaxMultiMix_32f_D2, (const Ipp32f* pMean,
  2195. const Ipp32f* pVar, int step, const Ipp32f* pSrc, int width,
  2196. const Ipp32f* pVal, Ipp32f* pSrcDst, int height))
  2197. IPPAPI(IppStatus, ippsLogGaussMaxMultiMix_32f_D2L, (const Ipp32f** mMean,
  2198. const Ipp32f** mVar, const Ipp32f* pSrc, int width, const Ipp32f* pVal,
  2199. Ipp32f* pSrcDst, int height))
  2200. IPPAPI(IppStatus, ippsLogGaussMaxMultiMix_64f_D2, (const Ipp64f* pMean,
  2201. const Ipp64f* pVar, int step, const Ipp64f* pSrc, int width,
  2202. const Ipp64f* pVal, Ipp64f* pSrcDst, int height))
  2203. IPPAPI(IppStatus, ippsLogGaussMaxMultiMix_64f_D2L, (const Ipp64f** mMean,
  2204. const Ipp64f** mVar, const Ipp64f* pSrc, int width, const Ipp64f* pVal,
  2205. Ipp64f* pSrcDst, int height))
  2206. IPPAPI(IppStatus, ippsLogGaussMaxMultiMix_Scaled_16s32f_D2, (const Ipp16s* pMean,
  2207. const Ipp16s* pVar, int step, const Ipp16s* pSrc, int width,
  2208. const Ipp32f* pVal, Ipp32f* pSrcDst, int height, int scaleFactor))
  2209. IPPAPI(IppStatus, ippsLogGaussMaxMultiMix_Scaled_16s32f_D2L, (const Ipp16s** mMean,
  2210. const Ipp16s** mVar, const Ipp16s* pSrc, int width, const Ipp32f* pVal,
  2211. Ipp32f* pSrcDst, int height, int scaleFactor))
  2212. IPPAPI(IppStatus, ippsLogGaussMaxMultiMix_16s32s_D2Sfs, (const Ipp16s* pMean,
  2213. const Ipp16s* pVar, int step, const Ipp16s* pSrc, int width,
  2214. const Ipp32s* pVal, Ipp32s* pSrcDst, int height, int scaleFactor))
  2215. IPPAPI(IppStatus, ippsLogGaussMaxMultiMix_16s32s_D2LSfs, (const Ipp16s** mMean,
  2216. const Ipp16s** mVar, const Ipp16s* pSrc, int width, const Ipp32s* pVal,
  2217. Ipp32s* pSrcDst, int height, int scaleFactor))
  2218. /* /////////////////////////////////////////////////////////////////////////////
  2219. // Name: ippsLogGaussAdd_32f_D2
  2220. // Purpose: Calculates the likelihood probability for multiple
  2221. // observation vectors.
  2222. //
  2223. // Parameters:
  2224. // pSrc Pointer to the input vector [width*height]
  2225. // mSrc Pointer to the input matrix [height][width].
  2226. // step Row step in pSrc.
  2227. // pMean Pointer to the mean vector [width]
  2228. // pVar Pointer to the variance vector [width]
  2229. // width Length of the mean, and variance vectors.
  2230. // pSrcDst Pointer to input vector and output vector [height]
  2231. // height Length of the input and output vector pSrcDst
  2232. // val Value to add to each distance.
  2233. //
  2234. // Returns:
  2235. // ippStsNoErr Indicates no error
  2236. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  2237. // pSrcDst or mSrc pointer is null.
  2238. // ippStsSizeErr Indicates an error when width or height
  2239. // is less than or equal to 0.
  2240. // ippStsStrideErr Indicates an error when width > step.
  2241. */
  2242. /*
  2243. //Case 1: Operation for the inverse diagonal covariance matrix
  2244. */
  2245. IPPAPI(IppStatus, ippsLogGaussAdd_32f_D2, (const Ipp32f* pSrc, int step,
  2246. const Ipp32f* pMean, const Ipp32f* pVar, int width, Ipp32f* pSrcDst,
  2247. int height, Ipp32f val))
  2248. IPPAPI(IppStatus, ippsLogGaussAdd_32f_D2L, (const Ipp32f** mSrc,
  2249. const Ipp32f* pMean, const Ipp32f* pVar, int width, Ipp32f* pSrcDst,
  2250. int height, Ipp32f val))
  2251. IPPAPI(IppStatus, ippsLogGaussAdd_64f_D2,(const Ipp64f* pSrc, int step,
  2252. const Ipp64f* pMean, const Ipp64f* pVar, int width,
  2253. Ipp64f* pSrcDst, int height, Ipp64f val))
  2254. IPPAPI(IppStatus, ippsLogGaussAdd_64f_D2L, (const Ipp64f** mSrc, const Ipp64f* pMean,
  2255. const Ipp64f* pVar, int width, Ipp64f* pSrcDst, int height, Ipp64f val))
  2256. IPPAPI(IppStatus, ippsLogGaussAdd_Scaled_16s32f_D2,(const Ipp16s* pSrc, int step,
  2257. const Ipp16s* pMean, const Ipp16s* pVar, int width,
  2258. Ipp32f* pSrcDst, int height, Ipp32f val, int scaleFactor))
  2259. IPPAPI(IppStatus, ippsLogGaussAdd_Scaled_16s32f_D2L, (const Ipp16s** mSrc,
  2260. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32f* pSrcDst,
  2261. int height, Ipp32f val, int scaleFactor))
  2262. /*
  2263. //Case 2: Operation for the identity covariance matrix
  2264. */
  2265. IPPAPI(IppStatus, ippsLogGaussAdd_IdVarScaled_16s32f_D2,(const Ipp16s* pSrc,
  2266. int step, const Ipp16s* pMean, int width, Ipp32f* pSrcDst,
  2267. int height, Ipp32f val, int scaleFactor))
  2268. IPPAPI(IppStatus, ippsLogGaussAdd_IdVarScaled_16s32f_D2L,(const Ipp16s** mSrc,
  2269. const Ipp16s* pMean, int width, Ipp32f* pSrcDst, int height, Ipp32f val,
  2270. int scaleFactor))
  2271. IPPAPI(IppStatus, ippsLogGaussAdd_IdVar_32f_D2,(const Ipp32f* pSrc,
  2272. int step, const Ipp32f* pMean, int width, Ipp32f* pSrcDst, int height,
  2273. Ipp32f val))
  2274. IPPAPI(IppStatus, ippsLogGaussAdd_IdVar_32f_D2L,(const Ipp32f** mSrc,
  2275. const Ipp32f* pMean, int width, Ipp32f* pSrcDst, int height, Ipp32f val))
  2276. IPPAPI(IppStatus, ippsLogGaussAdd_IdVar_64f_D2,(const Ipp64f* pSrc, int step,
  2277. const Ipp64f* pMean, int width, Ipp64f* pSrcDst, int height, Ipp64f val))
  2278. IPPAPI(IppStatus, ippsLogGaussAdd_IdVar_64f_D2L,(const Ipp64f** mSrc,
  2279. const Ipp64f* pMean, int width, Ipp64f* pSrcDst, int height, Ipp64f val))
  2280. /* /////////////////////////////////////////////////////////////////////////////
  2281. // Name: ippsLogGaussAddMultiMix_*_*
  2282. // Purpose: Calculates the likelihood probability for multiple
  2283. // Gaussian mixture components.
  2284. //
  2285. // Parameters:
  2286. // pMean Pointer to the variance vector [height*step].
  2287. // mMean Pointer to the mean matrix [height][width].
  2288. // pVar Pointer to the variance vector [height*step].
  2289. // mVar Pointer to the variance matrix [height][width].
  2290. // pVal Pointer to the input vector of additive values [height].
  2291. // pSrcDst Pointer to the input and output vector [height].
  2292. // step The row step in pMean.
  2293. // pSrc Pointer to the input vector [width].
  2294. // height The number of rows in input matrices and the length of
  2295. // the result vector pSrcDst.
  2296. // width The length of the input matrices row and the vector pSrc.
  2297. // scaleFactor
  2298. //
  2299. // Return:
  2300. // ippStsNoErr Indicates no error.
  2301. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  2302. // pSrcDst, mMean, mVar or pVal pointer is null.
  2303. // ippStsSizeErr Indicates an error when height or width is less than or
  2304. // equal to 0.
  2305. // ippStsStrideErr Indicates an error when width > step.
  2306. //
  2307. */
  2308. IPPAPI(IppStatus, ippsLogGaussAddMultiMix_Scaled_16s32f_D2, (const Ipp16s* pMean,
  2309. const Ipp16s* pVar, int step, const Ipp16s* pSrc, int width,
  2310. const Ipp32f* pVal, Ipp32f* pSrcDst, int height, int scaleFactor))
  2311. IPPAPI(IppStatus, ippsLogGaussAddMultiMix_Scaled_16s32f_D2L, (const Ipp16s** mMean,
  2312. const Ipp16s** mVar, const Ipp16s* pSrc, int width, const Ipp32f* pVal,
  2313. Ipp32f* pSrcDst, int height, int scaleFactor))
  2314. IPPAPI(IppStatus, ippsLogGaussAddMultiMix_32f_D2, (const Ipp32f* pMean,
  2315. const Ipp32f* pVar, int step, const Ipp32f* pSrc, int width,
  2316. const Ipp32f* pVal, Ipp32f* pSrcDst, int height))
  2317. IPPAPI(IppStatus, ippsLogGaussAddMultiMix_32f_D2L, (const Ipp32f** mMean,
  2318. const Ipp32f** mVar, const Ipp32f* pSrc, int width, const Ipp32f* pVal,
  2319. Ipp32f* pSrcDst, int height))
  2320. IPPAPI(IppStatus, ippsLogGaussAddMultiMix_64f_D2, (const Ipp64f* pMean,
  2321. const Ipp64f* pVar, int step, const Ipp64f* pSrc, int width,
  2322. const Ipp64f* pVal, Ipp64f* pSrcDst, int height))
  2323. IPPAPI(IppStatus, ippsLogGaussAddMultiMix_64f_D2L, (const Ipp64f** mMean,
  2324. const Ipp64f** mVar, const Ipp64f* pSrc, int width, const Ipp64f* pVal,
  2325. Ipp64f* pSrcDst, int height))
  2326. /* /////////////////////////////////////////////////////////////////////////////
  2327. // Model Estimation
  2328. ///////////////////////////////////////////////////////////////////////////// */
  2329. /* /////////////////////////////////////////////////////////////////////////////
  2330. // Name: ippsMeanColumn_*
  2331. // Purpose: Computes the mean values vector of column
  2332. // Parameters:
  2333. // pSrc Pointer to the input vector [height*step].
  2334. // mSrc Pointer to the input matrix [height][width].
  2335. // height The number rows in the input matrix.
  2336. // step The row step in pSrc.
  2337. // pDstMean Pointer to the output mean vector [width].
  2338. // width The number of columns in the input matrix and the length
  2339. // of the output mean vector pDstMean.
  2340. // scaleFactor
  2341. //
  2342. // Return:
  2343. // ippStsNoErr Indicates no error.
  2344. // ippStsNullPtrErr Indicates an error when the pSrc, mSrc, or pDstMean
  2345. // pointer is null.
  2346. // ippStsSizeErr Indicates an error when height or width is less than
  2347. // or equal to 0.
  2348. // ippStsStrideErr Indicates an error when width > step.
  2349. //
  2350. */
  2351. IPPAPI(IppStatus, ippsMeanColumn_16s_D2,(const Ipp16s* pSrc, int height,
  2352. int step, Ipp16s* pDstMean, int width))
  2353. IPPAPI(IppStatus, ippsMeanColumn_16s_D2L,(const Ipp16s** mSrc, int height,
  2354. Ipp16s* pDstMean, int width))
  2355. IPPAPI(IppStatus, ippsMeanColumn_32f_D2,(const Ipp32f* pSrc, int height,
  2356. int step, Ipp32f* pDstMean, int width))
  2357. IPPAPI(IppStatus, ippsMeanColumn_32f_D2L,(const Ipp32f** mSrc, int height,
  2358. Ipp32f* pDstMean, int width))
  2359. /* /////////////////////////////////////////////////////////////////////////////
  2360. // Name: ippsVarColumn_*
  2361. // Purpose: Computes the variance values vector of column elements.
  2362. // Parameters:
  2363. // pSrc Pointer to the input vector [height*step].
  2364. // mSrc Pointer to the input matrix [height][width].
  2365. // height The number of rows in the input matrix.
  2366. // step The row step in pSrc.
  2367. // pSrcMean Pointer to the input mean vector [width].
  2368. // pDstVar Pointer to the output variance vector of length [width].
  2369. // width Number of columns in the input matrix and the length of
  2370. // the input mean vector pSrcMean and output variance
  2371. // vector pDstVar.
  2372. //
  2373. // Return:
  2374. // ippStsNoErr Indicates no error.
  2375. // ippStsNullPtrErr Indicates an error when the mSrc, pSrcMean, pDstVar, or
  2376. // pSrc pointer is null.
  2377. // ippStsSizeErr Indicates an error when srcHight or width is less than or
  2378. // equal to 0.
  2379. // ippStsStrideErr Indicates an error when width > step.
  2380. //
  2381. */
  2382. IPPAPI(IppStatus, ippsVarColumn_16s_D2Sfs,(const Ipp16s* pSrc, int height,
  2383. int step, Ipp16s* pSrcMean, Ipp16s* pDstVar, int width, int scaleFactor))
  2384. IPPAPI(IppStatus, ippsVarColumn_16s_D2LSfs,(const Ipp16s** mSrc, int height,
  2385. Ipp16s* pSrcMean, Ipp16s* pDstVar, int width, int scaleFactor))
  2386. IPPAPI(IppStatus, ippsVarColumn_32f_D2,(const Ipp32f* pSrc, int height,
  2387. int step, Ipp32f* pSrcMean, Ipp32f* pDstVar, int width))
  2388. IPPAPI(IppStatus, ippsVarColumn_32f_D2L,(const Ipp32f** mSrc, int height,
  2389. Ipp32f* pSrcMean, Ipp32f* pDstVar, int width))
  2390. /* /////////////////////////////////////////////////////////////////////////////
  2391. // Name: ippsMeanVarColumn_*
  2392. // Purpose: Computes the mean and variance values vector of
  2393. // column elements.
  2394. // Parameters:
  2395. // pSrc Pointer to the input vector [height*step].
  2396. // mSrc Pointer to the input matrix [height][width].
  2397. // height The number of rows in the input matrix.
  2398. // step The row step in pSrc.
  2399. // pDstMean Pointer to the output mean vector [width].
  2400. // pDstVar Pointer to the output variance vector [width].
  2401. // width The number of columns in the input matrix and the length
  2402. // of the output mean vector pDstMean and
  2403. // variance vector pDstVar.
  2404. //
  2405. // Return:
  2406. // ippStsNoErr Indicates no error.
  2407. // ippStsNullPtrErr Indicates an error when the pSrc, mSrc, pDstMean, or
  2408. // pDstVar pointer is null.
  2409. // ippStsSizeErr Indicates an error when height or width is less than
  2410. // or equal to 0.
  2411. // ippStsStrideErr Indicates an error when width > step.
  2412. //
  2413. */
  2414. IPPAPI(IppStatus, ippsMeanVarColumn_16s_D2Sfs,(const Ipp16s* pSrc, int height,
  2415. int step, Ipp16s* pDstMean, Ipp16s* pDstVar, int width, int scaleFactor))
  2416. IPPAPI(IppStatus, ippsMeanVarColumn_16s_D2LSfs,(const Ipp16s** mSrc, int height,
  2417. Ipp16s* pDstMean, Ipp16s* pDstVar, int width, int scaleFactor))
  2418. IPPAPI(IppStatus, ippsMeanVarColumn_16s16s32s_D2,(const Ipp16s* pSrc, int height,
  2419. int step, Ipp16s* pDstMean, Ipp32s* pDstVar, int width))
  2420. IPPAPI(IppStatus, ippsMeanVarColumn_16s16s32s_D2L,(const Ipp16s** mSrc, int height,
  2421. Ipp16s* pDstMean, Ipp32s* pDstVar, int width))
  2422. IPPAPI(IppStatus, ippsMeanVarColumn_16s32s_D2Sfs,(const Ipp16s* pSrc, int height,
  2423. int step, Ipp32s* pDstMean, Ipp32s* pDstVar, int width, int scaleFactor))
  2424. IPPAPI(IppStatus, ippsMeanVarColumn_16s32s_D2LSfs,(const Ipp16s** mSrc, int height,
  2425. Ipp32s* pDstMean, Ipp32s* pDstVar, int width, int scaleFactor))
  2426. IPPAPI(IppStatus, ippsMeanVarColumn_32f_D2,(const Ipp32f* pSrc, int height,
  2427. int step, Ipp32f* pDstMean, Ipp32f* pDstVar, int width))
  2428. IPPAPI(IppStatus, ippsMeanVarColumn_32f_D2L,(const Ipp32f** mSrc, int height,
  2429. Ipp32f* pDstMean, Ipp32f* pDstVar, int width))
  2430. /* /////////////////////////////////////////////////////////////////////////////
  2431. // Name: ippsNormalizeColumn_*_*
  2432. // Purpose: Normalizes the matrix rows with the help of mean
  2433. // and variance vectors.
  2434. // Parameters:
  2435. // pMean Pointer to the mean vector [width].
  2436. // pVar Pointer to the variance vector [width].
  2437. // pSrcDst Pointer to the input and output vector [height*step].
  2438. // mSrcDst Pointer to the input/output matrix [height][width]
  2439. // width The number of elements in the mean
  2440. // and variance vectors.
  2441. // step The row step in pSrcDst.
  2442. // height The number of rows in the input and output matrix
  2443. // scaleFactor
  2444. //
  2445. // Return:
  2446. // ippStsNoErr Indicates no error.
  2447. // ippStsNullPtrErr Indicates an error when the pMean, pVar, or pSrcDst
  2448. // or mSrcDst pointer is null.
  2449. // ippStsSizeErr Indicates an error when height or width is less than or
  2450. // equal to 0.
  2451. // ippStsStrideErr Indicates an error when width > step.
  2452. //
  2453. */
  2454. IPPAPI(IppStatus, ippsNormalizeColumn_32f_D2,(Ipp32f* pSrcDst, int step,
  2455. int height, const Ipp32f* pMean, const Ipp32f* pVar, int width))
  2456. IPPAPI(IppStatus, ippsNormalizeColumn_32f_D2L,(Ipp32f** mSrcDst, int height,
  2457. const Ipp32f* pMean, const Ipp32f* pVar, int width))
  2458. IPPAPI(IppStatus, ippsNormalizeColumn_16s_D2Sfs,(Ipp16s* pSrcDst, int step,
  2459. int height, const Ipp16s* pMean, const Ipp16s* pVar, int width,
  2460. int scaleFactor))
  2461. IPPAPI(IppStatus, ippsNormalizeColumn_16s_D2LSfs,(Ipp16s** mSrcDst, int height,
  2462. const Ipp16s* pMean, const Ipp16s* pVar, int width, int scaleFactor))
  2463. /* /////////////////////////////////////////////////////////////////////////////
  2464. // Name: ippsNormalizeInRange_*
  2465. //
  2466. // Purpose: Normalizes and scales input vector elements.
  2467. //
  2468. // Parameters:
  2469. // pSrc Pointer to the input array [len].
  2470. // pSrcDst Pointer to the input and output array
  2471. // (for the in-place operation) [len].
  2472. // pDst Pointer to the output array [len].
  2473. // len Number of elements in the input and output array.
  2474. // lowCut Lower cutoff value.
  2475. // highCut High cutoff value.
  2476. // range Upper bound of output data value (lower bound is 0).
  2477. //
  2478. // Return:
  2479. // ippStsNoErr Indicates no error.
  2480. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  2481. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  2482. // ippStsBadArgErr Indicates an error when 0<=lowCut<highCut<=1 condition
  2483. // is not true or range is less than 0.
  2484. // ippStsInvZero Indicates a warning when Xmin = Xmax. All elements of
  2485. // the output vector are set to 0.
  2486. */
  2487. IPPAPI(IppStatus, ippsNormalizeInRange_16s8u, (const Ipp16s* pSrc, Ipp8u* pDst,
  2488. int len, Ipp32f lowCut, Ipp32f highCut, Ipp8u range))
  2489. IPPAPI(IppStatus, ippsNormalizeInRange_16s, (const Ipp16s* pSrc, Ipp16s* pDst,
  2490. int len, Ipp32f lowCut, Ipp32f highCut, Ipp16s range))
  2491. IPPAPI(IppStatus, ippsNormalizeInRange_16s_I, (Ipp16s* pSrcDst,
  2492. int len, Ipp32f lowCut, Ipp32f highCut, Ipp16s range))
  2493. IPPAPI(IppStatus, ippsNormalizeInRange_32f8u, (const Ipp32f* pSrc, Ipp8u* pDst,
  2494. int len, Ipp32f lowCut, Ipp32f highCut, Ipp8u range))
  2495. IPPAPI(IppStatus, ippsNormalizeInRange_32f16s, (const Ipp32f* pSrc, Ipp16s* pDst,
  2496. int len, Ipp32f lowCut, Ipp32f highCut, Ipp16s range))
  2497. IPPAPI(IppStatus, ippsNormalizeInRange_32f, (const Ipp32f* pSrc, Ipp32f* pDst,
  2498. int len, Ipp32f lowCut, Ipp32f highCut, Ipp32f range))
  2499. IPPAPI(IppStatus, ippsNormalizeInRange_32f_I, (Ipp32f* pSrcDst,
  2500. int len, Ipp32f lowCut, Ipp32f highCut, Ipp32f range))
  2501. /* /////////////////////////////////////////////////////////////////////////////
  2502. // Name: ippsNormalizeInRangeMinMax_*
  2503. //
  2504. // Purpose: Normalizes and scales input vector elements.
  2505. //
  2506. // Parameters:
  2507. // pSrc Pointer to the input array [len].
  2508. // pSrcDst Pointer to the input and output array
  2509. // (for the in-place operation) [len].
  2510. // pDst Pointer to the output array [len].
  2511. // len Number of elements in the input and output array.
  2512. // lowCut Lower cutoff value.
  2513. // highCut High cutoff value.
  2514. // range Upper bound of output data value (lower bound is 0).
  2515. // valMin Minimum of input data.
  2516. // valMax Maximum of input data.
  2517. //
  2518. // Return:
  2519. // ippStsNoErr Indicates no error.
  2520. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  2521. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  2522. // ippStsBadArgErr Indicates an error when 0<=lowCut<highCut<=1 condition
  2523. // is not true or range is less than 0 or valMin is greater
  2524. // than valMax.
  2525. // ippStsInvZero Indicates a warning when valMin=valMax. All elements of
  2526. // the output vector are set to 0.
  2527. */
  2528. IPPAPI(IppStatus, ippsNormalizeInRangeMinMax_16s8u, (const Ipp16s* pSrc, Ipp8u* pDst,
  2529. int len, Ipp16s valMin, Ipp16s valMax,
  2530. Ipp32f lowCut, Ipp32f highCut, Ipp8u range))
  2531. IPPAPI(IppStatus, ippsNormalizeInRangeMinMax_16s, (const Ipp16s* pSrc, Ipp16s* pDst,
  2532. int len, Ipp16s valMin, Ipp16s valMax,
  2533. Ipp32f lowCut, Ipp32f highCut, Ipp16s range))
  2534. IPPAPI(IppStatus, ippsNormalizeInRangeMinMax_16s_I, (Ipp16s* pSrcDst,
  2535. int len, Ipp16s valMin, Ipp16s valMax, Ipp32f
  2536. lowCut, Ipp32f highCut, Ipp16s range))
  2537. IPPAPI(IppStatus, ippsNormalizeInRangeMinMax_32f8u, (const Ipp32f* pSrc, Ipp8u* pDst,
  2538. int len, Ipp32f valMin, Ipp32f valMax,
  2539. Ipp32f lowCut, Ipp32f highCut, Ipp8u range))
  2540. IPPAPI(IppStatus, ippsNormalizeInRangeMinMax_32f16s, (const Ipp32f* pSrc, Ipp16s* pDst,
  2541. int len, Ipp32f valMin, Ipp32f valMax,
  2542. Ipp32f lowCut, Ipp32f highCut, Ipp16s range))
  2543. IPPAPI(IppStatus, ippsNormalizeInRangeMinMax_32f, (const Ipp32f* pSrc, Ipp32f* pDst,
  2544. int len, Ipp32f valMin, Ipp32f valMax,
  2545. Ipp32f lowCut, Ipp32f highCut, Ipp32f range))
  2546. IPPAPI(IppStatus, ippsNormalizeInRangeMinMax_32f_I, (Ipp32f* pSrcDst,
  2547. int len, Ipp32f valMin, Ipp32f valMax,
  2548. Ipp32f lowCut, Ipp32f highCut, Ipp32f range))
  2549. /* /////////////////////////////////////////////////////////////////////////////
  2550. // Name: ippsMeanVarAcc_*
  2551. // Purpose: Computes mean and variance accumulators.
  2552. // Parameters:
  2553. // pSrc Pointer to the input vector [len].
  2554. // pSrcMean Pointer to the mean vector [len].
  2555. // pDstMeanAcc Pointer to the mean accumulated vector [len].
  2556. // pDstVarAcc Pointer to the variance accumulated vector [len].
  2557. // len The number of elements in the input, mean,
  2558. // and variance vectors.
  2559. // val The value of the multiplyed mean and variance vectors
  2560. // before accumulated.
  2561. //
  2562. // Return:
  2563. // ippStsNoErr Indicates no error.
  2564. // ippStsNullPtrErr Indicates an error when the pSrc, pSrcMean, pDstMeanAcc,
  2565. // or pDstVarAcc pointer is null.
  2566. // ippStsSizeErr Indicates an error when lenis less than or equal to 0.
  2567. //
  2568. */
  2569. IPPAPI(IppStatus, ippsMeanVarAcc_32f, (Ipp32f const* pSrc,
  2570. Ipp32f const* pSrcMean, Ipp32f* pDstMeanAcc, Ipp32f* pDstVarAcc,
  2571. int len, Ipp32f val))
  2572. IPPAPI(IppStatus, ippsMeanVarAcc_64f, (Ipp64f const* pSrc,
  2573. Ipp64f const* pSrcMean, Ipp64f* pDstMeanAcc, Ipp64f* pDstVarAcc,
  2574. int len, Ipp64f val))
  2575. /* /////////////////////////////////////////////////////////////////////////////
  2576. // Name: ippsGaussianDist_32f
  2577. // Purpose: Computes distance between Gaussians.
  2578. // Parameters:
  2579. // pSrcMean1 Pointer to the mean vector of the first Gaussian [len]
  2580. // pSrcVar1 Pointer to the variance vector of the
  2581. // first Gaussian [len].
  2582. // pSrcMean2 Pointer to the mean vector of the second
  2583. // Gaussian [len].
  2584. // pSrcVar2 Pointer to the variance vector of the second
  2585. // Gaussian [len].
  2586. // len The number of elements in the mean and variance vectors.
  2587. // pResult Pointer to the distance value.
  2588. // wgt1 The first Gaussian weight.
  2589. // det1 The first Gaussian determinant.
  2590. // wgt2 The second Gaussian weight.
  2591. // det2 The second Gaussian determinant.
  2592. //
  2593. // Return:
  2594. // ippStsNoErr Indicates no error.
  2595. // ippStsNullPtrErr Indicates an error when the pSrcMean1, pSrcMean2,
  2596. // pSrcVar1, pSrcVar2, or pResult pointer is null.
  2597. // ippStsSizeErr Indicates an error when lenis less than or equal to 0.
  2598. //
  2599. */
  2600. IPPAPI(IppStatus, ippsGaussianDist_32f,(const Ipp32f* pSrcMean1,
  2601. const Ipp32f* pSrcVar1, const Ipp32f* pSrcMean2, const Ipp32f* pSrcVar2,
  2602. int len, Ipp32f* pResult, Ipp32f wgt1, Ipp32f det1, Ipp32f wgt2,
  2603. Ipp32f det2))
  2604. IPPAPI(IppStatus, ippsGaussianDist_64f,(const Ipp64f* pSrcMean1,
  2605. const Ipp64f* pSrcVar1, const Ipp64f* pSrcMean2, const Ipp64f* pSrcVar2,
  2606. int len, Ipp64f* pResult, Ipp64f wgt1, Ipp64f det1, Ipp64f wgt2,
  2607. Ipp64f det2))
  2608. /* /////////////////////////////////////////////////////////////////////////////
  2609. // Name: ippsGaussianSplit_32f
  2610. // Purpose: Splits simple Gaussian probability distribution functions
  2611. //
  2612. // Parameters:
  2613. // pSrcMean1 Pointer to the input and the first output mean
  2614. // vector [len].
  2615. // pSrcVar1 Pointer to the input and the first variance vector [len].
  2616. // pSrcMean2 Pointer to the second output mean vector [len].
  2617. // pSrcVar2 Pointer to the input and the second variance vector [len].
  2618. // len The number of elements in the mean and variance vectors.
  2619. // val The variance perturbation value.
  2620. //
  2621. // Return:
  2622. // ippStsNoErr Indicates no error.
  2623. // ippStsNullPtrErr Indicates an error when the pSrcMean1, pSrcMean2,
  2624. // pSrcVar1, or pSrcVar2 pointer is null.
  2625. // ippStsSizeErr Indicates an error when lenis less than or equal to 0.
  2626. //
  2627. */
  2628. IPPAPI(IppStatus, ippsGaussianSplit_32f,(Ipp32f* pSrcMean1, Ipp32f* pSrcVar1,
  2629. Ipp32f* pSrcMean2, Ipp32f* pSrcVar2, int len, Ipp32f val))
  2630. IPPAPI(IppStatus, ippsGaussianSplit_64f,(Ipp64f* pSrcMean1, Ipp64f* pSrcVar1,
  2631. Ipp64f* pSrcMean2, Ipp64f* pSrcVar2, int len, Ipp64f val))
  2632. /* /////////////////////////////////////////////////////////////////////////////
  2633. // Name: ippsGaussianMerge_32f
  2634. // Purpose: Merges two simple Gaussian probability
  2635. // distribution functions.
  2636. // Parameters:
  2637. // pSrcMean1 Pointer to the mean vector of the first Gaussian [len].
  2638. // pSrcVar1 Pointer to the variance vector of the first
  2639. // Gaussian [len].
  2640. // pSrcMean2 Pointer to the mean vector of the second Gaussian [len].
  2641. // pSrcVar2 Pointer to the variance vector of the second
  2642. // Gaussian [len].
  2643. // pDstMean Pointer to the mean vector of the merged Gaussian [len].
  2644. // pDstVar Pointer to the variance vector of the merged
  2645. // Gaussian [len].
  2646. // len The number of elements in the mean and variance vectors.
  2647. // pDstDet Pointer to the determinant of the merged Gaussian.
  2648. // wgt1 The first Gaussian weight.
  2649. // wgt2 The second Gaussian weight.
  2650. //
  2651. // Return:
  2652. // ippStsNoErr Indicates no error.
  2653. // ippStsNullPtrErr Indicates an error when the pSrcMean1, pSrcMean2,
  2654. // pSrcVar1, pSrcVar2, pDstMean, pDstVar, or pDstDet
  2655. // pointer is null.
  2656. // ippStsSizeErr Indicates an error when lenis less than or equal to 0.
  2657. //
  2658. */
  2659. IPPAPI(IppStatus, ippsGaussianMerge_32f,(const Ipp32f* pSrcMean1,
  2660. const Ipp32f* pSrcVar1, const Ipp32f* pSrcMean2, const Ipp32f* pSrcVar2,
  2661. Ipp32f* pDstMean, Ipp32f* pDstVar, int len, Ipp32f* pDstDet, Ipp32f wgt1,
  2662. Ipp32f wgt2))
  2663. IPPAPI(IppStatus, ippsGaussianMerge_64f,(const Ipp64f* pSrcMean1,
  2664. const Ipp64f* pSrcVar1, const Ipp64f* pSrcMean2, const Ipp64f* pSrcVar2,
  2665. Ipp64f* pDstMean, Ipp64f* pDstVar, int len, Ipp64f* pDstDet, Ipp64f wgt1,
  2666. Ipp64f wgt2))
  2667. /* /////////////////////////////////////////////////////////////////////////////
  2668. // Name: ippsEntropy_*
  2669. //
  2670. // Purpose: Calculate exponent of minus squared argument.
  2671. //
  2672. // Parameters:
  2673. // pSrc Pointer to the input vector [len].
  2674. // pResult Pointer to the destination enropy value.
  2675. // len Length of the input vector.
  2676. // srcShiftVal
  2677. // scaleFactor
  2678. //
  2679. // Return:
  2680. // ippStsNoErr Indicates no error.
  2681. // ippStsNullPtrErr Indicates an error when the pSrc or pResult pointer is null.
  2682. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  2683. // ippStsLnNegArg Indicates a warning for input vector elements less than 0.
  2684. // Operation execution is aborted. The destination
  2685. // value NaN and for integer operations is 0.
  2686. //
  2687. */
  2688. IPPAPI(IppStatus, ippsEntropy_32f, (const Ipp32f* pSrc, int len, Ipp32f* pResult))
  2689. IPPAPI(IppStatus, ippsEntropy_16s32s_Sfs, (const Ipp16s* pSrc, int srcShiftVal,
  2690. int len, Ipp32s* pResult, int scaleFactor))
  2691. /* /////////////////////////////////////////////////////////////////////////////
  2692. // Name: ippsSinC_*
  2693. //
  2694. // Purpose: Calculate sine divided by argument.
  2695. //
  2696. // Parameters:
  2697. // pSrc Pointer to the input array [len].
  2698. // pSrcDst Pointer to the input and destination vector [len].
  2699. // pDst Pointer to the output array [len].
  2700. // len Number of elements in the input vector.
  2701. //
  2702. // Return:
  2703. // ippStsNoErr Indicates no error.
  2704. // ippStsNullPtrErr Indicates an error when the pSrc, pSrcDst or pDst
  2705. // pointer is null.
  2706. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  2707. //
  2708. */
  2709. IPPAPI(IppStatus, ippsSinC_32f, (const Ipp32f* pSrc, Ipp32f* pDst, int len))
  2710. IPPAPI(IppStatus, ippsSinC_32f64f, (const Ipp32f* pSrc, Ipp64f* pDst, int len))
  2711. IPPAPI(IppStatus, ippsSinC_64f, (const Ipp64f* pSrc, Ipp64f* pDst, int len))
  2712. IPPAPI(IppStatus, ippsSinC_32f_I, (Ipp32f* pSrcDst, int len))
  2713. IPPAPI(IppStatus, ippsSinC_64f_I, (Ipp64f* pSrcDst, int len))
  2714. /* /////////////////////////////////////////////////////////////////////////////
  2715. // Name: ippsExpNegSqr_*
  2716. //
  2717. // Purpose: Calculate exponent of minus squared argument.
  2718. //
  2719. // Parameters:
  2720. // pSrc Pointer to the input array [len].
  2721. // pSrcDst Pointer to the input and destination vector [len].
  2722. // pDst Pointer to the destination vector [len].
  2723. // len Length of the input and output vectors.
  2724. //
  2725. // Return:
  2726. // ippStsNoErr Indicates no error.
  2727. // ippStsNullPtrErr Indicates an error when the pSrc, pSrcDst or pDst
  2728. // pointer is null.
  2729. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  2730. //
  2731. // File: psexpns.c
  2732. */
  2733. IPPAPI(IppStatus, ippsExpNegSqr_32f, (const Ipp32f* pSrc, Ipp32f* pDst, int len))
  2734. IPPAPI(IppStatus, ippsExpNegSqr_32f64f,(const Ipp32f* pSrc, Ipp64f* pDst, int len))
  2735. IPPAPI(IppStatus, ippsExpNegSqr_64f, (const Ipp64f* pSrc, Ipp64f* pDst, int len))
  2736. IPPAPI(IppStatus, ippsExpNegSqr_32f_I, (Ipp32f* pSrcDst, int len))
  2737. IPPAPI(IppStatus, ippsExpNegSqr_64f_I, (Ipp64f* pSrcDst, int len))
  2738. /*///////////////////////////////////////////////////////////////////////////////
  2739. // Name: IppStatus ippsBhatDistSLog_*
  2740. // Purpose: Calculates the Bhattacharia distance between two Gaussians.
  2741. //
  2742. // Parameters:
  2743. // pSrcMean1 Pointer to the first mean vector [len].
  2744. // pSrcVar1 Pointer to the first variance vector [len].
  2745. // pSrcMean2 Pointer to the second mean vector [len].
  2746. // pSrcVar2 Pointer to the second variance vector [len].
  2747. // pResult Pointer to the result value.
  2748. // len Length of the input mean and variance vectors.
  2749. // sumLog1 Sum of the first Gaussian variance in the logarithmic
  2750. // representation.
  2751. // sumLog2 Sum of the second Gaussian variance in the logarithmic
  2752. // representation.
  2753. //
  2754. // Return:
  2755. // ippStsNoErr Indicates no error.
  2756. // ippStsNullPtrErr Indicates an error when the pSrcMean1, pSrcVar1,
  2757. // pSrcMean2, pSrcVar2 or pResult pointer is null.
  2758. // ippStsSizeErr Indicates an error when len is less than or equal to 0
  2759. // ippStsLnZeroArg Indicates a warning that a zero value was detected in
  2760. // the input vector. The execution is not aborted.
  2761. // The result value is set to -Inf if there is no negative
  2762. // element in the vector.
  2763. // ippStsLnNegArg Indicates a warning that negative values were detected
  2764. // in the input vector. The execution is not aborted.
  2765. // The result value is set to NaN.
  2766. //
  2767. */
  2768. IPPAPI(IppStatus, ippsBhatDist_32f,(const Ipp32f* pSrcMean1,
  2769. const Ipp32f* pSrcVar1, const Ipp32f* pSrcMean2, const Ipp32f* pSrcVar2,
  2770. int len, Ipp32f* pResult))
  2771. IPPAPI(IppStatus, ippsBhatDist_32f64f,(const Ipp32f* pSrcMean1,
  2772. const Ipp32f* pSrcVar1, const Ipp32f* pSrcMean2, const Ipp32f* pSrcVar2,
  2773. int len, Ipp64f* pResult))
  2774. IPPAPI(IppStatus, ippsBhatDistSLog_32f,(const Ipp32f* pSrcMean1,
  2775. const Ipp32f* pSrcVar1, const Ipp32f* pSrcMean2, const Ipp32f* pSrcVar2,
  2776. int len, Ipp32f* pResult, Ipp32f sumLog1, Ipp32f sumLog2))
  2777. IPPAPI(IppStatus, ippsBhatDistSLog_32f64f,(const Ipp32f* pSrcMean1,
  2778. const Ipp32f* pSrcVar1, const Ipp32f* pSrcMean2, const Ipp32f* pSrcVar2,
  2779. int len, Ipp64f* pResult, Ipp32f sumLog1, Ipp32f sumLog2))
  2780. /* /////////////////////////////////////////////////////////////////////////////
  2781. // Name: ippsUpdateMean_*
  2782. // Purpose: Update the mean vector in the embedded EM
  2783. // training algorithm.
  2784. // Parameters:
  2785. // pMeanAcc Pointer to the mean accumulator [len].
  2786. // pMean Pointer to the mean vector [len].
  2787. // len The legth of the mean vector [len].
  2788. // meanOcc The occupation sum of the Gaussian mixture.
  2789. //
  2790. // Return:
  2791. // ippStsNoErr Indicates no error.
  2792. // ippStsNullPtrErr Indicates an error when the pMean or pMeanAcc
  2793. // pointer is null.
  2794. // ippStsZeroOcc Indicates an error when meanOcc is equal to 0
  2795. // ippStsNegOcc Indicates an error when meanOcc is less than 0
  2796. //
  2797. */
  2798. IPPAPI(IppStatus, ippsUpdateMean_32f, (const Ipp32f* pMeanAcc, Ipp32f* pMean,
  2799. int len, Ipp32f meanOcc))
  2800. IPPAPI(IppStatus, ippsUpdateMean_64f, (const Ipp64f* pMeanAcc, Ipp64f* pMean,
  2801. int len, Ipp64f meanOcc))
  2802. /* /////////////////////////////////////////////////////////////////////////////
  2803. // Name: ippsUpdateVar_*
  2804. // Purpose: Updates the variance vector in the EM training
  2805. // algorithm.
  2806. // Parameters:
  2807. // pMeanAcc Pointer to the mean accumulator [len].
  2808. // pVarAcc Pointer to the variance accumulator [len].
  2809. // pVarFloor Pointer to the variance floor vector [len].
  2810. // pVar Pointer to the variance vector [len].
  2811. // len The legth of the mean and variance vectors [len].
  2812. // meanOcc The occupation sum of the Gaussian mixture.
  2813. // varOcc The square occupation sum of the variance mixture.
  2814. //
  2815. // Return:
  2816. // ippStsNoErr Indicates no error.
  2817. // ippStsNullPtrErr Indicates an error when the or pMeanAcc or pVarAcc or pVar
  2818. // or pVarFloor pointer is null.
  2819. // ippStsZeroOcc Indicates an error when meanOcc or varOcc is equal to 0
  2820. // ippStsNegOcc Indicates an error when meanOcc and varOcc are less than 0
  2821. // ippStsResFloor Indicates a warning when all variances are floored.
  2822. //
  2823. */
  2824. IPPAPI(IppStatus, ippsUpdateVar_32f, (const Ipp32f* pMeanAcc,
  2825. const Ipp32f* pVarAcc, const Ipp32f* pVarFloor, Ipp32f* pVar, int len,
  2826. Ipp32f meanOcc, Ipp32f varOcc))
  2827. IPPAPI(IppStatus, ippsUpdateVar_64f, (const Ipp64f* pMeanAcc,
  2828. const Ipp64f* pVarAcc, const Ipp64f* pVarFloor, Ipp64f* pVar, int len,
  2829. Ipp64f meanOcc, Ipp64f varOcc))
  2830. /* /////////////////////////////////////////////////////////////////////////////
  2831. // Name: ippsUpdateWeight_*
  2832. // Purpose: Updates the weight values of Gaussian mixtures
  2833. // in the EM training algorithm.
  2834. // Parameters:
  2835. // pWgtAccm Pointer to the weight accumulator [len].
  2836. // pWgt Pointer to the weight vector [len].
  2837. // len Number of mixtures in the HMM state.
  2838. // pWgtSum Pointer to the output sum of weight values.
  2839. // wgtOcc The nominator of the weight update equation.
  2840. // wgtThresh The threshold for the weight values.
  2841. //
  2842. // Return:
  2843. // ippStsNoErr Indicates no error.
  2844. // ippStsNullPtrErr Indicates an error when the or pWgtAcc or pWgt or pWgtSum
  2845. // pointer is null.
  2846. // ippStsSizeErr Indicates an error when len is less than or equal to 0
  2847. // ippStsZeroOcc Indicates an error when wgtOcc is equal to 0
  2848. // ippStsNegOcc Indicates an error when wgtOcc is less than 0
  2849. // ippStsResFloor Indicates a warning when all weights are floored.
  2850. //
  2851. */
  2852. IPPAPI(IppStatus, ippsUpdateWeight_32f, (const Ipp32f* pWgtAcc, Ipp32f* pWgt,
  2853. int len, Ipp32f* pWgtSum, Ipp32f wgtOcc, Ipp32f wgtThresh))
  2854. IPPAPI(IppStatus, ippsUpdateWeight_64f, (const Ipp64f* pWgtAcc, Ipp64f* pWgt,
  2855. int len, Ipp64f* pWgtSum, Ipp64f wgtOcc, Ipp64f wgtThresh))
  2856. /* /////////////////////////////////////////////////////////////////////////////
  2857. // Name: ippsUpdateGConst_*
  2858. // Purpose: Updates the fixed constant in the Gaussian output
  2859. // probability density function.
  2860. // Parameters:
  2861. // pVar Pointer to the variance vector [len].
  2862. // len Dimension of the variance vector.
  2863. // pDet Pointer to the result value.
  2864. //
  2865. // Return:
  2866. // ippStsNoErr Indicates no error.
  2867. // ippStsNullPtrErr Indicates an error when the or pVar or pDet pointer
  2868. // is null.
  2869. // ippStsSizeErr Indicates an error when len is less than or equal to 0
  2870. // ippStsLnZeroArg Indicates a warning for zero-valued input vector elements.
  2871. // Operation execution is not aborted. The result value is
  2872. // set to -Inf if there are no negative elements in the vector.
  2873. // ippStsLnNegArg Indicates a warning for negative input vector elements.
  2874. // Operation execution is not aborted. The result value is NaN.
  2875. //
  2876. */
  2877. IPPAPI(IppStatus, ippsUpdateGConst_32f, (const Ipp32f* pVar, int len, Ipp32f* pDet))
  2878. IPPAPI(IppStatus, ippsUpdateGConst_64f, (const Ipp64f* pVar, int len, Ipp64f* pDet))
  2879. IPPAPI(IppStatus, ippsUpdateGConst_DirectVar_32f, (const Ipp32f* pVar, int len,
  2880. Ipp32f* pDet))
  2881. IPPAPI(IppStatus, ippsUpdateGConst_DirectVar_64f, (const Ipp64f* pVar, int len,
  2882. Ipp64f* pDet))
  2883. /* /////////////////////////////////////////////////////////////////////////////
  2884. // Name: ippsOutProbPreCalc_*
  2885. // Purpose: Pre-calculates the part of Gaussian mixture output
  2886. // probability that is irrelevant to observation vectors.
  2887. // Parameters:
  2888. // pWeight Pointer to the Gaussian mixture weight vector [len].
  2889. // pGConst Pointer to the constant vector calculated from
  2890. // ippsUpdateGConst [len].
  2891. // pVal Pointer to the resulting vector [len].
  2892. // len Number of mixtures in the HMM state.
  2893. //
  2894. // Return:
  2895. // ippStsNoErr Indicates no error.
  2896. // ippStsNullPtrErr Indicates an error when the or pWeight or pGConst or pVal
  2897. // pointer is null.
  2898. // ippStsSizeErr Indicates an error when len is less than or equal to 0
  2899. //
  2900. */
  2901. IPPAPI(IppStatus, ippsOutProbPreCalc_32f, (const Ipp32f* pWeight,
  2902. const Ipp32f* pGConst, Ipp32f* pVal, int len))
  2903. IPPAPI(IppStatus, ippsOutProbPreCalc_64f, (const Ipp64f* pWeight,
  2904. const Ipp64f* pGConst, Ipp64f* pVal, int len))
  2905. IPPAPI(IppStatus, ippsOutProbPreCalc_32f_I, (const Ipp32f* pWeight,
  2906. Ipp32f* pGConst, int len))
  2907. IPPAPI(IppStatus, ippsOutProbPreCalc_64f_I, (const Ipp64f* pWeight,
  2908. Ipp64f* pGConst, int len))
  2909. IPPAPI(IppStatus, ippsOutProbPreCalc_32s, (const Ipp32s* pWeight,
  2910. const Ipp32s* pGConst, Ipp32s* pVal, int len))
  2911. IPPAPI(IppStatus, ippsOutProbPreCalc_32s_I, (const Ipp32s* pWeight,
  2912. Ipp32s* pGConst, int len))
  2913. /*///////////////////////////////////////////////////////////////////////////////
  2914. // Name: ippsDcsClustLAccumulate_*
  2915. // Purpose: Update the accumulators for calculating state-cluster
  2916. // likelihood in the desition-tree clustering algorithm.
  2917. // Parameters:
  2918. // pMean Pointer to the mean vector of the HMM state in the
  2919. // cluster [len]
  2920. // pVar Pointer to the variance vector of the HMM state in the
  2921. // cluster [len]
  2922. // pDstSum Pointer to the sum part of the accumulator [len]
  2923. // pDstSqr Pointer to the sqr part of the accumulator [len]
  2924. // len Length of the mean and variance vectors.
  2925. // occ Occupation count of the HMM state.
  2926. // Return:
  2927. // ippStsNoErr Idicates no error
  2928. // ippStsNullPtrErr Idicates an error when the pMean, pVar, pDstSum or
  2929. // pDstSqr pointer is null
  2930. // ippStsSizeErr Idicates an error when len is less than or equal to 0
  2931. //
  2932. */
  2933. IPPAPI(IppStatus, ippsDcsClustLAccumulate_32f, (const Ipp32f* pMean,
  2934. const Ipp32f* pVar, Ipp32f* pDstSum, Ipp32f* pDstSqr, int len, Ipp32f occ))
  2935. IPPAPI(IppStatus, ippsDcsClustLAccumulate_64f, (const Ipp64f* pMean,
  2936. const Ipp64f* pVar, Ipp64f* pDstSum, Ipp64f* pDstSqr, int len, Ipp64f occ))
  2937. IPPAPI(IppStatus, ippsDcsClustLAccumulate_DirectVar_32f, (const Ipp32f* pMean,
  2938. const Ipp32f* pVar, Ipp32f* pDstSum, Ipp32f* pDstSqr, int len, Ipp32f occ))
  2939. IPPAPI(IppStatus, ippsDcsClustLAccumulate_DirectVar_64f, (const Ipp64f* pMean,
  2940. const Ipp64f* pVar, Ipp64f* pDstSum, Ipp64f* pDstSqr, int len, Ipp64f occ))
  2941. /*///////////////////////////////////////////////////////////////////////////////
  2942. // Name: ippsDcsClustLCompute_*
  2943. // Purpose: Calculate the likelihood of an HMM state cluster in the
  2944. // decision-tree state-clustering algorithm.
  2945. // Parameters:
  2946. // pSrcSum Pointer to the sum part of the accumulator [len]
  2947. // pSrcSqr Pointer to the sqr part of the accumulator [len]
  2948. // len Length of the mean and variance vectors.
  2949. // pDst Pointer to the resulting likelihood value
  2950. // occ Ocupation sum of the HMM state cluster
  2951. //
  2952. // Return:
  2953. // ippStsNoErr Idicates no error
  2954. // ippStsNullPtrErr Idicates an error when the pSrcSum, pSrcSqr,
  2955. // pDst pointer is null.
  2956. // ippStsSizeErr Indicates an error when len is less than or equal to 0 or
  2957. // occ is less than or equal to 0.
  2958. // ippStsZeroOcc Indicates an error when occ is equal to 0
  2959. // ippStsNegOcc Indicates an error when occ is less than 0
  2960. // ippStsLnZeroArg Indicates a warning for zero-valued input vector elements.
  2961. // Operation execution is not aborted. The result value is
  2962. // set to -Inf if there are no negative elements in the
  2963. // vector.
  2964. // ippStsLnNegArg Indicates a warning for negative input vector elements.
  2965. // Operation execution is not aborted. The result value
  2966. // is set to NaN.
  2967. //
  2968. */
  2969. IPPAPI(IppStatus, ippsDcsClustLCompute_32f64f, (const Ipp32f* pSrcSum,
  2970. const Ipp32f* pSrcSqr, int len, Ipp64f* pDst, Ipp32f occ))
  2971. IPPAPI(IppStatus, ippsDcsClustLCompute_64f, (const Ipp64f* pSrcSum,
  2972. const Ipp64f* pSrcSqr, int len, Ipp64f* pDst, Ipp64f occ))
  2973. /* /////////////////////////////////////////////////////////////////////////////
  2974. // Model Adaptation
  2975. ///////////////////////////////////////////////////////////////////////////// */
  2976. /*/////////////////////////////////////////////////////////////////////////////
  2977. // Name: ippsAddMulColumn_64f_D2L
  2978. // Purpose: Adds a weighted matrix column to another column.
  2979. //
  2980. // Parameters:
  2981. // mSrcDst Pointer to the source and destination
  2982. // matrix [height][width].
  2983. // width The number of columns in the matrix mSrcDst.
  2984. // height The number of rows in the matrix mSrcDst.
  2985. // col1 The first number of the column.
  2986. // col2 The second number of the column.
  2987. // row1 The first number of the row.
  2988. // val The multiplier factor.
  2989. //
  2990. // Returns:
  2991. // ippStsNoErr Indicates no error.
  2992. // ippStsNullPtrErr Indicates an error when the mSrcDst pointer is null.
  2993. // ippStsSizeErr Indicates an error when when height, width
  2994. // is less than or equal to 0;
  2995. // or col1 or col2 is greater than or equal to width;
  2996. // or row1 is greater than or equal to height;
  2997. // or col1 or col2 or row1 is less than 0.
  2998. //
  2999. */
  3000. IPPAPI(IppStatus, ippsAddMulColumn_64f_D2L, (Ipp64f** mSrcDst, int width,
  3001. int height, int col1, int col2, int row1, const Ipp64f val))
  3002. /* /////////////////////////////////////////////////////////////////////////////
  3003. // Name: ippsAddMulRow_64f
  3004. // Purpose: Multiplies sourceh vector elements by a value
  3005. // and places them in the destination vector.
  3006. //
  3007. // Parameters:
  3008. // pSrc Pointer to the source vector [len]
  3009. // pDst Pointer to the result vector [len]
  3010. // len Length of source vector
  3011. // val The multiplying coefficient
  3012. //
  3013. // Returns:
  3014. // ippStsNoErr Indicates no error.
  3015. // ippStsNoErr Indicates an error when the pSrc or pDst is null
  3016. // ippStsSizeErr Indicates an error when the len is less or equal 0
  3017. //
  3018. */
  3019. IPPAPI(IppStatus, ippsAddMulRow_64f, (const Ipp64f *pSrc, Ipp64f *pDst,
  3020. int len, const Ipp64f val))
  3021. /*/////////////////////////////////////////////////////////////////////////////
  3022. // Name: ippsQRTransColumn_64f_D2L
  3023. // Purpose: Calculates QR transformation.
  3024. //
  3025. // Parameters:
  3026. // mSrcDst Pointer to the source and destination
  3027. // matrix [height][width].
  3028. // width The number of columns in the matrix mSrcDst.
  3029. // height The number of rows in the matrix mSrcDst.
  3030. // col1 The first number of the column.
  3031. // col2 The second number of the column.
  3032. // val1 The first multiplier factor.
  3033. // val2 The second multiplier factor.
  3034. // Returns:
  3035. // ippStsNoErr Indicates no error.
  3036. // ippStsNullPtrErr Indicates an error when the mSrcDst pointer is null.
  3037. // ippStsSizeErr Indicates an error when height, width
  3038. // is less than or equal to 0;
  3039. // or col1 or col2 is greater than or equal to width.
  3040. // or col1 or col2 is less than 0.
  3041. //
  3042. */
  3043. IPPAPI(IppStatus, ippsQRTransColumn_64f_D2L, (Ipp64f** mSrcDst, int width,
  3044. int height, int col1, int col2, const Ipp64f val1, const Ipp64f val2))
  3045. /*/////////////////////////////////////////////////////////////////////////////
  3046. // Name: ippsDotProdColumn_64f_D2L
  3047. // Purpose: Calculates the dot product of two matrix columns.
  3048. //
  3049. // Parameters:
  3050. // mSrc Pointer to the source matrix [height][width].
  3051. // width The number of columns in the matrix mSrc.
  3052. // height The number of rows in the matrix mSrc.
  3053. // pSum Pointer to the value of the computed sum.
  3054. // col1 The first number of the column.
  3055. // col2 The second number of the column.
  3056. // row1 The first number of the row.
  3057. //
  3058. // Returns:
  3059. // ippStsNoErr Indicates no error.
  3060. // ippStsNullPtrErr Indicates an error when the mSrcor pSum pointer is null.
  3061. // ippStsSizeErr Indicates an error when height, width
  3062. // is less than or equal to 0;
  3063. // or row1 is greater than or equal to height;
  3064. // or col1 is greater than or equal to width;
  3065. // or row1 or col1 is less than 0.
  3066. //
  3067. */
  3068. IPPAPI(IppStatus, ippsDotProdColumn_64f_D2L, (const Ipp64f** mSrc, int width,
  3069. int height, Ipp64f* pSum, int col1, int col2, int row1))
  3070. /* /////////////////////////////////////////////////////////////////////////////
  3071. // Name: ippsMulColumn_64f_D2L
  3072. // Purpose: Multiplies a matrix column by a value.
  3073. //
  3074. // Parameters:
  3075. // mSrcDst Pointer to the source and destination
  3076. // matrix [height][width].
  3077. // width The number of columns in the matrix mSrcDst.
  3078. // height The number of rows in the matrix mSrcDst.
  3079. // col1 The first number of the column.
  3080. // row1 The first number of the row.
  3081. // val The multiplier factor.
  3082. //
  3083. // Returns:
  3084. // ippStsNoErr Indicates no error.
  3085. // ippStsNullPtrErr Indicates an error when the mSrcDst pointer is null.
  3086. // ippStsSizeErr Indicates an error when height, width
  3087. // is less than or equal to 0;
  3088. // or row1 is greater than or equal to height;
  3089. // or col1 is greater than or equal to width;
  3090. // or row1 or col1 is less than 0.
  3091. //
  3092. */
  3093. IPPAPI(IppStatus, ippsMulColumn_64f_D2L, (Ipp64f** mSrcDst, int width,
  3094. int height, int col1, int row1, const Ipp64f val))
  3095. /* /////////////////////////////////////////////////////////////////////////////
  3096. // Name: ippsSumColumnAbs_64f_D2L
  3097. // Purpose: Sums absolute values of column elements.
  3098. //
  3099. // Parameters:
  3100. // mSrc Pointer to the source matrix [height][width].
  3101. // width The number of columns in the matrix mSrc.
  3102. // height The number of rows in the matrix mSrc.
  3103. // pSum Pointer to the value of the computed sum.
  3104. // col1 The first number of the column.
  3105. // row1 The first number of the row.
  3106. //
  3107. // Returns:
  3108. // ippStsNoErr Indicates no error.
  3109. // ippStsNullPtrErr Indicates an error when the mSrc or pSum pointer is null.
  3110. // ippStsSizeErr Indicates an error when width, height
  3111. // is less than or equal to 0;
  3112. // or row1 is greater than or equal to height;
  3113. // or col1 is greater than or equal to width;
  3114. // or row1 or col1 is less than 0.
  3115. //
  3116. */
  3117. IPPAPI(IppStatus, ippsSumColumnAbs_64f_D2L, (const Ipp64f** mSrc, int width,
  3118. int height, Ipp64f* pSum, int col1, int row1))
  3119. /* /////////////////////////////////////////////////////////////////////////////
  3120. // Name: ippsSumColumnSqr_64f_D2L
  3121. // Purpose: Multiplies matrix column elements by a value and
  3122. // sums their squares.
  3123. //
  3124. // Parameters:
  3125. // mSrcDst Pointer to the source matrix [height][width].
  3126. // width The number of columns in the matrix mSrcDst.
  3127. // height The number of rows in the matrix mSrcDst.
  3128. // pSum Pointer to the value of the computed sum.
  3129. // col1 The first number of the column.
  3130. //
  3131. // Returns:
  3132. // ippStsNoErr Indicates no error.
  3133. // ippStsNullPtrErr Indicates an error when the mSrcDst or pSum
  3134. // pointer is null.
  3135. // ippStsSizeErr Indicates an error when width, height
  3136. // is less than or equal to 0;
  3137. // or row1 is greater than or equal to height;
  3138. // or col1 is greater than or equal to width.
  3139. // or row1 or col1 is less than 0.
  3140. //
  3141. */
  3142. IPPAPI(IppStatus, ippsSumColumnSqr_64f_D2L, (Ipp64f** mSrcDst, int width,
  3143. int height, Ipp64f* pSum, int col1, int row1, const Ipp64f val))
  3144. /* /////////////////////////////////////////////////////////////////////////////
  3145. // Name: ippsSumRowAbs_64f
  3146. // Purpose: Sums absolute values of vector elements.
  3147. //
  3148. // Parameters:
  3149. // pSrc Pointer to the source vector [len].
  3150. // pSum Pointer to the value of the computed sum.
  3151. // len The number of elements in the source vector pSrc.
  3152. //
  3153. // Returns:
  3154. // ippStsNoErr Indicates no error.
  3155. // ippStsNullPtrErr Indicates an error when the pSrc or pSum pointer is null.
  3156. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  3157. //
  3158. */
  3159. IPPAPI(IppStatus, ippsSumRowAbs_64f, (const Ipp64f *pSrc, int len, Ipp64f *pSum))
  3160. /* /////////////////////////////////////////////////////////////////////////////
  3161. // Name: ippsSumRowSqr_64f
  3162. // Purpose: Multiplies vector elements by a value and sums
  3163. // their squares.
  3164. //
  3165. // Parameters:
  3166. // pSrcDst Pointer to the source vector [len].
  3167. // len The number of elements in the source vector pSrcDst.
  3168. // pSum Pointer to the value of the computed sum.
  3169. // val The multiplier factor.
  3170. //
  3171. // Returns:
  3172. // ippStsNoErr Indicates no error.
  3173. // ippStsNullPtrErr Indicates an error when the pSrcDst or pSum
  3174. // pointer is null.
  3175. // ippStsSizeErr Indicates an error when lenis less than or equal to 0.
  3176. //
  3177. */
  3178. IPPAPI(IppStatus, ippsSumRowSqr_64f, (Ipp64f *pSrcDst,
  3179. int len, Ipp64f *pSum, const Ipp64f val))
  3180. /*///////////////////////////////////////////////////////////////////////////////
  3181. // Name: ippsSVD__*, ippsSVDSort__*
  3182. // Purpose: Performs Single Value Decomposition on a matrix.
  3183. //
  3184. // Parameters:
  3185. // pSrcA Pointer to the input vector A [height*step].
  3186. // pDstU Ppointer to the output vector U [height*step].
  3187. // pSrcDstA Pointer to the input matrix A and output
  3188. // matrix U [height*step].
  3189. // pDstV Pointer to the output vector V [width*step].
  3190. // mSrcA Pointer to the input matrix A [height][width].
  3191. // mDstU Pointer to the output matrix U [height][width].
  3192. // mSrcDstA Pointer to the input matrix A and output
  3193. // matrix U [height][width].
  3194. // pDstW Pointer to the output vector W [width].
  3195. // mDstV Pointer to the output matrix V [width][width].
  3196. // height Number of rows in the input matrix.
  3197. // width Number of columns in the input matrix.
  3198. // step Row step in pSrcA, pSrcDstA, and pDstV.
  3199. // nIter Number of iteration for diagonalization.
  3200. //
  3201. // Returns:
  3202. // ippStsNoErr Indicates no error.
  3203. // ippStsNullPtrErr Indicates an error when the pSrcA, pSrcDstA, pDstV, mSrcA,
  3204. // mDstU, mSrcDstA, pDstW or mDstV pointer is null.
  3205. // ippStsSizeErr Indicates an error when heigh, width, step or nIter is less
  3206. // than or equal to 0 or width is greater than step;
  3207. // ippStsSVDCnvg Indicates an error when SVD algorithm was not converged for
  3208. // nIter iterations.
  3209. //
  3210. */
  3211. IPPAPI(IppStatus, ippsSVD_64f_D2,(const Ipp64f* pSrcA, Ipp64f* pDstU, int height,
  3212. Ipp64f* pDstW, Ipp64f* pDstV, int width, int step, int nIter))
  3213. IPPAPI(IppStatus, ippsSVD_64f_D2_I,(Ipp64f* pSrcDstA, int height, Ipp64f* pDstW,
  3214. Ipp64f* pDstV, int width, int step, int nIter))
  3215. IPPAPI(IppStatus, ippsSVD_64f_D2L,(const Ipp64f** mSrcA, Ipp64f** mDstU, int height,
  3216. Ipp64f* pDstW, Ipp64f** mDstV, int width, int nIter))
  3217. IPPAPI(IppStatus, ippsSVD_64f_D2L_I,(Ipp64f** mSrcDstA, int height, Ipp64f* pDstW,
  3218. Ipp64f** mDstV, int width, int nIter))
  3219. IPPAPI(IppStatus, ippsSVDSort_64f_D2,(const Ipp64f* pSrcA, Ipp64f* pDstU, int height,
  3220. Ipp64f* pDstW, Ipp64f* pDstV, int width, int step, int nIter))
  3221. IPPAPI(IppStatus, ippsSVDSort_64f_D2_I,(Ipp64f* pSrcDstA, int height, Ipp64f* pDstW,
  3222. Ipp64f* pDstV, int width, int step, int nIter))
  3223. IPPAPI(IppStatus, ippsSVDSort_64f_D2L,(const Ipp64f** mSrcA, Ipp64f** mDstU, int height,
  3224. Ipp64f* pDstW, Ipp64f** mDstV, int width, int nIter))
  3225. IPPAPI(IppStatus, ippsSVDSort_64f_D2L_I,(Ipp64f** mSrcDstA, int height, Ipp64f* pDstW,
  3226. Ipp64f** mDstV, int width, int nIter))
  3227. /*///////////////////////////////////////////////////////////////////////////////
  3228. // Name: ippsWeightedSum_*
  3229. // Purpose: Calculates the weighted sums of two input vector elements.
  3230. // Parameters:
  3231. // pSrc1 Pointer to the first input vector [len].
  3232. // pSrc2 Pointer to the second input vector [len].
  3233. // pDst Pointer to the output vector [len]
  3234. // len The length of the input an output vectors.
  3235. // weight1 The first weight value.
  3236. // weight2 The second weight value.
  3237. //
  3238. // Returns:
  3239. // ippStsNoErr Indicates no error.
  3240. // ippStsNullPtrErr Indicates an error when the pSrc1, pSrc2 or pDst
  3241. // pointer is null.
  3242. // ippStsSizeErr Indicates an error when len is less than or equal to 0
  3243. // ippStsDivByZero Indicates a warning for zero-valued divisor vector
  3244. // element. Operation execution is not aborted. The value of
  3245. // the destination vector element in the floating-point operations:
  3246. // NaN For zero-valued dividend vector element.
  3247. // +Inf For positive dividend vector element.
  3248. // -Inf For negative dividend vector element.
  3249. //
  3250. */
  3251. IPPAPI(IppStatus, ippsWeightedSum_16s, (const Ipp16s* pSrc1,
  3252. const Ipp16s* pSrc2, Ipp16s* pDst, int len, Ipp32f weight1,
  3253. Ipp32f weight2))
  3254. IPPAPI(IppStatus, ippsWeightedSum_32f, (const Ipp32f* pSrc1,
  3255. const Ipp32f* pSrc2, Ipp32f* pDst, int len, Ipp32f weight1,
  3256. Ipp32f weight2))
  3257. IPPAPI(IppStatus, ippsWeightedSum_64f, (const Ipp64f* pSrc1,
  3258. const Ipp64f* pSrc2, Ipp64f* pDst, int len, Ipp64f weight1,
  3259. Ipp64f weight2))
  3260. IPPAPI(IppStatus, ippsWeightedSumHalf_32f, (const Ipp32f* pSrc1,
  3261. const Ipp32f* pSrc2, Ipp32f* pDst, int len, Ipp32f weight1,
  3262. Ipp32f weight2))
  3263. IPPAPI(IppStatus, ippsWeightedSumHalf_64f, (const Ipp64f* pSrc1,
  3264. const Ipp64f* pSrc2, Ipp64f* pDst, int len, Ipp64f weight1,
  3265. Ipp64f weight2))
  3266. IPPAPI(IppStatus, ippsWeightedSumHalf_16s, (const Ipp16s* pSrc1,
  3267. const Ipp16s* pSrc2, Ipp16s* pDst, int len, Ipp32f weight1,
  3268. Ipp32f weight2))
  3269. /* /////////////////////////////////////////////////////////////////////////////
  3270. // Vector Quantization
  3271. ///////////////////////////////////////////////////////////////////////////// */
  3272. /* /////////////////////////////////////////////////////////////////////////////
  3273. // Name: ippsFormVector_*
  3274. // Purpose: Composes a vector from four element chunks.
  3275. // Parameters:
  3276. // pInd Pointer to the input vector of codebook indexes [nStream].
  3277. // mSrc Pointer to the vector of pointers to source lookup
  3278. // tables [nStream].
  3279. // pHeights Pointer to the vector of codebook lengths [nStream].
  3280. // pWidths Pointer to the vector of codebook entry lengths [nStream].
  3281. // pSteps Pointer to the vector of codebook row pSteps [nStream].
  3282. // nStream The number of codebooks.
  3283. // pDst Pointer to the output vector [len].
  3284. // len The length of the output vector.
  3285. // Return:
  3286. // ippStsNoErr Indicates no error.
  3287. // ippStsNullPtrErr Indicates an error when the the pInd, mSrc, pHeights,
  3288. // pWidths, pSteps, pDst or mSrc[k].
  3289. // ippStsSizeErr Indicates an error when len , nStream, pHeights[k],
  3290. // pWidths[k] or pSteps[k] is less than or equal to 0 .
  3291. */
  3292. IPPAPI(IppStatus, ippsFormVector_4i_8u16s, (const Ipp8u* pInd,
  3293. const Ipp16s** mSrc, const Ipp32s* pHeights, Ipp16s* pDst, int len))
  3294. IPPAPI(IppStatus, ippsFormVector_4i_16s16s, (const Ipp16s* pInd,
  3295. const Ipp16s** mSrc, const Ipp32s* pHeights, Ipp16s* pDst, int len))
  3296. IPPAPI(IppStatus, ippsFormVector_4i_8u32f, (const Ipp8u* pInd,
  3297. const Ipp32f** mSrc, const Ipp32s* pHeights, Ipp32f* pDst, int len))
  3298. IPPAPI(IppStatus, ippsFormVector_4i_16s32f, (const Ipp16s* pInd,
  3299. const Ipp32f** mSrc, const Ipp32s* pHeights, Ipp32f* pDst, int len))
  3300. IPPAPI(IppStatus, ippsFormVector_2i_8u16s, (const Ipp8u* pInd,
  3301. const Ipp16s** mSrc, const Ipp32s* pHeights, Ipp16s* pDst, int len))
  3302. IPPAPI(IppStatus, ippsFormVector_2i_16s16s, (const Ipp16s* pInd,
  3303. const Ipp16s** mSrc, const Ipp32s* pHeights, Ipp16s* pDst, int len))
  3304. IPPAPI(IppStatus, ippsFormVector_2i_8u32f, (const Ipp8u* pInd,
  3305. const Ipp32f** mSrc, const Ipp32s* pHeights, Ipp32f* pDst, int len))
  3306. IPPAPI(IppStatus, ippsFormVector_2i_16s32f, (const Ipp16s* pInd,
  3307. const Ipp32f** mSrc, const Ipp32s* pHeights, Ipp32f* pDst, int len))
  3308. IPPAPI(IppStatus, ippsFormVector_8u16s, (const Ipp8u* pInd,
  3309. const Ipp16s** mSrc, const Ipp32s* pHeights, const Ipp32s* pWidths,
  3310. const Ipp32s* pSteps, int nStream, Ipp16s* pDst))
  3311. IPPAPI(IppStatus, ippsFormVector_16s16s, (const Ipp16s* pInd,
  3312. const Ipp16s** mSrc, const Ipp32s* pHeights, const Ipp32s* pWidths,
  3313. const Ipp32s* pSteps, int nStream, Ipp16s* pDst))
  3314. IPPAPI(IppStatus, ippsFormVector_8u32f, (const Ipp8u* pInd,
  3315. const Ipp32f** mSrc, const Ipp32s* pHeights, const Ipp32s* pWidths,
  3316. const Ipp32s* pSteps, int nStream, Ipp32f * pDst))
  3317. IPPAPI(IppStatus, ippsFormVector_16s32f, (const Ipp16s* pInd,
  3318. const Ipp32f** mSrc, const Ipp32s* pHeights, const Ipp32s* pWidths,
  3319. const Ipp32s* pSteps, int nStream, Ipp32f * pDst))
  3320. /* /////////////////////////////////////////////////////////////////////////////
  3321. // Name: ippsCdbkInitAlloc_L2_*
  3322. // Purpose: Initializes the codebook structure.
  3323. //
  3324. // Parameters:
  3325. // pCdbk Pointer to the codebook structure to be created.
  3326. // pSrc Pointer to the source vector [height*step].
  3327. // width Length of input vectors.
  3328. // step Row step in pSrc.
  3329. // height Number of rows in pSrc.
  3330. // cdbkSize Required number of codevectors.
  3331. // hint One of the following values:
  3332. // IPP_CDBK_FULL The source data are treated as a codebook,
  3333. // height should be greater or equal to
  3334. // nCluster. The nearest codebook entry is
  3335. // found by a full search.
  3336. // IPP_CDBK_KMEANS_LONG LBG algorithm with splitting of the
  3337. // most extensional cluster is used for
  3338. // the codebook building. The nearest
  3339. // codebook entry is located through
  3340. // a logarithmical search.
  3341. // IPP_CDBK_KMEANS_NUM LBG algorithm with splitting of
  3342. // the most numerous clusters is used for
  3343. // the codebook building. The nearest
  3344. // codebook entry is located through
  3345. // a logarithmical search.
  3346. //
  3347. // Return:
  3348. // ippStsNoErr Indicates no error.
  3349. // ippStsNullPtrErr Indicates an error when the pSrc pointer is null.
  3350. // ippStsSizeErr Indicates an error when width, step, or cdbkSize
  3351. // is less than or equal to 0;
  3352. // or cdbkSizeis greater than height;
  3353. // or width is greater than step;
  3354. // or cdbkSize is greater than 16383;
  3355. // or hintis equal to IPP_CDBK_FULL and cdbkSizeis not equal
  3356. // to height.
  3357. // ippStsCdbkFlagErr
  3358. // Indicates an error when the hint value is incorrect.
  3359. // ippStsMemAllocErr Indicates an error when no memory allocated.
  3360. //
  3361. */
  3362. IPPAPI(IppStatus, ippsCdbkInitAlloc_L2_16s,(IppsCdbkState_16s** pCdbk,
  3363. const Ipp16s* pSrc, int width, int step, int height, int nCluster,
  3364. Ipp_Cdbk_Hint hint))
  3365. IPPAPI(IppStatus, ippsCdbkInitAlloc_L2_32f,(IppsCdbkState_32f** pCdbk,
  3366. const Ipp32f* pSrc, int width, int step, int height, int nCluster,
  3367. Ipp_Cdbk_Hint hint))
  3368. /* /////////////////////////////////////////////////////////////////////////////
  3369. // Name: ippsCdbkInitAlloc_WgtL2_*
  3370. // Purpose: Initializes the structure that contains the codebook
  3371. // and additional information to be used for fast search.
  3372. //
  3373. // Parameters:
  3374. // pCdbk Pointer to the codebook structure to be created.
  3375. // pSrc Pointer to the source vector [height*step].
  3376. // pWgt Pointer to the weights vector [width].
  3377. // width Length of input vectors.
  3378. // step Row step in pSrc.
  3379. // height Number of rows in pSrc.
  3380. // cdbkSize Required number of codevectors.
  3381. // hint One of the following values:
  3382. // IPP_CDBK_FULL The source data are treated as a codebook, height should
  3383. // be greater or equal to nCluster. The nearest codebook
  3384. // entry is found by a full search.
  3385. //
  3386. // IPP_CDBK_LBG_LONG
  3387. // LBG algorithm with splitting of the most extensious
  3388. // cluster is used for the codebook building. The nearest
  3389. // codebook entry is found by a logarithmical search.
  3390. //
  3391. // IPP_CDBK_LBG_NUM LBG algorithm with splitting of the most numerous
  3392. // clusters is used for the codebook building. The nearest
  3393. // codebook entry is found by a logarithmical search
  3394. // Return:
  3395. // ippStsNoErr Indicates no error.
  3396. // ippStsNullPtrErr Indicates an error when the pSrc pointer is null.
  3397. // ippStsSizeErr Indicates an error when width, step, height or cdbkSize
  3398. // is less than or equal to 0 or width is greater than step
  3399. // or cdbkSize is greater than 16383;
  3400. // ippStsCdbkFlagErr
  3401. // Indicates an error when the hint value is incorrect.
  3402. // ippStsMemAllocErr Indicates an error when no memory allocated.
  3403. // Notes:
  3404. */
  3405. IPPAPI(IppStatus, ippsCdbkInitAlloc_WgtL2_32f,(IppsCdbkState_32f** pCdbk, const Ipp32f* pSrc,
  3406. const Ipp32f* pWgt, int width, int step, int height, int cdbkSize, Ipp_Cdbk_Hint hint))
  3407. IPPAPI(IppStatus, ippsCdbkInitAlloc_WgtL2_16s,(IppsCdbkState_16s** pCdbk, const Ipp16s* pSrc,
  3408. const Ipp16s* pWgt, int width, int step, int height, int cdbkSize, Ipp_Cdbk_Hint hint))
  3409. /* /////////////////////////////////////////////////////////////////////////////
  3410. // Name: ippsCdbkFree_*
  3411. // Purpose: Destroys the codebook structure a
  3412. //
  3413. // Parameters:
  3414. // pCdbk Pointer to the codebook structure.
  3415. // Return:
  3416. // ippStsNoErr Indicates no error.
  3417. // ippStsNullPtrErr Indicates an error when the pCdbk pointer is null.
  3418. //
  3419. */
  3420. IPPAPI(IppStatus, ippsCdbkFree_16s,(IppsCdbkState_16s* pCdbk))
  3421. IPPAPI(IppStatus, ippsCdbkFree_32f,(IppsCdbkState_32f* pCdbk))
  3422. /* /////////////////////////////////////////////////////////////////////////////
  3423. // Name: ippsGetCdbkSize_*
  3424. // Purpose: Retrieves the number of codevectors in the codebook.
  3425. //
  3426. // Parameters:
  3427. // pCdbk Pointer to the codebook structure.
  3428. // pNum Pointer to the result number of codevectors.
  3429. //
  3430. // Return:
  3431. // ippStsNoErr Indicates no error.
  3432. // ippStsNullPtrErr Indicates an error when the pCdbk or pNum pointer is null.
  3433. //
  3434. */
  3435. IPPAPI(IppStatus, ippsGetCdbkSize_16s,(const IppsCdbkState_16s* pCdbk, int* pNum))
  3436. IPPAPI(IppStatus, ippsGetCdbkSize_32f,(const IppsCdbkState_32f* pCdbk, int* pNum))
  3437. /* /////////////////////////////////////////////////////////////////////////////
  3438. // Name: ippsGetCodebook_*
  3439. // Purpose: Retrieves the number of codevectors in the codebook pCdbk.
  3440. //
  3441. // Parameters:
  3442. // pCdbk Pointer to the codebook structure.
  3443. // pDst Pointer to the destination vector for codevectors
  3444. // [pNum[0]* step].
  3445. // step Row step in the destination vector pDst.
  3446. // Return:
  3447. // ippStsNoErr Indicates no error.
  3448. // ippStsNullPtrErr Indicates an error when the pDst or pNum pointer is null.
  3449. //
  3450. */
  3451. IPPAPI(IppStatus, ippsGetCodebook_16s,(const IppsCdbkState_16s* pCdbk,
  3452. Ipp16s* pDst, int step))
  3453. IPPAPI(IppStatus, ippsGetCodebook_32f,(const IppsCdbkState_32f* pCdbk,
  3454. Ipp32f* pDst, int step))
  3455. /* /////////////////////////////////////////////////////////////////////////////
  3456. // Name: ippsVQ_*
  3457. // Purpose: Quantizes the input vectors given a codebook.
  3458. //
  3459. // Parameters:
  3460. // pCdbk Pointer to the codebook structure.
  3461. // pSrc Pointer to the source vector [height*step].
  3462. // step Row step in pSrc.
  3463. // height Number of rows in pSrc.
  3464. // pIndx Pointer to the destination vector of closiest codevector
  3465. // numbers [height].
  3466. // pDist Pointer to the destination vector of distance to for
  3467. // closiest codevector [height].
  3468. // scaleFactor
  3469. //
  3470. // Return:
  3471. // ippStsNoErr Indicates no error.
  3472. // ippStsNullPtrErr Indicates an error when the pCdbk, pSrc, pIndx or pDist
  3473. // pointer is null.
  3474. // ippStsSizeErr Indicates an error when step is less than or equal to 0 or
  3475. // is step is less than width.
  3476. // ippStsSizeErr Indicates an error when width, step, height is less than
  3477. // or equal to 0 or width is greater than step;
  3478. //
  3479. */
  3480. IPPAPI(IppStatus, ippsVQ_16s,(const Ipp16s* pSrc, int step, Ipp32s* pIndx,
  3481. int height, const IppsCdbkState_16s* pCdbk))
  3482. IPPAPI(IppStatus, ippsVQ_32f,(const Ipp32f* pSrc, int step, Ipp32s* pIndx,
  3483. int height, const IppsCdbkState_32f* pCdbk))
  3484. IPPAPI(IppStatus, ippsVQDist_16s32s_Sfs,(const Ipp16s* pSrc, int step,
  3485. Ipp32s* pIndx, Ipp32s* pDist, int height, const IppsCdbkState_16s* pCdbk,
  3486. int scaleFactor))
  3487. IPPAPI(IppStatus, ippsVQDist_32f,(const Ipp32f* pSrc, int step, Ipp32s* pIndx,
  3488. Ipp32f* pDist, int height, const IppsCdbkState_32f* pCdbk))
  3489. /* /////////////////////////////////////////////////////////////////////////////
  3490. // Name: ippsSplitVQ_*
  3491. // Purpose: Quantizes a multiple-stream vector given the codebooks.
  3492. //
  3493. // Parameters:
  3494. // pCdbks Pointer to the vector of pointers to codebook
  3495. // structure [nStream].
  3496. // pSrc Pointer to the source vector [height*srcStep].
  3497. // pDst Pointer to the destination vector [height*dstStep].
  3498. // srcStep Row step in pSrc.
  3499. // dstStep Row step in pDst.
  3500. // dstBitStep Row step in pDst in bits
  3501. // height Number of rows in pSrc.
  3502. // nStream Number of chunks in input vectors.
  3503. //
  3504. // Return:
  3505. // ippStsNoErr Indicates no error.
  3506. // ippStsNullPtrErr Indicates an error when the pCdbk, pCdbk[k], pSrc or pDst
  3507. // pointer is null.
  3508. // ippStsSizeErr Indicates an error when srcStep, dstStep, height or
  3509. // nStream is less than or equal to 0 or chunk length sum
  3510. // is greater than srcStep or nStream is greater than
  3511. // dstStep for functions with 16s or 8u output or number of
  3512. // bits to represent output indexes sequence is greater than
  3513. // dstStep for functions with 1u output or codebook size is
  3514. // greater than 256 for functions with 8u output.
  3515. //
  3516. */
  3517. IPPAPI(IppStatus, ippsSplitVQ_16s16s,(const Ipp16s* pSrc, int srcStep, Ipp16s* pDst,
  3518. int dstStep, int height,const IppsCdbkState_16s** pCdbks, int nStream))
  3519. IPPAPI(IppStatus, ippsSplitVQ_16s8u,(const Ipp16s* pSrc, int srcStep, Ipp8u* pDst,
  3520. int dstStep, int height,const IppsCdbkState_16s** pCdbks, int nStream))
  3521. IPPAPI(IppStatus, ippsSplitVQ_16s1u,(const Ipp16s* pSrc, int srcStep, Ipp8u* pDst,
  3522. int dstBitStep, int height,const IppsCdbkState_16s** pCdbks, int nStream))
  3523. IPPAPI(IppStatus, ippsSplitVQ_32f16s,(const Ipp32f* pSrc, int srcStep, Ipp16s* pDst,
  3524. int dstStep, int height,const IppsCdbkState_32f** pCdbks, int nStream))
  3525. IPPAPI(IppStatus, ippsSplitVQ_32f8u,(const Ipp32f* pSrc, int srcStep, Ipp8u* pDst,
  3526. int dstStep, int height,const IppsCdbkState_32f** pCdbks, int nStream))
  3527. IPPAPI(IppStatus, ippsSplitVQ_32f1u,(const Ipp32f* pSrc, int srcStep, Ipp8u* pDst,
  3528. int dstBitStep, int height,const IppsCdbkState_32f** pCdbks, int nStream))
  3529. /* /////////////////////////////////////////////////////////////////////////////
  3530. // Name: ippsFormVectorVQ_*
  3531. // Purpose: Constructs multiple-stream vectors from codebooks,
  3532. // given indexes.
  3533. //
  3534. // Parameters:
  3535. // pCdbks Pointer to the vector of pointers to codebook
  3536. // structure [nStream].
  3537. // pSrc Pointer to the source vector [height*srcStep].
  3538. // pDst Pointer to the destination vector [height*dstStep].
  3539. // srcStep Row step in pSrc.
  3540. // dstStep Row step in pDst.
  3541. // srcBitStep Row step in pSrc in bits
  3542. // height Number of rows in pSrc.
  3543. // nStream Number of chunks in input vectors.
  3544. //
  3545. // Return:
  3546. // ippStsNoErr Indicates no error.
  3547. // ippStsNullPtrErr Indicates an error when the pCdbk, pCdbk[k], pSrc or pDst
  3548. // pointer is null.
  3549. // ippStsSizeErr Indicates an error when srcStep, dstStep, height or
  3550. // nStream is less than or equal to 0 or codevector length
  3551. // sum is greater than dstStep or nStream is greater than
  3552. // srcStep for functions with 16s or 8u output or number of bits
  3553. // to represent output indexes sequence is greater than srcStep
  3554. // for functions with 1u output.
  3555. // Notes:
  3556. */
  3557. IPPAPI(IppStatus, ippsFormVectorVQ_16s16s,(const Ipp16s* pSrc, int srcStep, Ipp16s* pDst,
  3558. int dstStep, int height, const IppsCdbkState_16s** pCdbks, int nStream))
  3559. IPPAPI(IppStatus, ippsFormVectorVQ_8u16s,(const Ipp8u* pSrc, int srcStep, Ipp16s* pDst,
  3560. int dstStep, int height, const IppsCdbkState_16s** pCdbks, int nStream))
  3561. IPPAPI(IppStatus, ippsFormVectorVQ_1u16s,(const Ipp8u* pSrc, int srcBitStep, Ipp16s* pDst,
  3562. int dstStep, int height, const IppsCdbkState_16s** pCdbks, int nStream))
  3563. IPPAPI(IppStatus, ippsFormVectorVQ_16s32f,(const Ipp16s* pSrc, int srcStep, Ipp32f* pDst,
  3564. int dstStep, int height, const IppsCdbkState_32f** pCdbks, int nStream))
  3565. IPPAPI(IppStatus, ippsFormVectorVQ_8u32f,(const Ipp8u* pSrc, int srcStep, Ipp32f* pDst,
  3566. int dstStep, int height, const IppsCdbkState_32f** pCdbks, int nStream))
  3567. IPPAPI(IppStatus, ippsFormVectorVQ_1u32f,(const Ipp8u* pSrc, int srcBitStep, Ipp32f* pDst,
  3568. int dstStep, int height, const IppsCdbkState_32f** pCdbks, int nStream))
  3569. /* /////////////////////////////////////////////////////////////////////////////
  3570. // Name: IppStatus ippsCdbkInit_L2_*
  3571. //
  3572. // Description: Initializes the structure that contains the codebook
  3573. //
  3574. //
  3575. // Input Arguments: pCdbk Pointer to the codebook structure to be initialized.
  3576. // pSrc Pointer to the source vector [height*step].
  3577. // width Length of input vectors.
  3578. // step Row step in pSrc.
  3579. // height Number of rows in pSrc.
  3580. // nCluster Required number of codevectors.
  3581. // hint One of the following values:
  3582. // IPP_CDBK_FULL The source data are treated as a
  3583. // codebook, height should be greater or equal to
  3584. // nCluster. The nearest codebook entry is found by
  3585. // a full search.
  3586. // IPP_CDBK_LBG_LONG Not supported
  3587. // IPP_CDBK_LBG_NUM Not supported
  3588. //
  3589. //
  3590. // Returns: ippStsNoErr - No Error.
  3591. // ippStsSizeErr - Bad Arguments.
  3592. // ippStsCdbkFlagErr - Hint not supported
  3593. //
  3594. // Notes: The primitive does not support tree-based codebook
  3595. */
  3596. IPPAPI(IppStatus, ippsCdbkInit_L2_16s,(IppsCdbkState_16s* pCdbk,
  3597. const Ipp16s* pSrc,
  3598. int width,
  3599. int step,
  3600. int height,
  3601. int nCluster,
  3602. Ipp_Cdbk_Hint hint))
  3603. IPPAPI(IppStatus, ippsCdbkInit_L2_32f,(IppsCdbkState_32f* pCdbk,
  3604. const Ipp32f* pSrc,
  3605. int width,
  3606. int step,
  3607. int height,
  3608. int nCluster,
  3609. Ipp_Cdbk_Hint hint))
  3610. /* /////////////////////////////////////////////////////////////////////////////
  3611. // Name: IppStatus ippsCdbkGetSize_*
  3612. //
  3613. // Description: Computes the size in bytes required for the codebook table
  3614. //
  3615. //
  3616. // Input Arguments: width Length of input vectors.
  3617. // step Row step in pSrc.
  3618. // nCluster Required number of codevectors.
  3619. // hint One of the following values:
  3620. // IPP_CDBK_FULL The source data are treated as a
  3621. // codebook, height should be greater or equal to
  3622. // nCluster. The nearest codebook entry is found by
  3623. // a full search.
  3624. // IPP_CDBK_LBG_LONG Not supported
  3625. // IPP_CDBK_LBG_NUM Not supported
  3626. //
  3627. //
  3628. // Returns: ippStsNoErr - No Error.
  3629. // ippStsNullPtrErr - Indicates an error when pSize pointer is null.
  3630. // ippStsSizeErr - Indicates an error when width, step, height, or cdbkSize is less than
  3631. // or equal to 0; or width is greater than step; or cdbkSize is greater than 16383; or height is not equal to cdbkSize.
  3632. // ippStsCdbkFlagErr - Indicates an error when the hint value is incorrect or not supported.
  3633. //
  3634. //
  3635. // Notes:
  3636. */
  3637. IPPAPI(IppStatus, ippsCdbkGetSize_16s,(int width,
  3638. int step,
  3639. int height,
  3640. int nCluster,
  3641. Ipp_Cdbk_Hint hint,
  3642. int* pSize))
  3643. IPPAPI(IppStatus, ippsCdbkGetSize_32f,(int width,
  3644. int step,
  3645. int height,
  3646. int nCluster,
  3647. Ipp_Cdbk_Hint hint,
  3648. int* pSize))
  3649. /* /////////////////////////////////////////////////////////////////////////////
  3650. // TTS Arithmetic
  3651. ///////////////////////////////////////////////////////////////////////////// */
  3652. /*/////////////////////////////////////////////////////////////////////////////
  3653. // Name: ippsReflectionToAbsTilt_* / ippsReflectionToTilt_*
  3654. // Purpose: Calculates tilt for rise/fall/connection parameters.
  3655. //
  3656. // Parameters:
  3657. // pSrc1 Pointer to the first input vector [len].
  3658. // pSrc2 Pointer to the second input vector [len].
  3659. // pDst Pointer to the destination vector [len].
  3660. // len Length of the input and output vectors.
  3661. //
  3662. // Returns:
  3663. // ippStsNoErr Indicates no error.
  3664. // ippStsNullPtrErr Indicates an error when the pSrc1, pSrc2 or pDst
  3665. // pointer is null.
  3666. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  3667. // ippStsDivByZero Indicates a warning for zero-valued divisor vector
  3668. // element. Operation execution is not aborted. The value of
  3669. // the destination vector element in the floating-point
  3670. // operations:
  3671. // NaN For zero-valued dividend vector element.
  3672. // +Inf For positive dividend vector element.
  3673. // -Inf For negative dividend vector
  3674. // The value of the destination vector element in the
  3675. // integer operations:
  3676. // IPP_MAX_16S For positive dividend vector element.
  3677. // IPP_MIN_16S For negative dividend vector
  3678. // Notes:
  3679. // The function ippsReflectionToAbsTilt converts rise and fall
  3680. // coefficients to absolute tilt.
  3681. // The function ippsReflectionToTilt converts rise and fall
  3682. // coefficients to tilt.
  3683. */
  3684. IPPAPI(IppStatus, ippsReflectionToAbsTilt_16s_Sfs, (const Ipp16s* pSrc1,
  3685. const Ipp16s* pSrc2, Ipp16s* pDst, int len, int scaleFactor))
  3686. IPPAPI(IppStatus, ippsReflectionToAbsTilt_32f, (const Ipp32f* pSrc1,
  3687. const Ipp32f* pSrc2, Ipp32f* pDst, int len))
  3688. IPPAPI(IppStatus, ippsReflectionToTilt_16s_Sfs, (const Ipp16s* pSrc1,
  3689. const Ipp16s* pSrc2, Ipp16s* pDst, int len, int scaleFactor))
  3690. IPPAPI(IppStatus, ippsReflectionToTilt_32f, (const Ipp32f* pSrc1,
  3691. const Ipp32f* pSrc2, Ipp32f* pDst, int len))
  3692. /* /////////////////////////////////////////////////////////////////////////////
  3693. // Name: ippsLogGaussSingle_*
  3694. // Purpose: Calculates the observation probability for a
  3695. // single Gaussian with an observation vector.
  3696. //
  3697. // Parameters:
  3698. // pSrc Pointer to the input vector [len].
  3699. // pMean Pointer to the mean vector [len].
  3700. // pVar Pointer to the variance vector [len].
  3701. // pBlockVar Pointer to the block diagonal variance matrix.
  3702. // len Number of elements in the input, mean, and variance
  3703. // vectors.
  3704. // pResult Pointer to the result value.
  3705. // val Gaussian constant.
  3706. // scaleFactor
  3707. //
  3708. // Return:
  3709. // ippStsNoErr Indicates no error.
  3710. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar, or
  3711. // pResult or pBlockVar pointer is null.
  3712. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  3713. //
  3714. */
  3715. /*
  3716. //Case 1: Operation for the inverse diagonal covariance matrix
  3717. */
  3718. IPPAPI(IppStatus, ippsLogGaussSingle_Low_16s32s_Sfs,(const Ipp16s* pSrc,
  3719. const Ipp16s* pMean, const Ipp16s* pVar, int len, Ipp32s* pResult,
  3720. Ipp32s val, int scaleFactor))
  3721. IPPAPI(IppStatus, ippsLogGaussSingle_LowScaled_16s32f,(const Ipp16s* pSrc, const Ipp16s* pMean,
  3722. const Ipp16s* pVar, int len, Ipp32f* pResult, Ipp32f val, int scaleFactor))
  3723. /*
  3724. //Case 3: Operation for the identity covariance matrix
  3725. */
  3726. IPPAPI(IppStatus, ippsLogGaussSingle_IdVarLow_16s32s_Sfs,(const Ipp16s* pSrc,
  3727. const Ipp16s* pMean, int len, Ipp32s* pResult, Ipp32s val, int scaleFactor))
  3728. IPPAPI(IppStatus, ippsLogGaussSingle_IdVarLowScaled_16s32f,(const Ipp16s* pSrc,
  3729. const Ipp16s* pMean, int len, Ipp32f* pResult, Ipp32f val, int scaleFactor))
  3730. /* /////////////////////////////////////////////////////////////////////////////
  3731. // Name: ippsLogGauss_*
  3732. // Purpose: Calculates the observation probability for a single
  3733. // Gaussian with multiple observation vectors.
  3734. // Parameters:
  3735. // pSrc Pointer to the input vector [height*step].
  3736. // mSrc Pointer to the input matrix [height][ width].
  3737. // step The row step in pSrc.
  3738. // pMean Pointer to the mean vector [width].
  3739. // pVar Pointer to the variance vector [width].
  3740. // width Length of the mean and variance vectors.
  3741. // pDst Pointer to the result value [height].
  3742. // pSrcDst Pointer to the input and output vector [height].
  3743. // height The number of rows in the input matrix and the length of
  3744. // the result vector pDst.
  3745. // val Gaussian constant.
  3746. // scaleFactor
  3747. //
  3748. // Return:
  3749. // ippStsNoErr Indicates no error.
  3750. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  3751. // pDst,or mSrc pointer is null.
  3752. // ippStsSizeErr Indicates an error when height or width is less than or
  3753. // equal to 0.
  3754. // ippStsStrideErr Indicates an error when width > step.
  3755. //
  3756. */
  3757. /*
  3758. //Case 1: Operation for the inverse diagonal covariance matrix
  3759. */
  3760. IPPAPI(IppStatus, ippsLogGauss_Low_16s32s_D2Sfs, (const Ipp16s* pSrc, int step,
  3761. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32s* pDst,
  3762. int height, Ipp32s val, int scaleFactor))
  3763. IPPAPI(IppStatus, ippsLogGauss_Low_16s32s_D2LSfs, (const Ipp16s** mSrc,
  3764. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32s* pDst,
  3765. int height, Ipp32s val, int scaleFactor))
  3766. IPPAPI(IppStatus, ippsLogGauss_LowScaled_16s32f_D2, (const Ipp16s* pSrc, int step,
  3767. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32f* pDst,
  3768. int height, Ipp32f val, int scaleFactor))
  3769. IPPAPI(IppStatus, ippsLogGauss_LowScaled_16s32f_D2L, (const Ipp16s** mSrc,
  3770. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32f* pDst,
  3771. int height, Ipp32f val, int scaleFactor))
  3772. /*
  3773. //Case 2: Operation for the identity covariance matrix
  3774. */
  3775. IPPAPI(IppStatus, ippsLogGauss_IdVarLow_16s32s_D2Sfs,(const Ipp16s* pSrc,
  3776. int step, const Ipp16s* pMean, int width, Ipp32s* pDst, int height,
  3777. Ipp32s val,int scaleFactor))
  3778. IPPAPI(IppStatus, ippsLogGauss_IdVarLowScaled_16s32f_D2,(const Ipp16s* pSrc,
  3779. int step, const Ipp16s* pMean, int width, Ipp32f* pDst, int height,
  3780. Ipp32f val,int scaleFactor))
  3781. IPPAPI(IppStatus, ippsLogGauss_IdVarLow_16s32s_D2LSfs,(const Ipp16s** mSrc,
  3782. const Ipp16s* pMean, int width, Ipp32s* pDst, int height, Ipp32s val,
  3783. int scaleFactor))
  3784. IPPAPI(IppStatus, ippsLogGauss_IdVarLowScaled_16s32f_D2L,(const Ipp16s** mSrc,
  3785. const Ipp16s* pMean, int width, Ipp32f* pDst, int height, Ipp32f val,
  3786. int scaleFactor))
  3787. /* /////////////////////////////////////////////////////////////////////////////
  3788. // Name: ippsLogGaussMultiMix_*
  3789. // Purpose: Calculates the observation probability for
  3790. // multiple Gaussian mixture components.
  3791. //
  3792. // Parameters:
  3793. // pMean Pointer to the variance vector [height*step].
  3794. // mMean Pointer to the mean matrix [height][width].
  3795. // mVar Pointer to the variance matrix [height][width].
  3796. // pSrcDst Pointer to the input additive values and
  3797. // the result vector [height].
  3798. // step The row step in pMean.
  3799. // pSrc Pointer to the input vector [width].
  3800. // height The number of rows in input matrices and the length of
  3801. // the result vector pSrcDst.
  3802. // width The length of the input matrices row and the vector pSrc.
  3803. // scaleFactor
  3804. //
  3805. // Return:
  3806. // ippStsNoErr Indicates no error.
  3807. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  3808. // pSrcDst, mMean, or mVar pointer is null.
  3809. // ippStsSizeErr Indicates an error when heightor width is less than or
  3810. // equal to 0.
  3811. // ippStsStrideErr Indicates an error when width > step.
  3812. //
  3813. */
  3814. IPPAPI(IppStatus, ippsLogGaussMultiMix_Low_16s32s_D2Sfs, (const Ipp16s* pMean,
  3815. const Ipp16s* pVar, int step, const Ipp16s* pSrc, int width,
  3816. Ipp32s* pSrcDst, int height, int scaleFactor))
  3817. IPPAPI(IppStatus, ippsLogGaussMultiMix_Low_16s32s_D2LSfs, (const Ipp16s** mMean,
  3818. const Ipp16s** mVar, const Ipp16s* pSrc, int width, Ipp32s* pSrcDst,
  3819. int height, int scaleFactor))
  3820. IPPAPI(IppStatus, ippsLogGaussMultiMix_LowScaled_16s32f_D2, (const Ipp16s* pMean,
  3821. const Ipp16s* pVar, int step, const Ipp16s* pSrc, int width,
  3822. Ipp32f* pSrcDst, int height, int scaleFactor))
  3823. IPPAPI(IppStatus, ippsLogGaussMultiMix_LowScaled_16s32f_D2L, (const Ipp16s** mMean,
  3824. const Ipp16s** mVar, const Ipp16s* pSrc, int width, Ipp32f* pSrcDst,
  3825. int height, int scaleFactor))
  3826. /* /////////////////////////////////////////////////////////////////////////////
  3827. // Name: ippsLogGaussMax_*_D2
  3828. // Purpose: Computes maximum value of a vector dst and
  3829. // logarithms of the Gaussian probability distribution function.
  3830. // Parameters:
  3831. // pSrc Pointer to the input vector [height*step].
  3832. // step The row step in pSrc.
  3833. // pMean Pointer to the mean vector [width].
  3834. // pVar Pointer to the variance vector [width].
  3835. // width The length of the input matrix row, mean,
  3836. // and variance vectors.
  3837. // pSrcDst Pointer to the input and output vector [height].
  3838. // height The number of rows in the input matrix and the length of
  3839. // the result vector pDst.
  3840. // val The value to add to each distance.
  3841. // scaleFactor
  3842. //
  3843. // Return:
  3844. // ippStsNoErr Indicates no error.
  3845. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  3846. // pSrcDst pointer is null.
  3847. // ippStsSizeErr Indicates an error when height or width is less than or
  3848. // equal to 0.
  3849. // ippStsStrideErr Indicates an error when width > step.
  3850. //
  3851. */
  3852. /*
  3853. //Case 1: Operation for the inverse diagonal covariance matrix
  3854. */
  3855. IPPAPI(IppStatus, ippsLogGaussMax_Low_16s32s_D2Sfs, (const Ipp16s* pSrc,
  3856. int step, const Ipp16s* pMean, const Ipp16s* pVar, int width,
  3857. Ipp32s* pSrcDst, int height, Ipp32s val, int scaleFactor))
  3858. IPPAPI(IppStatus, ippsLogGaussMax_Low_16s32s_D2LSfs, (const Ipp16s** mSrc,
  3859. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32s* pDst,
  3860. int height, Ipp32s val, int scaleFactor))
  3861. IPPAPI(IppStatus, ippsLogGaussMax_LowScaled_16s32f_D2, (const Ipp16s* pSrc, int step,
  3862. const Ipp16s* pMean, const Ipp16s* pVar, int width,
  3863. Ipp32f* pSrcDst, int height, Ipp32f val, int scaleFacto))
  3864. IPPAPI(IppStatus, ippsLogGaussMax_LowScaled_16s32f_D2L, (const Ipp16s** mSrc,
  3865. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32f* pDst,
  3866. int height, Ipp32f val, int scaleFacto))
  3867. /*
  3868. //Case 2: Operation for the identity covariance matrix
  3869. */
  3870. IPPAPI(IppStatus, ippsLogGaussMax_IdVarLow_16s32s_D2Sfs, (const Ipp16s* pSrc,
  3871. int step, const Ipp16s* pMean, int width, Ipp32s* pSrcDst,
  3872. int height, Ipp32s val, int scaleFactor))
  3873. IPPAPI(IppStatus, ippsLogGaussMax_IdVarLow_16s32s_D2LSfs, (const Ipp16s** mSrc,
  3874. const Ipp16s* pMean, int width, Ipp32s* pSrcDst, int height,
  3875. Ipp32s val, int scaleFactor))
  3876. IPPAPI(IppStatus, ippsLogGaussMax_IdVarLowScaled_16s32f_D2, (const Ipp16s* pSrc,
  3877. int step, const Ipp16s* pMean, int width, Ipp32f* pSrcDst,
  3878. int height, Ipp32f val, int scaleFactor))
  3879. IPPAPI(IppStatus, ippsLogGaussMax_IdVarLowScaled_16s32f_D2L, (const Ipp16s** mSrc,
  3880. const Ipp16s* pMean, int width, Ipp32f* pSrcDst, int height,
  3881. Ipp32f val, int scaleFactor))
  3882. /* /////////////////////////////////////////////////////////////////////////////
  3883. // Name: ippsLogGaussMaxMultiMix_*_*
  3884. // Purpose: Computes the maximum of the Gaussian probability
  3885. // distribution function.
  3886. // Parameters:
  3887. // pMean Pointer to the mean vector of length [height*step].
  3888. // pVar Pointer to the variance vector of length [height*step].
  3889. // mMean Pointer to the mean matrix of size [height][width].
  3890. // mVar Pointer to the mean matrix of size [height][width].
  3891. // pVal Pointer to the input vector of Maxitive values [height].
  3892. // pSrcDst Pointer to the input and output vector of length [height].
  3893. // step Row step in pMean and pVar.
  3894. // pSrc Pointer to theinput vector of length[width].
  3895. // height Number of rows in input matrices and the length of
  3896. // the result vector pSrcDst.
  3897. // width Length of the input matrices row and the vector pSrc.
  3898. // scaleFactor
  3899. //
  3900. // Return:
  3901. // ippStsNoErr Indicates no error.
  3902. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  3903. // pSrcDst or mMean or mVar or pVal pointer is null.
  3904. // ippStsSizeErr Indicates an error when height or width is less than or
  3905. // equal to 0.
  3906. // ippStsStrideErr Indicates an error when width > step.
  3907. //
  3908. */
  3909. IPPAPI(IppStatus, ippsLogGaussMaxMultiMix_LowScaled_16s32f_D2, (const Ipp16s* pMean,
  3910. const Ipp16s* pVar, int step, const Ipp16s* pSrc,int width,
  3911. const Ipp32f* pVal, Ipp32f* pSrcDst,int height, int scaleFactor))
  3912. IPPAPI(IppStatus, ippsLogGaussMaxMultiMix_LowScaled_16s32f_D2L, (const Ipp16s** mMean,
  3913. const Ipp16s** mVar, const Ipp16s* pSrc, int width, const Ipp32f* pVal,
  3914. Ipp32f* pSrcDst,int height, int scaleFactor))
  3915. IPPAPI(IppStatus, ippsLogGaussMaxMultiMix_Low_16s32s_D2Sfs, (const Ipp16s* pMean,
  3916. const Ipp16s* pVar, int step, const Ipp16s* pSrc, int width,
  3917. const Ipp32s* pVal, Ipp32s* pSrcDst,int height, int scaleFactor))
  3918. IPPAPI(IppStatus, ippsLogGaussMaxMultiMix_Low_16s32s_D2LSfs, (const Ipp16s** mMean,
  3919. const Ipp16s** mVar, const Ipp16s* pSrc, int width, const Ipp32s* pVal,
  3920. Ipp32s* pSrcDst,int height, int scaleFactor))
  3921. /* /////////////////////////////////////////////////////////////////////////////
  3922. // Name: ippsLogGaussAdd_32f_D2
  3923. // Purpose: Calculates the likelihood probability for multiple
  3924. // observation vectors.
  3925. //
  3926. // Parameters:
  3927. // pSrc Pointer to the first input vector of length [width*height]
  3928. // step Row step in pSrc.
  3929. // pMean Pointer to the mean vector of length [width]
  3930. // pVar Pointer to the variance vector of length [width]
  3931. // width Length of the mean, and variance vectors.
  3932. // pSrcDst Pointer to input vector and output vector [height]
  3933. // height Length of the input and output vector pSrcDst
  3934. // val Value to add to each distance.
  3935. //
  3936. // Returns:
  3937. // ippStsNoErr Indicates no error
  3938. // ippStsNullPtrErr Indicates an error when the pSrc, pMean,pVar,
  3939. // pSrcDst pointer is null.
  3940. // ippStsSizeErr Indicates an error when width or height
  3941. // is less than or equal to 0.
  3942. // ippStsStrideErr Indicates an error when width > step.
  3943. */
  3944. /*
  3945. //Case 1: Operation for the inverse diagonal covariance matrix
  3946. */
  3947. IPPAPI(IppStatus, ippsLogGaussAdd_LowScaled_16s32f_D2,(const Ipp16s* pSrc, int step,
  3948. const Ipp16s* pMean, const Ipp16s* pVar, int width,
  3949. Ipp32f* pSrcDst, int height, Ipp32f val, int scaleFactor))
  3950. IPPAPI(IppStatus, ippsLogGaussAdd_LowScaled_16s32f_D2L, (const Ipp16s** mSrc,
  3951. const Ipp16s* pMean, const Ipp16s* pVar, int width, Ipp32f* pSrcDst,
  3952. int height, Ipp32f val, int scaleFactor))
  3953. /*
  3954. //Case 2: Operation for the identity covariance matrix
  3955. */
  3956. IPPAPI(IppStatus, ippsLogGaussAdd_IdVarLowScaled_16s32f_D2,(const Ipp16s* pSrc,
  3957. int step, const Ipp16s* pMean, int width, Ipp32f* pSrcDst,
  3958. int height, Ipp32f val, int scaleFactor))
  3959. IPPAPI(IppStatus, ippsLogGaussAdd_IdVarLowScaled_16s32f_D2L,(const Ipp16s** mSrc,
  3960. const Ipp16s* pMean, int width, Ipp32f* pSrcDst, int height, Ipp32f val,
  3961. int scaleFactor))
  3962. /* /////////////////////////////////////////////////////////////////////////////
  3963. // Name: ippsLogGaussAddMultiMix_*_*
  3964. // Purpose: Calculates the likelihood probability for multiple
  3965. // Gaussian mixture components.
  3966. //
  3967. // Parameters:
  3968. // pMean Pointer to the variance vector [height*step].
  3969. // mMean Pointer to the mean matrix [height][width].
  3970. // pVal Pointer to the input vector of additive values [height].
  3971. // mVar Pointer to the variance matrix [height][width].
  3972. // pSrcDst Pointer to the input and output vector of length [height].
  3973. // step The row step in pMean.
  3974. // pSrc Pointer to the input vector [width].
  3975. // height The number of rows in input matrices and the length of
  3976. // the result vector pSrcDst.
  3977. // width The length of the input matrices row and the vector pSrc.
  3978. // scaleFactor
  3979. //
  3980. // Return:
  3981. // ippStsNoErr Indicates no error.
  3982. // ippStsNullPtrErr Indicates an error when the pSrc, pMean, pVar,
  3983. // pSrcDst, mMean, or mVar pointer is null.
  3984. // ippStsSizeErr Indicates an error when heightor width is less than or
  3985. // equal to 0.
  3986. // ippStsStrideErr Indicates an error when width > step.
  3987. //
  3988. */
  3989. IPPAPI(IppStatus, ippsLogGaussAddMultiMix_LowScaled_16s32f_D2, (const Ipp16s* pMean,
  3990. const Ipp16s* pVar, int step, const Ipp16s* pSrc, int width,
  3991. const Ipp32f* pVal, Ipp32f* pSrcDst, int height, int scaleFactor))
  3992. IPPAPI(IppStatus, ippsLogGaussAddMultiMix_LowScaled_16s32f_D2L, (const Ipp16s** mMean,
  3993. const Ipp16s** mVar, const Ipp16s* pSrc, int width, const Ipp32f* pVal,
  3994. Ipp32f* pSrcDst, int height, int scaleFactor))
  3995. /* /////////////////////////////////////////////////////////////////////////////
  3996. // Name: LogGaussMixture_*
  3997. // Purpose: Calculates the likelihood probability for the Gaussian mixture
  3998. //
  3999. // Parameters:
  4000. // pMean Pointer to the variance vector [height*step].
  4001. // mMean Pointer to the mean matrix [height][width].
  4002. // pVar Pointer to the variance vector [height*step].
  4003. // mVar Pointer to the variance matrix [height][width].
  4004. // pVal Pointer to the weight constant vector [height]..
  4005. // pSrc Pointer to the input vector [width].
  4006. // pResult Pointer to the output mixture value.
  4007. // step The row step in pMean and pVar.
  4008. // height Number of Gaussian mixture components.
  4009. // width Length of the mean and variance matrices rows and pSrc vector.
  4010. // scaleFactor
  4011. //
  4012. // Return:
  4013. // ippStsNoErr Indicates no error.
  4014. // ippStsNullPtrErr Indicates an error when the mMean, mVar, pMean, pVar, pVal or
  4015. // pResult pointer is null.
  4016. // ippStsSizeErr Indicates an error when height, step or width is less than or
  4017. // equal to 0.
  4018. // ippStsStrideErr Indicates an error when width > step.
  4019. //
  4020. */
  4021. /*
  4022. //Case 1: Operation for the inverse diagonal covariance matrix
  4023. */
  4024. IPPAPI(IppStatus, ippsLogGaussMixture_Scaled_16s32f_D2,(const Ipp16s* pSrc, const Ipp16s* pMean,
  4025. const Ipp16s* pVar, int height, int step, int width, const Ipp32f* pVal,
  4026. Ipp32f* pResult, int scaleFactor))
  4027. IPPAPI(IppStatus, ippsLogGaussMixture_Scaled_16s32f_D2L,(const Ipp16s* pSrc, const Ipp16s** mMean,
  4028. const Ipp16s** mVar, int height, int width, const Ipp32f* pVal, Ipp32f* pResult,
  4029. int scaleFactor))
  4030. IPPAPI(IppStatus, ippsLogGaussMixture_LowScaled_16s32f_D2,(const Ipp16s* pSrc,
  4031. const Ipp16s* pMean, const Ipp16s* pVar, int height, int step, int width,
  4032. const Ipp32f* pVal, Ipp32f* pResult, int scaleFactor))
  4033. IPPAPI(IppStatus, ippsLogGaussMixture_LowScaled_16s32f_D2L,(const Ipp16s* pSrc,
  4034. const Ipp16s** mMean, const Ipp16s** mVar, int height, int width,
  4035. const Ipp32f* pVal, Ipp32f* pResult, int scaleFactor))
  4036. IPPAPI(IppStatus, ippsLogGaussMixture_32f_D2,(const Ipp32f* pSrc, const Ipp32f* pMean,
  4037. const Ipp32f* pVar, int height, int step, int width, const Ipp32f* pVal,
  4038. Ipp32f* pResult))
  4039. IPPAPI(IppStatus, ippsLogGaussMixture_32f_D2L,(const Ipp32f* pSrc, const Ipp32f** mMean,
  4040. const Ipp32f** mVar, int height, int width, const Ipp32f* pVal, Ipp32f* pResult))
  4041. IPPAPI(IppStatus, ippsLogGaussMixture_64f_D2,(const Ipp64f* pSrc, const Ipp64f* pMean,
  4042. const Ipp64f* pVar, int height, int step, int width, const Ipp64f* pVal,
  4043. Ipp64f* pResult))
  4044. IPPAPI(IppStatus, ippsLogGaussMixture_64f_D2L,(const Ipp64f* pSrc, const Ipp64f** mMean,
  4045. const Ipp64f** mVar, int height, int width, const Ipp64f* pVal, Ipp64f* pResult))
  4046. /*
  4047. //Case 2: Operation for the identity covariance matrix
  4048. */
  4049. IPPAPI(IppStatus, ippsLogGaussMixture_IdVarScaled_16s32f_D2,(const Ipp16s* pSrc,
  4050. const Ipp16s* pMean, int height, int step, int width, const Ipp32f* pVal,
  4051. Ipp32f* pResult, int scaleFactor))
  4052. IPPAPI(IppStatus, ippsLogGaussMixture_IdVarScaled_16s32f_D2L,(const Ipp16s* pSrc,
  4053. const Ipp16s** mMean, int height, int width, const Ipp32f* pVal,
  4054. Ipp32f* pResult, int scaleFactor))
  4055. IPPAPI(IppStatus, ippsLogGaussMixture_IdVarLowScaled_16s32f_D2,(const Ipp16s* pSrc,
  4056. const Ipp16s* pMean, int height, int step, int width, const Ipp32f* pVal,
  4057. Ipp32f* pResult, int scaleFactor))
  4058. IPPAPI(IppStatus, ippsLogGaussMixture_IdVarLowScaled_16s32f_D2L,(const Ipp16s* pSrc,
  4059. const Ipp16s** mMean, int height, int width, const Ipp32f* pVal,
  4060. Ipp32f* pResult, int scaleFactor))
  4061. IPPAPI(IppStatus, ippsLogGaussMixture_IdVar_32f_D2,(const Ipp32f* pSrc,
  4062. const Ipp32f* pMean, int height, int step, int width, const Ipp32f* pVal,
  4063. Ipp32f* pResult))
  4064. IPPAPI(IppStatus, ippsLogGaussMixture_IdVar_32f_D2L,(const Ipp32f* pSrc,
  4065. const Ipp32f** mMean, int height, int width, const Ipp32f* pVal,
  4066. Ipp32f* pResult))
  4067. IPPAPI(IppStatus, ippsLogGaussMixture_IdVar_64f_D2,(const Ipp64f* pSrc,
  4068. const Ipp64f* pMean, int height, int step, int width, const Ipp64f* pVal,
  4069. Ipp64f* pResult))
  4070. IPPAPI(IppStatus, ippsLogGaussMixture_IdVar_64f_D2L,(const Ipp64f* pSrc,
  4071. const Ipp64f** mMean, int height, int width, const Ipp64f* pVal,
  4072. Ipp64f* pResult))
  4073. /* /////////////////////////////////////////////////////////////////////////////
  4074. // Name: ippsLogSum_*
  4075. // Purpose: Logarithmically sums vector elements.
  4076. // Parameters:
  4077. // pSrc The first input vector [len].
  4078. // pResult Pointer to the result value.
  4079. // len The number of elements in the input and output vectors.
  4080. // hint Recommends to use a specific code for the
  4081. // Logarithmically Sums.
  4082. // Return:
  4083. // ippStsNoErr Indicates no error.
  4084. // ippStsNullPtrErr Indicates an error when the pSrc or pResult pointer is null.
  4085. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  4086. //
  4087. */
  4088. IPPAPI(IppStatus,ippsLogSum_64f,(const Ipp64f* pSrc, Ipp64f* pResult, int len,
  4089. IppHintAlgorithm hint))
  4090. IPPAPI(IppStatus,ippsLogSum_32f,(const Ipp32f* pSrc, Ipp32f* pResult, int len,
  4091. IppHintAlgorithm hint))
  4092. IPPAPI(IppStatus,ippsLogSum_32s_Sfs,(const Ipp32s* pSrc, Ipp32s* pResult, int len,
  4093. int scaleFactor, IppHintAlgorithm hint))
  4094. IPPAPI(IppStatus,ippsLogSum_16s_Sfs,(const Ipp16s* pSrc, Ipp16s* pResult, int len,
  4095. int scaleFactor, IppHintAlgorithm hint))
  4096. /* /////////////////////////////////////////////////////////////////////////////
  4097. // Name: ippsWeightedMeanColumn_*_*
  4098. // Purpose: Computes the weighted mean values for the column elements.
  4099. // Returns:
  4100. // ippStsNoErr Indicates no error.
  4101. // ippStsNullPtrErr Indicates an error when pSrc, mSrc, pWgt, or pDstMean pointer is null.
  4102. // ippStsSizeErr Indicates an error when height or width is less than or equal to 0.
  4103. // IppStsStrideErr Indicates an error when step is less than width.
  4104. // Parameters:
  4105. // pSrc Pointer to the input vector [height*step].
  4106. // mSrc Pointer to the input matrix [height][width].
  4107. // pWgt Pointer to the weights vector [height].
  4108. // height Number of rows in the input matrix.
  4109. // step Row step in the input vector (measured in pSrc elements).
  4110. // pDstMean Pointer to the output mean vector [width].
  4111. // width Number of columns in the input matrix, and also the length of the output mean vector pDstMean.
  4112. // Notes:
  4113. */
  4114. IPPAPI(IppStatus, ippsWeightedMeanColumn_32f_D2,(const Ipp32f* pSrc, int step,
  4115. const Ipp32f* pWgt, int height, Ipp32f* pDstMean, int width))
  4116. IPPAPI(IppStatus, ippsWeightedMeanColumn_32f_D2L,(const Ipp32f** mSrc,
  4117. const Ipp32f* pWgt, int height, Ipp32f* pDstMean, int width))
  4118. IPPAPI(IppStatus, ippsWeightedMeanColumn_64f_D2,(const Ipp64f* pSrc, int step,
  4119. const Ipp64f* pWgt, int height, Ipp64f* pDstMean, int width))
  4120. IPPAPI(IppStatus, ippsWeightedMeanColumn_64f_D2L,(const Ipp64f** mSrc,
  4121. const Ipp64f* pWgt, int height, Ipp64f* pDstMean, int width))
  4122. /* /////////////////////////////////////////////////////////////////////////////
  4123. // Name: ippsWeightedVarColumn_*_*
  4124. // Purpose: Computes the weighted variances values for the column elements.
  4125. // Returns:
  4126. // ippStsNoErr Indicates no error.
  4127. // ippStsNullPtrErr Indicates an error when pSrc, mSrc, pWgt, pSrcMean,
  4128. // or pDstVar pointer is null.
  4129. // ippStsSizeErr Indicates an error when height or width is less than
  4130. // or equal to 0.
  4131. // ippStsStrideErr Indicates an error when step is less than width.
  4132. // Parameters:
  4133. // pSrc Pointer to the input vector [height*step].
  4134. // mSrc Pointer to the input matrix [height][width].
  4135. // pWgt Pointer to the weights vector [height].
  4136. // height Number of rows in the input matrix.
  4137. // step Row step in the input vector (measured in pSrc elements).
  4138. // pSrcMean Pointer to the input mean vector [width].
  4139. // pDstVar Pointer to the output variance vector [width].
  4140. // width Number of columns in the input matrix, and also the length
  4141. // of the input mean vector pSrcMean and the output variance vector pDstVar.
  4142. */
  4143. IPPAPI(IppStatus, ippsWeightedVarColumn_32f_D2,(const Ipp32f* pSrc, int step,
  4144. const Ipp32f* pWgt, int height, const Ipp32f* pSrcMean,
  4145. Ipp32f* pDstVar, int width))
  4146. IPPAPI(IppStatus, ippsWeightedVarColumn_32f_D2L,(const Ipp32f** mSrc,
  4147. const Ipp32f* pWgt, int height, const Ipp32f* pSrcMean,
  4148. Ipp32f* pDstVar, int width))
  4149. IPPAPI(IppStatus, ippsWeightedVarColumn_64f_D2,(const Ipp64f* pSrc, int step,
  4150. const Ipp64f* pWgt, int height, const Ipp64f* pSrcMean,
  4151. Ipp64f* pDstVar, int width))
  4152. IPPAPI(IppStatus, ippsWeightedVarColumn_64f_D2L,(const Ipp64f** mSrc,
  4153. const Ipp64f* pWgt, int height, const Ipp64f* pSrcMean,
  4154. Ipp64f* pDstVar,int width))
  4155. /* /////////////////////////////////////////////////////////////////////////////
  4156. // Name: ippsWeightedMeanVarColumn_*_*
  4157. // Purpose: Computes the weighted mean variances values for the column elements.
  4158. // Returns:
  4159. // ippStsNoErr Indicates no error.
  4160. // ippStsNullPtrErr Indicates an error when pSrc, mSrc, pWgt, pDstMean,
  4161. // or pDstVar pointer is null.
  4162. // ippStsSizeErr Indicates an error when height or width is less than
  4163. // or equal to 0.
  4164. // ippStsStrideErr Indicates an error when step is less than width.
  4165. // Parameters:
  4166. // pSrc Pointer to the input vector [height*step].
  4167. // mSrc Pointer to the input matrix [height][width].
  4168. // pWgt Pointer to the weights vector [height].
  4169. // height Number of rows in the input matrix.
  4170. // step Row step in the input vector (measured in pSrc elements).
  4171. // pDstMean Pointer to the output mean vector [width].
  4172. // pDstVar Pointer to the output variance vector [width].
  4173. // width Number of columns in the input matrix, and also the length of the output mean vector pSrcMean and the output variance vector pDstVar.
  4174. */
  4175. IPPAPI(IppStatus, ippsWeightedMeanVarColumn_32f_D2,(const Ipp32f* pSrc, int step,
  4176. const Ipp32f* pWgt, int height, Ipp32f* pDstMean, Ipp32f* pDstVar, int width))
  4177. IPPAPI(IppStatus, ippsWeightedMeanVarColumn_32f_D2L,(const Ipp32f** mSrc,
  4178. const Ipp32f* pWgt, int height, Ipp32f* pDstMean, Ipp32f* pDstVar, int width))
  4179. IPPAPI(IppStatus, ippsWeightedMeanVarColumn_64f_D2,(const Ipp64f* pSrc, int step,
  4180. const Ipp64f* pWgt, int height, Ipp64f* pDstMean, Ipp64f* pDstVar, int width))
  4181. IPPAPI(IppStatus, ippsWeightedMeanVarColumn_64f_D2L,(const Ipp64f** mSrc,
  4182. const Ipp64f* pWgt, int height, Ipp64f* pDstMean, Ipp64f* pDstVar, int width))
  4183. /* /////////////////////////////////////////////////////////////////////////////
  4184. // Name: ippsCrossCorrCoeffDecim
  4185. // Purpose: Calculate vector of cross correlation coefficients with decimation.
  4186. // Returns:
  4187. // ippStsNoErr Indicates no error.
  4188. // ippStsNullPtrErr Indicates an error when the pSrc1, pSrc2, or pDst pointer is null.
  4189. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  4190. // ippStsBadArgErr Indicates an error when val is less than 0.
  4191. // Parameters:
  4192. // pSrc1 Pointer to the first input vector [maxLen].
  4193. // pSrc2 Pointer to the second input vector [maxLen].
  4194. // pDst Pointer to the output vector [(maxLen-minLen+dec-1)/dec].
  4195. // maxLen Maximal length of cross correlation.
  4196. // minLen Minimal length of cross correlation.
  4197. // dec Decimation step.
  4198. */
  4199. IPPAPI(IppStatus, ippsCrossCorrCoeffDecim_16s32f,(const Ipp16s* pSrc1,
  4200. const Ipp16s* pSrc2, int maxLen, int minLen, Ipp32f* pDst, int dec))
  4201. /* /////////////////////////////////////////////////////////////////////////////
  4202. // Name: ippsCrossCorrCoeff
  4203. // Purpose: Calculate cross correlation coefficient.
  4204. // Context:
  4205. // Returns:
  4206. // ippStsNoErr Indicates no error.
  4207. // ippStsNullPtrErr Indicates an error when the pSrc1, pSrc2, or pResult pointer is null.
  4208. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  4209. // ippStsBadArgErr Indicates an error when val is less than 0.
  4210. // Parameters:
  4211. // pSrc1 Pointer to the first input vector [len].
  4212. // pSrc2 Pointer to the second input vector [len].
  4213. // len Length of the input vectors.
  4214. // pResult Pointer to the result cross correlation coefficient value.
  4215. // val First vector length value.
  4216. */
  4217. IPPAPI(IppStatus, ippsCrossCorrCoeff_16s32f,(const Ipp16s* pSrc1,
  4218. const Ipp16s* pSrc2, int len, Ipp32f* pResult))
  4219. IPPAPI(IppStatus, ippsCrossCorrCoeffPartial_16s32f,(const Ipp16s* pSrc1,
  4220. const Ipp16s* pSrc2, int len, Ipp32f val, Ipp32f* pResult))
  4221. /* /////////////////////////////////////////////////////////////////////////////
  4222. // Name: ippsCrossCorrCoeffInterpolation
  4223. // Purpose: Calculate cross correlation coefficient.
  4224. // Context:
  4225. // Returns:
  4226. // ippStsNoErr Indicates no error.
  4227. // ippStsNullPtrErr Indicates an error when the pSrc1, pSrc2, pBeta or pResult pointer is null.
  4228. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  4229. // ippStsStrideErr Indicates an error when srcStep or dstStep is less than width.
  4230. // Parameters:
  4231. // pSrc1 Pointer to the first input vector [len].
  4232. // pSrc2 Pointer to the second input vector [len+1].
  4233. // len Length of the input vectors.
  4234. // pResult Pointer to the result cross correlation coefficient value.
  4235. // pBeta Pointer to the result value of fractional part of the pitch period.
  4236. */
  4237. IPPAPI(IppStatus, ippsCrossCorrCoeffInterpolation_16s32f,(const Ipp16s* pSrc1,
  4238. const Ipp16s* pSrc2, int len, Ipp32f* pBeta, Ipp32f* pResult))
  4239. /* /////////////////////////////////////////////////////////////////////////////
  4240. // Name: ippsBuildSignTable_8u1u
  4241. // Purpose: Fills sign table for Gaussian mixture calculation.
  4242. //
  4243. // Parameters:
  4244. // pIndx Pointer to the cluster indexes vector ([frames*num] or sum of pNum elements).
  4245. // num Number of clusters for each input vector.
  4246. // mShortlist Pointer to the shortlist matrix [clust*width] (in bytes).
  4247. // clust Number of rows in shortlist vector (equal to the codebook size).
  4248. // width Row length in shortlist matrix in bytes.
  4249. // shift First element displacement in shortlist vector rows (in bits).
  4250. // pSign Pointer to the output vector of Gaussian calculation
  4251. // signs [frames*(comps+7)/8] (in bytes).
  4252. // frames Number of input vectors (rows in pSign vector).
  4253. // comps Number of Gaussian mixture components (bit columns in pSign vector).
  4254. // Return:
  4255. // ippStsNoErr Indicates no error.
  4256. // ippStsNullPtrErr Indicates an error when pIndx, pSign, mShortlist or pNum is NULL.
  4257. // ippStsSizeErr Indicates an error when clust, width, frames, comps, num or one
  4258. // of pNum vector elements is less than or equal to 0 or when
  4259. // shift is less than 0.
  4260. // ippStsStrideErr Indicates an error when width is less than (shift+height+7)/8.
  4261. // ippStsBadArgErr Indicates an error when one of pIndx vector elements is
  4262. // less than 0 or greater than or equal to clust.
  4263. // Notes:
  4264. */
  4265. IPPAPI(IppStatus, ippsBuildSignTable_8u1u, (const Ipp32s* pIndx, int num, const Ipp8u** mShortlist,
  4266. int clust, int width, int shift, Ipp8u* pSign, int frames, int comps))
  4267. /* /////////////////////////////////////////////////////////////////////////////
  4268. // Name: ippsBuildSignTable_Var_8u1u
  4269. // Purpose: Fills sign table for Gaussian mixture calculation.
  4270. //
  4271. // Parameters:
  4272. // pIndx Pointer to the cluster indexes vector ([frames*num] or sum of pNum elements).
  4273. // pNum Number of clusters vector [frames].
  4274. // mShortlist Pointer to the shortlist matrix [clust*width] (in bytes).
  4275. // clust Number of rows in shortlist vector (equal to the codebook size).
  4276. // width Row length in shortlist matrix in bytes.
  4277. // shift First element displacement in shortlist vector rows (in bits).
  4278. // pSign Pointer to the output vector of Gaussian calculation
  4279. // signs [frames*(comps+7)/8] (in bytes).
  4280. // frames Number of input vectors (rows in pSign vector).
  4281. // comps Number of Gaussian mixture components (bit columns in pSign vector).
  4282. // Return:
  4283. // ippStsNoErr Indicates no error.
  4284. // ippStsNullPtrErr Indicates an error when pIndx, pSign, mShortlist or pNum is NULL.
  4285. // ippStsSizeErr Indicates an error when clust, width, frames, comps, num or one
  4286. // of pNum vector elements is less than or equal to 0 or when
  4287. // shift is less than 0.
  4288. // ippStsStrideErr Indicates an error when width is less than (shift+height+7)/8.
  4289. // ippStsBadArgErr Indicates an error when one of pIndx vector elements is
  4290. // less than 0 or greater than or equal to clust.
  4291. // Notes:
  4292. */
  4293. IPPAPI(IppStatus, ippsBuildSignTable_Var_8u1u, (const Ipp32s* pIndx, const int* pNum,
  4294. const Ipp8u** mShortlist, int clust, int width, int shift, Ipp8u* pSign,
  4295. int frames, int comps))
  4296. /* /////////////////////////////////////////////////////////////////////////////
  4297. // Name: ippsLogGaussMixture_Select*_*_D2
  4298. // Purpose: Calculates the likelihood probability for the Gaussian
  4299. // mixture using Gaussian selection.
  4300. //
  4301. // Parameters:
  4302. // pSrc Pointer to the input vector
  4303. // pMean Pointer to the mean vector
  4304. // pVar Pointer to the variance vector
  4305. // step Row step in mean, variance and input vectors (in pMean elements)
  4306. // width Length of the mean, variance and input matrix rows
  4307. // pVal Pointer to the vector of weight constants
  4308. // pSign Pointer to the vector of Gaussian calculation
  4309. // signs [frames*(height+7)/8] (in bytes).
  4310. // height Number of Gaussian mixture components
  4311. // pResult Pointer to the vector of output mixture values
  4312. // frames Number of input vectors; also the length of pSign row
  4313. // none Result value if no Gaussian is calculated
  4314. // scaleFactor Scaling factor for intermediate sums.
  4315. // Return:
  4316. // ippStsNoErr Indicates no error.
  4317. // ippStsNullPtrErr Indicates an error when pSrc, pMean, pVar, pSign, pVal
  4318. // or pResult is NULL.
  4319. // ippStsSizeErr Indicates an error when width, height or frames less than
  4320. // or equal to 0.
  4321. // ippStsStrideErr Indicates an error when step is less than width.
  4322. // ippStsSizeErr Indicates an error when width, height, frames less than
  4323. // or equal to 0
  4324. // ippStsStrideErr Indicates an error when step is less than width .
  4325. // ippStsNoGaussian Indicates a warning when no Gaussian is calculated for
  4326. // one of input vectors.
  4327. // Notes:
  4328. */
  4329. IPPAPI(IppStatus, ippsLogGaussMixture_Select_32f_D2, (const Ipp32f* pSrc, const Ipp32f* pMean,
  4330. const Ipp32f* pVar,/* const Ipp32f* Det,*/ int step, int width, const Ipp32f* pVal,
  4331. const Ipp8u* pSign, int height, Ipp32f* pResult, int frames, Ipp32f none))
  4332. IPPAPI(IppStatus, ippsLogGaussMixture_SelectScaled_16s32f_D2, (const Ipp16s* pSrc,
  4333. const Ipp16s* pMean, const Ipp16s* pVar, int step, int width, const Ipp32f* pVal,
  4334. const Ipp8u* pSign, int height, Ipp32f* pResult, int frames, Ipp32f none, int scaleFactor))
  4335. /* /////////////////////////////////////////////////////////////////////////////
  4336. // Name: ippsLogGaussMixture_Select*_*_D2L
  4337. // Purpose: Calculates the likelihood probability for the Gaussian
  4338. // mixture using Gaussian selection.
  4339. //
  4340. // Parameters:
  4341. // mSrc Pointer to the input matrix [frames][width].
  4342. // mMean Pointer to the mean matrix [height][width].
  4343. // mVar Pointer to the variance matrix [height][width].
  4344. // width Length of the mean, variance and input matrix rows
  4345. // pVal Pointer to the vector of weight constants
  4346. // pSign Pointer to the vector of Gaussian calculation
  4347. // signs [frames*(height+7)/8] (in bytes).
  4348. // height Number of Gaussian mixture components
  4349. // pResult Pointer to the vector of output mixture values
  4350. // frames Number of input vectors; also the length of pSign row
  4351. // none Result value if no Gaussian is calculated
  4352. // scaleFactor Scaling factor for intermediate sums.
  4353. // Return:
  4354. // ippStsNoErr Indicates no error.
  4355. // ippStsNullPtrErr Indicates an error when mSrc, mMean, mVar, pSign, pVal
  4356. // or pResult is NULL.
  4357. // ippStsSizeErr Indicates an error when width, height or frames less than
  4358. // or equal to 0.
  4359. // ippStsSizeErr Indicates an error when width, height, frames less than
  4360. // or equal to 0
  4361. // ippStsNoGaussian Indicates a warning when no Gaussian is calculated for
  4362. // one of input vectors.
  4363. // Notes:
  4364. */
  4365. IPPAPI(IppStatus, ippsLogGaussMixture_Select_32f_D2L,(const Ipp32f** mSrc, const Ipp32f** mMean,
  4366. const Ipp32f** mVar, int width, const Ipp32f* pVal, const Ipp8u* pSign, int height,
  4367. Ipp32f* pResult, int frames, Ipp32f none))
  4368. IPPAPI(IppStatus, ippsLogGaussMixture_SelectScaled_16s32f_D2L, (const Ipp16s** mSrc,
  4369. const Ipp16s** mMean, const Ipp16s** mVar, int width, const Ipp32f* pVal,
  4370. const Ipp8u* pSign, int height, Ipp32f* pResult, int frames, Ipp32f none, int scaleFactor))
  4371. /* /////////////////////////////////////////////////////////////////////////////
  4372. // Name: ippsLogGaussMixture_SelectIdVar*_*_D2
  4373. // Purpose: Calculates the likelihood probability for the Gaussian
  4374. // mixture using Gaussian selection.
  4375. //
  4376. // Parameters:
  4377. // pSrc Pointer to the input vector
  4378. // pMean Pointer to the mean vector
  4379. // step Row step in mean, variance and input vectors (in pMean elements)
  4380. // width Length of the mean, variance and input matrix rows
  4381. // pVal Pointer to the vector of weight constants
  4382. // pSign Pointer to the vector of Gaussian calculation
  4383. // signs [frames*(height+7)/8] (in bytes).
  4384. // height Number of Gaussian mixture components
  4385. // pResult Pointer to the vector of output mixture values
  4386. // frames Number of input vectors; also the length of pSign row
  4387. // none Result value if no Gaussian is calculated
  4388. // scaleFactor Scaling factor for intermediate sums.
  4389. // Return:
  4390. // ippStsNoErr Indicates no error.
  4391. // ippStsNullPtrErr Indicates an error when pSrc, pMean, pSign, pVal
  4392. // or pResult is NULL.
  4393. // ippStsSizeErr Indicates an error when width, height or frames less than
  4394. // or equal to 0.
  4395. // ippStsStrideErr Indicates an error when step is less than width.
  4396. // ippStsSizeErr Indicates an error when width, height, frames less than
  4397. // or equal to 0
  4398. // ippStsStrideErr Indicates an error when step is less than width .
  4399. // ippStsNoGaussian Indicates a warning when no Gaussian is calculated for
  4400. // one of input vectors.
  4401. // Notes:
  4402. */
  4403. IPPAPI(IppStatus, ippsLogGaussMixture_SelectIdVar_32f_D2, (const Ipp32f* pSrc, const Ipp32f* pMean,
  4404. int step, int width, const Ipp32f* pVal, const Ipp8u* pSign, int height, Ipp32f* pResult,
  4405. int frames, Ipp32f none))
  4406. IPPAPI(IppStatus, ippsLogGaussMixture_SelectIdVarScaled_16s32f_D2, (const Ipp16s* pSrc,
  4407. const Ipp16s* pMean, int step, int width, const Ipp32f* pVal, const Ipp8u* pSign, int height,
  4408. Ipp32f* pResult, int frames, Ipp32f none, int scaleFactor))
  4409. /* /////////////////////////////////////////////////////////////////////////////
  4410. // Name: ippsLogGaussMixture_SelectIdVar*_*_D2L
  4411. // Purpose: Calculates the likelihood probability for the Gaussian
  4412. // mixture using Gaussian selection.
  4413. //
  4414. // Parameters:
  4415. // mSrc Pointer to the input matrix [frames][width].
  4416. // mMean Pointer to the mean matrix [height][width].
  4417. // width Length of the mean, variance and input matrix rows
  4418. // pVal Pointer to the vector of weight constants
  4419. // pSign Pointer to the vector of Gaussian calculation
  4420. // signs [frames*(height+7)/8] (in bytes).
  4421. // height Number of Gaussian mixture components
  4422. // pResult Pointer to the vector of output mixture values
  4423. // frames Number of input vectors; also the length of pSign row
  4424. // none Result value if no Gaussian is calculated
  4425. // scaleFactor Scaling factor for intermediate sums.
  4426. // Return:
  4427. // ippStsNoErr Indicates no error.
  4428. // ippStsNullPtrErr Indicates an error when mSrc, mMean, pSign, pVal
  4429. // or pResult is NULL.
  4430. // ippStsSizeErr Indicates an error when width, height or frames less than
  4431. // or equal to 0.
  4432. // ippStsSizeErr Indicates an error when width, height, frames less than
  4433. // or equal to 0
  4434. // ippStsNoGaussian Indicates a warning when no Gaussian is calculated for
  4435. // one of input vectors.
  4436. // Notes:
  4437. */
  4438. IPPAPI(IppStatus, ippsLogGaussMixture_SelectIdVar_32f_D2L, (const Ipp32f** mSrc,
  4439. const Ipp32f** mMean, int width, const Ipp32f* pVal, const Ipp8u* pSign, int height,
  4440. Ipp32f* pResult, int frames, Ipp32f none))
  4441. IPPAPI(IppStatus, ippsLogGaussMixture_SelectIdVarScaled_16s32f_D2L, (const Ipp16s** mSrc,
  4442. const Ipp16s** mMean, int width, const Ipp32f* pVal, const Ipp8u* pSign, int height,
  4443. Ipp32f* pResult, int frames, Ipp32f none, int scaleFactor))
  4444. /* /////////////////////////////////////////////////////////////////////////////
  4445. // Name: ippsVQSingle_Thresh_*
  4446. // Purpose: Quantizes the input vector given a codebook getting
  4447. // several closest clusters
  4448. //
  4449. // Parameters:
  4450. // pSrc Pointer to the input vector
  4451. // pIndx Pointer to the destination indexes vector
  4452. // pCdbk Pointer to the codebook structure
  4453. // val Relative threshold value
  4454. // pNum Pointer to the number of clusters within threshold [1]
  4455. // Return:
  4456. // ippStsNoErr Indicates no error
  4457. // ippStsNullPtrErr Indicates an error when pSrc, pIndx, pCdbk or pNum is NULL
  4458. // ippStsBadArgErr Indicates an error when val is less than 1
  4459. // Notes:
  4460. */
  4461. IPPAPI(IppStatus, ippsVQSingle_Thresh_32f,(const Ipp32f *pSrc, Ipp32s *pIndx, const IppsCdbkState_32f* pCdbk, Ipp32f val, int *pNum))
  4462. IPPAPI(IppStatus, ippsVQSingle_Thresh_16s,(const Ipp16s *pSrc, Ipp32s *pIndx, const IppsCdbkState_16s* pCdbk, Ipp32f val, int *pNum))
  4463. /* /////////////////////////////////////////////////////////////////////////////
  4464. // Name: ippsVQDistSingle_Thresh_*
  4465. // Purpose: Quantizes the input vector given a codebook getting
  4466. // several closest clusters
  4467. //
  4468. // Parameters:
  4469. // pSrc Pointer to the input vector
  4470. // pIndx Pointer to the destination indexes vector
  4471. // pDist Pointer to the destination distances vector
  4472. // pCdbk Pointer to the codebook structure
  4473. // val Relative threshold value
  4474. // pNum Pointer to the number of clusters within threshold [1]
  4475. // scaleFactor Refer to "Integer Scaling" in Chapter 2.
  4476. // Return:
  4477. // ippStsNoErr Indicates no error
  4478. // ippStsNullPtrErr Indicates an error when pSrc, pIndx, pDist, pCdbk or pNum is NULL
  4479. // ippStsBadArgErr Indicates an error when val is less than 1
  4480. // Notes:
  4481. */
  4482. IPPAPI(IppStatus, ippsVQDistSingle_Thresh_32f,(const Ipp32f *pSrc, Ipp32s *pIndx, Ipp32f *pDist, const IppsCdbkState_32f* pCdbk, Ipp32f val, int *pNum))
  4483. IPPAPI(IppStatus, ippsVQDistSingle_Thresh_16s32s_Sfs,(const Ipp16s *pSrc, Ipp32s *pIndx, Ipp32s *pDist, const IppsCdbkState_16s* pCdbk, Ipp32f val, int *pNum, int scaleFactor))
  4484. /* /////////////////////////////////////////////////////////////////////////////
  4485. // Name: ippsVQSingle_Sort_*
  4486. // Purpose: Quantizes the input vector given a codebook getting
  4487. // several closest clusters
  4488. //
  4489. // Parameters:
  4490. // pSrc Pointer to the input vector
  4491. // pIndx Pointer to the destination indexes vector
  4492. // pCdbk Pointer to the codebook structure
  4493. // num Number of closest clusters to search for each input vector
  4494. // Return:
  4495. // ippStsNoErr Indicates no error
  4496. // ippStsNullPtrErr Indicates an error when pSrc, pIndx, pCdbk is NULL
  4497. // ippStsSizeErr Indicates an error when num less than or equal to 0 or
  4498. // is greater than the codebook size.
  4499. // Notes:
  4500. */
  4501. IPPAPI(IppStatus, ippsVQSingle_Sort_32f,(const Ipp32f *pSrc, Ipp32s *pIndx, const IppsCdbkState_32f* pCdbk, int num))
  4502. IPPAPI(IppStatus, ippsVQSingle_Sort_16s,(const Ipp16s *pSrc, Ipp32s *pIndx, const IppsCdbkState_16s* pCdbk, int num))
  4503. /* /////////////////////////////////////////////////////////////////////////////
  4504. // Name: ippsVQDistSingle_Sort_*
  4505. // Purpose: Quantizes the input vector given a codebook getting
  4506. // several closest clusters
  4507. //
  4508. // Parameters:
  4509. // pSrc Pointer to the input vector
  4510. // pIndx Pointer to the destination indexes vector
  4511. // pDist Pointer to the destination distances vector
  4512. // pCdbk Pointer to the codebook structure
  4513. // num Number of closest clusters to search for each input vector
  4514. // scaleFactor Refer to "Integer Scaling" in Chapter 2.
  4515. // Return:
  4516. // ippStsNoErr Indicates no error
  4517. // ippStsNullPtrErr Indicates an error when pSrc, pIndx, pDist, pCdbk is NULL
  4518. // ippStsSizeErr Indicates an error when num less than or equal to 0 or
  4519. // is greater than the codebook size.
  4520. // Notes:
  4521. */
  4522. IPPAPI(IppStatus, ippsVQDistSingle_Sort_32f,(const Ipp32f *pSrc, Ipp32s *pIndx, Ipp32f *pDist, const IppsCdbkState_32f* pCdbk, int num))
  4523. IPPAPI(IppStatus, ippsVQDistSingle_Sort_16s32s_Sfs,(const Ipp16s *pSrc, Ipp32s *pIndx, Ipp32s *pDist, const IppsCdbkState_16s* pCdbk, int num, int scaleFactor))
  4524. /* /////////////////////////////////////////////////////////////////////////////
  4525. // Name: ippsFillShortlist_Row_1u
  4526. // Purpose: Fills row-wise shortlist table for Gaussian selection.
  4527. // several closest clusters
  4528. //
  4529. // Parameters:
  4530. // pIndx Pointer to the cluster indexes vector ([num*clust])
  4531. // num Number of Gaussian for each codebook cluster
  4532. // pShortlist Pointer to the shortlist matrix [clust][Listlen] (size in bytes)
  4533. // clust Number of rows in shortlist vector and rows in pIndx
  4534. // Listlen Number of elements in shortlist vector
  4535. // shift First element displacement in shortlist vector rows (in bits)
  4536. // height Number of Gaussian mixture components
  4537. // Return:
  4538. // ippStsNoErr Indicates no error
  4539. // ippStsNoErr Indicates no error
  4540. // ippStsNullPtrErr Indicates an error when pIndx or pShortlist NULL
  4541. // ippStsSizeErr Indicates an error when clust, height, Listlen, num vector elements
  4542. // is less than or equal to 0 or when shift is less than 0
  4543. // ippStsStrideErr Indicates an error when Listlen is less than (shift+height+7)/8.
  4544. // ippStsBadArgErr Indicates an error when one of pIndx vector elements is less than
  4545. // 0 or greater than or equal to height.
  4546. // Notes:
  4547. */
  4548. IPPAPI(IppStatus, ippsFillShortlist_Row_1u,(const Ipp32s* pIndx, int height, int num, Ipp8u** pShortlist, int clust, int Listlen, int shift))
  4549. /* /////////////////////////////////////////////////////////////////////////////
  4550. // Name: ippsFillShortlist_RowVar_1u
  4551. // Purpose: Fills row-wise shortlist table for Gaussian selection.
  4552. // several closest clusters
  4553. //
  4554. // Parameters:
  4555. // pIndx Pointer to the cluster indexes vector ([sum of pNum's])
  4556. // pNum Number of clusters vector [clust].
  4557. // pShortlist Pointer to the shortlist matrix [clust][Listlen] (size in bytes)
  4558. // clust Number of rows in shortlist vector and rows in pIndx
  4559. // Listlen Number of elements in shortlist vector
  4560. // shift First element displacement in shortlist vector rows (in bits)
  4561. // height Number of Gaussian mixture components
  4562. // Return:
  4563. // ippStsNoErr Indicates no error
  4564. // ippStsNoErr Indicates no error
  4565. // ippStsNullPtrErr Indicates an error when pIndx or pShortlist NULL
  4566. // ippStsSizeErr Indicates an error when clust, height, Listlen, or any pNum elements
  4567. // is less than or equal to 0 or when shift is less than 0.
  4568. // ippStsStrideErr Indicates an error when Listlen is less than (shift+height+7)/8.
  4569. // ippStsBadArgErr Indicates an error when one of pIndx vector elements is less than
  4570. // 0 or greater than or equal to height.
  4571. // Notes:
  4572. */
  4573. IPPAPI(IppStatus, ippsFillShortlist_RowVar_1u,(const Ipp32s* pIndx, int *pNum, int height, Ipp8u** pShortlist, int clust, int Listlen, int shift))
  4574. /* /////////////////////////////////////////////////////////////////////////////
  4575. // Name: ippsFillShortlist_Column_1u
  4576. // Purpose: Fills column-wise shortlist table for Gaussian selection.
  4577. // several closest clusters
  4578. //
  4579. // Parameters:
  4580. // pIndx Pointer to the cluster indexes vector ([num*height])
  4581. // num Number of Gaussian for each codebook cluster
  4582. // pShortlist Pointer to the shortlist matrix [clust][Listlen] (size in bytes)
  4583. // clust Number of rows in shortlist vector
  4584. // Listlen Number of elements in shortlist vector
  4585. // shift First element displacement in shortlist vector rows (in bits)
  4586. // height Number of Gaussian mixture components (and rows in pIndx)
  4587. // Return:
  4588. // ippStsNoErr Indicates no error
  4589. // ippStsNullPtrErr Indicates an error when pIndx or pShortlist NULL
  4590. // ippStsSizeErr Indicates an error when clust, height, Listlen, num vector elements
  4591. // is less than or equal to 0 or when shift is less than 0
  4592. // ippStsStrideErr Indicates an error when Listlen is less than (shift+height+7)/8.
  4593. // ippStsBadArgErr Indicates an error when one of pIndx vector elements is less than
  4594. // 0 or greater than or equal to clust.
  4595. // Notes:
  4596. */
  4597. IPPAPI(IppStatus, ippsFillShortlist_Column_1u,(const Ipp32s* pIndx, int num, Ipp8u** pShortlist, int clust, int Listlen, int shift, int height))
  4598. /* /////////////////////////////////////////////////////////////////////////////
  4599. // Name: ippsFillShortlist_ColumnVar_1u
  4600. // Purpose: Fills column-wise shortlist table for Gaussian selection.
  4601. // several closest clusters
  4602. //
  4603. // Parameters:
  4604. // pIndx Pointer to the cluster indexes vector ([sum of pNum's])
  4605. // pNum Number of clusters vector [height].
  4606. // pShortlist Pointer to the shortlist matrix [clust][Listlen] (size in bytes)
  4607. // clust Number of rows in shortlist vector
  4608. // Listlen Number of elements in shortlist vector
  4609. // shift First element displacement in shortlist vector rows (in bits)
  4610. // height Number of Gaussian mixture components (and rows in pIndx)
  4611. // Return:
  4612. // ippStsNoErr Indicates no error
  4613. // ippStsNullPtrErr Indicates an error when pIndx or pShortlist NULL
  4614. // ippStsSizeErr Indicates an error when clust, height, Listlen, any pNum elements
  4615. // is less than or equal to 0 or when shift is less than 0.
  4616. // ippStsStrideErr Indicates an error when Listlen is less than (shift+height+7)/8.
  4617. // ippStsBadArgErr Indicates an error when one of pIndx vector elements is less than
  4618. // 0 or greater than or equal to clust.
  4619. // Notes:
  4620. */
  4621. IPPAPI(IppStatus, ippsFillShortlist_ColumnVar_1u,(const Ipp32s* pIndx, int *pNum, Ipp8u** pShortlist, int clust, int ListLen, int shift, int height))
  4622. /* /////////////////////////////////////////////////////////////////////////////
  4623. // Name: ippsTabsCalculation_Aurora
  4624. // Purpose: Calculates filter coefficients for residual filter
  4625. //
  4626. //
  4627. // Arguments:
  4628. // pSrc Pointer to the input vector [10]
  4629. // pDst Pointer to the output vector [17]
  4630. // Return Value
  4631. // ippStsNoErr Indicates no error.
  4632. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  4633. */
  4634. IPPAPI(IppStatus, ippsTabsCalculation_Aurora_32f,(const Ipp32f *pSrc,Ipp32f *pDst))
  4635. IPPAPI(IppStatus, ippsTabsCalculation_Aurora_16s,(const Ipp16s *pSrc,Ipp16s *pDst))
  4636. /* /////////////////////////////////////////////////////////////////////////////
  4637. // Name: ippsResidualFilter_Aurora
  4638. // Purpose: Calculates denoised waveform signal
  4639. // Arguments:
  4640. // pTabs Pointer to the input vector [17]
  4641. // pSrc Pointer to the input vector [96]
  4642. // pDst Pointer to the output vector [80]
  4643. // scaleFactor Refer to "Integer Scaling" in Chapter 2.
  4644. // Return Value
  4645. // ippStsNoErr Indicates no error.
  4646. // ippStsNullPtrErr Indicates an error when the pSrc or pDst or pTabs pointer is null.
  4647. */
  4648. IPPAPI(IppStatus, ippsResidualFilter_Aurora_32f,(const Ipp32f* pSrc, Ipp32f* pDst, const Ipp32f* pTabs))
  4649. IPPAPI(IppStatus, ippsResidualFilter_Aurora_16s_Sfs,(const Ipp16s* pSrc, Ipp16s* pDst, const Ipp16s* pTabs, int scaleFactor))
  4650. /* /////////////////////////////////////////////////////////////////////////////
  4651. // Name: ippsWaveProcessing_Aurora
  4652. // Purpose: Processes waveform data after noise reduction
  4653. // Arguments:
  4654. // pSrc Pointer to the input vector [200]
  4655. // pDst Pointer to the output vector [200]
  4656. // Return Value
  4657. // ippStsNoErr Indicates no error.
  4658. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  4659. */
  4660. IPPAPI(IppStatus, ippsWaveProcessing_Aurora_32f,(const Ipp32f *pSrc,Ipp32f *pDst))
  4661. IPPAPI(IppStatus, ippsWaveProcessing_Aurora_16s,(const Ipp16s *pSrc,Ipp16s *pDst))
  4662. /* /////////////////////////////////////////////////////////////////////////////
  4663. // Name: ippsSmoothedPowerSpectrumAurora
  4664. // Purpose: Calculates smoothed magnitude of FFT output
  4665. // Arguments:
  4666. // pSrc Pointer to the input vector [len]
  4667. // pDst Pointer to the output vector [len/4+1]
  4668. // len The length of input and output vectors
  4669. // scaleFactor Refer to "Integer Scaling" in Chapter 2.
  4670. // Return Value
  4671. // ippStsNoErr Indicates no error.
  4672. // ippStsNullPtrErr Indicates an error when the pSrc or pDst pointer is null.
  4673. // ippStsSizeErr Indicates an error when len is less than or equal to 0, or len is not multiple of 4
  4674. */
  4675. IPPAPI(IppStatus, ippsSmoothedPowerSpectrumAurora_32f,(Ipp32f *pSrc, Ipp32f *pDst,Ipp32s len))
  4676. IPPAPI(IppStatus, ippsSmoothedPowerSpectrumAurora_32s_Sfs,(Ipp32s *pSrc, Ipp32s *pDst,Ipp32s len,
  4677. int scaleFactor))
  4678. IPPAPI(IppStatus, ippsSmoothedPowerSpectrumAurora_32s64s_Sfs,(Ipp32s *pSrc, Ipp64s *pDst,
  4679. Ipp32s len, int scaleFactor))
  4680. IPPAPI(IppStatus, ippsSmoothedPowerSpectrumAurora_16s,(Ipp16s *pSrc, Ipp16s *pDst,Ipp32s len))
  4681. /* /////////////////////////////////////////////////////////////////////////////
  4682. // Name: ippsLowHighFilter_Aurora
  4683. // Purpose: Calculates low band and high band filters
  4684. // Arguments:
  4685. // pTabs Pointer to the input vector [tapsLen]
  4686. // tapsLen The filter taps number (even)
  4687. // pSrc Pointer to the input vector [len+tapsLen-1]
  4688. // pDstLow Pointer to the output vector [len/2]
  4689. // pDstHigh Pointer to the output vector [len/2]
  4690. // len The input samples number (even)
  4691. // scaleFactor Refer to "Integer Scaling" in Chapter 2.
  4692. // Return Value
  4693. // ippStsNoErr Indicates no error.
  4694. // ippStsNullPtrErr Indicates an error when the pSrc or pTabs or pDstLow or pDstHigh pointer is null.
  4695. // ippStsSizeErr Indicates an error when len or tapsLen is less than or equal to 0
  4696. */
  4697. IPPAPI(IppStatus, ippsLowHighFilter_Aurora_32f,(const Ipp32f* pSrc,
  4698. Ipp32f* pDstLow, Ipp32f* pDstHigh, Ipp32s len, const Ipp32f* pTabs, Ipp32s tapsLen))
  4699. IPPAPI(IppStatus, ippsLowHighFilter_Aurora_16s_Sfs,(const Ipp16s* pSrc,
  4700. Ipp16s* pDstLow, Ipp16s* pDstHigh, Ipp32s len, const Ipp16s* pTabs, Ipp32s tapsLen, int scaleFactor))
  4701. /* /////////////////////////////////////////////////////////////////////////////
  4702. // Name: ippsNoiseSpectrumUpdate_Aurora
  4703. // Purpose: Updates noise spectrum
  4704. // Arguments:
  4705. // pSrc Pointer to the input vector of mean [len]
  4706. // pSrcNoise Pointer to the input vector of noiseless signal spectrum [len]
  4707. // pDst Pointer to the output vector [len]
  4708. // len The length of input and output vectors
  4709. // ScaleFactor Refer to "Integer Scaling" in Chapter 2.
  4710. //
  4711. // Return Value
  4712. // ippStsNoErr Indicates no error.
  4713. // ippStsNullPtrErr Indicates an error when the pSrc, pSrcNoise, pDst pointer is null.
  4714. // ippStsSizeErr Indicates an error when len is less than or equal to 0
  4715. */
  4716. IPPAPI(IppStatus, ippsNoiseSpectrumUpdate_Aurora_32f,(const Ipp32f* pSrc, const Ipp32f* pSrcNoise,
  4717. Ipp32f *pDst, int len))
  4718. IPPAPI(IppStatus, ippsNoiseSpectrumUpdate_Aurora_16s_Sfs,(const Ipp16s* pSrc, const Ipp16s* pSrcNoise,
  4719. Ipp16s *pDst, int len, int ScaleFactor))
  4720. IPPAPI(IppStatus, ippsNoiseSpectrumUpdate_Aurora_32s_Sfs,(const Ipp32s* pSrc, const Ipp32s* pSrcNoise,
  4721. Ipp32s *pDst, int len, int ScaleFactor))
  4722. /* /////////////////////////////////////////////////////////////////////////////
  4723. // Name: ippsWienerFilterDesign_Aurora
  4724. // Purpose: Calculates improved transfer function of adaptive Wiener filter
  4725. // Arguments:
  4726. // pSrc Pointer to the input vector of square roots of power spectral density mean [len]
  4727. // pNoise Pointer to the input vector of square roots of noise spectrum estimate [len]
  4728. // pDen Pointer to the input vector of square roots of previous noiseless signal spectrum [len]
  4729. // pDst Pointer to the output vector [len]
  4730. // len The length of input and output vectors
  4731. //
  4732. // Return Value
  4733. // ippStsNoErr Indicates no error.
  4734. // ippStsNullPtrErr Indicates an error when the pSrc, pNoise, pDen, pDst pointer is null.
  4735. // ippStsSizeErr Indicates an error when len is less than or equal to 0
  4736. */
  4737. IPPAPI(IppStatus, ippsWienerFilterDesign_Aurora_32f,(const Ipp32f* pSrc, const Ipp32f* pNoise,
  4738. const Ipp32f* pDen, Ipp32f* pDst, int len))
  4739. IPPAPI(IppStatus, ippsWienerFilterDesign_Aurora_16s,(const Ipp16s* pSrc, const Ipp16s* pNoise,
  4740. const Ipp16s* pDen, Ipp16s* pDst, int len))
  4741. /* /////////////////////////////////////////////////////////////////////////////
  4742. // Name: ippsBlindEqualization_Aurora
  4743. // Purpose: Equalizes the cepstral coefficients
  4744. // Arguments:
  4745. // pRefs Pointer to the input vector of reference cepstrum [len]
  4746. // pCeps Pointer to the input and output vector of cepstrum [len]
  4747. // pBias Pointer to the input and output vector of bias [len]
  4748. // len The length of input and output vectors
  4749. // val The log energy value
  4750. // Return Value
  4751. // ippStsNoErr Indicates no error.
  4752. // ippStsNullPtrErr Indicates an error when the pRefs, pCeps, pBias pointer is null.
  4753. // ippStsSizeErr Indicates an error when len is less than or equal to 0
  4754. */
  4755. IPPAPI(IppStatus, ippsBlindEqualization_Aurora_32f,(const Ipp32f* pRefs, Ipp32f* pCeps, Ipp32f* pBias,
  4756. int len, Ipp32f val))
  4757. IPPAPI(IppStatus, ippsBlindEqualization_Aurora_16s,(const Ipp16s* pRefsQ6, Ipp16s* pCeps,
  4758. Ipp16s* pBias, int len, Ipp32s valQ6))
  4759. /* /////////////////////////////////////////////////////////////////////////////
  4760. // Name: ippsHighBandCoding_Aurora
  4761. // Purpose: Codes and decodes high frequency band energy values
  4762. // Arguments:
  4763. // pSrcHFB Pointer to the input high frequency band energy vector [3].
  4764. // pInSWP Pointer to the input signal smoothed power spectrum vector [65].
  4765. // pDSWP Pointer to the denoised signal power spectrum vector [129].
  4766. // pDstHFB Pointer to the output coded high frequency band log energy vector [3].
  4767. // scaleFactor Refer to "Integer Scaling" in Chapter 2.
  4768. // Return Value
  4769. // ippStsNoErr Indicates no error.
  4770. // ippStsNullPtrErr Indicates an error when the pRefs, pCeps, pBias pointer is null.
  4771. // ippBadArg Indicates an error when a non-positive or NaN argument of logarithm is detected
  4772. */
  4773. IPPAPI(IppStatus, ippsHighBandCoding_Aurora_32f,(const Ipp32f* pSrcHFB,
  4774. const Ipp32f* pInSWP, const Ipp32f* pDSWP, Ipp32f* pDstHFB))
  4775. IPPAPI(IppStatus, ippsHighBandCoding_Aurora_32s_Sfs,(const Ipp32s* pSrcHFB,
  4776. const Ipp32s* pInSWP, const Ipp32s* pDSWP, Ipp32s* pDstHFB, int scaleFactor))
  4777. /* /////////////////////////////////////////////////////////////////////////////
  4778. // Name: ippsMatVecMul
  4779. // Purpose: Multiplies matrix by vector
  4780. // Arguments:
  4781. // pSrc Pointer to the input vector [width].
  4782. // pMatr Pointer to the input matrix [height*step].
  4783. // mMatr Pointer to the input matrix [height][width].
  4784. // step Row step in pMatr vector (in pMatr elements).
  4785. // width Length of the input vector and input matrix rows
  4786. // height Number of rows in the input matrix and the length of the result vector.
  4787. //
  4788. // Return Value
  4789. // ippStsNoErr Indicates no error.
  4790. // ippStsNullPtrErr Indicates an error when the pSrc, pMatr, mMatr pointer is null.
  4791. // ippStsSizeErr Indicates an error when width or height is less than or equal to 0
  4792. */
  4793. IPPAPI(IppStatus, ippsMatVecMul_16s_D2Sfs,(const Ipp16s* pMatr, int step, const Ipp16s* pSrc, int width,
  4794. Ipp16s* pDst, int height, int scaleFactor))
  4795. IPPAPI(IppStatus, ippsMatVecMul_16s32s_D2Sfs,(const Ipp16s* pMatr, int step, const Ipp16s* pSrc, int width,
  4796. Ipp32s* pDst, int height, int scaleFactor))
  4797. IPPAPI(IppStatus, ippsMatVecMul_32s_D2Sfs,(const Ipp32s* pMatr, int step, const Ipp32s* pSrc, int width,
  4798. Ipp32s* pDst, int height, int scaleFactor))
  4799. IPPAPI(IppStatus, ippsMatVecMul_32f_D2,(const Ipp32f* pMatr, int step, const Ipp32f* pSrc, int width,
  4800. Ipp32f* pDst, int height))
  4801. IPPAPI(IppStatus, ippsMatVecMul_16s_D2LSfs,(const Ipp16s** mMatr, const Ipp16s* pSrc, int width,
  4802. Ipp16s* pDst, int height, int scaleFactor))
  4803. IPPAPI(IppStatus, ippsMatVecMul_16s32s_D2LSfs,(const Ipp16s** mMatr, const Ipp16s* pSrc, int width,
  4804. Ipp32s* pDst, int height, int scaleFactor))
  4805. IPPAPI(IppStatus, ippsMatVecMul_32s_D2LSfs,(const Ipp32s** mMatr, const Ipp32s* pSrc, int width,
  4806. Ipp32s* pDst, int height, int scaleFactor))
  4807. IPPAPI(IppStatus, ippsMatVecMul_32f_D2L,(const Ipp32f** mMatr, const Ipp32f* pSrc, int width,
  4808. Ipp32f* pDst, int height))
  4809. /* /////////////////////////////////////////////////////////////////////////////
  4810. // Name: ippsVecMatMul
  4811. // Purpose: Multiplies vector by matrix
  4812. // Arguments:
  4813. // pSrc Pointer to the input vector [height].
  4814. // pMatr Pointer to the input matrix [height*step].
  4815. // mMatr Pointer to the input matrix [height][width].
  4816. // step Row step in pMatr vector (in pMatr elements).
  4817. // width Length of the input vector and input matrix rows
  4818. // height Number of rows in the input matrix and the length of the result vector.
  4819. // Return Value
  4820. // ippStsNoErr Indicates no error.
  4821. // ippStsNullPtrErr Indicates an error when the pSrc, pMatr, mMatr pointer is null.
  4822. // ippStsSizeErr Indicates an error when width or height is less than or equal to 0
  4823. */
  4824. IPPAPI(IppStatus, ippsVecMatMul_16s_D2Sfs,(const Ipp16s* pSrc, const Ipp16s* pMatr, int step, int height,
  4825. Ipp16s* pDst, int width, int scaleFactor))
  4826. IPPAPI(IppStatus, ippsVecMatMul_16s32s_D2Sfs,(const Ipp16s* pSrc, const Ipp16s* pMatr, int step, int height,
  4827. Ipp32s* pDst, int width, int scaleFactor))
  4828. IPPAPI(IppStatus, ippsVecMatMul_32s_D2Sfs,(const Ipp32s* pSrc, const Ipp32s* pMatr, int step, int height,
  4829. Ipp32s* pDst, int width, int scaleFactor))
  4830. IPPAPI(IppStatus, ippsVecMatMul_32f_D2,(const Ipp32f* pSrc, const Ipp32f* pMatr, int step, int height,
  4831. Ipp32f* pDst, int width))
  4832. IPPAPI(IppStatus, ippsVecMatMul_16s_D2LSfs,(const Ipp16s* pSrc, const Ipp16s** mMatr, int height,
  4833. Ipp16s* pDst, int width, int scaleFactor))
  4834. IPPAPI(IppStatus, ippsVecMatMul_16s32s_D2LSfs,(const Ipp16s* pSrc, const Ipp16s** mMatr, int height,
  4835. Ipp32s* pDst, int width, int scaleFactor))
  4836. IPPAPI(IppStatus, ippsVecMatMul_32s_D2LSfs,(const Ipp32s* pSrc, const Ipp32s** mMatr, int height,
  4837. Ipp32s* pDst, int width, int scaleFactor))
  4838. IPPAPI(IppStatus, ippsVecMatMul_32f_D2L,(const Ipp32f* pSrc, const Ipp32f** mMatr, int height,
  4839. Ipp32f* pDst, int width))
  4840. /* /////////////////////////////////////////////////////////////////////////////
  4841. // Name: ippsVADGetBufSize_Aurora
  4842. // Purpose: Queries the memory size for VAD decision
  4843. // Arguments:
  4844. // pSize Pointer to the output value of the memory size needed for VAD decision
  4845. //
  4846. // Return Value
  4847. // ippStsNoErr Indicates no error.
  4848. // ippStsNullPtrErr Indicates an error when the pSize pointer is null.
  4849. */
  4850. IPPAPI(IppStatus, ippsVADGetBufSize_Aurora_32f,(Ipp32s* pSize))
  4851. IPPAPI(IppStatus, ippsVADGetBufSize_Aurora_16s,(Ipp32s* pSize))
  4852. /* /////////////////////////////////////////////////////////////////////////////
  4853. // Name: ippsVADInit_Aurora
  4854. // Purpose: Initializes VAD decision process
  4855. // Arguments:
  4856. // pVADmem Pointer to the VAD decision memory
  4857. // Return Value
  4858. // ippStsNoErr Indicates no error.
  4859. // ippStsNullPtrErr Indicates an error when the pVADmem pointer is null.
  4860. */
  4861. IPPAPI(IppStatus, ippsVADInit_Aurora_32f,(Ipp8u* pVADmem))
  4862. IPPAPI(IppStatus, ippsVADInit_Aurora_16s,(Ipp8u* pVADmem))
  4863. /* /////////////////////////////////////////////////////////////////////////////
  4864. // Name: ippsVADDecision_Aurora
  4865. // Purpose: Takes VAD decision for the input data
  4866. // Arguments:
  4867. // pCoeff Pointer to the input vector of Mel-warped Wiener filter coefficients [25].
  4868. // pTrans Pointer to the input vector of Wiener filter transfer function [64].
  4869. // nbSpeechFrame Speech frame hangover counter
  4870. // res VAD decision (1 for if voice detected, 0 otherwise).
  4871. // pVADmem Pointer to the VAD decision memory
  4872. // Return Value
  4873. // ippStsNoErr Indicates no error.
  4874. // ippStsNullPtrErr Indicates an error when the pVADmem pointer is null.
  4875. */
  4876. IPPAPI(IppStatus, ippsVADDecision_Aurora_32f,(const Ipp32f* pCoeff, const Ipp32f* pTrans,
  4877. int nbSpeechFrame, IppVADDecision_Aurora *pRes, Ipp8u* pVADmem))
  4878. IPPAPI(IppStatus, ippsVADDecision_Aurora_16s,(const Ipp16s* pCoeff, const Ipp16s* pTrans,
  4879. int nbSpeechFrame, IppVADDecision_Aurora *pRes, Ipp8u* pVADmem))
  4880. /* /////////////////////////////////////////////////////////////////////////////
  4881. // Name: ippsVADFlush_Aurora
  4882. // Purpose: Takes VAD decision for the input data
  4883. // Arguments:
  4884. // pRes VAD decision (1 for if voice detected, 0 otherwise).
  4885. // pVADmem Pointer to the VAD decision memory
  4886. // Return Value
  4887. // ippStsNoErr Indicates no error.
  4888. // ippStsNullPtrErr Indicates an error when the pVADmem, pRes pointer is null.
  4889. */
  4890. IPPAPI(IppStatus, ippsVADFlush_Aurora_32f,(IppVADDecision_Aurora *pRes, Ipp8u* pVADmem))
  4891. IPPAPI(IppStatus, ippsVADFlush_Aurora_16s,(IppVADDecision_Aurora *pRes, Ipp8u* pVADmem))
  4892. /* /////////////////////////////////////////////////////////////////////////////
  4893. // Name: ippsResamplePolyphaseFree
  4894. // Purpose: Free structure for data resampling
  4895. // Arguments:
  4896. // pSpec The pointer to the resampling state structure
  4897. //
  4898. // Return Value
  4899. // ippStsNoErr Indicates no error.
  4900. // ippStsNullPtrErr Indicates an error when the pSpec pointer is null.
  4901. */
  4902. IPPAPI(IppStatus, ippsResamplePolyphaseFree_16s,(IppsResamplingPolyphase_16s* pSpec))
  4903. IPPAPI(IppStatus, ippsResamplePolyphaseFree_32f,(IppsResamplingPolyphase_32f* pSpec))
  4904. IPPAPI(IppStatus, ippsResamplePolyphaseFixedFree_16s,(IppsResamplingPolyphaseFixed_16s* pSpec))
  4905. IPPAPI(IppStatus, ippsResamplePolyphaseFixedFree_32f,(IppsResamplingPolyphaseFixed_32f* pSpec))
  4906. /* /////////////////////////////////////////////////////////////////////////////
  4907. // Name: ippsResamplePolyphaseInitAlloc
  4908. // Purpose: Initialize structure for data resampling
  4909. // Arguments:
  4910. // pSpec The pointer to the resampling state structure
  4911. // window The size of the ideal lowpass filter window.
  4912. // nStep The discretization step for filter coefficients
  4913. // rollf The roll-off frequency of the filter.
  4914. // alpha The parameter of the Kaiser window.
  4915. // width Length of the input vector and input matrix rows
  4916. // inRate The input rate for resampling with fixed factor.
  4917. // outRate The output rate for resampling with fixed factor.
  4918. // len The filter length for resampling with fixed factor.
  4919. // pSpec The pointer to the resampling state structure to be created.
  4920. // hint Suggests using specific code. The values for the hint argument are described in "Flag and Hint Arguments"
  4921. //
  4922. //
  4923. // Return Value
  4924. // ippStsNoErr Indicates no error.
  4925. // ippStsNullPtrErr Indicates an error when pSpec is NULL.
  4926. // ippStsSizeErr Indicates an error when inRate, outRate, nStep or len is less than or equal to 0.
  4927. // ippStsBadArgErr Indicates an error when rollf is less than or equal to 0 or is greater than 1 or if alpha is less than 1 or if window is less than 2/nStep.
  4928. // ippStsMemAllocErr Indicates a memory allocation error.
  4929. */
  4930. IPPAPI(IppStatus, ippsResamplePolyphaseInitAlloc_16s,(IppsResamplingPolyphase_16s** pState, Ipp32f window,
  4931. int nStep, Ipp32f rollf, Ipp32f alpha,
  4932. IppHintAlgorithm hint))
  4933. IPPAPI(IppStatus, ippsResamplePolyphaseInitAlloc_32f,(IppsResamplingPolyphase_32f** pState, Ipp32f window,
  4934. int nStep, Ipp32f rollf, Ipp32f alpha,
  4935. IppHintAlgorithm hint))
  4936. IPPAPI(IppStatus, ippsResamplePolyphaseFixedInitAlloc_16s,(IppsResamplingPolyphaseFixed_16s** pState, int inRate,
  4937. int outRate, int len, Ipp32f rollf, Ipp32f alpha,
  4938. IppHintAlgorithm hint))
  4939. IPPAPI(IppStatus, ippsResamplePolyphaseFixedInitAlloc_32f,(IppsResamplingPolyphaseFixed_32f** pState, int inRate,
  4940. int outRate, int len, Ipp32f rollf, Ipp32f alpha,
  4941. IppHintAlgorithm hint))
  4942. /* /////////////////////////////////////////////////////////////////////////////
  4943. // Name: ippsResamplePolyphase
  4944. // Purpose: Resample input data
  4945. // Arguments:
  4946. // pSpec The pointer to the resampling state structure.
  4947. // pSrc The pointer to the input vector.
  4948. // pDst The pointer to the output vector.
  4949. // len The number of input vector elements to resample.
  4950. // norm The norming factor for output samples.
  4951. // factor The resampling factor.
  4952. // pTime The pointer to the start time of resampling (in input vector elements).
  4953. // pOutlen The number of calculated output vector elements
  4954. // Return Value
  4955. // ippStsNoErr Indicates no error.
  4956. // ippStsNullPtrErr Indicates an error when pSpec, pSrc, pDst, pTime or pOutlen is NULL.
  4957. // ippStsSizeErr Indicates an error when len is less than or equal to 0.
  4958. // ippStsBadArgErr Indicates an error when factor is less than or equal to.
  4959. */
  4960. IPPAPI(IppStatus, ippsResamplePolyphase_16s,(const IppsResamplingPolyphase_16s *pState, const Ipp16s *pSrc, int len,
  4961. Ipp16s *pDst, Ipp64f factor, Ipp32f norm, Ipp64f *pTime,
  4962. int *pOutlen))
  4963. IPPAPI(IppStatus, ippsResamplePolyphase_32f,(const IppsResamplingPolyphase_32f *pState, const Ipp32f *pSrc, int len,
  4964. Ipp32f *pDst, Ipp64f factor, Ipp32f norm, Ipp64f *pTime,
  4965. int *pOutlen))
  4966. IPPAPI(IppStatus, ippsResamplePolyphaseFixed_16s,(const IppsResamplingPolyphaseFixed_16s *pState,
  4967. const Ipp16s *pSrc, int len, Ipp16s *pDst,
  4968. Ipp32f norm, Ipp64f *pTime, int *pOutlen))
  4969. IPPAPI(IppStatus, ippsResamplePolyphaseFixed_32f,(const IppsResamplingPolyphaseFixed_32f *pState,
  4970. const Ipp32f *pSrc, int len, Ipp32f *pDst,
  4971. Ipp32f norm, Ipp64f *pTime, int *pOutlen))
  4972. /* /////////////////////////////////////////////////////////////////////////////
  4973. // Name: ippsResamplePolyphaseFixedGetSize
  4974. // Purpose: Determines the size required for the ResamplePolyphaseFixed_*
  4975. // Arguments:
  4976. // inRate The input rate for resampling with fixed factor.
  4977. // outRate The output rate for resampling with fixed factor.
  4978. // len The filter length for resampling with fixed factor.
  4979. // pSize Required size in bytes
  4980. // pLen Filter len
  4981. // pHeight Number of filter
  4982. // hint Suggests using specific code. The values for the hint argument are described in "Flag and Hint Arguments"
  4983. //
  4984. // Return Value
  4985. // ippStsNoErr Indicates no error.
  4986. // ippStsNullPtrErr Indicates an error when pSize, pLen or pHeight are NULL.
  4987. // ippStsSizeErr Indicates an error when inRate, outRate or len is less than or equal to 0.
  4988. */
  4989. IPPAPI(IppStatus, ippsResamplePolyphaseFixedGetSize_16s,(int inRate, int outRate, int
  4990. len, int* pSize, int* pLen, int* pHeight, IppHintAlgorithm hint))
  4991. IPPAPI(IppStatus, ippsResamplePolyphaseFixedGetSize_32f,(int inRate, int outRate, int
  4992. len, int* pSize, int* pLen, int* pHeight, IppHintAlgorithm hint))
  4993. /* /////////////////////////////////////////////////////////////////////////////
  4994. // Name: ippsResamplePolyphaseFixedInit
  4995. // Purpose: Initializes ResamplePolyphaseFixed_* structures
  4996. // Arguments:
  4997. // pSpec The pointer to the resampling state structure to be created.
  4998. // inRate The input rate for resampling with fixed factor.
  4999. // outRate The output rate for resampling with fixed factor.
  5000. // len The filter length for resampling with fixed factor.
  5001. // hint Suggests using specific code. The values for the hint argument are described in "Flag and Hint Arguments"
  5002. // Return Value
  5003. // ippStsNoErr Indicates no error.
  5004. // ippStsNullPtrErr Indicates an error when pSpec is NULL.
  5005. // ippStsSizeErr Indicates an error when inRate, outRate or len is less than or equal to 0.
  5006. //
  5007. */
  5008. IPPAPI(IppStatus, ippsResamplePolyphaseFixedInit_16s,(IppsResamplingPolyphaseFixed_16s* pSpec,
  5009. int inRate, int outRate, int len, IppHintAlgorithm hint))
  5010. IPPAPI(IppStatus, ippsResamplePolyphaseFixedInit_32f,(IppsResamplingPolyphaseFixed_32f* pSpec,
  5011. int inRate, int outRate, int len, IppHintAlgorithm hint))
  5012. /* /////////////////////////////////////////////////////////////////////////////
  5013. // Name: ippsResamplePolyphaseSetFixedFilter
  5014. // Purpose: Set filter coefficient
  5015. // Arguments:
  5016. // pSpec The pointer to the resampling state structure to be created.
  5017. // pSrc Input vector of filter coefficients [height][step]
  5018. // step Lenght of filter
  5019. // height Number of filter
  5020. // Return Value
  5021. // ippStsNoErr Indicates no error.
  5022. // ippStsNullPtrErr Indicates an error when pSpec or pSrc are NULL.
  5023. // ippStsSizeErr Indicates an error when step or height is less than or equal to 0.
  5024. */
  5025. IPPAPI(IppStatus, ippsResamplePolyphaseSetFixedFilter_16s,(IppsResamplingPolyphaseFixed_16s* pSpec,
  5026. const Ipp16s* pSrc, int step, int height))
  5027. IPPAPI(IppStatus, ippsResamplePolyphaseSetFixedFilter_32f,(IppsResamplingPolyphaseFixed_32f* pSpec,
  5028. const Ipp32f* pSrc, int step, int height))
  5029. /* /////////////////////////////////////////////////////////////////////////////
  5030. // Name: ippsResamplePolyphaseGetFixedFilter
  5031. // Purpose: Get filter coefficient
  5032. // Arguments:
  5033. // pSpec The pointer to the resampling state structure to be created.
  5034. // pDst Input vector of filter coefficients [height][step]
  5035. // step Lenght of filter
  5036. // height Number of filter
  5037. // Return Value
  5038. // ippStsNoErr Indicates no error.
  5039. // ippStsNullPtrErr Indicates an error when pSpec or pSrc are NULL.
  5040. // ippStsSizeErr Indicates an error when step or height is less than or equal to 0.
  5041. */
  5042. IPPAPI(IppStatus, ippsResamplePolyphaseGetFixedFilter_16s,(IppsResamplingPolyphaseFixed_16s* pSpec,
  5043. Ipp16s* pDst, int step, int height))
  5044. IPPAPI(IppStatus, ippsResamplePolyphaseGetFixedFilter_32f,(IppsResamplingPolyphaseFixed_32f* pSpec,
  5045. Ipp32f* pDst, int step, int height))
  5046. /* /////////////////////////////////////////////////////////////////////////////
  5047. // Definitions for Audio Toolkit functions
  5048. ///////////////////////////////////////////////////////////////////////////// */
  5049. #if !defined( _OWN_BLDPCS )
  5050. struct MCRAState;
  5051. typedef struct MCRAState IppMCRAState;
  5052. struct MCRAState32f;
  5053. typedef struct MCRAState32f IppMCRAState32f;
  5054. #endif /* _OWN_BLDPCS */
  5055. /* /////////////////////////////////////////////////////////////////////////////
  5056. // Definitions of Audio Toolkit functions
  5057. ///////////////////////////////////////////////////////////////////////////// */
  5058. /* /////////////////////////////////////////////////////////////////////////////
  5059. // Name: ippsFilterUpdateEMNS
  5060. // Purpose: Calculates the Ephraim-Malah noise suppression filter coefficients
  5061. //
  5062. // H(k) = (0.5 * sqrt(pi * W(k) * Rp(k)) * M(W(k)*Rp(k))) / Rp(k)
  5063. // where,
  5064. // k : frequency bin index
  5065. // W : Wiener filter coefficients
  5066. // Rp : posterior SNR
  5067. // M(T) : exp(-T/2) * [(1+T)*I0(T/2) + T*I1(T/2)]
  5068. // where,
  5069. // I0, I1 : are modified Bessel functions of order 0 and 1 respectively
  5070. // In here, for better performance in fix-point implement, Original Ephraim-Malah
  5071. // filter weights formula have been reformed as fellow:
  5072. // H(k) = W(k) * M'(W(k)*Rp(k)))
  5073. // M'(T) = 0.5 * sqrt(pi/T) * exp(-T/2) * [(1+T)*I0(T/2) + T*I1(T/2)]
  5074. // By the new Ephraim-Malah filter weights formula, the division operation has been
  5075. // removed.
  5076. // M'(T) have been fix-point realized by (T is thetaQ22 in code):
  5077. // 1) Use table look-up for small value (T< 2^(-15)) to achieve high precision
  5078. // 2) Set exponential increasing band ( From 2^i to 2^(i+1) ) to keep near same
  5079. // precision in each band. Total 24 bands used in code.
  5080. // 3) Use dynamic Q value for parameter P1 and P2 to keep high precision. P1, P2
  5081. // and P0 are used in the formula of two-order polynomial approximations:
  5082. // f(x) = P0 + P1 * x + P2 * x^2
  5083. // The value of P0, P1 & P2 have been recorded in table P0_2_32SQ22, P1_2_32SQ5i
  5084. // and P2_2_32SQi4. The Q value of P1 is (i+5), The Q value of P2 is (i-4),
  5085. // i is the index of band (i from 0 to 23). The representation of P0 is fixed
  5086. // at Q22 for all segments
  5087. // Arguments:
  5088. // pSrcWienerCoefsQ31 - pointer to a real-valued vector containing the Q31 format
  5089. // Wiener filter coefficients.
  5090. // pSrcPostSNR - pointer to a real-valued vector containing an estimate of
  5091. // the a posteriori signal to noise ratio.
  5092. // len - number of elements contained in input and output vectors.
  5093. // pDstFilterCoefsQ31 - pointer to a real-valued vector containing the Q31 format
  5094. // filter coefficients.
  5095. //
  5096. // Returns: ippStsNoErr - No Error.
  5097. // ippStsNullPtrErr - pSrcWienerCoefsQ31, pSrcPostSNRQ15 or pDstFilterCoefsQ31 is null.
  5098. // ippStsLengthErr - len is out of range.
  5099. //
  5100. // Notes:
  5101. */
  5102. IPPAPI(IppStatus, ippsFilterUpdateEMNS_32s,(const Ipp32s *pSrcWienerCoefsQ31,
  5103. const Ipp32s *pSrcPostSNRQ15, Ipp32s *pDstFilterCoefsQ31, int len))
  5104. IPPAPI(IppStatus, ippsFilterUpdateEMNS_32f,(const Ipp32f *pSrcWienerCoefs,
  5105. const Ipp32f *pSrcPostSNR, Ipp32f *pDstFilterCoefs, int len))
  5106. /* /////////////////////////////////////////////////////////////////////////////
  5107. // Name: ippsFilterUpdateWiener
  5108. // Purpose: Calculates Wiener filter coefficients.
  5109. // W(k) = 1 / (1 + 1/R(k))
  5110. //
  5111. // with a piecewise uniform quantization table. The table is
  5112. // designed such that finer quantization steps are taken for
  5113. // smaller values where the function is more sensitive and large
  5114. // steps are taken for large values where the function is fairly
  5115. // flat. The table is divided into segments defined by
  5116. //
  5117. // 0 <= r < 2^WienerSegmentBitOffset[1]
  5118. // 2^WienerSegmentBitOffset[1] <= r < 2^WienerSegmentBitOffset[2]
  5119. // 2^WienerSegmentBitOffset[2] <= r < 2^WienerSegmentBitOffset[3]
  5120. // 2^WienerSegmentBitOffset[3] <= r
  5121. //
  5122. // where r represents an entry of the input vector. The number
  5123. // of table entries in segment i of the table is
  5124. //
  5125. // 2^(WienerSegmentBitOffset[i+1] - WienerSegmentBitOffset[i]).
  5126. //
  5127. // Therefore, if an input pSrcPriorSNRQ15[k] falls into segment i
  5128. // of the table then the index into the table segment is simply
  5129. //
  5130. // pSrcPriorSNRQ15[k] / 2^WienerSegmentBitOffset[i]
  5131. //
  5132. // A segment offset (e.g., TABLESEG0) is provided for each segment
  5133. // of the table. It may be added to the above result to find the
  5134. // offset from the beginning of the table. Within a segment, the
  5135. // table entries were created by uniform quantization. Since the
  5136. // function is flat for large values, it it represented by a
  5137. // constant in the final segment.
  5138. // Input Arguments: pSrcPriorSNRQ15 - pointer to the a priori SNR vector
  5139. // in Q15 (x/32768) format.
  5140. // len - number of elements contained in input vector.
  5141. //
  5142. // Output Arguments: pDstFilterCoefsQ31 - pointer to the output vector
  5143. // in Q31 format.
  5144. //
  5145. // Returns:
  5146. // IppStsNoErr - No Error
  5147. // IppStsBadArgErr - Bad Arguments
  5148. //
  5149. // Notes: none
  5150. //
  5151. */
  5152. IPPAPI( IppStatus, ippsFilterUpdateWiener_32s,(const Ipp32s *pSrcPriorSNRQ15,
  5153. Ipp32s *pDstFilterCoefsQ31, int len))
  5154. IPPAPI( IppStatus, ippsFilterUpdateWiener_32f,(const Ipp32f *pSrcPriorSNR,
  5155. Ipp32f *pDstFilterCoefs, int len) )
  5156. /* /////////////////////////////////////////////////////////////////////////////
  5157. // Name: ippsGetSizeMCRA
  5158. // Purpose: Returns the size of memory for noise PSD estimator
  5159. //
  5160. // Arguments:
  5161. // nFFTSize - number of elements contained in the input FFT.
  5162. // pDstSize - pointer to the state structure.
  5163. //
  5164. // Returns:
  5165. // IppStsNoErr - No Error
  5166. // IppStsBadArgErr - Bad Arguments
  5167. //
  5168. // Notes: none
  5169. //
  5170. */
  5171. IPPAPI( IppStatus, ippsGetSizeMCRA_32s,(int nFFTSize, int *pDstSize) )
  5172. IPPAPI( IppStatus, ippsGetSizeMCRA_32f,(int nFFTSize, int *pDstSize) )
  5173. /* /////////////////////////////////////////////////////////////////////////////
  5174. // Name: ippsInitMCRA
  5175. // Purpose: Initializes the noise PSD estimator
  5176. // See page 14 of "Noise Estimation by Minima
  5177. // Controlled Recursive Averaging for Robust Speech Enhancement"
  5178. // by I. Cohen and B. Berdugo, IEEE Signal Proc. Letters, Vol. 9,
  5179. // No. 1, Jan. 2002, pp. 12-15. Since the authors only established
  5180. // parameters for a sample rate Fs of 16000 Hz and a block update of
  5181. // 8 msec (M == 64 samples), it was necessary to derive equations
  5182. // to support arbitrary sample rate and block update. These
  5183. // equations are given in the comments below.
  5184. // Arguments:
  5185. // nSamplesPerSec - input sample rate.
  5186. // nFFTSize - number of elements contained in the input FFT.
  5187. // pDst - pointer to the state structure.
  5188. // Returns:
  5189. // IppStsNoErr - No Error
  5190. // IppStsBadArgErr - Bad Arguments
  5191. //
  5192. // Notes: This function must be kept in synch with the definition of the
  5193. // IppMCRAState. Memory pointers are assigned according to the order
  5194. // in the structure.
  5195. //
  5196. */
  5197. IPPAPI( IppStatus, ippsInitMCRA_32s,(int nSamplesPerSec, int nFFTSize,
  5198. IppMCRAState *pDst) )
  5199. IPPAPI( IppStatus, ippsInitMCRA_32f,(int nSamplesPerSec, int nFFTSize,
  5200. IppMCRAState32f *pDst) )
  5201. /* /////////////////////////////////////////////////////////////////////////////
  5202. // Name: ippsAltInitMCRA
  5203. // Purpose: Initializes alternative noise PSD estimator
  5204. //
  5205. // Arguments:
  5206. // nSamplesPerSec - input sample rate.
  5207. // nFFTSize - number of elements contained in the input FFT.
  5208. // nUpdateSamples - number of new samples per frame
  5209. // pDst - pointer to the state structure.
  5210. //
  5211. // Returns:
  5212. // IppStsNoErr - No Error
  5213. // IppStsBadArgErr - Bad Arguments
  5214. //
  5215. // Notes: This function is a candidate to replace ippsInitMCRA_32s. It provides
  5216. // an added degree of flexibility so that the state can be initialized
  5217. // properly when zero padding is used to support frame sizes that are
  5218. // less than nFFTSize/2.
  5219. // This function must be kept in synch with the definition of the
  5220. // IppMCRAState. Memory pointers are assigned according to the order
  5221. // in the structure.
  5222. //
  5223. */
  5224. IPPAPI( IppStatus, ippsAltInitMCRA_32s,(int nSamplesPerSec,
  5225. int nFFTSize,
  5226. int nUpdateSamples,
  5227. IppMCRAState *pDst) )
  5228. IPPAPI( IppStatus, ippsAltInitMCRA_32f,(int nSamplesPerSec,
  5229. int nFFTSize,
  5230. int nUpdateSamples,
  5231. IppMCRAState32f *pDst) )
  5232. /* /////////////////////////////////////////////////////////////////////////////
  5233. // Name: ippsUpdateNoisePSDMCRA
  5234. // Purpose: Estimates the noise power spectral density
  5235. // using the "Minima Controlled Recursive Averaging" method. See
  5236. // "Noise Estimation by Minima Controlled Recursive Averaging for
  5237. // Robust Speech Enhancement" by I. Cohen and B. Berdugo, IEEE
  5238. // Signal Proc. Letters, Vol. 9, No. 1, Jan. 2002, pp. 12-15. To
  5239. // relate this source code to the paper, the following table may
  5240. // be helpful:
  5241. //
  5242. // Paper Eqn Source Code
  5243. // ===== === ===========
  5244. // |Y(k,l)|^2 4 pSrcNoisySpeech[k]
  5245. // lambdahat_d(k,l) 4 pSrcDstNoisePSD[k] (input)
  5246. // lambdahat_d(k,l+1) 4 pSrcDstNoisePSD[k] (output)
  5247. // alpha_d 4 pSrcDstState->alphaDQ31
  5248. // alphatilde_d(k,l) 4 alphaTildeDQ31
  5249. // S(k,l-1) 7 pSrcDstState->pS[k] (input)
  5250. // S(k,l) 7 pSrcDstState->pS[k] (output)
  5251. // alpha_s 7 pSrcDstState->alphaSQ31
  5252. // S_min(k,l-1) 8 pSrcDstState->pSmin[k] (input)
  5253. // S_min(k,l) 8 pSrcDstState->pSmin[k] (output)
  5254. // S_tmp(k,l-1) 9 pSrcDstState->pStmp[k] (input)
  5255. // S_tmp(k,l) 9 pSrcDstState->pStmp[k] (output)
  5256. // phatprime(k,l-1) 14 pSrcDstState->pPprimeQ31[k] (input)
  5257. // phatprime(k,l) 14 pSrcDstState->pPprimeQ31[k] (output)
  5258. // alpha_p 14 pSrcDstState->alphaPQ31
  5259. //
  5260. // Arguments:
  5261. // pSrcNoisySpeech - pointer to the magnitude squared of the FFT of the noisy speech.
  5262. // pSrcDstState - state structure.
  5263. // pSrcDstNoisePSD - pointer to the input noise PSD vector.
  5264. //
  5265. // pSrcDstState - updated state structure.
  5266. // pSrcDstNoisePSD - pointer to the output noise PSD vector.
  5267. //
  5268. // Returns:
  5269. // IppStsNoErr - No Error
  5270. // IppStsBadArgErr - Bad Arguments
  5271. //
  5272. // Notes: For reasonable signal levels, the pSrcNoisySpeech and pSrcDstNoisePSD
  5273. // values will need to be scaled by 2^31 during the mag-squaring
  5274. // procedure.
  5275. //
  5276. */
  5277. IPPAPI( IppStatus, ippsUpdateNoisePSDMCRA_32s_I, (const Ipp32s *pSrcNoisySpeech,
  5278. IppMCRAState *pSrcDstState, Ipp32s *pSrcDstNoisePSD))
  5279. IPPAPI( IppStatus, ippsUpdateNoisePSDMCRA_32f_I, (const Ipp32f *pSrcNoisySpeech,
  5280. IppMCRAState32f *pSrcDstState, Ipp32f *pSrcDstNoisePSD) )
  5281. /* /////////////////////////////////////////////////////////////////////////////
  5282. // Name: ippsFindPeaks
  5283. // Purpose: Identifies the peaks in the input vector,
  5284. // places a one in the output vector at the locations of the peaks
  5285. // and places a zero elsewhere. A peak is defined as a point pSrc[i]
  5286. // such that - pSrc[i-L] < pSrc[i-L+1] <...< pSrc[i] > pSrc[i+1] > ...> pSrc[i+L]
  5287. // where L is the size of the search.
  5288. // If movingAvgSize (M) is greater than 0, the input vector is smoothed
  5289. // before peaks are selected -
  5290. // pSrc[i] = (1/(2M+1)) {pSrc[i-M] + pSrc[i-M+1] + ... + pSrc[i] + pSrc[i+1]+
  5291. // ...+ pSrc[i+M] }
  5292. // Arguments:
  5293. // pSrc - pointer to the input vector
  5294. // len - number of elements contained in the input and output vectors
  5295. // searchSize - number of elements on either side to consider when peak picking
  5296. // movingAvgSize - width of the moving average window applied before peak picking
  5297. // pDstPeaks - pointer to the output vector
  5298. //
  5299. // Returns: ippStsNoErr - No Error.
  5300. // ippStsBadArgErr - Bad Arguments.
  5301. // ippStsSizeErr - Error: search window greater than the internal
  5302. // buffer that holds smoothed values
  5303. //
  5304. // Notes: Search the input vector. Calculate each number of the successive ascending elements
  5305. // and the successive descending elements. If both the number of successive ascending
  5306. // elements and the number of successive descending elements are greater than searchSize,
  5307. // then, one peak was found.
  5308. */
  5309. IPPAPI(IppStatus, ippsFindPeaks_32s8u,(const Ipp32s *pSrc, Ipp8u *pDstPeaks,
  5310. int len, int searchSize, int movingAvgSize))
  5311. IPPAPI(IppStatus, ippsFindPeaks_32f8u,(const Ipp32f *pSrc, Ipp8u *pDstPeaks,
  5312. int len, int searchSize, int movingAvgSize))
  5313. /* /////////////////////////////////////////////////////////////////////////////
  5314. // Name: ippsPeriodicityLSPE
  5315. // Purpose: Estimates the periodicity and period of the input frame.
  5316. // The core algorithm used is the least-squares periodicity estimator as
  5317. // described in Section 4.1 of the paper:
  5318. // R.Tucker,"Voice activity etection using a periodicity measure",
  5319. // IEEE Proceedings-I Vol. 139, No. 4, August 1992
  5320. //
  5321. // The approach is to compute the normalized periodicity measure (R1) for
  5322. // all values of possible pitch periods in samples (Pmin <= P0 <= Pmax). The
  5323. // maximum value of R1 obtained is the estimated periodicity of the input frame
  5324. // and the corresponding period (P0) is the pitch period in samples of the input frame.
  5325. //
  5326. // The correspondence of the notation used in the paper to that used in
  5327. // this function is as follows:
  5328. // Paper Equation Source code
  5329. // ----- -------- -----------
  5330. // s 3, 4, 5 pSrc
  5331. // Pmin 2 minPeriod
  5332. // Pmax 2 maxPeriod
  5333. // P0 3, 4, 5 p
  5334. // I0 3, 5 i0
  5335. // I1 3, 4 i1
  5336. // R1 3 periodicityQ15
  5337. // K0 4, 5 n
  5338. //
  5339. // Arguments:
  5340. // pSrc - pointer to the input vector containing non-negative entries
  5341. // (assumed input is energy values for time-domain signal.
  5342. // len - number of elements contained in the input vector
  5343. // maxPeriod - maximum pitch period (in samples) to search
  5344. // minPeriod - minimum pitch period (in samples) to search
  5345. //
  5346. // periodicityQ15 - normalized sum of the largest harmonic sampling
  5347. // period - period in sample that provided the maximum-energy harmonic
  5348. // Returns: ippStsNoErr - No Error.
  5349. // ippStsBadArgErr - Bad Arguments.
  5350. //
  5351. // Notes: none
  5352. */
  5353. IPPAPI(IppStatus, ippsPeriodicityLSPE_16s,(const Ipp16s *pSrc, int len,
  5354. Ipp16s *periodicityQ15, int *period, int maxPeriod, int minPeriod))
  5355. IPPAPI(IppStatus, ippsPeriodicityLSPE_32f,(const Ipp32f *pSrc, int len,
  5356. Ipp32f *periodicity, int *period, int maxPeriod, int minPeriod))
  5357. /* /////////////////////////////////////////////////////////////////////////////
  5358. // Name: ippsPeriodicity
  5359. // Purpose: Computes the periodicity of the input vector. In typical
  5360. // applications, the input vector is the magnitude-squared of the discrete Fourier
  5361. // transform of speech. The periodicity is defined as the periodic sampling of the
  5362. // input vector that preserves the most energy.
  5363. //
  5364. // The period is defined as P such that
  5365. // P = argmax_(p) sum_n[ x(b + np) ]/N
  5366. // where Pmin<=p<=Pmax, 0<b<p, N<=MAX_HARMONICS, 0<n<N
  5367. // N is the smaller of the number of harmonics in the input vector
  5368. // for a particular period (p) or MAX_HARMONICS
  5369. //
  5370. // Using the N,P values obtained above, the periodicity is calculated as:
  5371. // periodicity = sum_n[x(k+nP)] / sum_n2[x(n2)], 0<n<N, 0<n2<len
  5372. //
  5373. //
  5374. // Arguments:
  5375. // pSrc - pointer to the input vector containing non-negative entries
  5376. // for, e.g. magnitude spectrum values
  5377. // len - number of elements contained in the input vector
  5378. // maxPeriod - maximum period to search
  5379. // minPeriod - minimum period of search
  5380. //
  5381. // periodicityQ15 - normalized sum of the largest harmonic sampling
  5382. // period - period in sample that provided the maximum-energy harmonics
  5383. //
  5384. // Returns: ippStsNoErr - No Error.
  5385. // ippStsBadArgErr - Bad Arguments.
  5386. //
  5387. // Notes: none
  5388. */
  5389. IPPAPI(IppStatus, ippsPeriodicity_32s16s, (const Ipp32s *pSrc, int len,
  5390. Ipp16s *periodicityQ15, int *period, int maxPeriod, int minPeriod))
  5391. IPPAPI(IppStatus, ippsPeriodicity_32f, (const Ipp32f *pSrc, int len,
  5392. Ipp32f *periodicity, int *period, int maxPeriod, int minPeriod))
  5393. /* /////////////////////////////////////////////////////////////////////////////
  5394. // Name: ippsNthMaxElement_*
  5395. // Purpose: Functions ippsNthMaxElement find N-th maximal element of
  5396. // the input vector pSrc.
  5397. // Parameters:
  5398. // pSrc Pointer to the input vector [len].
  5399. // len Number of elements in the input vector pSrc.
  5400. // N Rank of element to find.
  5401. // pRes Pointer to the value of N-th maximal element.
  5402. // Return:
  5403. // ippStsNoErr Indicates no error.
  5404. // ippStsNullPtrErr Indicates an error when pSrc or pRes is NULL.
  5405. // ippStsSizeErr Indicates an error when len is less than or equal to 0 or.
  5406. // ippStsBadArgErr Indicates an error when N is less then 0 or is greater than or equal to len.
  5407. // Notes:
  5408. */
  5409. IPPAPI(IppStatus, ippsNthMaxElement_32s,(const Ipp32s* pSrc, int len, int N, Ipp32s* pRes))
  5410. IPPAPI(IppStatus, ippsNthMaxElement_32f,(const Ipp32f* pSrc, int len, int N, Ipp32f* pRes))
  5411. IPPAPI(IppStatus, ippsNthMaxElement_64f,(const Ipp64f* pSrc, int len, int N, Ipp64f* pRes))
  5412. /*======== End of declaration of functions ===================================*/
  5413. #ifdef __cplusplus
  5414. }
  5415. #endif
  5416. #if defined (_IPP_STDCALL_CDECL)
  5417. #undef _IPP_STDCALL_CDECL
  5418. #define __stdcall __cdecl
  5419. #endif
  5420. #endif /* __IPPSR_H__ */
  5421. /* ////////////////////////// End of file "ippsr.h" ///////////////////////// */