controls.xml 182 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775
  1. <section id="control">
  2. <title>User Controls</title>
  3. <para>Devices typically have a number of user-settable controls
  4. such as brightness, saturation and so on, which would be presented to
  5. the user on a graphical user interface. But, different devices
  6. will have different controls available, and furthermore, the range of
  7. possible values, and the default value will vary from device to
  8. device. The control ioctls provide the information and a mechanism to
  9. create a nice user interface for these controls that will work
  10. correctly with any device.</para>
  11. <para>All controls are accessed using an ID value. V4L2 defines
  12. several IDs for specific purposes. Drivers can also implement their
  13. own custom controls using <constant>V4L2_CID_PRIVATE_BASE</constant>
  14. and higher values. The pre-defined control IDs have the prefix
  15. <constant>V4L2_CID_</constant>, and are listed in <xref
  16. linkend="control-id" />. The ID is used when querying the attributes of
  17. a control, and when getting or setting the current value.</para>
  18. <para>Generally applications should present controls to the user
  19. without assumptions about their purpose. Each control comes with a
  20. name string the user is supposed to understand. When the purpose is
  21. non-intuitive the driver writer should provide a user manual, a user
  22. interface plug-in or a driver specific panel application. Predefined
  23. IDs were introduced to change a few controls programmatically, for
  24. example to mute a device during a channel switch.</para>
  25. <para>Drivers may enumerate different controls after switching
  26. the current video input or output, tuner or modulator, or audio input
  27. or output. Different in the sense of other bounds, another default and
  28. current value, step size or other menu items. A control with a certain
  29. <emphasis>custom</emphasis> ID can also change name and
  30. type.<footnote>
  31. <para>It will be more convenient for applications if drivers
  32. make use of the <constant>V4L2_CTRL_FLAG_DISABLED</constant> flag, but
  33. that was never required.</para>
  34. </footnote> Control values are stored globally, they do not
  35. change when switching except to stay within the reported bounds. They
  36. also do not change &eg; when the device is opened or closed, when the
  37. tuner radio frequency is changed or generally never without
  38. application request. Since V4L2 specifies no event mechanism, panel
  39. applications intended to cooperate with other panel applications (be
  40. they built into a larger application, as a TV viewer) may need to
  41. regularly poll control values to update their user
  42. interface.<footnote>
  43. <para>Applications could call an ioctl to request events.
  44. After another process called &VIDIOC-S-CTRL; or another ioctl changing
  45. shared properties the &func-select; function would indicate
  46. readability until any ioctl (querying the properties) is
  47. called.</para>
  48. </footnote></para>
  49. <para>
  50. All controls use machine endianness.
  51. </para>
  52. <table pgwide="1" frame="none" id="control-id">
  53. <title>Control IDs</title>
  54. <tgroup cols="3">
  55. &cs-def;
  56. <thead>
  57. <row>
  58. <entry>ID</entry>
  59. <entry>Type</entry>
  60. <entry>Description</entry>
  61. </row>
  62. </thead>
  63. <tbody valign="top">
  64. <row>
  65. <entry><constant>V4L2_CID_BASE</constant></entry>
  66. <entry></entry>
  67. <entry>First predefined ID, equal to
  68. <constant>V4L2_CID_BRIGHTNESS</constant>.</entry>
  69. </row>
  70. <row>
  71. <entry><constant>V4L2_CID_USER_BASE</constant></entry>
  72. <entry></entry>
  73. <entry>Synonym of <constant>V4L2_CID_BASE</constant>.</entry>
  74. </row>
  75. <row>
  76. <entry><constant>V4L2_CID_BRIGHTNESS</constant></entry>
  77. <entry>integer</entry>
  78. <entry>Picture brightness, or more precisely, the black
  79. level.</entry>
  80. </row>
  81. <row>
  82. <entry><constant>V4L2_CID_CONTRAST</constant></entry>
  83. <entry>integer</entry>
  84. <entry>Picture contrast or luma gain.</entry>
  85. </row>
  86. <row>
  87. <entry><constant>V4L2_CID_SATURATION</constant></entry>
  88. <entry>integer</entry>
  89. <entry>Picture color saturation or chroma gain.</entry>
  90. </row>
  91. <row>
  92. <entry><constant>V4L2_CID_HUE</constant></entry>
  93. <entry>integer</entry>
  94. <entry>Hue or color balance.</entry>
  95. </row>
  96. <row>
  97. <entry><constant>V4L2_CID_AUDIO_VOLUME</constant></entry>
  98. <entry>integer</entry>
  99. <entry>Overall audio volume. Note some drivers also
  100. provide an OSS or ALSA mixer interface.</entry>
  101. </row>
  102. <row>
  103. <entry><constant>V4L2_CID_AUDIO_BALANCE</constant></entry>
  104. <entry>integer</entry>
  105. <entry>Audio stereo balance. Minimum corresponds to all
  106. the way left, maximum to right.</entry>
  107. </row>
  108. <row>
  109. <entry><constant>V4L2_CID_AUDIO_BASS</constant></entry>
  110. <entry>integer</entry>
  111. <entry>Audio bass adjustment.</entry>
  112. </row>
  113. <row>
  114. <entry><constant>V4L2_CID_AUDIO_TREBLE</constant></entry>
  115. <entry>integer</entry>
  116. <entry>Audio treble adjustment.</entry>
  117. </row>
  118. <row>
  119. <entry><constant>V4L2_CID_AUDIO_MUTE</constant></entry>
  120. <entry>boolean</entry>
  121. <entry>Mute audio, &ie; set the volume to zero, however
  122. without affecting <constant>V4L2_CID_AUDIO_VOLUME</constant>. Like
  123. ALSA drivers, V4L2 drivers must mute at load time to avoid excessive
  124. noise. Actually the entire device should be reset to a low power
  125. consumption state.</entry>
  126. </row>
  127. <row>
  128. <entry><constant>V4L2_CID_AUDIO_LOUDNESS</constant></entry>
  129. <entry>boolean</entry>
  130. <entry>Loudness mode (bass boost).</entry>
  131. </row>
  132. <row>
  133. <entry><constant>V4L2_CID_BLACK_LEVEL</constant></entry>
  134. <entry>integer</entry>
  135. <entry>Another name for brightness (not a synonym of
  136. <constant>V4L2_CID_BRIGHTNESS</constant>). This control is deprecated
  137. and should not be used in new drivers and applications.</entry>
  138. </row>
  139. <row>
  140. <entry><constant>V4L2_CID_AUTO_WHITE_BALANCE</constant></entry>
  141. <entry>boolean</entry>
  142. <entry>Automatic white balance (cameras).</entry>
  143. </row>
  144. <row>
  145. <entry><constant>V4L2_CID_DO_WHITE_BALANCE</constant></entry>
  146. <entry>button</entry>
  147. <entry>This is an action control. When set (the value is
  148. ignored), the device will do a white balance and then hold the current
  149. setting. Contrast this with the boolean
  150. <constant>V4L2_CID_AUTO_WHITE_BALANCE</constant>, which, when
  151. activated, keeps adjusting the white balance.</entry>
  152. </row>
  153. <row>
  154. <entry><constant>V4L2_CID_RED_BALANCE</constant></entry>
  155. <entry>integer</entry>
  156. <entry>Red chroma balance.</entry>
  157. </row>
  158. <row>
  159. <entry><constant>V4L2_CID_BLUE_BALANCE</constant></entry>
  160. <entry>integer</entry>
  161. <entry>Blue chroma balance.</entry>
  162. </row>
  163. <row>
  164. <entry><constant>V4L2_CID_GAMMA</constant></entry>
  165. <entry>integer</entry>
  166. <entry>Gamma adjust.</entry>
  167. </row>
  168. <row>
  169. <entry><constant>V4L2_CID_WHITENESS</constant></entry>
  170. <entry>integer</entry>
  171. <entry>Whiteness for grey-scale devices. This is a synonym
  172. for <constant>V4L2_CID_GAMMA</constant>. This control is deprecated
  173. and should not be used in new drivers and applications.</entry>
  174. </row>
  175. <row>
  176. <entry><constant>V4L2_CID_EXPOSURE</constant></entry>
  177. <entry>integer</entry>
  178. <entry>Exposure (cameras). [Unit?]</entry>
  179. </row>
  180. <row>
  181. <entry><constant>V4L2_CID_AUTOGAIN</constant></entry>
  182. <entry>boolean</entry>
  183. <entry>Automatic gain/exposure control.</entry>
  184. </row>
  185. <row>
  186. <entry><constant>V4L2_CID_GAIN</constant></entry>
  187. <entry>integer</entry>
  188. <entry>Gain control.</entry>
  189. </row>
  190. <row>
  191. <entry><constant>V4L2_CID_HFLIP</constant></entry>
  192. <entry>boolean</entry>
  193. <entry>Mirror the picture horizontally.</entry>
  194. </row>
  195. <row>
  196. <entry><constant>V4L2_CID_VFLIP</constant></entry>
  197. <entry>boolean</entry>
  198. <entry>Mirror the picture vertically.</entry>
  199. </row>
  200. <row id="v4l2-power-line-frequency">
  201. <entry><constant>V4L2_CID_POWER_LINE_FREQUENCY</constant></entry>
  202. <entry>enum</entry>
  203. <entry>Enables a power line frequency filter to avoid
  204. flicker. Possible values for <constant>enum v4l2_power_line_frequency</constant> are:
  205. <constant>V4L2_CID_POWER_LINE_FREQUENCY_DISABLED</constant> (0),
  206. <constant>V4L2_CID_POWER_LINE_FREQUENCY_50HZ</constant> (1),
  207. <constant>V4L2_CID_POWER_LINE_FREQUENCY_60HZ</constant> (2) and
  208. <constant>V4L2_CID_POWER_LINE_FREQUENCY_AUTO</constant> (3).</entry>
  209. </row>
  210. <row>
  211. <entry><constant>V4L2_CID_HUE_AUTO</constant></entry>
  212. <entry>boolean</entry>
  213. <entry>Enables automatic hue control by the device. The
  214. effect of setting <constant>V4L2_CID_HUE</constant> while automatic
  215. hue control is enabled is undefined, drivers should ignore such
  216. request.</entry>
  217. </row>
  218. <row>
  219. <entry><constant>V4L2_CID_WHITE_BALANCE_TEMPERATURE</constant></entry>
  220. <entry>integer</entry>
  221. <entry>This control specifies the white balance settings
  222. as a color temperature in Kelvin. A driver should have a minimum of
  223. 2800 (incandescent) to 6500 (daylight). For more information about
  224. color temperature see <ulink
  225. url="http://en.wikipedia.org/wiki/Color_temperature">Wikipedia</ulink>.</entry>
  226. </row>
  227. <row>
  228. <entry><constant>V4L2_CID_SHARPNESS</constant></entry>
  229. <entry>integer</entry>
  230. <entry>Adjusts the sharpness filters in a camera. The
  231. minimum value disables the filters, higher values give a sharper
  232. picture.</entry>
  233. </row>
  234. <row>
  235. <entry><constant>V4L2_CID_BACKLIGHT_COMPENSATION</constant></entry>
  236. <entry>integer</entry>
  237. <entry>Adjusts the backlight compensation in a camera. The
  238. minimum value disables backlight compensation.</entry>
  239. </row>
  240. <row>
  241. <entry><constant>V4L2_CID_CHROMA_AGC</constant></entry>
  242. <entry>boolean</entry>
  243. <entry>Chroma automatic gain control.</entry>
  244. </row>
  245. <row>
  246. <entry><constant>V4L2_CID_CHROMA_GAIN</constant></entry>
  247. <entry>integer</entry>
  248. <entry>Adjusts the Chroma gain control (for use when chroma AGC
  249. is disabled).</entry>
  250. </row>
  251. <row>
  252. <entry><constant>V4L2_CID_COLOR_KILLER</constant></entry>
  253. <entry>boolean</entry>
  254. <entry>Enable the color killer (&ie; force a black &amp; white image in case of a weak video signal).</entry>
  255. </row>
  256. <row id="v4l2-colorfx">
  257. <entry><constant>V4L2_CID_COLORFX</constant></entry>
  258. <entry>enum</entry>
  259. <entry>Selects a color effect. The following values are defined:
  260. </entry>
  261. </row><row>
  262. <entry></entry>
  263. <entry></entry>
  264. <entrytbl spanname="descr" cols="2">
  265. <tbody valign="top">
  266. <row>
  267. <entry><constant>V4L2_COLORFX_NONE</constant>&nbsp;</entry>
  268. <entry>Color effect is disabled.</entry>
  269. </row>
  270. <row>
  271. <entry><constant>V4L2_COLORFX_ANTIQUE</constant>&nbsp;</entry>
  272. <entry>An aging (old photo) effect.</entry>
  273. </row>
  274. <row>
  275. <entry><constant>V4L2_COLORFX_ART_FREEZE</constant>&nbsp;</entry>
  276. <entry>Frost color effect.</entry>
  277. </row>
  278. <row>
  279. <entry><constant>V4L2_COLORFX_AQUA</constant>&nbsp;</entry>
  280. <entry>Water color, cool tone.</entry>
  281. </row>
  282. <row>
  283. <entry><constant>V4L2_COLORFX_BW</constant>&nbsp;</entry>
  284. <entry>Black and white.</entry>
  285. </row>
  286. <row>
  287. <entry><constant>V4L2_COLORFX_EMBOSS</constant>&nbsp;</entry>
  288. <entry>Emboss, the highlights and shadows replace light/dark boundaries
  289. and low contrast areas are set to a gray background.</entry>
  290. </row>
  291. <row>
  292. <entry><constant>V4L2_COLORFX_GRASS_GREEN</constant>&nbsp;</entry>
  293. <entry>Grass green.</entry>
  294. </row>
  295. <row>
  296. <entry><constant>V4L2_COLORFX_NEGATIVE</constant>&nbsp;</entry>
  297. <entry>Negative.</entry>
  298. </row>
  299. <row>
  300. <entry><constant>V4L2_COLORFX_SEPIA</constant>&nbsp;</entry>
  301. <entry>Sepia tone.</entry>
  302. </row>
  303. <row>
  304. <entry><constant>V4L2_COLORFX_SKETCH</constant>&nbsp;</entry>
  305. <entry>Sketch.</entry>
  306. </row>
  307. <row>
  308. <entry><constant>V4L2_COLORFX_SKIN_WHITEN</constant>&nbsp;</entry>
  309. <entry>Skin whiten.</entry>
  310. </row>
  311. <row>
  312. <entry><constant>V4L2_COLORFX_SKY_BLUE</constant>&nbsp;</entry>
  313. <entry>Sky blue.</entry>
  314. </row>
  315. <row>
  316. <entry><constant>V4L2_COLORFX_SOLARIZATION</constant>&nbsp;</entry>
  317. <entry>Solarization, the image is partially reversed in tone,
  318. only color values above or below a certain threshold are inverted.
  319. </entry>
  320. </row>
  321. <row>
  322. <entry><constant>V4L2_COLORFX_SILHOUETTE</constant>&nbsp;</entry>
  323. <entry>Silhouette (outline).</entry>
  324. </row>
  325. <row>
  326. <entry><constant>V4L2_COLORFX_VIVID</constant>&nbsp;</entry>
  327. <entry>Vivid colors.</entry>
  328. </row>
  329. <row>
  330. <entry><constant>V4L2_COLORFX_SET_CBCR</constant>&nbsp;</entry>
  331. <entry>The Cb and Cr chroma components are replaced by fixed
  332. coefficients determined by <constant>V4L2_CID_COLORFX_CBCR</constant>
  333. control.</entry>
  334. </row>
  335. </tbody>
  336. </entrytbl>
  337. </row>
  338. <row>
  339. <entry><constant>V4L2_CID_COLORFX_CBCR</constant></entry>
  340. <entry>integer</entry>
  341. <entry>Determines the Cb and Cr coefficients for <constant>V4L2_COLORFX_SET_CBCR</constant>
  342. color effect. Bits [7:0] of the supplied 32 bit value are interpreted as
  343. Cr component, bits [15:8] as Cb component and bits [31:16] must be zero.
  344. </entry>
  345. </row>
  346. <row>
  347. <entry><constant>V4L2_CID_AUTOBRIGHTNESS</constant></entry>
  348. <entry>boolean</entry>
  349. <entry>Enable Automatic Brightness.</entry>
  350. </row>
  351. <row>
  352. <entry><constant>V4L2_CID_ROTATE</constant></entry>
  353. <entry>integer</entry>
  354. <entry>Rotates the image by specified angle. Common angles are 90,
  355. 270 and 180. Rotating the image to 90 and 270 will reverse the height
  356. and width of the display window. It is necessary to set the new height and
  357. width of the picture using the &VIDIOC-S-FMT; ioctl according to
  358. the rotation angle selected.</entry>
  359. </row>
  360. <row>
  361. <entry><constant>V4L2_CID_BG_COLOR</constant></entry>
  362. <entry>integer</entry>
  363. <entry>Sets the background color on the current output device.
  364. Background color needs to be specified in the RGB24 format. The
  365. supplied 32 bit value is interpreted as bits 0-7 Red color information,
  366. bits 8-15 Green color information, bits 16-23 Blue color
  367. information and bits 24-31 must be zero.</entry>
  368. </row>
  369. <row>
  370. <entry><constant>V4L2_CID_ILLUMINATORS_1</constant>
  371. <constant>V4L2_CID_ILLUMINATORS_2</constant></entry>
  372. <entry>boolean</entry>
  373. <entry>Switch on or off the illuminator 1 or 2 of the device
  374. (usually a microscope).</entry>
  375. </row>
  376. <row>
  377. <entry><constant>V4L2_CID_MIN_BUFFERS_FOR_CAPTURE</constant></entry>
  378. <entry>integer</entry>
  379. <entry>This is a read-only control that can be read by the application
  380. and used as a hint to determine the number of CAPTURE buffers to pass to REQBUFS.
  381. The value is the minimum number of CAPTURE buffers that is necessary for hardware
  382. to work.</entry>
  383. </row>
  384. <row>
  385. <entry><constant>V4L2_CID_MIN_BUFFERS_FOR_OUTPUT</constant></entry>
  386. <entry>integer</entry>
  387. <entry>This is a read-only control that can be read by the application
  388. and used as a hint to determine the number of OUTPUT buffers to pass to REQBUFS.
  389. The value is the minimum number of OUTPUT buffers that is necessary for hardware
  390. to work.</entry>
  391. </row>
  392. <row id="v4l2-alpha-component">
  393. <entry><constant>V4L2_CID_ALPHA_COMPONENT</constant></entry>
  394. <entry>integer</entry>
  395. <entry> Sets the alpha color component on the capture device or on
  396. the capture buffer queue of a mem-to-mem device. When a mem-to-mem
  397. device produces frame format that includes an alpha component
  398. (e.g. <link linkend="rgb-formats">packed RGB image formats</link>)
  399. and the alpha value is not defined by the mem-to-mem input data
  400. this control lets you select the alpha component value of all
  401. pixels. It is applicable to any pixel format that contains an alpha
  402. component.
  403. </entry>
  404. </row>
  405. <row>
  406. <entry><constant>V4L2_CID_LASTP1</constant></entry>
  407. <entry></entry>
  408. <entry>End of the predefined control IDs (currently
  409. <constant>V4L2_CID_ALPHA_COMPONENT</constant> + 1).</entry>
  410. </row>
  411. <row>
  412. <entry><constant>V4L2_CID_PRIVATE_BASE</constant></entry>
  413. <entry></entry>
  414. <entry>ID of the first custom (driver specific) control.
  415. Applications depending on particular custom controls should check the
  416. driver name and version, see <xref linkend="querycap" />.</entry>
  417. </row>
  418. </tbody>
  419. </tgroup>
  420. </table>
  421. <para>Applications can enumerate the available controls with the
  422. &VIDIOC-QUERYCTRL; and &VIDIOC-QUERYMENU; ioctls, get and set a
  423. control value with the &VIDIOC-G-CTRL; and &VIDIOC-S-CTRL; ioctls.
  424. Drivers must implement <constant>VIDIOC_QUERYCTRL</constant>,
  425. <constant>VIDIOC_G_CTRL</constant> and
  426. <constant>VIDIOC_S_CTRL</constant> when the device has one or more
  427. controls, <constant>VIDIOC_QUERYMENU</constant> when it has one or
  428. more menu type controls.</para>
  429. <example>
  430. <title>Enumerating all controls</title>
  431. <programlisting>
  432. &v4l2-queryctrl; queryctrl;
  433. &v4l2-querymenu; querymenu;
  434. static void
  435. enumerate_menu (void)
  436. {
  437. printf (" Menu items:\n");
  438. memset (&amp;querymenu, 0, sizeof (querymenu));
  439. querymenu.id = queryctrl.id;
  440. for (querymenu.index = queryctrl.minimum;
  441. querymenu.index &lt;= queryctrl.maximum;
  442. querymenu.index++) {
  443. if (0 == ioctl (fd, &VIDIOC-QUERYMENU;, &amp;querymenu)) {
  444. printf (" %s\n", querymenu.name);
  445. }
  446. }
  447. }
  448. memset (&amp;queryctrl, 0, sizeof (queryctrl));
  449. for (queryctrl.id = V4L2_CID_BASE;
  450. queryctrl.id &lt; V4L2_CID_LASTP1;
  451. queryctrl.id++) {
  452. if (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &amp;queryctrl)) {
  453. if (queryctrl.flags &amp; V4L2_CTRL_FLAG_DISABLED)
  454. continue;
  455. printf ("Control %s\n", queryctrl.name);
  456. if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
  457. enumerate_menu ();
  458. } else {
  459. if (errno == EINVAL)
  460. continue;
  461. perror ("VIDIOC_QUERYCTRL");
  462. exit (EXIT_FAILURE);
  463. }
  464. }
  465. for (queryctrl.id = V4L2_CID_PRIVATE_BASE;;
  466. queryctrl.id++) {
  467. if (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &amp;queryctrl)) {
  468. if (queryctrl.flags &amp; V4L2_CTRL_FLAG_DISABLED)
  469. continue;
  470. printf ("Control %s\n", queryctrl.name);
  471. if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
  472. enumerate_menu ();
  473. } else {
  474. if (errno == EINVAL)
  475. break;
  476. perror ("VIDIOC_QUERYCTRL");
  477. exit (EXIT_FAILURE);
  478. }
  479. }
  480. </programlisting>
  481. </example>
  482. <example>
  483. <title>Changing controls</title>
  484. <programlisting>
  485. &v4l2-queryctrl; queryctrl;
  486. &v4l2-control; control;
  487. memset (&amp;queryctrl, 0, sizeof (queryctrl));
  488. queryctrl.id = V4L2_CID_BRIGHTNESS;
  489. if (-1 == ioctl (fd, &VIDIOC-QUERYCTRL;, &amp;queryctrl)) {
  490. if (errno != EINVAL) {
  491. perror ("VIDIOC_QUERYCTRL");
  492. exit (EXIT_FAILURE);
  493. } else {
  494. printf ("V4L2_CID_BRIGHTNESS is not supported\n");
  495. }
  496. } else if (queryctrl.flags &amp; V4L2_CTRL_FLAG_DISABLED) {
  497. printf ("V4L2_CID_BRIGHTNESS is not supported\n");
  498. } else {
  499. memset (&amp;control, 0, sizeof (control));
  500. control.id = V4L2_CID_BRIGHTNESS;
  501. control.value = queryctrl.default_value;
  502. if (-1 == ioctl (fd, &VIDIOC-S-CTRL;, &amp;control)) {
  503. perror ("VIDIOC_S_CTRL");
  504. exit (EXIT_FAILURE);
  505. }
  506. }
  507. memset (&amp;control, 0, sizeof (control));
  508. control.id = V4L2_CID_CONTRAST;
  509. if (0 == ioctl (fd, &VIDIOC-G-CTRL;, &amp;control)) {
  510. control.value += 1;
  511. /* The driver may clamp the value or return ERANGE, ignored here */
  512. if (-1 == ioctl (fd, &VIDIOC-S-CTRL;, &amp;control)
  513. &amp;&amp; errno != ERANGE) {
  514. perror ("VIDIOC_S_CTRL");
  515. exit (EXIT_FAILURE);
  516. }
  517. /* Ignore if V4L2_CID_CONTRAST is unsupported */
  518. } else if (errno != EINVAL) {
  519. perror ("VIDIOC_G_CTRL");
  520. exit (EXIT_FAILURE);
  521. }
  522. control.id = V4L2_CID_AUDIO_MUTE;
  523. control.value = TRUE; /* silence */
  524. /* Errors ignored */
  525. ioctl (fd, VIDIOC_S_CTRL, &amp;control);
  526. </programlisting>
  527. </example>
  528. </section>
  529. <section id="extended-controls">
  530. <title>Extended Controls</title>
  531. <section>
  532. <title>Introduction</title>
  533. <para>The control mechanism as originally designed was meant
  534. to be used for user settings (brightness, saturation, etc). However,
  535. it turned out to be a very useful model for implementing more
  536. complicated driver APIs where each driver implements only a subset of
  537. a larger API.</para>
  538. <para>The MPEG encoding API was the driving force behind
  539. designing and implementing this extended control mechanism: the MPEG
  540. standard is quite large and the currently supported hardware MPEG
  541. encoders each only implement a subset of this standard. Further more,
  542. many parameters relating to how the video is encoded into an MPEG
  543. stream are specific to the MPEG encoding chip since the MPEG standard
  544. only defines the format of the resulting MPEG stream, not how the
  545. video is actually encoded into that format.</para>
  546. <para>Unfortunately, the original control API lacked some
  547. features needed for these new uses and so it was extended into the
  548. (not terribly originally named) extended control API.</para>
  549. <para>Even though the MPEG encoding API was the first effort
  550. to use the Extended Control API, nowadays there are also other classes
  551. of Extended Controls, such as Camera Controls and FM Transmitter Controls.
  552. The Extended Controls API as well as all Extended Controls classes are
  553. described in the following text.</para>
  554. </section>
  555. <section>
  556. <title>The Extended Control API</title>
  557. <para>Three new ioctls are available: &VIDIOC-G-EXT-CTRLS;,
  558. &VIDIOC-S-EXT-CTRLS; and &VIDIOC-TRY-EXT-CTRLS;. These ioctls act on
  559. arrays of controls (as opposed to the &VIDIOC-G-CTRL; and
  560. &VIDIOC-S-CTRL; ioctls that act on a single control). This is needed
  561. since it is often required to atomically change several controls at
  562. once.</para>
  563. <para>Each of the new ioctls expects a pointer to a
  564. &v4l2-ext-controls;. This structure contains a pointer to the control
  565. array, a count of the number of controls in that array and a control
  566. class. Control classes are used to group similar controls into a
  567. single class. For example, control class
  568. <constant>V4L2_CTRL_CLASS_USER</constant> contains all user controls
  569. (&ie; all controls that can also be set using the old
  570. <constant>VIDIOC_S_CTRL</constant> ioctl). Control class
  571. <constant>V4L2_CTRL_CLASS_MPEG</constant> contains all controls
  572. relating to MPEG encoding, etc.</para>
  573. <para>All controls in the control array must belong to the
  574. specified control class. An error is returned if this is not the
  575. case.</para>
  576. <para>It is also possible to use an empty control array (count
  577. == 0) to check whether the specified control class is
  578. supported.</para>
  579. <para>The control array is a &v4l2-ext-control; array. The
  580. <structname>v4l2_ext_control</structname> structure is very similar to
  581. &v4l2-control;, except for the fact that it also allows for 64-bit
  582. values and pointers to be passed.</para>
  583. <para>It is important to realize that due to the flexibility of
  584. controls it is necessary to check whether the control you want to set
  585. actually is supported in the driver and what the valid range of values
  586. is. So use the &VIDIOC-QUERYCTRL; and &VIDIOC-QUERYMENU; ioctls to
  587. check this. Also note that it is possible that some of the menu
  588. indices in a control of type <constant>V4L2_CTRL_TYPE_MENU</constant>
  589. may not be supported (<constant>VIDIOC_QUERYMENU</constant> will
  590. return an error). A good example is the list of supported MPEG audio
  591. bitrates. Some drivers only support one or two bitrates, others
  592. support a wider range.</para>
  593. <para>
  594. All controls use machine endianness.
  595. </para>
  596. </section>
  597. <section>
  598. <title>Enumerating Extended Controls</title>
  599. <para>The recommended way to enumerate over the extended
  600. controls is by using &VIDIOC-QUERYCTRL; in combination with the
  601. <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant> flag:</para>
  602. <informalexample>
  603. <programlisting>
  604. &v4l2-queryctrl; qctrl;
  605. qctrl.id = V4L2_CTRL_FLAG_NEXT_CTRL;
  606. while (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &amp;qctrl)) {
  607. /* ... */
  608. qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;
  609. }
  610. </programlisting>
  611. </informalexample>
  612. <para>The initial control ID is set to 0 ORed with the
  613. <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant> flag. The
  614. <constant>VIDIOC_QUERYCTRL</constant> ioctl will return the first
  615. control with a higher ID than the specified one. When no such controls
  616. are found an error is returned.</para>
  617. <para>If you want to get all controls within a specific control
  618. class, then you can set the initial
  619. <structfield>qctrl.id</structfield> value to the control class and add
  620. an extra check to break out of the loop when a control of another
  621. control class is found:</para>
  622. <informalexample>
  623. <programlisting>
  624. qctrl.id = V4L2_CTRL_CLASS_MPEG | V4L2_CTRL_FLAG_NEXT_CTRL;
  625. while (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &amp;qctrl)) {
  626. if (V4L2_CTRL_ID2CLASS (qctrl.id) != V4L2_CTRL_CLASS_MPEG)
  627. break;
  628. /* ... */
  629. qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;
  630. }
  631. </programlisting>
  632. </informalexample>
  633. <para>The 32-bit <structfield>qctrl.id</structfield> value is
  634. subdivided into three bit ranges: the top 4 bits are reserved for
  635. flags (&eg; <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant>) and are not
  636. actually part of the ID. The remaining 28 bits form the control ID, of
  637. which the most significant 12 bits define the control class and the
  638. least significant 16 bits identify the control within the control
  639. class. It is guaranteed that these last 16 bits are always non-zero
  640. for controls. The range of 0x1000 and up are reserved for
  641. driver-specific controls. The macro
  642. <constant>V4L2_CTRL_ID2CLASS(id)</constant> returns the control class
  643. ID based on a control ID.</para>
  644. <para>If the driver does not support extended controls, then
  645. <constant>VIDIOC_QUERYCTRL</constant> will fail when used in
  646. combination with <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant>. In
  647. that case the old method of enumerating control should be used (see
  648. 1.8). But if it is supported, then it is guaranteed to enumerate over
  649. all controls, including driver-private controls.</para>
  650. </section>
  651. <section>
  652. <title>Creating Control Panels</title>
  653. <para>It is possible to create control panels for a graphical
  654. user interface where the user can select the various controls.
  655. Basically you will have to iterate over all controls using the method
  656. described above. Each control class starts with a control of type
  657. <constant>V4L2_CTRL_TYPE_CTRL_CLASS</constant>.
  658. <constant>VIDIOC_QUERYCTRL</constant> will return the name of this
  659. control class which can be used as the title of a tab page within a
  660. control panel.</para>
  661. <para>The flags field of &v4l2-queryctrl; also contains hints on
  662. the behavior of the control. See the &VIDIOC-QUERYCTRL; documentation
  663. for more details.</para>
  664. </section>
  665. <section id="mpeg-controls">
  666. <title>MPEG Control Reference</title>
  667. <para>Below all controls within the MPEG control class are
  668. described. First the generic controls, then controls specific for
  669. certain hardware.</para>
  670. <section>
  671. <title>Generic MPEG Controls</title>
  672. <table pgwide="1" frame="none" id="mpeg-control-id">
  673. <title>MPEG Control IDs</title>
  674. <tgroup cols="4">
  675. <colspec colname="c1" colwidth="1*" />
  676. <colspec colname="c2" colwidth="6*" />
  677. <colspec colname="c3" colwidth="2*" />
  678. <colspec colname="c4" colwidth="6*" />
  679. <spanspec namest="c1" nameend="c2" spanname="id" />
  680. <spanspec namest="c2" nameend="c4" spanname="descr" />
  681. <thead>
  682. <row>
  683. <entry spanname="id" align="left">ID</entry>
  684. <entry align="left">Type</entry>
  685. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  686. </row>
  687. </thead>
  688. <tbody valign="top">
  689. <row><entry></entry></row>
  690. <row>
  691. <entry spanname="id"><constant>V4L2_CID_MPEG_CLASS</constant>&nbsp;</entry>
  692. <entry>class</entry>
  693. </row><row><entry spanname="descr">The MPEG class
  694. descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
  695. description of this control class. This description can be used as the
  696. caption of a Tab page in a GUI, for example.</entry>
  697. </row>
  698. <row><entry></entry></row>
  699. <row id="v4l2-mpeg-stream-type">
  700. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_TYPE</constant>&nbsp;</entry>
  701. <entry>enum&nbsp;v4l2_mpeg_stream_type</entry>
  702. </row><row><entry spanname="descr">The MPEG-1, -2 or -4
  703. output stream type. One cannot assume anything here. Each hardware
  704. MPEG encoder tends to support different subsets of the available MPEG
  705. stream types. This control is specific to multiplexed MPEG streams.
  706. The currently defined stream types are:</entry>
  707. </row>
  708. <row>
  709. <entrytbl spanname="descr" cols="2">
  710. <tbody valign="top">
  711. <row>
  712. <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_PS</constant>&nbsp;</entry>
  713. <entry>MPEG-2 program stream</entry>
  714. </row>
  715. <row>
  716. <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_TS</constant>&nbsp;</entry>
  717. <entry>MPEG-2 transport stream</entry>
  718. </row>
  719. <row>
  720. <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG1_SS</constant>&nbsp;</entry>
  721. <entry>MPEG-1 system stream</entry>
  722. </row>
  723. <row>
  724. <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_DVD</constant>&nbsp;</entry>
  725. <entry>MPEG-2 DVD-compatible stream</entry>
  726. </row>
  727. <row>
  728. <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG1_VCD</constant>&nbsp;</entry>
  729. <entry>MPEG-1 VCD-compatible stream</entry>
  730. </row>
  731. <row>
  732. <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_SVCD</constant>&nbsp;</entry>
  733. <entry>MPEG-2 SVCD-compatible stream</entry>
  734. </row>
  735. </tbody>
  736. </entrytbl>
  737. </row>
  738. <row><entry></entry></row>
  739. <row>
  740. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_PMT</constant>&nbsp;</entry>
  741. <entry>integer</entry>
  742. </row><row><entry spanname="descr">Program Map Table
  743. Packet ID for the MPEG transport stream (default 16)</entry>
  744. </row>
  745. <row><entry></entry></row>
  746. <row>
  747. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_AUDIO</constant>&nbsp;</entry>
  748. <entry>integer</entry>
  749. </row><row><entry spanname="descr">Audio Packet ID for
  750. the MPEG transport stream (default 256)</entry>
  751. </row>
  752. <row><entry></entry></row>
  753. <row>
  754. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_VIDEO</constant>&nbsp;</entry>
  755. <entry>integer</entry>
  756. </row><row><entry spanname="descr">Video Packet ID for
  757. the MPEG transport stream (default 260)</entry>
  758. </row>
  759. <row><entry></entry></row>
  760. <row>
  761. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_PCR</constant>&nbsp;</entry>
  762. <entry>integer</entry>
  763. </row><row><entry spanname="descr">Packet ID for the
  764. MPEG transport stream carrying PCR fields (default 259)</entry>
  765. </row>
  766. <row><entry></entry></row>
  767. <row>
  768. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PES_ID_AUDIO</constant>&nbsp;</entry>
  769. <entry>integer</entry>
  770. </row><row><entry spanname="descr">Audio ID for MPEG
  771. PES</entry>
  772. </row>
  773. <row><entry></entry></row>
  774. <row>
  775. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PES_ID_VIDEO</constant>&nbsp;</entry>
  776. <entry>integer</entry>
  777. </row><row><entry spanname="descr">Video ID for MPEG
  778. PES</entry>
  779. </row>
  780. <row><entry></entry></row>
  781. <row id="v4l2-mpeg-stream-vbi-fmt">
  782. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_VBI_FMT</constant>&nbsp;</entry>
  783. <entry>enum&nbsp;v4l2_mpeg_stream_vbi_fmt</entry>
  784. </row><row><entry spanname="descr">Some cards can embed
  785. VBI data (&eg; Closed Caption, Teletext) into the MPEG stream. This
  786. control selects whether VBI data should be embedded, and if so, what
  787. embedding method should be used. The list of possible VBI formats
  788. depends on the driver. The currently defined VBI format types
  789. are:</entry>
  790. </row>
  791. <row>
  792. <entrytbl spanname="descr" cols="2">
  793. <tbody valign="top">
  794. <row>
  795. <entry><constant>V4L2_MPEG_STREAM_VBI_FMT_NONE</constant>&nbsp;</entry>
  796. <entry>No VBI in the MPEG stream</entry>
  797. </row>
  798. <row>
  799. <entry><constant>V4L2_MPEG_STREAM_VBI_FMT_IVTV</constant>&nbsp;</entry>
  800. <entry>VBI in private packets, IVTV format (documented
  801. in the kernel sources in the file <filename>Documentation/video4linux/cx2341x/README.vbi</filename>)</entry>
  802. </row>
  803. </tbody>
  804. </entrytbl>
  805. </row>
  806. <row><entry></entry></row>
  807. <row id="v4l2-mpeg-audio-sampling-freq">
  808. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_SAMPLING_FREQ</constant>&nbsp;</entry>
  809. <entry>enum&nbsp;v4l2_mpeg_audio_sampling_freq</entry>
  810. </row><row><entry spanname="descr">MPEG Audio sampling
  811. frequency. Possible values are:</entry>
  812. </row>
  813. <row>
  814. <entrytbl spanname="descr" cols="2">
  815. <tbody valign="top">
  816. <row>
  817. <entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_44100</constant>&nbsp;</entry>
  818. <entry>44.1 kHz</entry>
  819. </row>
  820. <row>
  821. <entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000</constant>&nbsp;</entry>
  822. <entry>48 kHz</entry>
  823. </row>
  824. <row>
  825. <entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_32000</constant>&nbsp;</entry>
  826. <entry>32 kHz</entry>
  827. </row>
  828. </tbody>
  829. </entrytbl>
  830. </row>
  831. <row><entry></entry></row>
  832. <row id="v4l2-mpeg-audio-encoding">
  833. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_ENCODING</constant>&nbsp;</entry>
  834. <entry>enum&nbsp;v4l2_mpeg_audio_encoding</entry>
  835. </row><row><entry spanname="descr">MPEG Audio encoding.
  836. This control is specific to multiplexed MPEG streams.
  837. Possible values are:</entry>
  838. </row>
  839. <row>
  840. <entrytbl spanname="descr" cols="2">
  841. <tbody valign="top">
  842. <row>
  843. <entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_1</constant>&nbsp;</entry>
  844. <entry>MPEG-1/2 Layer I encoding</entry>
  845. </row>
  846. <row>
  847. <entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_2</constant>&nbsp;</entry>
  848. <entry>MPEG-1/2 Layer II encoding</entry>
  849. </row>
  850. <row>
  851. <entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_3</constant>&nbsp;</entry>
  852. <entry>MPEG-1/2 Layer III encoding</entry>
  853. </row>
  854. <row>
  855. <entry><constant>V4L2_MPEG_AUDIO_ENCODING_AAC</constant>&nbsp;</entry>
  856. <entry>MPEG-2/4 AAC (Advanced Audio Coding)</entry>
  857. </row>
  858. <row>
  859. <entry><constant>V4L2_MPEG_AUDIO_ENCODING_AC3</constant>&nbsp;</entry>
  860. <entry>AC-3 aka ATSC A/52 encoding</entry>
  861. </row>
  862. </tbody>
  863. </entrytbl>
  864. </row>
  865. <row><entry></entry></row>
  866. <row id="v4l2-mpeg-audio-l1-bitrate">
  867. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L1_BITRATE</constant>&nbsp;</entry>
  868. <entry>enum&nbsp;v4l2_mpeg_audio_l1_bitrate</entry>
  869. </row><row><entry spanname="descr">MPEG-1/2 Layer I bitrate.
  870. Possible values are:</entry>
  871. </row>
  872. <row>
  873. <entrytbl spanname="descr" cols="2">
  874. <tbody valign="top">
  875. <row>
  876. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_32K</constant>&nbsp;</entry>
  877. <entry>32 kbit/s</entry></row>
  878. <row>
  879. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_64K</constant>&nbsp;</entry>
  880. <entry>64 kbit/s</entry>
  881. </row>
  882. <row>
  883. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_96K</constant>&nbsp;</entry>
  884. <entry>96 kbit/s</entry>
  885. </row>
  886. <row>
  887. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_128K</constant>&nbsp;</entry>
  888. <entry>128 kbit/s</entry>
  889. </row>
  890. <row>
  891. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_160K</constant>&nbsp;</entry>
  892. <entry>160 kbit/s</entry>
  893. </row>
  894. <row>
  895. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_192K</constant>&nbsp;</entry>
  896. <entry>192 kbit/s</entry>
  897. </row>
  898. <row>
  899. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_224K</constant>&nbsp;</entry>
  900. <entry>224 kbit/s</entry>
  901. </row>
  902. <row>
  903. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_256K</constant>&nbsp;</entry>
  904. <entry>256 kbit/s</entry>
  905. </row>
  906. <row>
  907. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_288K</constant>&nbsp;</entry>
  908. <entry>288 kbit/s</entry>
  909. </row>
  910. <row>
  911. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_320K</constant>&nbsp;</entry>
  912. <entry>320 kbit/s</entry>
  913. </row>
  914. <row>
  915. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_352K</constant>&nbsp;</entry>
  916. <entry>352 kbit/s</entry>
  917. </row>
  918. <row>
  919. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_384K</constant>&nbsp;</entry>
  920. <entry>384 kbit/s</entry>
  921. </row>
  922. <row>
  923. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_416K</constant>&nbsp;</entry>
  924. <entry>416 kbit/s</entry>
  925. </row>
  926. <row>
  927. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_448K</constant>&nbsp;</entry>
  928. <entry>448 kbit/s</entry>
  929. </row>
  930. </tbody>
  931. </entrytbl>
  932. </row>
  933. <row><entry></entry></row>
  934. <row id="v4l2-mpeg-audio-l2-bitrate">
  935. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L2_BITRATE</constant>&nbsp;</entry>
  936. <entry>enum&nbsp;v4l2_mpeg_audio_l2_bitrate</entry>
  937. </row><row><entry spanname="descr">MPEG-1/2 Layer II bitrate.
  938. Possible values are:</entry>
  939. </row>
  940. <row>
  941. <entrytbl spanname="descr" cols="2">
  942. <tbody valign="top">
  943. <row>
  944. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_32K</constant>&nbsp;</entry>
  945. <entry>32 kbit/s</entry>
  946. </row>
  947. <row>
  948. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_48K</constant>&nbsp;</entry>
  949. <entry>48 kbit/s</entry>
  950. </row>
  951. <row>
  952. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_56K</constant>&nbsp;</entry>
  953. <entry>56 kbit/s</entry>
  954. </row>
  955. <row>
  956. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_64K</constant>&nbsp;</entry>
  957. <entry>64 kbit/s</entry>
  958. </row>
  959. <row>
  960. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_80K</constant>&nbsp;</entry>
  961. <entry>80 kbit/s</entry>
  962. </row>
  963. <row>
  964. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_96K</constant>&nbsp;</entry>
  965. <entry>96 kbit/s</entry>
  966. </row>
  967. <row>
  968. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_112K</constant>&nbsp;</entry>
  969. <entry>112 kbit/s</entry>
  970. </row>
  971. <row>
  972. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_128K</constant>&nbsp;</entry>
  973. <entry>128 kbit/s</entry>
  974. </row>
  975. <row>
  976. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_160K</constant>&nbsp;</entry>
  977. <entry>160 kbit/s</entry>
  978. </row>
  979. <row>
  980. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_192K</constant>&nbsp;</entry>
  981. <entry>192 kbit/s</entry>
  982. </row>
  983. <row>
  984. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_224K</constant>&nbsp;</entry>
  985. <entry>224 kbit/s</entry>
  986. </row>
  987. <row>
  988. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_256K</constant>&nbsp;</entry>
  989. <entry>256 kbit/s</entry>
  990. </row>
  991. <row>
  992. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_320K</constant>&nbsp;</entry>
  993. <entry>320 kbit/s</entry>
  994. </row>
  995. <row>
  996. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_384K</constant>&nbsp;</entry>
  997. <entry>384 kbit/s</entry>
  998. </row>
  999. </tbody>
  1000. </entrytbl>
  1001. </row>
  1002. <row><entry></entry></row>
  1003. <row id="v4l2-mpeg-audio-l3-bitrate">
  1004. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L3_BITRATE</constant>&nbsp;</entry>
  1005. <entry>enum&nbsp;v4l2_mpeg_audio_l3_bitrate</entry>
  1006. </row><row><entry spanname="descr">MPEG-1/2 Layer III bitrate.
  1007. Possible values are:</entry>
  1008. </row>
  1009. <row>
  1010. <entrytbl spanname="descr" cols="2">
  1011. <tbody valign="top">
  1012. <row>
  1013. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_32K</constant>&nbsp;</entry>
  1014. <entry>32 kbit/s</entry>
  1015. </row>
  1016. <row>
  1017. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_40K</constant>&nbsp;</entry>
  1018. <entry>40 kbit/s</entry>
  1019. </row>
  1020. <row>
  1021. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_48K</constant>&nbsp;</entry>
  1022. <entry>48 kbit/s</entry>
  1023. </row>
  1024. <row>
  1025. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_56K</constant>&nbsp;</entry>
  1026. <entry>56 kbit/s</entry>
  1027. </row>
  1028. <row>
  1029. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_64K</constant>&nbsp;</entry>
  1030. <entry>64 kbit/s</entry>
  1031. </row>
  1032. <row>
  1033. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_80K</constant>&nbsp;</entry>
  1034. <entry>80 kbit/s</entry>
  1035. </row>
  1036. <row>
  1037. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_96K</constant>&nbsp;</entry>
  1038. <entry>96 kbit/s</entry>
  1039. </row>
  1040. <row>
  1041. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_112K</constant>&nbsp;</entry>
  1042. <entry>112 kbit/s</entry>
  1043. </row>
  1044. <row>
  1045. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_128K</constant>&nbsp;</entry>
  1046. <entry>128 kbit/s</entry>
  1047. </row>
  1048. <row>
  1049. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_160K</constant>&nbsp;</entry>
  1050. <entry>160 kbit/s</entry>
  1051. </row>
  1052. <row>
  1053. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_192K</constant>&nbsp;</entry>
  1054. <entry>192 kbit/s</entry>
  1055. </row>
  1056. <row>
  1057. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_224K</constant>&nbsp;</entry>
  1058. <entry>224 kbit/s</entry>
  1059. </row>
  1060. <row>
  1061. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_256K</constant>&nbsp;</entry>
  1062. <entry>256 kbit/s</entry>
  1063. </row>
  1064. <row>
  1065. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_320K</constant>&nbsp;</entry>
  1066. <entry>320 kbit/s</entry>
  1067. </row>
  1068. </tbody>
  1069. </entrytbl>
  1070. </row>
  1071. <row><entry></entry></row>
  1072. <row>
  1073. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_AAC_BITRATE</constant>&nbsp;</entry>
  1074. <entry>integer</entry>
  1075. </row><row><entry spanname="descr">AAC bitrate in bits per second.</entry>
  1076. </row>
  1077. <row><entry></entry></row>
  1078. <row id="v4l2-mpeg-audio-ac3-bitrate">
  1079. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_AC3_BITRATE</constant>&nbsp;</entry>
  1080. <entry>enum&nbsp;v4l2_mpeg_audio_ac3_bitrate</entry>
  1081. </row><row><entry spanname="descr">AC-3 bitrate.
  1082. Possible values are:</entry>
  1083. </row>
  1084. <row>
  1085. <entrytbl spanname="descr" cols="2">
  1086. <tbody valign="top">
  1087. <row>
  1088. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_32K</constant>&nbsp;</entry>
  1089. <entry>32 kbit/s</entry>
  1090. </row>
  1091. <row>
  1092. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_40K</constant>&nbsp;</entry>
  1093. <entry>40 kbit/s</entry>
  1094. </row>
  1095. <row>
  1096. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_48K</constant>&nbsp;</entry>
  1097. <entry>48 kbit/s</entry>
  1098. </row>
  1099. <row>
  1100. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_56K</constant>&nbsp;</entry>
  1101. <entry>56 kbit/s</entry>
  1102. </row>
  1103. <row>
  1104. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_64K</constant>&nbsp;</entry>
  1105. <entry>64 kbit/s</entry>
  1106. </row>
  1107. <row>
  1108. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_80K</constant>&nbsp;</entry>
  1109. <entry>80 kbit/s</entry>
  1110. </row>
  1111. <row>
  1112. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_96K</constant>&nbsp;</entry>
  1113. <entry>96 kbit/s</entry>
  1114. </row>
  1115. <row>
  1116. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_112K</constant>&nbsp;</entry>
  1117. <entry>112 kbit/s</entry>
  1118. </row>
  1119. <row>
  1120. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_128K</constant>&nbsp;</entry>
  1121. <entry>128 kbit/s</entry>
  1122. </row>
  1123. <row>
  1124. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_160K</constant>&nbsp;</entry>
  1125. <entry>160 kbit/s</entry>
  1126. </row>
  1127. <row>
  1128. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_192K</constant>&nbsp;</entry>
  1129. <entry>192 kbit/s</entry>
  1130. </row>
  1131. <row>
  1132. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_224K</constant>&nbsp;</entry>
  1133. <entry>224 kbit/s</entry>
  1134. </row>
  1135. <row>
  1136. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_256K</constant>&nbsp;</entry>
  1137. <entry>256 kbit/s</entry>
  1138. </row>
  1139. <row>
  1140. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_320K</constant>&nbsp;</entry>
  1141. <entry>320 kbit/s</entry>
  1142. </row>
  1143. <row>
  1144. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_384K</constant>&nbsp;</entry>
  1145. <entry>384 kbit/s</entry>
  1146. </row>
  1147. <row>
  1148. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_448K</constant>&nbsp;</entry>
  1149. <entry>448 kbit/s</entry>
  1150. </row>
  1151. <row>
  1152. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_512K</constant>&nbsp;</entry>
  1153. <entry>512 kbit/s</entry>
  1154. </row>
  1155. <row>
  1156. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_576K</constant>&nbsp;</entry>
  1157. <entry>576 kbit/s</entry>
  1158. </row>
  1159. <row>
  1160. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_640K</constant>&nbsp;</entry>
  1161. <entry>640 kbit/s</entry>
  1162. </row>
  1163. </tbody>
  1164. </entrytbl>
  1165. </row>
  1166. <row><entry></entry></row>
  1167. <row id="v4l2-mpeg-audio-mode">
  1168. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MODE</constant>&nbsp;</entry>
  1169. <entry>enum&nbsp;v4l2_mpeg_audio_mode</entry>
  1170. </row><row><entry spanname="descr">MPEG Audio mode.
  1171. Possible values are:</entry>
  1172. </row>
  1173. <row>
  1174. <entrytbl spanname="descr" cols="2">
  1175. <tbody valign="top">
  1176. <row>
  1177. <entry><constant>V4L2_MPEG_AUDIO_MODE_STEREO</constant>&nbsp;</entry>
  1178. <entry>Stereo</entry>
  1179. </row>
  1180. <row>
  1181. <entry><constant>V4L2_MPEG_AUDIO_MODE_JOINT_STEREO</constant>&nbsp;</entry>
  1182. <entry>Joint Stereo</entry>
  1183. </row>
  1184. <row>
  1185. <entry><constant>V4L2_MPEG_AUDIO_MODE_DUAL</constant>&nbsp;</entry>
  1186. <entry>Bilingual</entry>
  1187. </row>
  1188. <row>
  1189. <entry><constant>V4L2_MPEG_AUDIO_MODE_MONO</constant>&nbsp;</entry>
  1190. <entry>Mono</entry>
  1191. </row>
  1192. </tbody>
  1193. </entrytbl>
  1194. </row>
  1195. <row><entry></entry></row>
  1196. <row id="v4l2-mpeg-audio-mode-extension">
  1197. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MODE_EXTENSION</constant>&nbsp;</entry>
  1198. <entry>enum&nbsp;v4l2_mpeg_audio_mode_extension</entry>
  1199. </row><row><entry spanname="descr">Joint Stereo
  1200. audio mode extension. In Layer I and II they indicate which subbands
  1201. are in intensity stereo. All other subbands are coded in stereo. Layer
  1202. III is not (yet) supported. Possible values
  1203. are:</entry>
  1204. </row>
  1205. <row>
  1206. <entrytbl spanname="descr" cols="2">
  1207. <tbody valign="top">
  1208. <row>
  1209. <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_4</constant>&nbsp;</entry>
  1210. <entry>Subbands 4-31 in intensity stereo</entry>
  1211. </row>
  1212. <row>
  1213. <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_8</constant>&nbsp;</entry>
  1214. <entry>Subbands 8-31 in intensity stereo</entry>
  1215. </row>
  1216. <row>
  1217. <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_12</constant>&nbsp;</entry>
  1218. <entry>Subbands 12-31 in intensity stereo</entry>
  1219. </row>
  1220. <row>
  1221. <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_16</constant>&nbsp;</entry>
  1222. <entry>Subbands 16-31 in intensity stereo</entry>
  1223. </row>
  1224. </tbody>
  1225. </entrytbl>
  1226. </row>
  1227. <row><entry></entry></row>
  1228. <row id="v4l2-mpeg-audio-emphasis">
  1229. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_EMPHASIS</constant>&nbsp;</entry>
  1230. <entry>enum&nbsp;v4l2_mpeg_audio_emphasis</entry>
  1231. </row><row><entry spanname="descr">Audio Emphasis.
  1232. Possible values are:</entry>
  1233. </row>
  1234. <row>
  1235. <entrytbl spanname="descr" cols="2">
  1236. <tbody valign="top">
  1237. <row>
  1238. <entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_NONE</constant>&nbsp;</entry>
  1239. <entry>None</entry>
  1240. </row>
  1241. <row>
  1242. <entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_50_DIV_15_uS</constant>&nbsp;</entry>
  1243. <entry>50/15 microsecond emphasis</entry>
  1244. </row>
  1245. <row>
  1246. <entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17</constant>&nbsp;</entry>
  1247. <entry>CCITT J.17</entry>
  1248. </row>
  1249. </tbody>
  1250. </entrytbl>
  1251. </row>
  1252. <row><entry></entry></row>
  1253. <row id="v4l2-mpeg-audio-crc">
  1254. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_CRC</constant>&nbsp;</entry>
  1255. <entry>enum&nbsp;v4l2_mpeg_audio_crc</entry>
  1256. </row><row><entry spanname="descr">CRC method. Possible
  1257. values are:</entry>
  1258. </row>
  1259. <row>
  1260. <entrytbl spanname="descr" cols="2">
  1261. <tbody valign="top">
  1262. <row>
  1263. <entry><constant>V4L2_MPEG_AUDIO_CRC_NONE</constant>&nbsp;</entry>
  1264. <entry>None</entry>
  1265. </row>
  1266. <row>
  1267. <entry><constant>V4L2_MPEG_AUDIO_CRC_CRC16</constant>&nbsp;</entry>
  1268. <entry>16 bit parity check</entry>
  1269. </row>
  1270. </tbody>
  1271. </entrytbl>
  1272. </row>
  1273. <row><entry></entry></row>
  1274. <row>
  1275. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MUTE</constant>&nbsp;</entry>
  1276. <entry>boolean</entry>
  1277. </row><row><entry spanname="descr">Mutes the audio when
  1278. capturing. This is not done by muting audio hardware, which can still
  1279. produce a slight hiss, but in the encoder itself, guaranteeing a fixed
  1280. and reproducible audio bitstream. 0 = unmuted, 1 = muted.</entry>
  1281. </row>
  1282. <row><entry></entry></row>
  1283. <row id="v4l2-mpeg-audio-dec-playback">
  1284. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_DEC_PLAYBACK</constant>&nbsp;</entry>
  1285. <entry>enum&nbsp;v4l2_mpeg_audio_dec_playback</entry>
  1286. </row><row><entry spanname="descr">Determines how monolingual audio should be played back.
  1287. Possible values are:</entry>
  1288. </row>
  1289. <row>
  1290. <entrytbl spanname="descr" cols="2">
  1291. <tbody valign="top">
  1292. <row>
  1293. <entry><constant>V4L2_MPEG_AUDIO_DEC_PLAYBACK_AUTO</constant>&nbsp;</entry>
  1294. <entry>Automatically determines the best playback mode.</entry>
  1295. </row>
  1296. <row>
  1297. <entry><constant>V4L2_MPEG_AUDIO_DEC_PLAYBACK_STEREO</constant>&nbsp;</entry>
  1298. <entry>Stereo playback.</entry>
  1299. </row>
  1300. <row>
  1301. <entry><constant>V4L2_MPEG_AUDIO_DEC_PLAYBACK_LEFT</constant>&nbsp;</entry>
  1302. <entry>Left channel playback.</entry>
  1303. </row>
  1304. <row>
  1305. <entry><constant>V4L2_MPEG_AUDIO_DEC_PLAYBACK_RIGHT</constant>&nbsp;</entry>
  1306. <entry>Right channel playback.</entry>
  1307. </row>
  1308. <row>
  1309. <entry><constant>V4L2_MPEG_AUDIO_DEC_PLAYBACK_MONO</constant>&nbsp;</entry>
  1310. <entry>Mono playback.</entry>
  1311. </row>
  1312. <row>
  1313. <entry><constant>V4L2_MPEG_AUDIO_DEC_PLAYBACK_SWAPPED_STEREO</constant>&nbsp;</entry>
  1314. <entry>Stereo playback with swapped left and right channels.</entry>
  1315. </row>
  1316. </tbody>
  1317. </entrytbl>
  1318. </row>
  1319. <row><entry></entry></row>
  1320. <row id="v4l2-mpeg-audio-dec-multilingual-playback">
  1321. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_DEC_MULTILINGUAL_PLAYBACK</constant>&nbsp;</entry>
  1322. <entry>enum&nbsp;v4l2_mpeg_audio_dec_playback</entry>
  1323. </row><row><entry spanname="descr">Determines how multilingual audio should be played back.</entry>
  1324. </row>
  1325. <row><entry></entry></row>
  1326. <row id="v4l2-mpeg-video-encoding">
  1327. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_ENCODING</constant>&nbsp;</entry>
  1328. <entry>enum&nbsp;v4l2_mpeg_video_encoding</entry>
  1329. </row><row><entry spanname="descr">MPEG Video encoding
  1330. method. This control is specific to multiplexed MPEG streams.
  1331. Possible values are:</entry>
  1332. </row>
  1333. <row>
  1334. <entrytbl spanname="descr" cols="2">
  1335. <tbody valign="top">
  1336. <row>
  1337. <entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_1</constant>&nbsp;</entry>
  1338. <entry>MPEG-1 Video encoding</entry>
  1339. </row>
  1340. <row>
  1341. <entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_2</constant>&nbsp;</entry>
  1342. <entry>MPEG-2 Video encoding</entry>
  1343. </row>
  1344. <row>
  1345. <entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC</constant>&nbsp;</entry>
  1346. <entry>MPEG-4 AVC (H.264) Video encoding</entry>
  1347. </row>
  1348. </tbody>
  1349. </entrytbl>
  1350. </row>
  1351. <row><entry></entry></row>
  1352. <row id="v4l2-mpeg-video-aspect">
  1353. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_ASPECT</constant>&nbsp;</entry>
  1354. <entry>enum&nbsp;v4l2_mpeg_video_aspect</entry>
  1355. </row><row><entry spanname="descr">Video aspect.
  1356. Possible values are:</entry>
  1357. </row>
  1358. <row>
  1359. <entrytbl spanname="descr" cols="2">
  1360. <tbody valign="top">
  1361. <row>
  1362. <entry><constant>V4L2_MPEG_VIDEO_ASPECT_1x1</constant>&nbsp;</entry>
  1363. </row>
  1364. <row>
  1365. <entry><constant>V4L2_MPEG_VIDEO_ASPECT_4x3</constant>&nbsp;</entry>
  1366. </row>
  1367. <row>
  1368. <entry><constant>V4L2_MPEG_VIDEO_ASPECT_16x9</constant>&nbsp;</entry>
  1369. </row>
  1370. <row>
  1371. <entry><constant>V4L2_MPEG_VIDEO_ASPECT_221x100</constant>&nbsp;</entry>
  1372. </row>
  1373. </tbody>
  1374. </entrytbl>
  1375. </row>
  1376. <row><entry></entry></row>
  1377. <row>
  1378. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_B_FRAMES</constant>&nbsp;</entry>
  1379. <entry>integer</entry>
  1380. </row><row><entry spanname="descr">Number of B-Frames
  1381. (default 2)</entry>
  1382. </row>
  1383. <row><entry></entry></row>
  1384. <row>
  1385. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_GOP_SIZE</constant>&nbsp;</entry>
  1386. <entry>integer</entry>
  1387. </row><row><entry spanname="descr">GOP size (default
  1388. 12)</entry>
  1389. </row>
  1390. <row><entry></entry></row>
  1391. <row>
  1392. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_GOP_CLOSURE</constant>&nbsp;</entry>
  1393. <entry>boolean</entry>
  1394. </row><row><entry spanname="descr">GOP closure (default
  1395. 1)</entry>
  1396. </row>
  1397. <row><entry></entry></row>
  1398. <row>
  1399. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_PULLDOWN</constant>&nbsp;</entry>
  1400. <entry>boolean</entry>
  1401. </row><row><entry spanname="descr">Enable 3:2 pulldown
  1402. (default 0)</entry>
  1403. </row>
  1404. <row><entry></entry></row>
  1405. <row id="v4l2-mpeg-video-bitrate-mode">
  1406. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE_MODE</constant>&nbsp;</entry>
  1407. <entry>enum&nbsp;v4l2_mpeg_video_bitrate_mode</entry>
  1408. </row><row><entry spanname="descr">Video bitrate mode.
  1409. Possible values are:</entry>
  1410. </row>
  1411. <row>
  1412. <entrytbl spanname="descr" cols="2">
  1413. <tbody valign="top">
  1414. <row>
  1415. <entry><constant>V4L2_MPEG_VIDEO_BITRATE_MODE_VBR</constant>&nbsp;</entry>
  1416. <entry>Variable bitrate</entry>
  1417. </row>
  1418. <row>
  1419. <entry><constant>V4L2_MPEG_VIDEO_BITRATE_MODE_CBR</constant>&nbsp;</entry>
  1420. <entry>Constant bitrate</entry>
  1421. </row>
  1422. </tbody>
  1423. </entrytbl>
  1424. </row>
  1425. <row><entry></entry></row>
  1426. <row>
  1427. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE</constant>&nbsp;</entry>
  1428. <entry>integer</entry>
  1429. </row><row><entry spanname="descr">Video bitrate in bits
  1430. per second.</entry>
  1431. </row>
  1432. <row><entry></entry></row>
  1433. <row>
  1434. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE_PEAK</constant>&nbsp;</entry>
  1435. <entry>integer</entry>
  1436. </row><row><entry spanname="descr">Peak video bitrate in
  1437. bits per second. Must be larger or equal to the average video bitrate.
  1438. It is ignored if the video bitrate mode is set to constant
  1439. bitrate.</entry>
  1440. </row>
  1441. <row><entry></entry></row>
  1442. <row>
  1443. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_TEMPORAL_DECIMATION</constant>&nbsp;</entry>
  1444. <entry>integer</entry>
  1445. </row><row><entry spanname="descr">For every captured
  1446. frame, skip this many subsequent frames (default 0).</entry>
  1447. </row>
  1448. <row><entry></entry></row>
  1449. <row>
  1450. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MUTE</constant>&nbsp;</entry>
  1451. <entry>boolean</entry>
  1452. </row>
  1453. <row><entry spanname="descr">"Mutes" the video to a
  1454. fixed color when capturing. This is useful for testing, to produce a
  1455. fixed video bitstream. 0 = unmuted, 1 = muted.</entry>
  1456. </row>
  1457. <row><entry></entry></row>
  1458. <row>
  1459. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MUTE_YUV</constant>&nbsp;</entry>
  1460. <entry>integer</entry>
  1461. </row><row><entry spanname="descr">Sets the "mute" color
  1462. of the video. The supplied 32-bit integer is interpreted as follows (bit
  1463. 0 = least significant bit):</entry>
  1464. </row>
  1465. <row>
  1466. <entrytbl spanname="descr" cols="2">
  1467. <tbody valign="top">
  1468. <row>
  1469. <entry>Bit 0:7</entry>
  1470. <entry>V chrominance information</entry>
  1471. </row>
  1472. <row>
  1473. <entry>Bit 8:15</entry>
  1474. <entry>U chrominance information</entry>
  1475. </row>
  1476. <row>
  1477. <entry>Bit 16:23</entry>
  1478. <entry>Y luminance information</entry>
  1479. </row>
  1480. <row>
  1481. <entry>Bit 24:31</entry>
  1482. <entry>Must be zero.</entry>
  1483. </row>
  1484. </tbody>
  1485. </entrytbl>
  1486. </row>
  1487. <row><entry></entry></row>
  1488. <row id="v4l2-mpeg-video-dec-pts">
  1489. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_DEC_PTS</constant>&nbsp;</entry>
  1490. <entry>integer64</entry>
  1491. </row><row><entry spanname="descr">This read-only control returns the
  1492. 33-bit video Presentation Time Stamp as defined in ITU T-REC-H.222.0 and ISO/IEC 13818-1 of
  1493. the currently displayed frame. This is the same PTS as is used in &VIDIOC-DECODER-CMD;.</entry>
  1494. </row>
  1495. <row><entry></entry></row>
  1496. <row id="v4l2-mpeg-video-dec-frame">
  1497. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_DEC_FRAME</constant>&nbsp;</entry>
  1498. <entry>integer64</entry>
  1499. </row><row><entry spanname="descr">This read-only control returns the
  1500. frame counter of the frame that is currently displayed (decoded). This value is reset to 0 whenever
  1501. the decoder is started.</entry>
  1502. </row>
  1503. <row><entry></entry></row>
  1504. <row>
  1505. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_DECODER_SLICE_INTERFACE</constant>&nbsp;</entry>
  1506. <entry>boolean</entry>
  1507. </row>
  1508. <row><entry spanname="descr">If enabled the decoder expects to receive a single slice per buffer, otherwise
  1509. the decoder expects a single frame in per buffer. Applicable to the decoder, all codecs.
  1510. </entry>
  1511. </row>
  1512. <row><entry></entry></row>
  1513. <row>
  1514. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_ENABLE</constant>&nbsp;</entry>
  1515. <entry>boolean</entry>
  1516. </row>
  1517. <row><entry spanname="descr">Enable writing sample aspect ratio in the Video Usability Information.
  1518. Applicable to the H264 encoder.</entry>
  1519. </row>
  1520. <row><entry></entry></row>
  1521. <row id="v4l2-mpeg-video-h264-vui-sar-idc">
  1522. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_IDC</constant>&nbsp;</entry>
  1523. <entry>enum&nbsp;v4l2_mpeg_video_h264_vui_sar_idc</entry>
  1524. </row>
  1525. <row><entry spanname="descr">VUI sample aspect ratio indicator for H.264 encoding. The value
  1526. is defined in the table E-1 in the standard. Applicable to the H264 encoder.</entry>
  1527. </row>
  1528. <row>
  1529. <entrytbl spanname="descr" cols="2">
  1530. <tbody valign="top">
  1531. <row>
  1532. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_UNSPECIFIED</constant>&nbsp;</entry>
  1533. <entry>Unspecified</entry>
  1534. </row>
  1535. <row>
  1536. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_1x1</constant>&nbsp;</entry>
  1537. <entry>1x1</entry>
  1538. </row>
  1539. <row>
  1540. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_12x11</constant>&nbsp;</entry>
  1541. <entry>12x11</entry>
  1542. </row>
  1543. <row>
  1544. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_10x11</constant>&nbsp;</entry>
  1545. <entry>10x11</entry>
  1546. </row>
  1547. <row>
  1548. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_16x11</constant>&nbsp;</entry>
  1549. <entry>16x11</entry>
  1550. </row>
  1551. <row>
  1552. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_40x33</constant>&nbsp;</entry>
  1553. <entry>40x33</entry>
  1554. </row>
  1555. <row>
  1556. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_24x11</constant>&nbsp;</entry>
  1557. <entry>24x11</entry>
  1558. </row>
  1559. <row>
  1560. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_20x11</constant>&nbsp;</entry>
  1561. <entry>20x11</entry>
  1562. </row>
  1563. <row>
  1564. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_32x11</constant>&nbsp;</entry>
  1565. <entry>32x11</entry>
  1566. </row>
  1567. <row>
  1568. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_80x33</constant>&nbsp;</entry>
  1569. <entry>80x33</entry>
  1570. </row>
  1571. <row>
  1572. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_18x11</constant>&nbsp;</entry>
  1573. <entry>18x11</entry>
  1574. </row>
  1575. <row>
  1576. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_15x11</constant>&nbsp;</entry>
  1577. <entry>15x11</entry>
  1578. </row>
  1579. <row>
  1580. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_64x33</constant>&nbsp;</entry>
  1581. <entry>64x33</entry>
  1582. </row>
  1583. <row>
  1584. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_160x99</constant>&nbsp;</entry>
  1585. <entry>160x99</entry>
  1586. </row>
  1587. <row>
  1588. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_4x3</constant>&nbsp;</entry>
  1589. <entry>4x3</entry>
  1590. </row>
  1591. <row>
  1592. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_3x2</constant>&nbsp;</entry>
  1593. <entry>3x2</entry>
  1594. </row>
  1595. <row>
  1596. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_2x1</constant>&nbsp;</entry>
  1597. <entry>2x1</entry>
  1598. </row>
  1599. <row>
  1600. <entry><constant>V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_EXTENDED</constant>&nbsp;</entry>
  1601. <entry>Extended SAR</entry>
  1602. </row>
  1603. </tbody>
  1604. </entrytbl>
  1605. </row>
  1606. <row><entry></entry></row>
  1607. <row>
  1608. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_WIDTH</constant>&nbsp;</entry>
  1609. <entry>integer</entry>
  1610. </row>
  1611. <row><entry spanname="descr">Extended sample aspect ratio width for H.264 VUI encoding.
  1612. Applicable to the H264 encoder.</entry>
  1613. </row>
  1614. <row><entry></entry></row>
  1615. <row>
  1616. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_HEIGHT</constant>&nbsp;</entry>
  1617. <entry>integer</entry>
  1618. </row>
  1619. <row><entry spanname="descr">Extended sample aspect ratio height for H.264 VUI encoding.
  1620. Applicable to the H264 encoder.</entry>
  1621. </row>
  1622. <row><entry></entry></row>
  1623. <row id="v4l2-mpeg-video-h264-level">
  1624. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LEVEL</constant>&nbsp;</entry>
  1625. <entry>enum&nbsp;v4l2_mpeg_video_h264_level</entry>
  1626. </row>
  1627. <row><entry spanname="descr">The level information for the H264 video elementary stream.
  1628. Applicable to the H264 encoder.
  1629. Possible values are:</entry>
  1630. </row>
  1631. <row>
  1632. <entrytbl spanname="descr" cols="2">
  1633. <tbody valign="top">
  1634. <row>
  1635. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1_0</constant>&nbsp;</entry>
  1636. <entry>Level 1.0</entry>
  1637. </row>
  1638. <row>
  1639. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1B</constant>&nbsp;</entry>
  1640. <entry>Level 1B</entry>
  1641. </row>
  1642. <row>
  1643. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1_1</constant>&nbsp;</entry>
  1644. <entry>Level 1.1</entry>
  1645. </row>
  1646. <row>
  1647. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1_2</constant>&nbsp;</entry>
  1648. <entry>Level 1.2</entry>
  1649. </row>
  1650. <row>
  1651. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_1_3</constant>&nbsp;</entry>
  1652. <entry>Level 1.3</entry>
  1653. </row>
  1654. <row>
  1655. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_2_0</constant>&nbsp;</entry>
  1656. <entry>Level 2.0</entry>
  1657. </row>
  1658. <row>
  1659. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_2_1</constant>&nbsp;</entry>
  1660. <entry>Level 2.1</entry>
  1661. </row>
  1662. <row>
  1663. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_2_2</constant>&nbsp;</entry>
  1664. <entry>Level 2.2</entry>
  1665. </row>
  1666. <row>
  1667. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_3_0</constant>&nbsp;</entry>
  1668. <entry>Level 3.0</entry>
  1669. </row>
  1670. <row>
  1671. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_3_1</constant>&nbsp;</entry>
  1672. <entry>Level 3.1</entry>
  1673. </row>
  1674. <row>
  1675. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_3_2</constant>&nbsp;</entry>
  1676. <entry>Level 3.2</entry>
  1677. </row>
  1678. <row>
  1679. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_4_0</constant>&nbsp;</entry>
  1680. <entry>Level 4.0</entry>
  1681. </row>
  1682. <row>
  1683. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_4_1</constant>&nbsp;</entry>
  1684. <entry>Level 4.1</entry>
  1685. </row>
  1686. <row>
  1687. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_4_2</constant>&nbsp;</entry>
  1688. <entry>Level 4.2</entry>
  1689. </row>
  1690. <row>
  1691. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_5_0</constant>&nbsp;</entry>
  1692. <entry>Level 5.0</entry>
  1693. </row>
  1694. <row>
  1695. <entry><constant>V4L2_MPEG_VIDEO_H264_LEVEL_5_1</constant>&nbsp;</entry>
  1696. <entry>Level 5.1</entry>
  1697. </row>
  1698. </tbody>
  1699. </entrytbl>
  1700. </row>
  1701. <row><entry></entry></row>
  1702. <row id="v4l2-mpeg-video-mpeg4-level">
  1703. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL</constant>&nbsp;</entry>
  1704. <entry>enum&nbsp;v4l2_mpeg_video_mpeg4_level</entry>
  1705. </row>
  1706. <row><entry spanname="descr">The level information for the MPEG4 elementary stream.
  1707. Applicable to the MPEG4 encoder.
  1708. Possible values are:</entry>
  1709. </row>
  1710. <row>
  1711. <entrytbl spanname="descr" cols="2">
  1712. <tbody valign="top">
  1713. <row>
  1714. <entry><constant>V4L2_MPEG_VIDEO_LEVEL_0</constant>&nbsp;</entry>
  1715. <entry>Level 0</entry>
  1716. </row>
  1717. <row>
  1718. <entry><constant>V4L2_MPEG_VIDEO_LEVEL_0B</constant>&nbsp;</entry>
  1719. <entry>Level 0b</entry>
  1720. </row>
  1721. <row>
  1722. <entry><constant>V4L2_MPEG_VIDEO_LEVEL_1</constant>&nbsp;</entry>
  1723. <entry>Level 1</entry>
  1724. </row>
  1725. <row>
  1726. <entry><constant>V4L2_MPEG_VIDEO_LEVEL_2</constant>&nbsp;</entry>
  1727. <entry>Level 2</entry>
  1728. </row>
  1729. <row>
  1730. <entry><constant>V4L2_MPEG_VIDEO_LEVEL_3</constant>&nbsp;</entry>
  1731. <entry>Level 3</entry>
  1732. </row>
  1733. <row>
  1734. <entry><constant>V4L2_MPEG_VIDEO_LEVEL_3B</constant>&nbsp;</entry>
  1735. <entry>Level 3b</entry>
  1736. </row>
  1737. <row>
  1738. <entry><constant>V4L2_MPEG_VIDEO_LEVEL_4</constant>&nbsp;</entry>
  1739. <entry>Level 4</entry>
  1740. </row>
  1741. <row>
  1742. <entry><constant>V4L2_MPEG_VIDEO_LEVEL_5</constant>&nbsp;</entry>
  1743. <entry>Level 5</entry>
  1744. </row>
  1745. </tbody>
  1746. </entrytbl>
  1747. </row>
  1748. <row><entry></entry></row>
  1749. <row id="v4l2-mpeg-video-h264-profile">
  1750. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_PROFILE</constant>&nbsp;</entry>
  1751. <entry>enum&nbsp;v4l2_mpeg_video_h264_profile</entry>
  1752. </row>
  1753. <row><entry spanname="descr">The profile information for H264.
  1754. Applicable to the H264 encoder.
  1755. Possible values are:</entry>
  1756. </row>
  1757. <row>
  1758. <entrytbl spanname="descr" cols="2">
  1759. <tbody valign="top">
  1760. <row>
  1761. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE</constant>&nbsp;</entry>
  1762. <entry>Baseline profile</entry>
  1763. </row>
  1764. <row>
  1765. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_BASELINE</constant>&nbsp;</entry>
  1766. <entry>Constrained Baseline profile</entry>
  1767. </row>
  1768. <row>
  1769. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_MAIN</constant>&nbsp;</entry>
  1770. <entry>Main profile</entry>
  1771. </row>
  1772. <row>
  1773. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED</constant>&nbsp;</entry>
  1774. <entry>Extended profile</entry>
  1775. </row>
  1776. <row>
  1777. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH</constant>&nbsp;</entry>
  1778. <entry>High profile</entry>
  1779. </row>
  1780. <row>
  1781. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_10</constant>&nbsp;</entry>
  1782. <entry>High 10 profile</entry>
  1783. </row>
  1784. <row>
  1785. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_422</constant>&nbsp;</entry>
  1786. <entry>High 422 profile</entry>
  1787. </row>
  1788. <row>
  1789. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_444_PREDICTIVE</constant>&nbsp;</entry>
  1790. <entry>High 444 Predictive profile</entry>
  1791. </row>
  1792. <row>
  1793. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_10_INTRA</constant>&nbsp;</entry>
  1794. <entry>High 10 Intra profile</entry>
  1795. </row>
  1796. <row>
  1797. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_422_INTRA</constant>&nbsp;</entry>
  1798. <entry>High 422 Intra profile</entry>
  1799. </row>
  1800. <row>
  1801. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_444_INTRA</constant>&nbsp;</entry>
  1802. <entry>High 444 Intra profile</entry>
  1803. </row>
  1804. <row>
  1805. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_CAVLC_444_INTRA</constant>&nbsp;</entry>
  1806. <entry>CAVLC 444 Intra profile</entry>
  1807. </row>
  1808. <row>
  1809. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_BASELINE</constant>&nbsp;</entry>
  1810. <entry>Scalable Baseline profile</entry>
  1811. </row>
  1812. <row>
  1813. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_HIGH</constant>&nbsp;</entry>
  1814. <entry>Scalable High profile</entry>
  1815. </row>
  1816. <row>
  1817. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_HIGH_INTRA</constant>&nbsp;</entry>
  1818. <entry>Scalable High Intra profile</entry>
  1819. </row>
  1820. <row>
  1821. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_STEREO_HIGH</constant>&nbsp;</entry>
  1822. <entry>Stereo High profile</entry>
  1823. </row>
  1824. <row>
  1825. <entry><constant>V4L2_MPEG_VIDEO_H264_PROFILE_MULTIVIEW_HIGH</constant>&nbsp;</entry>
  1826. <entry>Multiview High profile</entry>
  1827. </row>
  1828. </tbody>
  1829. </entrytbl>
  1830. </row>
  1831. <row><entry></entry></row>
  1832. <row id="v4l2-mpeg-video-mpeg4-profile">
  1833. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_PROFILE</constant>&nbsp;</entry>
  1834. <entry>enum&nbsp;v4l2_mpeg_video_mpeg4_profile</entry>
  1835. </row>
  1836. <row><entry spanname="descr">The profile information for MPEG4.
  1837. Applicable to the MPEG4 encoder.
  1838. Possible values are:</entry>
  1839. </row>
  1840. <row>
  1841. <entrytbl spanname="descr" cols="2">
  1842. <tbody valign="top">
  1843. <row>
  1844. <entry><constant>V4L2_MPEG_VIDEO_PROFILE_SIMPLE</constant>&nbsp;</entry>
  1845. <entry>Simple profile</entry>
  1846. </row>
  1847. <row>
  1848. <entry><constant>V4L2_MPEG_VIDEO_PROFILE_ADVANCED_SIMPLE</constant>&nbsp;</entry>
  1849. <entry>Advanced Simple profile</entry>
  1850. </row>
  1851. <row>
  1852. <entry><constant>V4L2_MPEG_VIDEO_PROFILE_CORE</constant>&nbsp;</entry>
  1853. <entry>Core profile</entry>
  1854. </row>
  1855. <row>
  1856. <entry><constant>V4L2_MPEG_VIDEO_PROFILE_SIMPLE_SCALABLE</constant>&nbsp;</entry>
  1857. <entry>Simple Scalable profile</entry>
  1858. </row>
  1859. <row>
  1860. <entry><constant>V4L2_MPEG_VIDEO_PROFILE_ADVANCED_CODING_EFFICIENCY</constant>&nbsp;</entry>
  1861. <entry></entry>
  1862. </row>
  1863. </tbody>
  1864. </entrytbl>
  1865. </row>
  1866. <row><entry></entry></row>
  1867. <row>
  1868. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MAX_REF_PIC</constant>&nbsp;</entry>
  1869. <entry>integer</entry>
  1870. </row>
  1871. <row><entry spanname="descr">The maximum number of reference pictures used for encoding.
  1872. Applicable to the encoder.
  1873. </entry>
  1874. </row>
  1875. <row><entry></entry></row>
  1876. <row id="v4l2-mpeg-video-multi-slice-mode">
  1877. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE</constant>&nbsp;</entry>
  1878. <entry>enum&nbsp;v4l2_mpeg_video_multi_slice_mode</entry>
  1879. </row>
  1880. <row><entry spanname="descr">Determines how the encoder should handle division of frame into slices.
  1881. Applicable to the encoder.
  1882. Possible values are:</entry>
  1883. </row>
  1884. <row>
  1885. <entrytbl spanname="descr" cols="2">
  1886. <tbody valign="top">
  1887. <row>
  1888. <entry><constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_SINGLE</constant>&nbsp;</entry>
  1889. <entry>Single slice per frame.</entry>
  1890. </row>
  1891. <row>
  1892. <entry><constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_MB</constant>&nbsp;</entry>
  1893. <entry>Multiple slices with set maximum number of macroblocks per slice.</entry>
  1894. </row>
  1895. <row>
  1896. <entry><constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_BYTES</constant>&nbsp;</entry>
  1897. <entry>Multiple slice with set maximum size in bytes per slice.</entry>
  1898. </row>
  1899. </tbody>
  1900. </entrytbl>
  1901. </row>
  1902. <row><entry></entry></row>
  1903. <row>
  1904. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_MB</constant>&nbsp;</entry>
  1905. <entry>integer</entry>
  1906. </row>
  1907. <row><entry spanname="descr">The maximum number of macroblocks in a slice. Used when
  1908. <constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE</constant> is set to <constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_MB</constant>.
  1909. Applicable to the encoder.</entry>
  1910. </row>
  1911. <row><entry></entry></row>
  1912. <row>
  1913. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_BYTES</constant>&nbsp;</entry>
  1914. <entry>integer</entry>
  1915. </row>
  1916. <row><entry spanname="descr">The maximum size of a slice in bytes. Used when
  1917. <constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE</constant> is set to <constant>V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_BYTES</constant>.
  1918. Applicable to the encoder.</entry>
  1919. </row>
  1920. <row><entry></entry></row>
  1921. <row id="v4l2-mpeg-video-h264-loop-filter-mode">
  1922. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_MODE</constant>&nbsp;</entry>
  1923. <entry>enum&nbsp;v4l2_mpeg_video_h264_loop_filter_mode</entry>
  1924. </row>
  1925. <row><entry spanname="descr">Loop filter mode for H264 encoder.
  1926. Possible values are:</entry>
  1927. </row>
  1928. <row>
  1929. <entrytbl spanname="descr" cols="2">
  1930. <tbody valign="top">
  1931. <row>
  1932. <entry><constant>V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_ENABLED</constant>&nbsp;</entry>
  1933. <entry>Loop filter is enabled.</entry>
  1934. </row>
  1935. <row>
  1936. <entry><constant>V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED</constant>&nbsp;</entry>
  1937. <entry>Loop filter is disabled.</entry>
  1938. </row>
  1939. <row>
  1940. <entry><constant>V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED_AT_SLICE_BOUNDARY</constant>&nbsp;</entry>
  1941. <entry>Loop filter is disabled at the slice boundary.</entry>
  1942. </row>
  1943. </tbody>
  1944. </entrytbl>
  1945. </row>
  1946. <row><entry></entry></row>
  1947. <row>
  1948. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_ALPHA</constant>&nbsp;</entry>
  1949. <entry>integer</entry>
  1950. </row>
  1951. <row><entry spanname="descr">Loop filter alpha coefficient, defined in the H264 standard.
  1952. Applicable to the H264 encoder.</entry>
  1953. </row>
  1954. <row><entry></entry></row>
  1955. <row>
  1956. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_BETA</constant>&nbsp;</entry>
  1957. <entry>integer</entry>
  1958. </row>
  1959. <row><entry spanname="descr">Loop filter beta coefficient, defined in the H264 standard.
  1960. Applicable to the H264 encoder.</entry>
  1961. </row>
  1962. <row><entry></entry></row>
  1963. <row id="v4l2-mpeg-video-h264-entropy-mode">
  1964. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_ENTROPY_MODE</constant>&nbsp;</entry>
  1965. <entry>enum&nbsp;v4l2_mpeg_video_h264_entropy_mode</entry>
  1966. </row>
  1967. <row><entry spanname="descr">Entropy coding mode for H264 - CABAC/CAVALC.
  1968. Applicable to the H264 encoder.
  1969. Possible values are:</entry>
  1970. </row>
  1971. <row>
  1972. <entrytbl spanname="descr" cols="2">
  1973. <tbody valign="top">
  1974. <row>
  1975. <entry><constant>V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CAVLC</constant>&nbsp;</entry>
  1976. <entry>Use CAVLC entropy coding.</entry>
  1977. </row>
  1978. <row>
  1979. <entry><constant>V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC</constant>&nbsp;</entry>
  1980. <entry>Use CABAC entropy coding.</entry>
  1981. </row>
  1982. </tbody>
  1983. </entrytbl>
  1984. </row>
  1985. <row><entry></entry></row>
  1986. <row>
  1987. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_8X8_TRANSFORM</constant>&nbsp;</entry>
  1988. <entry>boolean</entry>
  1989. </row>
  1990. <row><entry spanname="descr">Enable 8X8 transform for H264. Applicable to the H264 encoder.</entry>
  1991. </row>
  1992. <row><entry></entry></row>
  1993. <row>
  1994. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_CYCLIC_INTRA_REFRESH_MB</constant>&nbsp;</entry>
  1995. <entry>integer</entry>
  1996. </row>
  1997. <row><entry spanname="descr">Cyclic intra macroblock refresh. This is the number of continuous macroblocks
  1998. refreshed every frame. Each frame a successive set of macroblocks is refreshed until the cycle completes and starts from the
  1999. top of the frame. Applicable to H264, H263 and MPEG4 encoder.</entry>
  2000. </row>
  2001. <row><entry></entry></row>
  2002. <row>
  2003. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_FRAME_RC_ENABLE</constant>&nbsp;</entry>
  2004. <entry>boolean</entry>
  2005. </row>
  2006. <row><entry spanname="descr">Frame level rate control enable.
  2007. If this control is disabled then the quantization parameter for each frame type is constant and set with appropriate controls
  2008. (e.g. <constant>V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP</constant>).
  2009. If frame rate control is enabled then quantization parameter is adjusted to meet the chosen bitrate. Minimum and maximum value
  2010. for the quantization parameter can be set with appropriate controls (e.g. <constant>V4L2_CID_MPEG_VIDEO_H263_MIN_QP</constant>).
  2011. Applicable to encoders.</entry>
  2012. </row>
  2013. <row><entry></entry></row>
  2014. <row>
  2015. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>&nbsp;</entry>
  2016. <entry>boolean</entry>
  2017. </row>
  2018. <row><entry spanname="descr">Macroblock level rate control enable.
  2019. Applicable to the MPEG4 and H264 encoders.</entry>
  2020. </row>
  2021. <row><entry></entry></row>
  2022. <row>
  2023. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_QPEL</constant>&nbsp;</entry>
  2024. <entry>boolean</entry>
  2025. </row>
  2026. <row><entry spanname="descr">Quarter pixel motion estimation for MPEG4. Applicable to the MPEG4 encoder.</entry>
  2027. </row>
  2028. <row><entry></entry></row>
  2029. <row>
  2030. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP</constant>&nbsp;</entry>
  2031. <entry>integer</entry>
  2032. </row>
  2033. <row><entry spanname="descr">Quantization parameter for an I frame for H263. Valid range: from 1 to 31.</entry>
  2034. </row>
  2035. <row><entry></entry></row>
  2036. <row>
  2037. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_MIN_QP</constant>&nbsp;</entry>
  2038. <entry>integer</entry>
  2039. </row>
  2040. <row><entry spanname="descr">Minimum quantization parameter for H263. Valid range: from 1 to 31.</entry>
  2041. </row>
  2042. <row><entry></entry></row>
  2043. <row>
  2044. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_MAX_QP</constant>&nbsp;</entry>
  2045. <entry>integer</entry>
  2046. </row>
  2047. <row><entry spanname="descr">Maximum quantization parameter for H263. Valid range: from 1 to 31.</entry>
  2048. </row>
  2049. <row><entry></entry></row>
  2050. <row>
  2051. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_P_FRAME_QP</constant>&nbsp;</entry>
  2052. <entry>integer</entry>
  2053. </row>
  2054. <row><entry spanname="descr">Quantization parameter for an P frame for H263. Valid range: from 1 to 31.</entry>
  2055. </row>
  2056. <row><entry></entry></row>
  2057. <row>
  2058. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H263_B_FRAME_QP</constant>&nbsp;</entry>
  2059. <entry>integer</entry>
  2060. </row>
  2061. <row><entry spanname="descr">Quantization parameter for an B frame for H263. Valid range: from 1 to 31.</entry>
  2062. </row>
  2063. <row><entry></entry></row>
  2064. <row>
  2065. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_I_FRAME_QP</constant>&nbsp;</entry>
  2066. <entry>integer</entry>
  2067. </row>
  2068. <row><entry spanname="descr">Quantization parameter for an I frame for H264. Valid range: from 0 to 51.</entry>
  2069. </row>
  2070. <row><entry></entry></row>
  2071. <row>
  2072. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_MIN_QP</constant>&nbsp;</entry>
  2073. <entry>integer</entry>
  2074. </row>
  2075. <row><entry spanname="descr">Minimum quantization parameter for H264. Valid range: from 0 to 51.</entry>
  2076. </row>
  2077. <row><entry></entry></row>
  2078. <row>
  2079. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_MAX_QP</constant>&nbsp;</entry>
  2080. <entry>integer</entry>
  2081. </row>
  2082. <row><entry spanname="descr">Maximum quantization parameter for H264. Valid range: from 0 to 51.</entry>
  2083. </row>
  2084. <row><entry></entry></row>
  2085. <row>
  2086. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_P_FRAME_QP</constant>&nbsp;</entry>
  2087. <entry>integer</entry>
  2088. </row>
  2089. <row><entry spanname="descr">Quantization parameter for an P frame for H264. Valid range: from 0 to 51.</entry>
  2090. </row>
  2091. <row><entry></entry></row>
  2092. <row>
  2093. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_B_FRAME_QP</constant>&nbsp;</entry>
  2094. <entry>integer</entry>
  2095. </row>
  2096. <row><entry spanname="descr">Quantization parameter for an B frame for H264. Valid range: from 0 to 51.</entry>
  2097. </row>
  2098. <row><entry></entry></row>
  2099. <row>
  2100. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_I_FRAME_QP</constant>&nbsp;</entry>
  2101. <entry>integer</entry>
  2102. </row>
  2103. <row><entry spanname="descr">Quantization parameter for an I frame for MPEG4. Valid range: from 1 to 31.</entry>
  2104. </row>
  2105. <row><entry></entry></row>
  2106. <row>
  2107. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_MIN_QP</constant>&nbsp;</entry>
  2108. <entry>integer</entry>
  2109. </row>
  2110. <row><entry spanname="descr">Minimum quantization parameter for MPEG4. Valid range: from 1 to 31.</entry>
  2111. </row>
  2112. <row><entry></entry></row>
  2113. <row>
  2114. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_MAX_QP</constant>&nbsp;</entry>
  2115. <entry>integer</entry>
  2116. </row>
  2117. <row><entry spanname="descr">Maximum quantization parameter for MPEG4. Valid range: from 1 to 31.</entry>
  2118. </row>
  2119. <row><entry></entry></row>
  2120. <row>
  2121. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_P_FRAME_QP</constant>&nbsp;</entry>
  2122. <entry>integer</entry>
  2123. </row>
  2124. <row><entry spanname="descr">Quantization parameter for an P frame for MPEG4. Valid range: from 1 to 31.</entry>
  2125. </row>
  2126. <row><entry></entry></row>
  2127. <row>
  2128. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_B_FRAME_QP</constant>&nbsp;</entry>
  2129. <entry>integer</entry>
  2130. </row>
  2131. <row><entry spanname="descr">Quantization parameter for an B frame for MPEG4. Valid range: from 1 to 31.</entry>
  2132. </row>
  2133. <row><entry></entry></row>
  2134. <row>
  2135. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VBV_SIZE</constant>&nbsp;</entry>
  2136. <entry>integer</entry>
  2137. </row>
  2138. <row><entry spanname="descr">The Video Buffer Verifier size in kilobytes, it is used as a limitation of frame skip.
  2139. The VBV is defined in the standard as a mean to verify that the produced stream will be successfully decoded.
  2140. The standard describes it as "Part of a hypothetical decoder that is conceptually connected to the
  2141. output of the encoder. Its purpose is to provide a constraint on the variability of the data rate that an
  2142. encoder or editing process may produce.".
  2143. Applicable to the MPEG1, MPEG2, MPEG4 encoders.</entry>
  2144. </row>
  2145. <row><entry></entry></row>
  2146. <row id="v4l2-mpeg-video-vbv-delay">
  2147. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_VBV_DELAY</constant>&nbsp;</entry>
  2148. <entry>integer</entry>
  2149. </row><row><entry spanname="descr">Sets the initial delay in milliseconds for
  2150. VBV buffer control.</entry>
  2151. </row>
  2152. <row><entry></entry></row>
  2153. <row>
  2154. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_CPB_SIZE</constant>&nbsp;</entry>
  2155. <entry>integer</entry>
  2156. </row>
  2157. <row><entry spanname="descr">The Coded Picture Buffer size in kilobytes, it is used as a limitation of frame skip.
  2158. The CPB is defined in the H264 standard as a mean to verify that the produced stream will be successfully decoded.
  2159. Applicable to the H264 encoder.</entry>
  2160. </row>
  2161. <row><entry></entry></row>
  2162. <row>
  2163. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_I_PERIOD</constant>&nbsp;</entry>
  2164. <entry>integer</entry>
  2165. </row>
  2166. <row><entry spanname="descr">Period between I-frames in the open GOP for H264. In case of an open GOP
  2167. this is the period between two I-frames. The period between IDR (Instantaneous Decoding Refresh) frames is taken from the GOP_SIZE control.
  2168. An IDR frame, which stands for Instantaneous Decoding Refresh is an I-frame after which no prior frames are
  2169. referenced. This means that a stream can be restarted from an IDR frame without the need to store or decode any
  2170. previous frames. Applicable to the H264 encoder.</entry>
  2171. </row>
  2172. <row><entry></entry></row>
  2173. <row id="v4l2-mpeg-video-header-mode">
  2174. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_HEADER_MODE</constant>&nbsp;</entry>
  2175. <entry>enum&nbsp;v4l2_mpeg_video_header_mode</entry>
  2176. </row>
  2177. <row><entry spanname="descr">Determines whether the header is returned as the first buffer or is
  2178. it returned together with the first frame. Applicable to encoders.
  2179. Possible values are:</entry>
  2180. </row>
  2181. <row>
  2182. <entrytbl spanname="descr" cols="2">
  2183. <tbody valign="top">
  2184. <row>
  2185. <entry><constant>V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE</constant>&nbsp;</entry>
  2186. <entry>The stream header is returned separately in the first buffer.</entry>
  2187. </row>
  2188. <row>
  2189. <entry><constant>V4L2_MPEG_VIDEO_HEADER_MODE_JOINED_WITH_1ST_FRAME</constant>&nbsp;</entry>
  2190. <entry>The stream header is returned together with the first encoded frame.</entry>
  2191. </row>
  2192. </tbody>
  2193. </entrytbl>
  2194. </row>
  2195. <row><entry></entry></row>
  2196. <row>
  2197. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_REPEAT_SEQ_HEADER</constant>&nbsp;</entry>
  2198. <entry>boolean</entry>
  2199. </row><row><entry spanname="descr">Repeat the video sequence headers. Repeating these
  2200. headers makes random access to the video stream easier. Applicable to the MPEG1, 2 and 4 encoder.</entry>
  2201. </row>
  2202. <row>
  2203. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_DECODER_MPEG4_DEBLOCK_FILTER</constant>&nbsp;</entry>
  2204. <entry>boolean</entry>
  2205. </row><row><entry spanname="descr">Enabled the deblocking post processing filter for MPEG4 decoder.
  2206. Applicable to the MPEG4 decoder.</entry>
  2207. </row>
  2208. <row><entry></entry></row>
  2209. <row>
  2210. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_VOP_TIME_RES</constant>&nbsp;</entry>
  2211. <entry>integer</entry>
  2212. </row><row><entry spanname="descr">vop_time_increment_resolution value for MPEG4. Applicable to the MPEG4 encoder.</entry>
  2213. </row>
  2214. <row><entry></entry></row>
  2215. <row>
  2216. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_VOP_TIME_INC</constant>&nbsp;</entry>
  2217. <entry>integer</entry>
  2218. </row><row><entry spanname="descr">vop_time_increment value for MPEG4. Applicable to the MPEG4 encoder.</entry>
  2219. </row>
  2220. <row><entry></entry></row>
  2221. <row>
  2222. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_SEI_FRAME_PACKING</constant>&nbsp;</entry>
  2223. <entry>boolean</entry>
  2224. </row>
  2225. <row><entry spanname="descr">Enable generation of frame packing supplemental enhancement information in the encoded bitstream.
  2226. The frame packing SEI message contains the arrangement of L and R planes for 3D viewing. Applicable to the H264 encoder.</entry>
  2227. </row>
  2228. <row><entry></entry></row>
  2229. <row>
  2230. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_SEI_FP_CURRENT_FRAME_0</constant>&nbsp;</entry>
  2231. <entry>boolean</entry>
  2232. </row>
  2233. <row><entry spanname="descr">Sets current frame as frame0 in frame packing SEI.
  2234. Applicable to the H264 encoder.</entry>
  2235. </row>
  2236. <row><entry></entry></row>
  2237. <row id="v4l2-mpeg-video-h264-sei-fp-arrangement-type">
  2238. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE</constant>&nbsp;</entry>
  2239. <entry>enum&nbsp;v4l2_mpeg_video_h264_sei_fp_arrangement_type</entry>
  2240. </row>
  2241. <row><entry spanname="descr">Frame packing arrangement type for H264 SEI.
  2242. Applicable to the H264 encoder.
  2243. Possible values are:</entry>
  2244. </row>
  2245. <row>
  2246. <entrytbl spanname="descr" cols="2">
  2247. <tbody valign="top">
  2248. <row>
  2249. <entry><constant>V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_CHEKERBOARD</constant>&nbsp;</entry>
  2250. <entry>Pixels are alternatively from L and R.</entry>
  2251. </row>
  2252. <row>
  2253. <entry><constant>V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_COLUMN</constant>&nbsp;</entry>
  2254. <entry>L and R are interlaced by column.</entry>
  2255. </row>
  2256. <row>
  2257. <entry><constant>V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_ROW</constant>&nbsp;</entry>
  2258. <entry>L and R are interlaced by row.</entry>
  2259. </row>
  2260. <row>
  2261. <entry><constant>V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_SIDE_BY_SIDE</constant>&nbsp;</entry>
  2262. <entry>L is on the left, R on the right.</entry>
  2263. </row>
  2264. <row>
  2265. <entry><constant>V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_TOP_BOTTOM</constant>&nbsp;</entry>
  2266. <entry>L is on top, R on bottom.</entry>
  2267. </row>
  2268. <row>
  2269. <entry><constant>V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_TEMPORAL</constant>&nbsp;</entry>
  2270. <entry>One view per frame.</entry>
  2271. </row>
  2272. </tbody>
  2273. </entrytbl>
  2274. </row>
  2275. <row><entry></entry></row>
  2276. <row>
  2277. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_FMO</constant>&nbsp;</entry>
  2278. <entry>boolean</entry>
  2279. </row>
  2280. <row><entry spanname="descr">Enables flexible macroblock ordering in the encoded bitstream. It is a technique
  2281. used for restructuring the ordering of macroblocks in pictures. Applicable to the H264 encoder.</entry>
  2282. </row>
  2283. <row><entry></entry></row>
  2284. <row id="v4l2-mpeg-video-h264-fmo-map-type">
  2285. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_FMO_MAP_TYPE</constant>&nbsp;</entry>
  2286. <entry>enum&nbsp;v4l2_mpeg_video_h264_fmo_map_type</entry>
  2287. </row>
  2288. <row><entry spanname="descr">When using FMO, the map type divides the image in different scan patterns of macroblocks.
  2289. Applicable to the H264 encoder.
  2290. Possible values are:</entry>
  2291. </row>
  2292. <row>
  2293. <entrytbl spanname="descr" cols="2">
  2294. <tbody valign="top">
  2295. <row>
  2296. <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_INTERLEAVED_SLICES</constant>&nbsp;</entry>
  2297. <entry>Slices are interleaved one after other with macroblocks in run length order.</entry>
  2298. </row>
  2299. <row>
  2300. <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_SCATTERED_SLICES</constant>&nbsp;</entry>
  2301. <entry>Scatters the macroblocks based on a mathematical function known to both encoder and decoder.</entry>
  2302. </row>
  2303. <row>
  2304. <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_FOREGROUND_WITH_LEFT_OVER</constant>&nbsp;</entry>
  2305. <entry>Macroblocks arranged in rectangular areas or regions of interest.</entry>
  2306. </row>
  2307. <row>
  2308. <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_BOX_OUT</constant>&nbsp;</entry>
  2309. <entry>Slice groups grow in a cyclic way from centre to outwards.</entry>
  2310. </row>
  2311. <row>
  2312. <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_RASTER_SCAN</constant>&nbsp;</entry>
  2313. <entry>Slice groups grow in raster scan pattern from left to right.</entry>
  2314. </row>
  2315. <row>
  2316. <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_WIPE_SCAN</constant>&nbsp;</entry>
  2317. <entry>Slice groups grow in wipe scan pattern from top to bottom.</entry>
  2318. </row>
  2319. <row>
  2320. <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_EXPLICIT</constant>&nbsp;</entry>
  2321. <entry>User defined map type.</entry>
  2322. </row>
  2323. </tbody>
  2324. </entrytbl>
  2325. </row>
  2326. <row><entry></entry></row>
  2327. <row>
  2328. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_FMO_SLICE_GROUP</constant>&nbsp;</entry>
  2329. <entry>integer</entry>
  2330. </row>
  2331. <row><entry spanname="descr">Number of slice groups in FMO.
  2332. Applicable to the H264 encoder.</entry>
  2333. </row>
  2334. <row><entry></entry></row>
  2335. <row id="v4l2-mpeg-video-h264-fmo-change-direction">
  2336. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_FMO_CHANGE_DIRECTION</constant>&nbsp;</entry>
  2337. <entry>enum&nbsp;v4l2_mpeg_video_h264_fmo_change_dir</entry>
  2338. </row>
  2339. <row><entry spanname="descr">Specifies a direction of the slice group change for raster and wipe maps.
  2340. Applicable to the H264 encoder.
  2341. Possible values are:</entry>
  2342. </row>
  2343. <row>
  2344. <entrytbl spanname="descr" cols="2">
  2345. <tbody valign="top">
  2346. <row>
  2347. <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_CHANGE_DIR_RIGHT</constant>&nbsp;</entry>
  2348. <entry>Raster scan or wipe right.</entry>
  2349. </row>
  2350. <row>
  2351. <entry><constant>V4L2_MPEG_VIDEO_H264_FMO_CHANGE_DIR_LEFT</constant>&nbsp;</entry>
  2352. <entry>Reverse raster scan or wipe left.</entry>
  2353. </row>
  2354. </tbody>
  2355. </entrytbl>
  2356. </row>
  2357. <row><entry></entry></row>
  2358. <row>
  2359. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_FMO_CHANGE_RATE</constant>&nbsp;</entry>
  2360. <entry>integer</entry>
  2361. </row>
  2362. <row><entry spanname="descr">Specifies the size of the first slice group for raster and wipe map.
  2363. Applicable to the H264 encoder.</entry>
  2364. </row>
  2365. <row><entry></entry></row>
  2366. <row>
  2367. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_FMO_RUN_LENGTH</constant>&nbsp;</entry>
  2368. <entry>integer</entry>
  2369. </row>
  2370. <row><entry spanname="descr">Specifies the number of consecutive macroblocks for the interleaved map.
  2371. Applicable to the H264 encoder.</entry>
  2372. </row>
  2373. <row><entry></entry></row>
  2374. <row>
  2375. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_ASO</constant>&nbsp;</entry>
  2376. <entry>boolean</entry>
  2377. </row>
  2378. <row><entry spanname="descr">Enables arbitrary slice ordering in encoded bitstream.
  2379. Applicable to the H264 encoder.</entry>
  2380. </row>
  2381. <row><entry></entry></row>
  2382. <row>
  2383. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_ASO_SLICE_ORDER</constant>&nbsp;</entry>
  2384. <entry>integer</entry>
  2385. </row><row><entry spanname="descr">Specifies the slice order in ASO. Applicable to the H264 encoder.
  2386. The supplied 32-bit integer is interpreted as follows (bit
  2387. 0 = least significant bit):</entry>
  2388. </row>
  2389. <row>
  2390. <entrytbl spanname="descr" cols="2">
  2391. <tbody valign="top">
  2392. <row>
  2393. <entry>Bit 0:15</entry>
  2394. <entry>Slice ID</entry>
  2395. </row>
  2396. <row>
  2397. <entry>Bit 16:32</entry>
  2398. <entry>Slice position or order</entry>
  2399. </row>
  2400. </tbody>
  2401. </entrytbl>
  2402. </row>
  2403. <row><entry></entry></row>
  2404. <row>
  2405. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING</constant>&nbsp;</entry>
  2406. <entry>boolean</entry>
  2407. </row>
  2408. <row><entry spanname="descr">Enables H264 hierarchical coding.
  2409. Applicable to the H264 encoder.</entry>
  2410. </row>
  2411. <row><entry></entry></row>
  2412. <row id="v4l2-mpeg-video-h264-hierarchical-coding-type">
  2413. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_TYPE</constant>&nbsp;</entry>
  2414. <entry>enum&nbsp;v4l2_mpeg_video_h264_hierarchical_coding_type</entry>
  2415. </row>
  2416. <row><entry spanname="descr">Specifies the hierarchical coding type.
  2417. Applicable to the H264 encoder.
  2418. Possible values are:</entry>
  2419. </row>
  2420. <row>
  2421. <entrytbl spanname="descr" cols="2">
  2422. <tbody valign="top">
  2423. <row>
  2424. <entry><constant>V4L2_MPEG_VIDEO_H264_HIERARCHICAL_CODING_B</constant>&nbsp;</entry>
  2425. <entry>Hierarchical B coding.</entry>
  2426. </row>
  2427. <row>
  2428. <entry><constant>V4L2_MPEG_VIDEO_H264_HIERARCHICAL_CODING_P</constant>&nbsp;</entry>
  2429. <entry>Hierarchical P coding.</entry>
  2430. </row>
  2431. </tbody>
  2432. </entrytbl>
  2433. </row>
  2434. <row><entry></entry></row>
  2435. <row>
  2436. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_LAYER</constant>&nbsp;</entry>
  2437. <entry>integer</entry>
  2438. </row>
  2439. <row><entry spanname="descr">Specifies the number of hierarchical coding layers.
  2440. Applicable to the H264 encoder.</entry>
  2441. </row>
  2442. <row><entry></entry></row>
  2443. <row>
  2444. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_LAYER_QP</constant>&nbsp;</entry>
  2445. <entry>integer</entry>
  2446. </row><row><entry spanname="descr">Specifies a user defined QP for each layer. Applicable to the H264 encoder.
  2447. The supplied 32-bit integer is interpreted as follows (bit
  2448. 0 = least significant bit):</entry>
  2449. </row>
  2450. <row>
  2451. <entrytbl spanname="descr" cols="2">
  2452. <tbody valign="top">
  2453. <row>
  2454. <entry>Bit 0:15</entry>
  2455. <entry>QP value</entry>
  2456. </row>
  2457. <row>
  2458. <entry>Bit 16:32</entry>
  2459. <entry>Layer number</entry>
  2460. </row>
  2461. </tbody>
  2462. </entrytbl>
  2463. </row>
  2464. </tbody>
  2465. </tgroup>
  2466. </table>
  2467. </section>
  2468. <section>
  2469. <title>MFC 5.1 MPEG Controls</title>
  2470. <para>The following MPEG class controls deal with MPEG
  2471. decoding and encoding settings that are specific to the Multi Format Codec 5.1 device present
  2472. in the S5P family of SoCs by Samsung.
  2473. </para>
  2474. <table pgwide="1" frame="none" id="mfc51-control-id">
  2475. <title>MFC 5.1 Control IDs</title>
  2476. <tgroup cols="4">
  2477. <colspec colname="c1" colwidth="1*" />
  2478. <colspec colname="c2" colwidth="6*" />
  2479. <colspec colname="c3" colwidth="2*" />
  2480. <colspec colname="c4" colwidth="6*" />
  2481. <spanspec namest="c1" nameend="c2" spanname="id" />
  2482. <spanspec namest="c2" nameend="c4" spanname="descr" />
  2483. <thead>
  2484. <row>
  2485. <entry spanname="id" align="left">ID</entry>
  2486. <entry align="left">Type</entry>
  2487. </row><row><entry spanname="descr" align="left">Description</entry>
  2488. </row>
  2489. </thead>
  2490. <tbody valign="top">
  2491. <row><entry></entry></row>
  2492. <row>
  2493. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY_ENABLE</constant>&nbsp;</entry>
  2494. <entry>integer</entry>
  2495. </row><row><entry spanname="descr">If the display delay is enabled then the decoder has to return a
  2496. CAPTURE buffer after processing a certain number of OUTPUT buffers. If this number is low, then it may result in
  2497. buffers not being dequeued in display order. In addition hardware may still use those buffers as reference, thus
  2498. application should not write to those buffers. This feature can be used for example for generating thumbnails of videos.
  2499. Applicable to the H264 decoder.
  2500. </entry>
  2501. </row>
  2502. <row><entry></entry></row>
  2503. <row>
  2504. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY</constant>&nbsp;</entry>
  2505. <entry>integer</entry>
  2506. </row><row><entry spanname="descr">Display delay value for H264 decoder.
  2507. The decoder is forced to return a decoded frame after the set 'display delay' number of frames. If this number is
  2508. low it may result in frames returned out of dispaly order, in addition the hardware may still be using the returned buffer
  2509. as a reference picture for subsequent frames.
  2510. </entry>
  2511. </row>
  2512. <row><entry></entry></row>
  2513. <row>
  2514. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_NUM_REF_PIC_FOR_P</constant>&nbsp;</entry>
  2515. <entry>integer</entry>
  2516. </row><row><entry spanname="descr">The number of reference pictures used for encoding a P picture.
  2517. Applicable to the H264 encoder.</entry>
  2518. </row>
  2519. <row><entry></entry></row>
  2520. <row>
  2521. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_PADDING</constant>&nbsp;</entry>
  2522. <entry>boolean</entry>
  2523. </row><row><entry spanname="descr">Padding enable in the encoder - use a color instead of repeating border pixels.
  2524. Applicable to encoders.</entry>
  2525. </row>
  2526. <row><entry></entry></row>
  2527. <row>
  2528. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_PADDING_YUV</constant>&nbsp;</entry>
  2529. <entry>integer</entry>
  2530. </row><row><entry spanname="descr">Padding color in the encoder. Applicable to encoders. The supplied 32-bit integer is interpreted as follows (bit
  2531. 0 = least significant bit):</entry>
  2532. </row>
  2533. <row>
  2534. <entrytbl spanname="descr" cols="2">
  2535. <tbody valign="top">
  2536. <row>
  2537. <entry>Bit 0:7</entry>
  2538. <entry>V chrominance information</entry>
  2539. </row>
  2540. <row>
  2541. <entry>Bit 8:15</entry>
  2542. <entry>U chrominance information</entry>
  2543. </row>
  2544. <row>
  2545. <entry>Bit 16:23</entry>
  2546. <entry>Y luminance information</entry>
  2547. </row>
  2548. <row>
  2549. <entry>Bit 24:31</entry>
  2550. <entry>Must be zero.</entry>
  2551. </row>
  2552. </tbody>
  2553. </entrytbl>
  2554. </row>
  2555. <row><entry></entry></row>
  2556. <row>
  2557. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_RC_REACTION_COEFF</constant>&nbsp;</entry>
  2558. <entry>integer</entry>
  2559. </row><row><entry spanname="descr">Reaction coefficient for MFC rate control. Applicable to encoders.
  2560. <para>Note 1: Valid only when the frame level RC is enabled.</para>
  2561. <para>Note 2: For tight CBR, this field must be small (ex. 2 ~ 10).
  2562. For VBR, this field must be large (ex. 100 ~ 1000).</para>
  2563. <para>Note 3: It is not recommended to use the greater number than FRAME_RATE * (10^9 / BIT_RATE).</para>
  2564. </entry>
  2565. </row>
  2566. <row><entry></entry></row>
  2567. <row>
  2568. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_DARK</constant>&nbsp;</entry>
  2569. <entry>boolean</entry>
  2570. </row><row><entry spanname="descr">Adaptive rate control for dark region.
  2571. Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
  2572. Applicable to the H264 encoder.</entry>
  2573. </row>
  2574. <row><entry></entry></row>
  2575. <row>
  2576. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_SMOOTH</constant>&nbsp;</entry>
  2577. <entry>boolean</entry>
  2578. </row><row><entry spanname="descr">Adaptive rate control for smooth region.
  2579. Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
  2580. Applicable to the H264 encoder.</entry>
  2581. </row>
  2582. <row><entry></entry></row>
  2583. <row>
  2584. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_STATIC</constant>&nbsp;</entry>
  2585. <entry>boolean</entry>
  2586. </row><row><entry spanname="descr">Adaptive rate control for static region.
  2587. Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
  2588. Applicable to the H264 encoder.</entry>
  2589. </row>
  2590. <row><entry></entry></row>
  2591. <row>
  2592. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_ACTIVITY</constant>&nbsp;</entry>
  2593. <entry>boolean</entry>
  2594. </row><row><entry spanname="descr">Adaptive rate control for activity region.
  2595. Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
  2596. Applicable to the H264 encoder.</entry>
  2597. </row>
  2598. <row><entry></entry></row>
  2599. <row id="v4l2-mpeg-mfc51-video-frame-skip-mode">
  2600. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE</constant>&nbsp;</entry>
  2601. <entry>enum&nbsp;v4l2_mpeg_mfc51_video_frame_skip_mode</entry>
  2602. </row>
  2603. <row><entry spanname="descr">
  2604. Indicates in what conditions the encoder should skip frames. If encoding a frame would cause the encoded stream to be larger then
  2605. a chosen data limit then the frame will be skipped.
  2606. Possible values are:</entry>
  2607. </row>
  2608. <row>
  2609. <entrytbl spanname="descr" cols="2">
  2610. <tbody valign="top">
  2611. <row>
  2612. <entry><constant>V4L2_MPEG_MFC51_FRAME_SKIP_MODE_DISABLED</constant>&nbsp;</entry>
  2613. <entry>Frame skip mode is disabled.</entry>
  2614. </row>
  2615. <row>
  2616. <entry><constant>V4L2_MPEG_MFC51_FRAME_SKIP_MODE_LEVEL_LIMIT</constant>&nbsp;</entry>
  2617. <entry>Frame skip mode enabled and buffer limit is set by the chosen level and is defined by the standard.</entry>
  2618. </row>
  2619. <row>
  2620. <entry><constant>V4L2_MPEG_MFC51_FRAME_SKIP_MODE_BUF_LIMIT</constant>&nbsp;</entry>
  2621. <entry>Frame skip mode enabled and buffer limit is set by the VBV (MPEG1/2/4) or CPB (H264) buffer size control.</entry>
  2622. </row>
  2623. </tbody>
  2624. </entrytbl>
  2625. </row>
  2626. <row><entry></entry></row>
  2627. <row>
  2628. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_RC_FIXED_TARGET_BIT</constant>&nbsp;</entry>
  2629. <entry>integer</entry>
  2630. </row><row><entry spanname="descr">Enable rate-control with fixed target bit.
  2631. If this setting is enabled, then the rate control logic of the encoder will calculate the average bitrate
  2632. for a GOP and keep it below or equal the set bitrate target. Otherwise the rate control logic calculates the
  2633. overall average bitrate for the stream and keeps it below or equal to the set bitrate. In the first case
  2634. the average bitrate for the whole stream will be smaller then the set bitrate. This is caused because the
  2635. average is calculated for smaller number of frames, on the other hand enabling this setting will ensure that
  2636. the stream will meet tight bandwidth contraints. Applicable to encoders.
  2637. </entry>
  2638. </row>
  2639. <row><entry></entry></row>
  2640. <row id="v4l2-mpeg-mfc51-video-force-frame-type">
  2641. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_FORCE_FRAME_TYPE</constant>&nbsp;</entry>
  2642. <entry>enum&nbsp;v4l2_mpeg_mfc51_video_force_frame_type</entry>
  2643. </row>
  2644. <row><entry spanname="descr">Force a frame type for the next queued buffer. Applicable to encoders.
  2645. Possible values are:</entry>
  2646. </row>
  2647. <row>
  2648. <entrytbl spanname="descr" cols="2">
  2649. <tbody valign="top">
  2650. <row>
  2651. <entry><constant>V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_DISABLED</constant>&nbsp;</entry>
  2652. <entry>Forcing a specific frame type disabled.</entry>
  2653. </row>
  2654. <row>
  2655. <entry><constant>V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_I_FRAME</constant>&nbsp;</entry>
  2656. <entry>Force an I-frame.</entry>
  2657. </row>
  2658. <row>
  2659. <entry><constant>V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_NOT_CODED</constant>&nbsp;</entry>
  2660. <entry>Force a non-coded frame.</entry>
  2661. </row>
  2662. </tbody>
  2663. </entrytbl>
  2664. </row>
  2665. </tbody>
  2666. </tgroup>
  2667. </table>
  2668. </section>
  2669. <section>
  2670. <title>CX2341x MPEG Controls</title>
  2671. <para>The following MPEG class controls deal with MPEG
  2672. encoding settings that are specific to the Conexant CX23415 and
  2673. CX23416 MPEG encoding chips.</para>
  2674. <table pgwide="1" frame="none" id="cx2341x-control-id">
  2675. <title>CX2341x Control IDs</title>
  2676. <tgroup cols="4">
  2677. <colspec colname="c1" colwidth="1*" />
  2678. <colspec colname="c2" colwidth="6*" />
  2679. <colspec colname="c3" colwidth="2*" />
  2680. <colspec colname="c4" colwidth="6*" />
  2681. <spanspec namest="c1" nameend="c2" spanname="id" />
  2682. <spanspec namest="c2" nameend="c4" spanname="descr" />
  2683. <thead>
  2684. <row>
  2685. <entry spanname="id" align="left">ID</entry>
  2686. <entry align="left">Type</entry>
  2687. </row><row><entry spanname="descr" align="left">Description</entry>
  2688. </row>
  2689. </thead>
  2690. <tbody valign="top">
  2691. <row><entry></entry></row>
  2692. <row id="v4l2-mpeg-cx2341x-video-spatial-filter-mode">
  2693. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE</constant>&nbsp;</entry>
  2694. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_spatial_filter_mode</entry>
  2695. </row><row><entry spanname="descr">Sets the Spatial
  2696. Filter mode (default <constant>MANUAL</constant>). Possible values
  2697. are:</entry>
  2698. </row>
  2699. <row>
  2700. <entrytbl spanname="descr" cols="2">
  2701. <tbody valign="top">
  2702. <row>
  2703. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_MANUAL</constant>&nbsp;</entry>
  2704. <entry>Choose the filter manually</entry>
  2705. </row>
  2706. <row>
  2707. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO</constant>&nbsp;</entry>
  2708. <entry>Choose the filter automatically</entry>
  2709. </row>
  2710. </tbody>
  2711. </entrytbl>
  2712. </row>
  2713. <row><entry></entry></row>
  2714. <row>
  2715. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER</constant>&nbsp;</entry>
  2716. <entry>integer&nbsp;(0-15)</entry>
  2717. </row><row><entry spanname="descr">The setting for the
  2718. Spatial Filter. 0 = off, 15 = maximum. (Default is 0.)</entry>
  2719. </row>
  2720. <row><entry></entry></row>
  2721. <row id="luma-spatial-filter-type">
  2722. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE</constant>&nbsp;</entry>
  2723. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_luma_spatial_filter_type</entry>
  2724. </row><row><entry spanname="descr">Select the algorithm
  2725. to use for the Luma Spatial Filter (default
  2726. <constant>1D_HOR</constant>). Possible values:</entry>
  2727. </row>
  2728. <row>
  2729. <entrytbl spanname="descr" cols="2">
  2730. <tbody valign="top">
  2731. <row>
  2732. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_OFF</constant>&nbsp;</entry>
  2733. <entry>No filter</entry>
  2734. </row>
  2735. <row>
  2736. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_HOR</constant>&nbsp;</entry>
  2737. <entry>One-dimensional horizontal</entry>
  2738. </row>
  2739. <row>
  2740. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_VERT</constant>&nbsp;</entry>
  2741. <entry>One-dimensional vertical</entry>
  2742. </row>
  2743. <row>
  2744. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_HV_SEPARABLE</constant>&nbsp;</entry>
  2745. <entry>Two-dimensional separable</entry>
  2746. </row>
  2747. <row>
  2748. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_SYM_NON_SEPARABLE</constant>&nbsp;</entry>
  2749. <entry>Two-dimensional symmetrical
  2750. non-separable</entry>
  2751. </row>
  2752. </tbody>
  2753. </entrytbl>
  2754. </row>
  2755. <row><entry></entry></row>
  2756. <row id="chroma-spatial-filter-type">
  2757. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE</constant>&nbsp;</entry>
  2758. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_chroma_spatial_filter_type</entry>
  2759. </row><row><entry spanname="descr">Select the algorithm
  2760. for the Chroma Spatial Filter (default <constant>1D_HOR</constant>).
  2761. Possible values are:</entry>
  2762. </row>
  2763. <row>
  2764. <entrytbl spanname="descr" cols="2">
  2765. <tbody valign="top">
  2766. <row>
  2767. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_OFF</constant>&nbsp;</entry>
  2768. <entry>No filter</entry>
  2769. </row>
  2770. <row>
  2771. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_1D_HOR</constant>&nbsp;</entry>
  2772. <entry>One-dimensional horizontal</entry>
  2773. </row>
  2774. </tbody>
  2775. </entrytbl>
  2776. </row>
  2777. <row><entry></entry></row>
  2778. <row id="v4l2-mpeg-cx2341x-video-temporal-filter-mode">
  2779. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE</constant>&nbsp;</entry>
  2780. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_temporal_filter_mode</entry>
  2781. </row><row><entry spanname="descr">Sets the Temporal
  2782. Filter mode (default <constant>MANUAL</constant>). Possible values
  2783. are:</entry>
  2784. </row>
  2785. <row>
  2786. <entrytbl spanname="descr" cols="2">
  2787. <tbody valign="top">
  2788. <row>
  2789. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_MANUAL</constant>&nbsp;</entry>
  2790. <entry>Choose the filter manually</entry>
  2791. </row>
  2792. <row>
  2793. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO</constant>&nbsp;</entry>
  2794. <entry>Choose the filter automatically</entry>
  2795. </row>
  2796. </tbody>
  2797. </entrytbl>
  2798. </row>
  2799. <row><entry></entry></row>
  2800. <row>
  2801. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER</constant>&nbsp;</entry>
  2802. <entry>integer&nbsp;(0-31)</entry>
  2803. </row><row><entry spanname="descr">The setting for the
  2804. Temporal Filter. 0 = off, 31 = maximum. (Default is 8 for full-scale
  2805. capturing and 0 for scaled capturing.)</entry>
  2806. </row>
  2807. <row><entry></entry></row>
  2808. <row id="v4l2-mpeg-cx2341x-video-median-filter-type">
  2809. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE</constant>&nbsp;</entry>
  2810. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_median_filter_type</entry>
  2811. </row><row><entry spanname="descr">Median Filter Type
  2812. (default <constant>OFF</constant>). Possible values are:</entry>
  2813. </row>
  2814. <row>
  2815. <entrytbl spanname="descr" cols="2">
  2816. <tbody valign="top">
  2817. <row>
  2818. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF</constant>&nbsp;</entry>
  2819. <entry>No filter</entry>
  2820. </row>
  2821. <row>
  2822. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR</constant>&nbsp;</entry>
  2823. <entry>Horizontal filter</entry>
  2824. </row>
  2825. <row>
  2826. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_VERT</constant>&nbsp;</entry>
  2827. <entry>Vertical filter</entry>
  2828. </row>
  2829. <row>
  2830. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR_VERT</constant>&nbsp;</entry>
  2831. <entry>Horizontal and vertical filter</entry>
  2832. </row>
  2833. <row>
  2834. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_DIAG</constant>&nbsp;</entry>
  2835. <entry>Diagonal filter</entry>
  2836. </row>
  2837. </tbody>
  2838. </entrytbl>
  2839. </row>
  2840. <row><entry></entry></row>
  2841. <row>
  2842. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_BOTTOM</constant>&nbsp;</entry>
  2843. <entry>integer&nbsp;(0-255)</entry>
  2844. </row><row><entry spanname="descr">Threshold above which
  2845. the luminance median filter is enabled (default 0)</entry>
  2846. </row>
  2847. <row><entry></entry></row>
  2848. <row>
  2849. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_TOP</constant>&nbsp;</entry>
  2850. <entry>integer&nbsp;(0-255)</entry>
  2851. </row><row><entry spanname="descr">Threshold below which
  2852. the luminance median filter is enabled (default 255)</entry>
  2853. </row>
  2854. <row><entry></entry></row>
  2855. <row>
  2856. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_BOTTOM</constant>&nbsp;</entry>
  2857. <entry>integer&nbsp;(0-255)</entry>
  2858. </row><row><entry spanname="descr">Threshold above which
  2859. the chroma median filter is enabled (default 0)</entry>
  2860. </row>
  2861. <row><entry></entry></row>
  2862. <row>
  2863. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_TOP</constant>&nbsp;</entry>
  2864. <entry>integer&nbsp;(0-255)</entry>
  2865. </row><row><entry spanname="descr">Threshold below which
  2866. the chroma median filter is enabled (default 255)</entry>
  2867. </row>
  2868. <row><entry></entry></row>
  2869. <row>
  2870. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_STREAM_INSERT_NAV_PACKETS</constant>&nbsp;</entry>
  2871. <entry>boolean</entry>
  2872. </row>
  2873. <row><entry spanname="descr">The CX2341X MPEG encoder
  2874. can insert one empty MPEG-2 PES packet into the stream between every
  2875. four video frames. The packet size is 2048 bytes, including the
  2876. packet_start_code_prefix and stream_id fields. The stream_id is 0xBF
  2877. (private stream 2). The payload consists of 0x00 bytes, to be filled
  2878. in by the application. 0 = do not insert, 1 = insert packets.</entry>
  2879. </row>
  2880. </tbody>
  2881. </tgroup>
  2882. </table>
  2883. </section>
  2884. </section>
  2885. <section id="camera-controls">
  2886. <title>Camera Control Reference</title>
  2887. <para>The Camera class includes controls for mechanical (or
  2888. equivalent digital) features of a device such as controllable lenses
  2889. or sensors.</para>
  2890. <table pgwide="1" frame="none" id="camera-control-id">
  2891. <title>Camera Control IDs</title>
  2892. <tgroup cols="4">
  2893. <colspec colname="c1" colwidth="1*" />
  2894. <colspec colname="c2" colwidth="6*" />
  2895. <colspec colname="c3" colwidth="2*" />
  2896. <colspec colname="c4" colwidth="6*" />
  2897. <spanspec namest="c1" nameend="c2" spanname="id" />
  2898. <spanspec namest="c2" nameend="c4" spanname="descr" />
  2899. <thead>
  2900. <row>
  2901. <entry spanname="id" align="left">ID</entry>
  2902. <entry align="left">Type</entry>
  2903. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  2904. </row>
  2905. </thead>
  2906. <tbody valign="top">
  2907. <row><entry></entry></row>
  2908. <row>
  2909. <entry spanname="id"><constant>V4L2_CID_CAMERA_CLASS</constant>&nbsp;</entry>
  2910. <entry>class</entry>
  2911. </row><row><entry spanname="descr">The Camera class
  2912. descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
  2913. description of this control class.</entry>
  2914. </row>
  2915. <row><entry></entry></row>
  2916. <row id="v4l2-exposure-auto-type">
  2917. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_AUTO</constant>&nbsp;</entry>
  2918. <entry>enum&nbsp;v4l2_exposure_auto_type</entry>
  2919. </row><row><entry spanname="descr">Enables automatic
  2920. adjustments of the exposure time and/or iris aperture. The effect of
  2921. manual changes of the exposure time or iris aperture while these
  2922. features are enabled is undefined, drivers should ignore such
  2923. requests. Possible values are:</entry>
  2924. </row>
  2925. <row>
  2926. <entrytbl spanname="descr" cols="2">
  2927. <tbody valign="top">
  2928. <row>
  2929. <entry><constant>V4L2_EXPOSURE_AUTO</constant>&nbsp;</entry>
  2930. <entry>Automatic exposure time, automatic iris
  2931. aperture.</entry>
  2932. </row>
  2933. <row>
  2934. <entry><constant>V4L2_EXPOSURE_MANUAL</constant>&nbsp;</entry>
  2935. <entry>Manual exposure time, manual iris.</entry>
  2936. </row>
  2937. <row>
  2938. <entry><constant>V4L2_EXPOSURE_SHUTTER_PRIORITY</constant>&nbsp;</entry>
  2939. <entry>Manual exposure time, auto iris.</entry>
  2940. </row>
  2941. <row>
  2942. <entry><constant>V4L2_EXPOSURE_APERTURE_PRIORITY</constant>&nbsp;</entry>
  2943. <entry>Auto exposure time, manual iris.</entry>
  2944. </row>
  2945. </tbody>
  2946. </entrytbl>
  2947. </row>
  2948. <row><entry></entry></row>
  2949. <row>
  2950. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_ABSOLUTE</constant>&nbsp;</entry>
  2951. <entry>integer</entry>
  2952. </row><row><entry spanname="descr">Determines the exposure
  2953. time of the camera sensor. The exposure time is limited by the frame
  2954. interval. Drivers should interpret the values as 100 &micro;s units,
  2955. where the value 1 stands for 1/10000th of a second, 10000 for 1 second
  2956. and 100000 for 10 seconds.</entry>
  2957. </row>
  2958. <row><entry></entry></row>
  2959. <row>
  2960. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_AUTO_PRIORITY</constant>&nbsp;</entry>
  2961. <entry>boolean</entry>
  2962. </row><row><entry spanname="descr">When
  2963. <constant>V4L2_CID_EXPOSURE_AUTO</constant> is set to
  2964. <constant>AUTO</constant> or <constant>APERTURE_PRIORITY</constant>,
  2965. this control determines if the device may dynamically vary the frame
  2966. rate. By default this feature is disabled (0) and the frame rate must
  2967. remain constant.</entry>
  2968. </row>
  2969. <row><entry></entry></row>
  2970. <row>
  2971. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_BIAS</constant>&nbsp;</entry>
  2972. <entry>integer menu</entry>
  2973. </row><row><entry spanname="descr"> Determines the automatic
  2974. exposure compensation, it is effective only when <constant>V4L2_CID_EXPOSURE_AUTO</constant>
  2975. control is set to <constant>AUTO</constant>, <constant>SHUTTER_PRIORITY </constant>
  2976. or <constant>APERTURE_PRIORITY</constant>.
  2977. It is expressed in terms of EV, drivers should interpret the values as 0.001 EV
  2978. units, where the value 1000 stands for +1 EV.
  2979. <para>Increasing the exposure compensation value is equivalent to decreasing
  2980. the exposure value (EV) and will increase the amount of light at the image
  2981. sensor. The camera performs the exposure compensation by adjusting absolute
  2982. exposure time and/or aperture.</para></entry>
  2983. </row>
  2984. <row><entry></entry></row>
  2985. <row id="v4l2-exposure-metering">
  2986. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_METERING</constant>&nbsp;</entry>
  2987. <entry>enum&nbsp;v4l2_exposure_metering</entry>
  2988. </row><row><entry spanname="descr">Determines how the camera measures
  2989. the amount of light available for the frame exposure. Possible values are:</entry>
  2990. </row>
  2991. <row>
  2992. <entrytbl spanname="descr" cols="2">
  2993. <tbody valign="top">
  2994. <row>
  2995. <entry><constant>V4L2_EXPOSURE_METERING_AVERAGE</constant>&nbsp;</entry>
  2996. <entry>Use the light information coming from the entire frame
  2997. and average giving no weighting to any particular portion of the metered area.
  2998. </entry>
  2999. </row>
  3000. <row>
  3001. <entry><constant>V4L2_EXPOSURE_METERING_CENTER_WEIGHTED</constant>&nbsp;</entry>
  3002. <entry>Average the light information coming from the entire frame
  3003. giving priority to the center of the metered area.</entry>
  3004. </row>
  3005. <row>
  3006. <entry><constant>V4L2_EXPOSURE_METERING_SPOT</constant>&nbsp;</entry>
  3007. <entry>Measure only very small area at the center of the frame.</entry>
  3008. </row>
  3009. <row>
  3010. <entry><constant>V4L2_EXPOSURE_METERING_MATRIX</constant>&nbsp;</entry>
  3011. <entry>A multi-zone metering. The light intensity is measured
  3012. in several points of the frame and the the results are combined. The
  3013. algorithm of the zones selection and their significance in calculating the
  3014. final value is device dependant.</entry>
  3015. </row>
  3016. </tbody>
  3017. </entrytbl>
  3018. </row>
  3019. <row><entry></entry></row>
  3020. <row>
  3021. <entry spanname="id"><constant>V4L2_CID_PAN_RELATIVE</constant>&nbsp;</entry>
  3022. <entry>integer</entry>
  3023. </row><row><entry spanname="descr">This control turns the
  3024. camera horizontally by the specified amount. The unit is undefined. A
  3025. positive value moves the camera to the right (clockwise when viewed
  3026. from above), a negative value to the left. A value of zero does not
  3027. cause motion. This is a write-only control.</entry>
  3028. </row>
  3029. <row><entry></entry></row>
  3030. <row>
  3031. <entry spanname="id"><constant>V4L2_CID_TILT_RELATIVE</constant>&nbsp;</entry>
  3032. <entry>integer</entry>
  3033. </row><row><entry spanname="descr">This control turns the
  3034. camera vertically by the specified amount. The unit is undefined. A
  3035. positive value moves the camera up, a negative value down. A value of
  3036. zero does not cause motion. This is a write-only control.</entry>
  3037. </row>
  3038. <row><entry></entry></row>
  3039. <row>
  3040. <entry spanname="id"><constant>V4L2_CID_PAN_RESET</constant>&nbsp;</entry>
  3041. <entry>button</entry>
  3042. </row><row><entry spanname="descr">When this control is set,
  3043. the camera moves horizontally to the default position.</entry>
  3044. </row>
  3045. <row><entry></entry></row>
  3046. <row>
  3047. <entry spanname="id"><constant>V4L2_CID_TILT_RESET</constant>&nbsp;</entry>
  3048. <entry>button</entry>
  3049. </row><row><entry spanname="descr">When this control is set,
  3050. the camera moves vertically to the default position.</entry>
  3051. </row>
  3052. <row><entry></entry></row>
  3053. <row>
  3054. <entry spanname="id"><constant>V4L2_CID_PAN_ABSOLUTE</constant>&nbsp;</entry>
  3055. <entry>integer</entry>
  3056. </row><row><entry spanname="descr">This control
  3057. turns the camera horizontally to the specified position. Positive
  3058. values move the camera to the right (clockwise when viewed from above),
  3059. negative values to the left. Drivers should interpret the values as arc
  3060. seconds, with valid values between -180 * 3600 and +180 * 3600
  3061. inclusive.</entry>
  3062. </row>
  3063. <row><entry></entry></row>
  3064. <row>
  3065. <entry spanname="id"><constant>V4L2_CID_TILT_ABSOLUTE</constant>&nbsp;</entry>
  3066. <entry>integer</entry>
  3067. </row><row><entry spanname="descr">This control
  3068. turns the camera vertically to the specified position. Positive values
  3069. move the camera up, negative values down. Drivers should interpret the
  3070. values as arc seconds, with valid values between -180 * 3600 and +180
  3071. * 3600 inclusive.</entry>
  3072. </row>
  3073. <row><entry></entry></row>
  3074. <row>
  3075. <entry spanname="id"><constant>V4L2_CID_FOCUS_ABSOLUTE</constant>&nbsp;</entry>
  3076. <entry>integer</entry>
  3077. </row><row><entry spanname="descr">This control sets the
  3078. focal point of the camera to the specified position. The unit is
  3079. undefined. Positive values set the focus closer to the camera,
  3080. negative values towards infinity.</entry>
  3081. </row>
  3082. <row><entry></entry></row>
  3083. <row>
  3084. <entry spanname="id"><constant>V4L2_CID_FOCUS_RELATIVE</constant>&nbsp;</entry>
  3085. <entry>integer</entry>
  3086. </row><row><entry spanname="descr">This control moves the
  3087. focal point of the camera by the specified amount. The unit is
  3088. undefined. Positive values move the focus closer to the camera,
  3089. negative values towards infinity. This is a write-only control.</entry>
  3090. </row>
  3091. <row><entry></entry></row>
  3092. <row>
  3093. <entry spanname="id"><constant>V4L2_CID_FOCUS_AUTO</constant>&nbsp;</entry>
  3094. <entry>boolean</entry>
  3095. </row><row><entry spanname="descr">Enables continuous automatic
  3096. focus adjustments. The effect of manual focus adjustments while this feature
  3097. is enabled is undefined, drivers should ignore such requests.</entry>
  3098. </row>
  3099. <row><entry></entry></row>
  3100. <row>
  3101. <entry spanname="id"><constant>V4L2_CID_AUTO_FOCUS_START</constant>&nbsp;</entry>
  3102. <entry>button</entry>
  3103. </row><row><entry spanname="descr">Starts single auto focus process.
  3104. The effect of setting this control when <constant>V4L2_CID_FOCUS_AUTO</constant>
  3105. is set to <constant>TRUE</constant> (1) is undefined, drivers should ignore
  3106. such requests.</entry>
  3107. </row>
  3108. <row><entry></entry></row>
  3109. <row>
  3110. <entry spanname="id"><constant>V4L2_CID_AUTO_FOCUS_STOP</constant>&nbsp;</entry>
  3111. <entry>button</entry>
  3112. </row><row><entry spanname="descr">Aborts automatic focusing
  3113. started with <constant>V4L2_CID_AUTO_FOCUS_START</constant> control. It is
  3114. effective only when the continuous autofocus is disabled, that is when
  3115. <constant>V4L2_CID_FOCUS_AUTO</constant> control is set to <constant>FALSE
  3116. </constant> (0).</entry>
  3117. </row>
  3118. <row><entry></entry></row>
  3119. <row id="v4l2-auto-focus-status">
  3120. <entry spanname="id">
  3121. <constant>V4L2_CID_AUTO_FOCUS_STATUS</constant>&nbsp;</entry>
  3122. <entry>bitmask</entry>
  3123. </row>
  3124. <row><entry spanname="descr">The automatic focus status. This is a read-only
  3125. control.</entry>
  3126. </row>
  3127. <row>
  3128. <entrytbl spanname="descr" cols="2">
  3129. <tbody valign="top">
  3130. <row>
  3131. <entry><constant>V4L2_AUTO_FOCUS_STATUS_IDLE</constant>&nbsp;</entry>
  3132. <entry>Automatic focus is not active.</entry>
  3133. </row>
  3134. <row>
  3135. <entry><constant>V4L2_AUTO_FOCUS_STATUS_BUSY</constant>&nbsp;</entry>
  3136. <entry>Automatic focusing is in progress.</entry>
  3137. </row>
  3138. <row>
  3139. <entry><constant>V4L2_AUTO_FOCUS_STATUS_REACHED</constant>&nbsp;</entry>
  3140. <entry>Focus has been reached.</entry>
  3141. </row>
  3142. <row>
  3143. <entry><constant>V4L2_AUTO_FOCUS_STATUS_FAILED</constant>&nbsp;</entry>
  3144. <entry>Automatic focus has failed, the driver will not
  3145. transition from this state until another action is
  3146. performed by an application.</entry>
  3147. </row>
  3148. </tbody>
  3149. </entrytbl>
  3150. </row>
  3151. <row><entry spanname="descr">
  3152. Setting <constant>V4L2_LOCK_FOCUS</constant> lock bit of the <constant>V4L2_CID_3A_LOCK
  3153. </constant> control may stop updates of the <constant>V4L2_CID_AUTO_FOCUS_STATUS</constant>
  3154. control value.</entry>
  3155. </row>
  3156. <row><entry></entry></row>
  3157. <row id="v4l2-auto-focus-range">
  3158. <entry spanname="id">
  3159. <constant>V4L2_CID_AUTO_FOCUS_RANGE</constant>&nbsp;</entry>
  3160. <entry>enum&nbsp;v4l2_auto_focus_range</entry>
  3161. </row>
  3162. <row><entry spanname="descr">Determines auto focus distance range
  3163. for which lens may be adjusted. </entry>
  3164. </row>
  3165. <row>
  3166. <entrytbl spanname="descr" cols="2">
  3167. <tbody valign="top">
  3168. <row>
  3169. <entry><constant>V4L2_AUTO_FOCUS_RANGE_AUTO</constant>&nbsp;</entry>
  3170. <entry>The camera automatically selects the focus range.</entry>
  3171. </row>
  3172. <row>
  3173. <entry><constant>V4L2_AUTO_FOCUS_RANGE_NORMAL</constant>&nbsp;</entry>
  3174. <entry>Normal distance range, limited for best automatic focus
  3175. performance.</entry>
  3176. </row>
  3177. <row>
  3178. <entry><constant>V4L2_AUTO_FOCUS_RANGE_MACRO</constant>&nbsp;</entry>
  3179. <entry>Macro (close-up) auto focus. The camera will
  3180. use its minimum possible distance for auto focus.</entry>
  3181. </row>
  3182. <row>
  3183. <entry><constant>V4L2_AUTO_FOCUS_RANGE_INFINITY</constant>&nbsp;</entry>
  3184. <entry>The lens is set to focus on an object at infinite distance.</entry>
  3185. </row>
  3186. </tbody>
  3187. </entrytbl>
  3188. </row>
  3189. <row><entry></entry></row>
  3190. <row>
  3191. <entry spanname="id"><constant>V4L2_CID_ZOOM_ABSOLUTE</constant>&nbsp;</entry>
  3192. <entry>integer</entry>
  3193. </row><row><entry spanname="descr">Specify the objective lens
  3194. focal length as an absolute value. The zoom unit is driver-specific and its
  3195. value should be a positive integer.</entry>
  3196. </row>
  3197. <row><entry></entry></row>
  3198. <row>
  3199. <entry spanname="id"><constant>V4L2_CID_ZOOM_RELATIVE</constant>&nbsp;</entry>
  3200. <entry>integer</entry>
  3201. </row><row><entry spanname="descr">Specify the objective lens
  3202. focal length relatively to the current value. Positive values move the zoom
  3203. lens group towards the telephoto direction, negative values towards the
  3204. wide-angle direction. The zoom unit is driver-specific. This is a write-only control.</entry>
  3205. </row>
  3206. <row><entry></entry></row>
  3207. <row>
  3208. <entry spanname="id"><constant>V4L2_CID_ZOOM_CONTINUOUS</constant>&nbsp;</entry>
  3209. <entry>integer</entry>
  3210. </row><row><entry spanname="descr">Move the objective lens group
  3211. at the specified speed until it reaches physical device limits or until an
  3212. explicit request to stop the movement. A positive value moves the zoom lens
  3213. group towards the telephoto direction. A value of zero stops the zoom lens
  3214. group movement. A negative value moves the zoom lens group towards the
  3215. wide-angle direction. The zoom speed unit is driver-specific.</entry>
  3216. </row>
  3217. <row><entry></entry></row>
  3218. <row>
  3219. <entry spanname="id"><constant>V4L2_CID_IRIS_ABSOLUTE</constant>&nbsp;</entry>
  3220. <entry>integer</entry>
  3221. </row><row><entry spanname="descr">This control sets the
  3222. camera's aperture to the specified value. The unit is undefined.
  3223. Larger values open the iris wider, smaller values close it.</entry>
  3224. </row>
  3225. <row><entry></entry></row>
  3226. <row>
  3227. <entry spanname="id"><constant>V4L2_CID_IRIS_RELATIVE</constant>&nbsp;</entry>
  3228. <entry>integer</entry>
  3229. </row><row><entry spanname="descr">This control modifies the
  3230. camera's aperture by the specified amount. The unit is undefined.
  3231. Positive values open the iris one step further, negative values close
  3232. it one step further. This is a write-only control.</entry>
  3233. </row>
  3234. <row><entry></entry></row>
  3235. <row>
  3236. <entry spanname="id"><constant>V4L2_CID_PRIVACY</constant>&nbsp;</entry>
  3237. <entry>boolean</entry>
  3238. </row><row><entry spanname="descr">Prevent video from being acquired
  3239. by the camera. When this control is set to <constant>TRUE</constant> (1), no
  3240. image can be captured by the camera. Common means to enforce privacy are
  3241. mechanical obturation of the sensor and firmware image processing, but the
  3242. device is not restricted to these methods. Devices that implement the privacy
  3243. control must support read access and may support write access.</entry>
  3244. </row>
  3245. <row>
  3246. <entry spanname="id"><constant>V4L2_CID_BAND_STOP_FILTER</constant>&nbsp;</entry>
  3247. <entry>integer</entry>
  3248. </row><row><entry spanname="descr">Switch the band-stop filter of a
  3249. camera sensor on or off, or specify its strength. Such band-stop filters can
  3250. be used, for example, to filter out the fluorescent light component.</entry>
  3251. </row>
  3252. <row><entry></entry></row>
  3253. <row id="v4l2-auto-n-preset-white-balance">
  3254. <entry spanname="id"><constant>V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE</constant>&nbsp;</entry>
  3255. <entry>enum&nbsp;v4l2_auto_n_preset_white_balance</entry>
  3256. </row><row><entry spanname="descr">Sets white balance to automatic,
  3257. manual or a preset. The presets determine color temperature of the light as
  3258. a hint to the camera for white balance adjustments resulting in most accurate
  3259. color representation. The following white balance presets are listed in order
  3260. of increasing color temperature.</entry>
  3261. </row>
  3262. <row>
  3263. <entrytbl spanname="descr" cols="2">
  3264. <tbody valign="top">
  3265. <row>
  3266. <entry><constant>V4L2_WHITE_BALANCE_MANUAL</constant>&nbsp;</entry>
  3267. <entry>Manual white balance.</entry>
  3268. </row>
  3269. <row>
  3270. <entry><constant>V4L2_WHITE_BALANCE_AUTO</constant>&nbsp;</entry>
  3271. <entry>Automatic white balance adjustments.</entry>
  3272. </row>
  3273. <row>
  3274. <entry><constant>V4L2_WHITE_BALANCE_INCANDESCENT</constant>&nbsp;</entry>
  3275. <entry>White balance setting for incandescent (tungsten) lighting.
  3276. It generally cools down the colors and corresponds approximately to 2500...3500 K
  3277. color temperature range.</entry>
  3278. </row>
  3279. <row>
  3280. <entry><constant>V4L2_WHITE_BALANCE_FLUORESCENT</constant>&nbsp;</entry>
  3281. <entry>White balance preset for fluorescent lighting.
  3282. It corresponds approximately to 4000...5000 K color temperature.</entry>
  3283. </row>
  3284. <row>
  3285. <entry><constant>V4L2_WHITE_BALANCE_FLUORESCENT_H</constant>&nbsp;</entry>
  3286. <entry>With this setting the camera will compensate for
  3287. fluorescent H lighting.</entry>
  3288. </row>
  3289. <row>
  3290. <entry><constant>V4L2_WHITE_BALANCE_HORIZON</constant>&nbsp;</entry>
  3291. <entry>White balance setting for horizon daylight.
  3292. It corresponds approximately to 5000 K color temperature.</entry>
  3293. </row>
  3294. <row>
  3295. <entry><constant>V4L2_WHITE_BALANCE_DAYLIGHT</constant>&nbsp;</entry>
  3296. <entry>White balance preset for daylight (with clear sky).
  3297. It corresponds approximately to 5000...6500 K color temperature.</entry>
  3298. </row>
  3299. <row>
  3300. <entry><constant>V4L2_WHITE_BALANCE_FLASH</constant>&nbsp;</entry>
  3301. <entry>With this setting the camera will compensate for the flash
  3302. light. It slightly warms up the colors and corresponds roughly to 5000...5500 K
  3303. color temperature.</entry>
  3304. </row>
  3305. <row>
  3306. <entry><constant>V4L2_WHITE_BALANCE_CLOUDY</constant>&nbsp;</entry>
  3307. <entry>White balance preset for moderately overcast sky.
  3308. This option corresponds approximately to 6500...8000 K color temperature
  3309. range.</entry>
  3310. </row>
  3311. <row>
  3312. <entry><constant>V4L2_WHITE_BALANCE_SHADE</constant>&nbsp;</entry>
  3313. <entry>White balance preset for shade or heavily overcast
  3314. sky. It corresponds approximately to 9000...10000 K color temperature.
  3315. </entry>
  3316. </row>
  3317. </tbody>
  3318. </entrytbl>
  3319. </row>
  3320. <row><entry></entry></row>
  3321. <row id="v4l2-wide-dynamic-range">
  3322. <entry spanname="id"><constant>V4L2_CID_WIDE_DYNAMIC_RANGE</constant></entry>
  3323. <entry>boolean</entry>
  3324. </row>
  3325. <row>
  3326. <entry spanname="descr">Enables or disables the camera's wide dynamic
  3327. range feature. This feature allows to obtain clear images in situations where
  3328. intensity of the illumination varies significantly throughout the scene, i.e.
  3329. there are simultaneously very dark and very bright areas. It is most commonly
  3330. realized in cameras by combining two subsequent frames with different exposure
  3331. times. <footnote id="ctypeconv"><para> This control may be changed to a menu
  3332. control in the future, if more options are required.</para></footnote></entry>
  3333. </row>
  3334. <row><entry></entry></row>
  3335. <row id="v4l2-image-stabilization">
  3336. <entry spanname="id"><constant>V4L2_CID_IMAGE_STABILIZATION</constant></entry>
  3337. <entry>boolean</entry>
  3338. </row>
  3339. <row>
  3340. <entry spanname="descr">Enables or disables image stabilization.
  3341. <footnoteref linkend="ctypeconv"/></entry>
  3342. </row>
  3343. <row><entry></entry></row>
  3344. <row>
  3345. <entry spanname="id"><constant>V4L2_CID_ISO_SENSITIVITY</constant>&nbsp;</entry>
  3346. <entry>integer menu</entry>
  3347. </row><row><entry spanname="descr">Determines ISO equivalent of an
  3348. image sensor indicating the sensor's sensitivity to light. The numbers are
  3349. expressed in arithmetic scale, as per <xref linkend="iso12232" /> standard,
  3350. where doubling the sensor sensitivity is represented by doubling the numerical
  3351. ISO value. Applications should interpret the values as standard ISO values
  3352. multiplied by 1000, e.g. control value 800 stands for ISO 0.8. Drivers will
  3353. usually support only a subset of standard ISO values. The effect of setting
  3354. this control while the <constant>V4L2_CID_ISO_SENSITIVITY_AUTO</constant>
  3355. control is set to a value other than <constant>V4L2_CID_ISO_SENSITIVITY_MANUAL
  3356. </constant> is undefined, drivers should ignore such requests.</entry>
  3357. </row>
  3358. <row><entry></entry></row>
  3359. <row id="v4l2-iso-sensitivity-auto-type">
  3360. <entry spanname="id"><constant>V4L2_CID_ISO_SENSITIVITY_AUTO</constant>&nbsp;</entry>
  3361. <entry>enum&nbsp;v4l2_iso_sensitivity_type</entry>
  3362. </row><row><entry spanname="descr">Enables or disables automatic ISO
  3363. sensitivity adjustments.</entry>
  3364. </row>
  3365. <row>
  3366. <entrytbl spanname="descr" cols="2">
  3367. <tbody valign="top">
  3368. <row>
  3369. <entry><constant>V4L2_CID_ISO_SENSITIVITY_MANUAL</constant>&nbsp;</entry>
  3370. <entry>Manual ISO sensitivity.</entry>
  3371. </row>
  3372. <row>
  3373. <entry><constant>V4L2_CID_ISO_SENSITIVITY_AUTO</constant>&nbsp;</entry>
  3374. <entry>Automatic ISO sensitivity adjustments.</entry>
  3375. </row>
  3376. </tbody>
  3377. </entrytbl>
  3378. </row>
  3379. <row><entry></entry></row>
  3380. <row id="v4l2-scene-mode">
  3381. <entry spanname="id"><constant>V4L2_CID_SCENE_MODE</constant>&nbsp;</entry>
  3382. <entry>enum&nbsp;v4l2_scene_mode</entry>
  3383. </row><row><entry spanname="descr">This control allows to select
  3384. scene programs as the camera automatic modes optimized for common shooting
  3385. scenes. Within these modes the camera determines best exposure, aperture,
  3386. focusing, light metering, white balance and equivalent sensitivity. The
  3387. controls of those parameters are influenced by the scene mode control.
  3388. An exact behavior in each mode is subject to the camera specification.
  3389. <para>When the scene mode feature is not used, this control should be set to
  3390. <constant>V4L2_SCENE_MODE_NONE</constant> to make sure the other possibly
  3391. related controls are accessible. The following scene programs are defined:
  3392. </para>
  3393. </entry>
  3394. </row>
  3395. <row>
  3396. <entrytbl spanname="descr" cols="2">
  3397. <tbody valign="top">
  3398. <row>
  3399. <entry><constant>V4L2_SCENE_MODE_NONE</constant>&nbsp;</entry>
  3400. <entry>The scene mode feature is disabled.</entry>
  3401. </row>
  3402. <row>
  3403. <entry><constant>V4L2_SCENE_MODE_BACKLIGHT</constant>&nbsp;</entry>
  3404. <entry>Backlight. Compensates for dark shadows when light is
  3405. coming from behind a subject, also by automatically turning
  3406. on the flash.</entry>
  3407. </row>
  3408. <row>
  3409. <entry><constant>V4L2_SCENE_MODE_BEACH_SNOW</constant>&nbsp;</entry>
  3410. <entry>Beach and snow. This mode compensates for all-white or
  3411. bright scenes, which tend to look gray and low contrast, when camera's automatic
  3412. exposure is based on an average scene brightness. To compensate, this mode
  3413. automatically slightly overexposes the frames. The white balance may also be
  3414. adjusted to compensate for the fact that reflected snow looks bluish rather
  3415. than white.</entry>
  3416. </row>
  3417. <row>
  3418. <entry><constant>V4L2_SCENE_MODE_CANDLELIGHT</constant>&nbsp;</entry>
  3419. <entry>Candle light. The camera generally raises the ISO
  3420. sensitivity and lowers the shutter speed. This mode compensates for relatively
  3421. close subject in the scene. The flash is disabled in order to preserve the
  3422. ambiance of the light.</entry>
  3423. </row>
  3424. <row>
  3425. <entry><constant>V4L2_SCENE_MODE_DAWN_DUSK</constant>&nbsp;</entry>
  3426. <entry>Dawn and dusk. Preserves the colors seen in low
  3427. natural light before dusk and after down. The camera may turn off the flash,
  3428. and automatically focus at infinity. It will usually boost saturation and
  3429. lower the shutter speed.</entry>
  3430. </row>
  3431. <row>
  3432. <entry><constant>V4L2_SCENE_MODE_FALL_COLORS</constant>&nbsp;</entry>
  3433. <entry>Fall colors. Increases saturation and adjusts white
  3434. balance for color enhancement. Pictures of autumn leaves get saturated reds
  3435. and yellows.</entry>
  3436. </row>
  3437. <row>
  3438. <entry><constant>V4L2_SCENE_MODE_FIREWORKS</constant>&nbsp;</entry>
  3439. <entry>Fireworks. Long exposure times are used to capture
  3440. the expanding burst of light from a firework. The camera may invoke image
  3441. stabilization.</entry>
  3442. </row>
  3443. <row>
  3444. <entry><constant>V4L2_SCENE_MODE_LANDSCAPE</constant>&nbsp;</entry>
  3445. <entry>Landscape. The camera may choose a small aperture to
  3446. provide deep depth of field and long exposure duration to help capture detail
  3447. in dim light conditions. The focus is fixed at infinity. Suitable for distant
  3448. and wide scenery.</entry>
  3449. </row>
  3450. <row>
  3451. <entry><constant>V4L2_SCENE_MODE_NIGHT</constant>&nbsp;</entry>
  3452. <entry>Night, also known as Night Landscape. Designed for low
  3453. light conditions, it preserves detail in the dark areas without blowing out bright
  3454. objects. The camera generally sets itself to a medium-to-high ISO sensitivity,
  3455. with a relatively long exposure time, and turns flash off. As such, there will be
  3456. increased image noise and the possibility of blurred image.</entry>
  3457. </row>
  3458. <row>
  3459. <entry><constant>V4L2_SCENE_MODE_PARTY_INDOOR</constant>&nbsp;</entry>
  3460. <entry>Party and indoor. Designed to capture indoor scenes
  3461. that are lit by indoor background lighting as well as the flash. The camera
  3462. usually increases ISO sensitivity, and adjusts exposure for the low light
  3463. conditions.</entry>
  3464. </row>
  3465. <row>
  3466. <entry><constant>V4L2_SCENE_MODE_PORTRAIT</constant>&nbsp;</entry>
  3467. <entry>Portrait. The camera adjusts the aperture so that the
  3468. depth of field is reduced, which helps to isolate the subject against a smooth
  3469. background. Most cameras recognize the presence of faces in the scene and focus
  3470. on them. The color hue is adjusted to enhance skin tones. The intensity of the
  3471. flash is often reduced.</entry>
  3472. </row>
  3473. <row>
  3474. <entry><constant>V4L2_SCENE_MODE_SPORTS</constant>&nbsp;</entry>
  3475. <entry>Sports. Significantly increases ISO and uses a fast
  3476. shutter speed to freeze motion of rapidly-moving subjects. Increased image
  3477. noise may be seen in this mode.</entry>
  3478. </row>
  3479. <row>
  3480. <entry><constant>V4L2_SCENE_MODE_SUNSET</constant>&nbsp;</entry>
  3481. <entry>Sunset. Preserves deep hues seen in sunsets and
  3482. sunrises. It bumps up the saturation.</entry>
  3483. </row>
  3484. <row>
  3485. <entry><constant>V4L2_SCENE_MODE_TEXT</constant>&nbsp;</entry>
  3486. <entry>Text. It applies extra contrast and sharpness, it is
  3487. typically a black-and-white mode optimized for readability. Automatic focus
  3488. may be switched to close-up mode and this setting may also involve some
  3489. lens-distortion correction.</entry>
  3490. </row>
  3491. </tbody>
  3492. </entrytbl>
  3493. </row>
  3494. <row><entry></entry></row>
  3495. <row>
  3496. <entry spanname="id"><constant>V4L2_CID_3A_LOCK</constant></entry>
  3497. <entry>bitmask</entry>
  3498. </row>
  3499. <row>
  3500. <entry spanname="descr">This control locks or unlocks the automatic
  3501. focus, exposure and white balance. The automatic adjustments can be paused
  3502. independently by setting the corresponding lock bit to 1. The camera then retains
  3503. the settings until the lock bit is cleared. The following lock bits are defined:
  3504. </entry>
  3505. </row>
  3506. <row>
  3507. <entrytbl spanname="descr" cols="2">
  3508. <tbody valign="top">
  3509. <row>
  3510. <entry><constant>V4L2_LOCK_EXPOSURE</constant></entry>
  3511. <entry>Automatic exposure adjustments lock.</entry>
  3512. </row>
  3513. <row>
  3514. <entry><constant>V4L2_LOCK_WHITE_BALANCE</constant></entry>
  3515. <entry>Automatic white balance adjustments lock.</entry>
  3516. </row>
  3517. <row>
  3518. <entry><constant>V4L2_LOCK_FOCUS</constant></entry>
  3519. <entry>Automatic focus lock.</entry>
  3520. </row>
  3521. </tbody>
  3522. </entrytbl>
  3523. </row>
  3524. <row><entry spanname="descr">
  3525. When a given algorithm is not enabled, drivers should ignore requests
  3526. to lock it and should return no error. An example might be an application
  3527. setting bit <constant>V4L2_LOCK_WHITE_BALANCE</constant> when the
  3528. <constant>V4L2_CID_AUTO_WHITE_BALANCE</constant> control is set to
  3529. <constant>FALSE</constant>. The value of this control may be changed
  3530. by exposure, white balance or focus controls.</entry>
  3531. </row>
  3532. <row><entry></entry></row>
  3533. </tbody>
  3534. </tgroup>
  3535. </table>
  3536. </section>
  3537. <section id="fm-tx-controls">
  3538. <title>FM Transmitter Control Reference</title>
  3539. <para>The FM Transmitter (FM_TX) class includes controls for common features of
  3540. FM transmissions capable devices. Currently this class includes parameters for audio
  3541. compression, pilot tone generation, audio deviation limiter, RDS transmission and
  3542. tuning power features.</para>
  3543. <table pgwide="1" frame="none" id="fm-tx-control-id">
  3544. <title>FM_TX Control IDs</title>
  3545. <tgroup cols="4">
  3546. <colspec colname="c1" colwidth="1*" />
  3547. <colspec colname="c2" colwidth="6*" />
  3548. <colspec colname="c3" colwidth="2*" />
  3549. <colspec colname="c4" colwidth="6*" />
  3550. <spanspec namest="c1" nameend="c2" spanname="id" />
  3551. <spanspec namest="c2" nameend="c4" spanname="descr" />
  3552. <thead>
  3553. <row>
  3554. <entry spanname="id" align="left">ID</entry>
  3555. <entry align="left">Type</entry>
  3556. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  3557. </row>
  3558. </thead>
  3559. <tbody valign="top">
  3560. <row><entry></entry></row>
  3561. <row>
  3562. <entry spanname="id"><constant>V4L2_CID_FM_TX_CLASS</constant>&nbsp;</entry>
  3563. <entry>class</entry>
  3564. </row><row><entry spanname="descr">The FM_TX class
  3565. descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
  3566. description of this control class.</entry>
  3567. </row>
  3568. <row>
  3569. <entry spanname="id"><constant>V4L2_CID_RDS_TX_DEVIATION</constant>&nbsp;</entry>
  3570. <entry>integer</entry>
  3571. </row>
  3572. <row><entry spanname="descr">Configures RDS signal frequency deviation level in Hz.
  3573. The range and step are driver-specific.</entry>
  3574. </row>
  3575. <row>
  3576. <entry spanname="id"><constant>V4L2_CID_RDS_TX_PI</constant>&nbsp;</entry>
  3577. <entry>integer</entry>
  3578. </row>
  3579. <row><entry spanname="descr">Sets the RDS Programme Identification field
  3580. for transmission.</entry>
  3581. </row>
  3582. <row>
  3583. <entry spanname="id"><constant>V4L2_CID_RDS_TX_PTY</constant>&nbsp;</entry>
  3584. <entry>integer</entry>
  3585. </row>
  3586. <row><entry spanname="descr">Sets the RDS Programme Type field for transmission.
  3587. This encodes up to 31 pre-defined programme types.</entry>
  3588. </row>
  3589. <row>
  3590. <entry spanname="id"><constant>V4L2_CID_RDS_TX_PS_NAME</constant>&nbsp;</entry>
  3591. <entry>string</entry>
  3592. </row>
  3593. <row><entry spanname="descr">Sets the Programme Service name (PS_NAME) for transmission.
  3594. It is intended for static display on a receiver. It is the primary aid to listeners in programme service
  3595. identification and selection. In Annex E of <xref linkend="iec62106" />, the RDS specification,
  3596. there is a full description of the correct character encoding for Programme Service name strings.
  3597. Also from RDS specification, PS is usually a single eight character text. However, it is also possible
  3598. to find receivers which can scroll strings sized as 8 x N characters. So, this control must be configured
  3599. with steps of 8 characters. The result is it must always contain a string with size multiple of 8.</entry>
  3600. </row>
  3601. <row>
  3602. <entry spanname="id"><constant>V4L2_CID_RDS_TX_RADIO_TEXT</constant>&nbsp;</entry>
  3603. <entry>string</entry>
  3604. </row>
  3605. <row><entry spanname="descr">Sets the Radio Text info for transmission. It is a textual description of
  3606. what is being broadcasted. RDS Radio Text can be applied when broadcaster wishes to transmit longer PS names,
  3607. programme-related information or any other text. In these cases, RadioText should be used in addition to
  3608. <constant>V4L2_CID_RDS_TX_PS_NAME</constant>. The encoding for Radio Text strings is also fully described
  3609. in Annex E of <xref linkend="iec62106" />. The length of Radio Text strings depends on which RDS Block is being
  3610. used to transmit it, either 32 (2A block) or 64 (2B block). However, it is also possible
  3611. to find receivers which can scroll strings sized as 32 x N or 64 x N characters. So, this control must be configured
  3612. with steps of 32 or 64 characters. The result is it must always contain a string with size multiple of 32 or 64. </entry>
  3613. </row>
  3614. <row>
  3615. <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_ENABLED</constant>&nbsp;</entry>
  3616. <entry>boolean</entry>
  3617. </row>
  3618. <row><entry spanname="descr">Enables or disables the audio deviation limiter feature.
  3619. The limiter is useful when trying to maximize the audio volume, minimize receiver-generated
  3620. distortion and prevent overmodulation.
  3621. </entry>
  3622. </row>
  3623. <row>
  3624. <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_RELEASE_TIME</constant>&nbsp;</entry>
  3625. <entry>integer</entry>
  3626. </row>
  3627. <row><entry spanname="descr">Sets the audio deviation limiter feature release time.
  3628. Unit is in useconds. Step and range are driver-specific.</entry>
  3629. </row>
  3630. <row>
  3631. <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_DEVIATION</constant>&nbsp;</entry>
  3632. <entry>integer</entry>
  3633. </row>
  3634. <row><entry spanname="descr">Configures audio frequency deviation level in Hz.
  3635. The range and step are driver-specific.</entry>
  3636. </row>
  3637. <row>
  3638. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_ENABLED</constant>&nbsp;</entry>
  3639. <entry>boolean</entry>
  3640. </row>
  3641. <row><entry spanname="descr">Enables or disables the audio compression feature.
  3642. This feature amplifies signals below the threshold by a fixed gain and compresses audio
  3643. signals above the threshold by the ratio of Threshold/(Gain + Threshold).</entry>
  3644. </row>
  3645. <row>
  3646. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_GAIN</constant>&nbsp;</entry>
  3647. <entry>integer</entry>
  3648. </row>
  3649. <row><entry spanname="descr">Sets the gain for audio compression feature. It is
  3650. a dB value. The range and step are driver-specific.</entry>
  3651. </row>
  3652. <row>
  3653. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_THRESHOLD</constant>&nbsp;</entry>
  3654. <entry>integer</entry>
  3655. </row>
  3656. <row><entry spanname="descr">Sets the threshold level for audio compression freature.
  3657. It is a dB value. The range and step are driver-specific.</entry>
  3658. </row>
  3659. <row>
  3660. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_ATTACK_TIME</constant>&nbsp;</entry>
  3661. <entry>integer</entry>
  3662. </row>
  3663. <row><entry spanname="descr">Sets the attack time for audio compression feature.
  3664. It is a useconds value. The range and step are driver-specific.</entry>
  3665. </row>
  3666. <row>
  3667. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_RELEASE_TIME</constant>&nbsp;</entry>
  3668. <entry>integer</entry>
  3669. </row>
  3670. <row><entry spanname="descr">Sets the release time for audio compression feature.
  3671. It is a useconds value. The range and step are driver-specific.</entry>
  3672. </row>
  3673. <row>
  3674. <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_ENABLED</constant>&nbsp;</entry>
  3675. <entry>boolean</entry>
  3676. </row>
  3677. <row><entry spanname="descr">Enables or disables the pilot tone generation feature.</entry>
  3678. </row>
  3679. <row>
  3680. <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_DEVIATION</constant>&nbsp;</entry>
  3681. <entry>integer</entry>
  3682. </row>
  3683. <row><entry spanname="descr">Configures pilot tone frequency deviation level. Unit is
  3684. in Hz. The range and step are driver-specific.</entry>
  3685. </row>
  3686. <row>
  3687. <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_FREQUENCY</constant>&nbsp;</entry>
  3688. <entry>integer</entry>
  3689. </row>
  3690. <row><entry spanname="descr">Configures pilot tone frequency value. Unit is
  3691. in Hz. The range and step are driver-specific.</entry>
  3692. </row>
  3693. <row>
  3694. <entry spanname="id"><constant>V4L2_CID_TUNE_PREEMPHASIS</constant>&nbsp;</entry>
  3695. <entry>enum v4l2_preemphasis</entry>
  3696. </row>
  3697. <row id="v4l2-preemphasis"><entry spanname="descr">Configures the pre-emphasis value for broadcasting.
  3698. A pre-emphasis filter is applied to the broadcast to accentuate the high audio frequencies.
  3699. Depending on the region, a time constant of either 50 or 75 useconds is used. The enum&nbsp;v4l2_preemphasis
  3700. defines possible values for pre-emphasis. Here they are:</entry>
  3701. </row><row>
  3702. <entrytbl spanname="descr" cols="2">
  3703. <tbody valign="top">
  3704. <row>
  3705. <entry><constant>V4L2_PREEMPHASIS_DISABLED</constant>&nbsp;</entry>
  3706. <entry>No pre-emphasis is applied.</entry>
  3707. </row>
  3708. <row>
  3709. <entry><constant>V4L2_PREEMPHASIS_50_uS</constant>&nbsp;</entry>
  3710. <entry>A pre-emphasis of 50 uS is used.</entry>
  3711. </row>
  3712. <row>
  3713. <entry><constant>V4L2_PREEMPHASIS_75_uS</constant>&nbsp;</entry>
  3714. <entry>A pre-emphasis of 75 uS is used.</entry>
  3715. </row>
  3716. </tbody>
  3717. </entrytbl>
  3718. </row>
  3719. <row>
  3720. <entry spanname="id"><constant>V4L2_CID_TUNE_POWER_LEVEL</constant>&nbsp;</entry>
  3721. <entry>integer</entry>
  3722. </row>
  3723. <row><entry spanname="descr">Sets the output power level for signal transmission.
  3724. Unit is in dBuV. Range and step are driver-specific.</entry>
  3725. </row>
  3726. <row>
  3727. <entry spanname="id"><constant>V4L2_CID_TUNE_ANTENNA_CAPACITOR</constant>&nbsp;</entry>
  3728. <entry>integer</entry>
  3729. </row>
  3730. <row><entry spanname="descr">This selects the value of antenna tuning capacitor
  3731. manually or automatically if set to zero. Unit, range and step are driver-specific.</entry>
  3732. </row>
  3733. <row><entry></entry></row>
  3734. </tbody>
  3735. </tgroup>
  3736. </table>
  3737. <para>For more details about RDS specification, refer to
  3738. <xref linkend="iec62106" /> document, from CENELEC.</para>
  3739. </section>
  3740. <section id="flash-controls">
  3741. <title>Flash Control Reference</title>
  3742. <note>
  3743. <title>Experimental</title>
  3744. <para>This is an <link linkend="experimental">experimental</link>
  3745. interface and may change in the future.</para>
  3746. </note>
  3747. <para>
  3748. The V4L2 flash controls are intended to provide generic access
  3749. to flash controller devices. Flash controller devices are
  3750. typically used in digital cameras.
  3751. </para>
  3752. <para>
  3753. The interface can support both LED and xenon flash devices. As
  3754. of writing this, there is no xenon flash driver using this
  3755. interface.
  3756. </para>
  3757. <section id="flash-controls-use-cases">
  3758. <title>Supported use cases</title>
  3759. <section>
  3760. <title>Unsynchronised LED flash (software strobe)</title>
  3761. <para>
  3762. Unsynchronised LED flash is controlled directly by the
  3763. host as the sensor. The flash must be enabled by the host
  3764. before the exposure of the image starts and disabled once
  3765. it ends. The host is fully responsible for the timing of
  3766. the flash.
  3767. </para>
  3768. <para>Example of such device: Nokia N900.</para>
  3769. </section>
  3770. <section>
  3771. <title>Synchronised LED flash (hardware strobe)</title>
  3772. <para>
  3773. The synchronised LED flash is pre-programmed by the host
  3774. (power and timeout) but controlled by the sensor through a
  3775. strobe signal from the sensor to the flash.
  3776. </para>
  3777. <para>
  3778. The sensor controls the flash duration and timing. This
  3779. information typically must be made available to the
  3780. sensor.
  3781. </para>
  3782. </section>
  3783. <section>
  3784. <title>LED flash as torch</title>
  3785. <para>
  3786. LED flash may be used as torch in conjunction with another
  3787. use case involving camera or individually.
  3788. </para>
  3789. <table pgwide="1" frame="none" id="flash-control-id">
  3790. <title>Flash Control IDs</title>
  3791. <tgroup cols="4">
  3792. <colspec colname="c1" colwidth="1*" />
  3793. <colspec colname="c2" colwidth="6*" />
  3794. <colspec colname="c3" colwidth="2*" />
  3795. <colspec colname="c4" colwidth="6*" />
  3796. <spanspec namest="c1" nameend="c2" spanname="id" />
  3797. <spanspec namest="c2" nameend="c4" spanname="descr" />
  3798. <thead>
  3799. <row>
  3800. <entry spanname="id" align="left">ID</entry>
  3801. <entry align="left">Type</entry>
  3802. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  3803. </row>
  3804. </thead>
  3805. <tbody valign="top">
  3806. <row><entry></entry></row>
  3807. <row>
  3808. <entry spanname="id"><constant>V4L2_CID_FLASH_CLASS</constant></entry>
  3809. <entry>class</entry>
  3810. </row>
  3811. <row>
  3812. <entry spanname="descr">The FLASH class descriptor.</entry>
  3813. </row>
  3814. <row>
  3815. <entry spanname="id"><constant>V4L2_CID_FLASH_LED_MODE</constant></entry>
  3816. <entry>menu</entry>
  3817. </row>
  3818. <row id="v4l2-flash-led-mode">
  3819. <entry spanname="descr">Defines the mode of the flash LED,
  3820. the high-power white LED attached to the flash controller.
  3821. Setting this control may not be possible in presence of
  3822. some faults. See V4L2_CID_FLASH_FAULT.</entry>
  3823. </row>
  3824. <row>
  3825. <entrytbl spanname="descr" cols="2">
  3826. <tbody valign="top">
  3827. <row>
  3828. <entry><constant>V4L2_FLASH_LED_MODE_NONE</constant></entry>
  3829. <entry>Off.</entry>
  3830. </row>
  3831. <row>
  3832. <entry><constant>V4L2_FLASH_LED_MODE_FLASH</constant></entry>
  3833. <entry>Flash mode.</entry>
  3834. </row>
  3835. <row>
  3836. <entry><constant>V4L2_FLASH_LED_MODE_TORCH</constant></entry>
  3837. <entry>Torch mode. See V4L2_CID_FLASH_TORCH_INTENSITY.</entry>
  3838. </row>
  3839. </tbody>
  3840. </entrytbl>
  3841. </row>
  3842. <row>
  3843. <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE_SOURCE</constant></entry>
  3844. <entry>menu</entry>
  3845. </row>
  3846. <row id="v4l2-flash-strobe-source"><entry
  3847. spanname="descr">Defines the source of the flash LED
  3848. strobe.</entry>
  3849. </row>
  3850. <row>
  3851. <entrytbl spanname="descr" cols="2">
  3852. <tbody valign="top">
  3853. <row>
  3854. <entry><constant>V4L2_FLASH_STROBE_SOURCE_SOFTWARE</constant></entry>
  3855. <entry>The flash strobe is triggered by using
  3856. the V4L2_CID_FLASH_STROBE control.</entry>
  3857. </row>
  3858. <row>
  3859. <entry><constant>V4L2_FLASH_STROBE_SOURCE_EXTERNAL</constant></entry>
  3860. <entry>The flash strobe is triggered by an
  3861. external source. Typically this is a sensor,
  3862. which makes it possible to synchronises the
  3863. flash strobe start to exposure start.</entry>
  3864. </row>
  3865. </tbody>
  3866. </entrytbl>
  3867. </row>
  3868. <row>
  3869. <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE</constant></entry>
  3870. <entry>button</entry>
  3871. </row>
  3872. <row>
  3873. <entry spanname="descr">Strobe flash. Valid when
  3874. V4L2_CID_FLASH_LED_MODE is set to
  3875. V4L2_FLASH_LED_MODE_FLASH and V4L2_CID_FLASH_STROBE_SOURCE
  3876. is set to V4L2_FLASH_STROBE_SOURCE_SOFTWARE. Setting this
  3877. control may not be possible in presence of some faults.
  3878. See V4L2_CID_FLASH_FAULT.</entry>
  3879. </row>
  3880. <row>
  3881. <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE_STOP</constant></entry>
  3882. <entry>button</entry>
  3883. </row>
  3884. <row><entry spanname="descr">Stop flash strobe immediately.</entry>
  3885. </row>
  3886. <row>
  3887. <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE_STATUS</constant></entry>
  3888. <entry>boolean</entry>
  3889. </row>
  3890. <row>
  3891. <entry spanname="descr">Strobe status: whether the flash
  3892. is strobing at the moment or not. This is a read-only
  3893. control.</entry>
  3894. </row>
  3895. <row>
  3896. <entry spanname="id"><constant>V4L2_CID_FLASH_TIMEOUT</constant></entry>
  3897. <entry>integer</entry>
  3898. </row>
  3899. <row>
  3900. <entry spanname="descr">Hardware timeout for flash. The
  3901. flash strobe is stopped after this period of time has
  3902. passed from the start of the strobe.</entry>
  3903. </row>
  3904. <row>
  3905. <entry spanname="id"><constant>V4L2_CID_FLASH_INTENSITY</constant></entry>
  3906. <entry>integer</entry>
  3907. </row>
  3908. <row>
  3909. <entry spanname="descr">Intensity of the flash strobe when
  3910. the flash LED is in flash mode
  3911. (V4L2_FLASH_LED_MODE_FLASH). The unit should be milliamps
  3912. (mA) if possible.</entry>
  3913. </row>
  3914. <row>
  3915. <entry spanname="id"><constant>V4L2_CID_FLASH_TORCH_INTENSITY</constant></entry>
  3916. <entry>integer</entry>
  3917. </row>
  3918. <row>
  3919. <entry spanname="descr">Intensity of the flash LED in
  3920. torch mode (V4L2_FLASH_LED_MODE_TORCH). The unit should be
  3921. milliamps (mA) if possible. Setting this control may not
  3922. be possible in presence of some faults. See
  3923. V4L2_CID_FLASH_FAULT.</entry>
  3924. </row>
  3925. <row>
  3926. <entry spanname="id"><constant>V4L2_CID_FLASH_INDICATOR_INTENSITY</constant></entry>
  3927. <entry>integer</entry>
  3928. </row>
  3929. <row>
  3930. <entry spanname="descr">Intensity of the indicator LED.
  3931. The indicator LED may be fully independent of the flash
  3932. LED. The unit should be microamps (uA) if possible.</entry>
  3933. </row>
  3934. <row>
  3935. <entry spanname="id"><constant>V4L2_CID_FLASH_FAULT</constant></entry>
  3936. <entry>bitmask</entry>
  3937. </row>
  3938. <row>
  3939. <entry spanname="descr">Faults related to the flash. The
  3940. faults tell about specific problems in the flash chip
  3941. itself or the LEDs attached to it. Faults may prevent
  3942. further use of some of the flash controls. In particular,
  3943. V4L2_CID_FLASH_LED_MODE is set to V4L2_FLASH_LED_MODE_NONE
  3944. if the fault affects the flash LED. Exactly which faults
  3945. have such an effect is chip dependent. Reading the faults
  3946. resets the control and returns the chip to a usable state
  3947. if possible.</entry>
  3948. </row>
  3949. <row>
  3950. <entrytbl spanname="descr" cols="2">
  3951. <tbody valign="top">
  3952. <row>
  3953. <entry><constant>V4L2_FLASH_FAULT_OVER_VOLTAGE</constant></entry>
  3954. <entry>Flash controller voltage to the flash LED
  3955. has exceeded the limit specific to the flash
  3956. controller.</entry>
  3957. </row>
  3958. <row>
  3959. <entry><constant>V4L2_FLASH_FAULT_TIMEOUT</constant></entry>
  3960. <entry>The flash strobe was still on when
  3961. the timeout set by the user ---
  3962. V4L2_CID_FLASH_TIMEOUT control --- has expired.
  3963. Not all flash controllers may set this in all
  3964. such conditions.</entry>
  3965. </row>
  3966. <row>
  3967. <entry><constant>V4L2_FLASH_FAULT_OVER_TEMPERATURE</constant></entry>
  3968. <entry>The flash controller has overheated.</entry>
  3969. </row>
  3970. <row>
  3971. <entry><constant>V4L2_FLASH_FAULT_SHORT_CIRCUIT</constant></entry>
  3972. <entry>The short circuit protection of the flash
  3973. controller has been triggered.</entry>
  3974. </row>
  3975. <row>
  3976. <entry><constant>V4L2_FLASH_FAULT_OVER_CURRENT</constant></entry>
  3977. <entry>Current in the LED power supply has exceeded the limit
  3978. specific to the flash controller.</entry>
  3979. </row>
  3980. <row>
  3981. <entry><constant>V4L2_FLASH_FAULT_INDICATOR</constant></entry>
  3982. <entry>The flash controller has detected a short or open
  3983. circuit condition on the indicator LED.</entry>
  3984. </row>
  3985. </tbody>
  3986. </entrytbl>
  3987. </row>
  3988. <row>
  3989. <entry spanname="id"><constant>V4L2_CID_FLASH_CHARGE</constant></entry>
  3990. <entry>boolean</entry>
  3991. </row>
  3992. <row><entry spanname="descr">Enable or disable charging of the xenon
  3993. flash capacitor.</entry>
  3994. </row>
  3995. <row>
  3996. <entry spanname="id"><constant>V4L2_CID_FLASH_READY</constant></entry>
  3997. <entry>boolean</entry>
  3998. </row>
  3999. <row>
  4000. <entry spanname="descr">Is the flash ready to strobe?
  4001. Xenon flashes require their capacitors charged before
  4002. strobing. LED flashes often require a cooldown period
  4003. after strobe during which another strobe will not be
  4004. possible. This is a read-only control.</entry>
  4005. </row>
  4006. <row><entry></entry></row>
  4007. </tbody>
  4008. </tgroup>
  4009. </table>
  4010. </section>
  4011. </section>
  4012. </section>
  4013. <section id="jpeg-controls">
  4014. <title>JPEG Control Reference</title>
  4015. <para>The JPEG class includes controls for common features of JPEG
  4016. encoders and decoders. Currently it includes features for codecs
  4017. implementing progressive baseline DCT compression process with
  4018. Huffman entrophy coding.</para>
  4019. <table pgwide="1" frame="none" id="jpeg-control-id">
  4020. <title>JPEG Control IDs</title>
  4021. <tgroup cols="4">
  4022. <colspec colname="c1" colwidth="1*" />
  4023. <colspec colname="c2" colwidth="6*" />
  4024. <colspec colname="c3" colwidth="2*" />
  4025. <colspec colname="c4" colwidth="6*" />
  4026. <spanspec namest="c1" nameend="c2" spanname="id" />
  4027. <spanspec namest="c2" nameend="c4" spanname="descr" />
  4028. <thead>
  4029. <row>
  4030. <entry spanname="id" align="left">ID</entry>
  4031. <entry align="left">Type</entry>
  4032. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  4033. </row>
  4034. </thead>
  4035. <tbody valign="top">
  4036. <row><entry></entry></row>
  4037. <row>
  4038. <entry spanname="id"><constant>V4L2_CID_JPEG_CLASS</constant>&nbsp;</entry>
  4039. <entry>class</entry>
  4040. </row><row><entry spanname="descr">The JPEG class descriptor. Calling
  4041. &VIDIOC-QUERYCTRL; for this control will return a description of this
  4042. control class.
  4043. </entry>
  4044. </row>
  4045. <row>
  4046. <entry spanname="id"><constant>V4L2_CID_JPEG_CHROMA_SUBSAMPLING</constant></entry>
  4047. <entry>menu</entry>
  4048. </row>
  4049. <row id="v4l2-jpeg-chroma-subsampling">
  4050. <entry spanname="descr">The chroma subsampling factors describe how
  4051. each component of an input image is sampled, in respect to maximum
  4052. sample rate in each spatial dimension. See <xref linkend="itu-t81"/>,
  4053. clause A.1.1. for more details. The <constant>
  4054. V4L2_CID_JPEG_CHROMA_SUBSAMPLING</constant> control determines how
  4055. Cb and Cr components are downsampled after coverting an input image
  4056. from RGB to Y'CbCr color space.
  4057. </entry>
  4058. </row>
  4059. <row>
  4060. <entrytbl spanname="descr" cols="2">
  4061. <tbody valign="top">
  4062. <row>
  4063. <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_444</constant>
  4064. </entry><entry>No chroma subsampling, each pixel has
  4065. Y, Cr and Cb values.</entry>
  4066. </row>
  4067. <row>
  4068. <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_422</constant>
  4069. </entry><entry>Horizontally subsample Cr, Cb components
  4070. by a factor of 2.</entry>
  4071. </row>
  4072. <row>
  4073. <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_420</constant>
  4074. </entry><entry>Subsample Cr, Cb components horizontally
  4075. and vertically by 2.</entry>
  4076. </row>
  4077. <row>
  4078. <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_411</constant>
  4079. </entry><entry>Horizontally subsample Cr, Cb components
  4080. by a factor of 4.</entry>
  4081. </row>
  4082. <row>
  4083. <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_410</constant>
  4084. </entry><entry>Subsample Cr, Cb components horizontally
  4085. by 4 and vertically by 2.</entry>
  4086. </row>
  4087. <row>
  4088. <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY</constant>
  4089. </entry><entry>Use only luminance component.</entry>
  4090. </row>
  4091. </tbody>
  4092. </entrytbl>
  4093. </row>
  4094. <row>
  4095. <entry spanname="id"><constant>V4L2_CID_JPEG_RESTART_INTERVAL</constant>
  4096. </entry><entry>integer</entry>
  4097. </row>
  4098. <row><entry spanname="descr">
  4099. The restart interval determines an interval of inserting RSTm
  4100. markers (m = 0..7). The purpose of these markers is to additionally
  4101. reinitialize the encoder process, in order to process blocks of
  4102. an image independently.
  4103. For the lossy compression processes the restart interval unit is
  4104. MCU (Minimum Coded Unit) and its value is contained in DRI
  4105. (Define Restart Interval) marker. If <constant>
  4106. V4L2_CID_JPEG_RESTART_INTERVAL</constant> control is set to 0,
  4107. DRI and RSTm markers will not be inserted.
  4108. </entry>
  4109. </row>
  4110. <row id="jpeg-quality-control">
  4111. <entry spanname="id"><constant>V4L2_CID_JPEG_COMPRESSION_QUALITY</constant></entry>
  4112. <entry>integer</entry>
  4113. </row>
  4114. <row>
  4115. <entry spanname="descr">
  4116. <constant>V4L2_CID_JPEG_COMPRESSION_QUALITY</constant> control
  4117. determines trade-off between image quality and size.
  4118. It provides simpler method for applications to control image quality,
  4119. without a need for direct reconfiguration of luminance and chrominance
  4120. quantization tables.
  4121. In cases where a driver uses quantization tables configured directly
  4122. by an application, using interfaces defined elsewhere, <constant>
  4123. V4L2_CID_JPEG_COMPRESSION_QUALITY</constant> control should be set
  4124. by driver to 0.
  4125. <para>The value range of this control is driver-specific. Only
  4126. positive, non-zero values are meaningful. The recommended range
  4127. is 1 - 100, where larger values correspond to better image quality.
  4128. </para>
  4129. </entry>
  4130. </row>
  4131. <row id="jpeg-active-marker-control">
  4132. <entry spanname="id"><constant>V4L2_CID_JPEG_ACTIVE_MARKER</constant></entry>
  4133. <entry>bitmask</entry>
  4134. </row>
  4135. <row>
  4136. <entry spanname="descr">Specify which JPEG markers are included
  4137. in compressed stream. This control is valid only for encoders.
  4138. </entry>
  4139. </row>
  4140. <row>
  4141. <entrytbl spanname="descr" cols="2">
  4142. <tbody valign="top">
  4143. <row>
  4144. <entry><constant>V4L2_JPEG_ACTIVE_MARKER_APP0</constant></entry>
  4145. <entry>Application data segment APP<subscript>0</subscript>.</entry>
  4146. </row><row>
  4147. <entry><constant>V4L2_JPEG_ACTIVE_MARKER_APP1</constant></entry>
  4148. <entry>Application data segment APP<subscript>1</subscript>.</entry>
  4149. </row><row>
  4150. <entry><constant>V4L2_JPEG_ACTIVE_MARKER_COM</constant></entry>
  4151. <entry>Comment segment.</entry>
  4152. </row><row>
  4153. <entry><constant>V4L2_JPEG_ACTIVE_MARKER_DQT</constant></entry>
  4154. <entry>Quantization tables segment.</entry>
  4155. </row><row>
  4156. <entry><constant>V4L2_JPEG_ACTIVE_MARKER_DHT</constant></entry>
  4157. <entry>Huffman tables segment.</entry>
  4158. </row>
  4159. </tbody>
  4160. </entrytbl>
  4161. </row>
  4162. <row><entry></entry></row>
  4163. </tbody>
  4164. </tgroup>
  4165. </table>
  4166. <para>For more details about JPEG specification, refer
  4167. to <xref linkend="itu-t81"/>, <xref linkend="jfif"/>,
  4168. <xref linkend="w3c-jpeg-jfif"/>.</para>
  4169. </section>
  4170. <section id="image-source-controls">
  4171. <title>Image Source Control Reference</title>
  4172. <note>
  4173. <title>Experimental</title>
  4174. <para>This is an <link
  4175. linkend="experimental">experimental</link> interface and may
  4176. change in the future.</para>
  4177. </note>
  4178. <para>
  4179. The Image Source control class is intended for low-level
  4180. control of image source devices such as image sensors. The
  4181. devices feature an analogue to digital converter and a bus
  4182. transmitter to transmit the image data out of the device.
  4183. </para>
  4184. <table pgwide="1" frame="none" id="image-source-control-id">
  4185. <title>Image Source Control IDs</title>
  4186. <tgroup cols="4">
  4187. <colspec colname="c1" colwidth="1*" />
  4188. <colspec colname="c2" colwidth="6*" />
  4189. <colspec colname="c3" colwidth="2*" />
  4190. <colspec colname="c4" colwidth="6*" />
  4191. <spanspec namest="c1" nameend="c2" spanname="id" />
  4192. <spanspec namest="c2" nameend="c4" spanname="descr" />
  4193. <thead>
  4194. <row>
  4195. <entry spanname="id" align="left">ID</entry>
  4196. <entry align="left">Type</entry>
  4197. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  4198. </row>
  4199. </thead>
  4200. <tbody valign="top">
  4201. <row><entry></entry></row>
  4202. <row>
  4203. <entry spanname="id"><constant>V4L2_CID_IMAGE_SOURCE_CLASS</constant></entry>
  4204. <entry>class</entry>
  4205. </row>
  4206. <row>
  4207. <entry spanname="descr">The IMAGE_SOURCE class descriptor.</entry>
  4208. </row>
  4209. <row>
  4210. <entry spanname="id"><constant>V4L2_CID_VBLANK</constant></entry>
  4211. <entry>integer</entry>
  4212. </row>
  4213. <row>
  4214. <entry spanname="descr">Vertical blanking. The idle period
  4215. after every frame during which no image data is produced.
  4216. The unit of vertical blanking is a line. Every line has
  4217. length of the image width plus horizontal blanking at the
  4218. pixel rate defined by
  4219. <constant>V4L2_CID_PIXEL_RATE</constant> control in the
  4220. same sub-device.</entry>
  4221. </row>
  4222. <row>
  4223. <entry spanname="id"><constant>V4L2_CID_HBLANK</constant></entry>
  4224. <entry>integer</entry>
  4225. </row>
  4226. <row>
  4227. <entry spanname="descr">Horizontal blanking. The idle
  4228. period after every line of image data during which no
  4229. image data is produced. The unit of horizontal blanking is
  4230. pixels.</entry>
  4231. </row>
  4232. <row>
  4233. <entry spanname="id"><constant>V4L2_CID_ANALOGUE_GAIN</constant></entry>
  4234. <entry>integer</entry>
  4235. </row>
  4236. <row>
  4237. <entry spanname="descr">Analogue gain is gain affecting
  4238. all colour components in the pixel matrix. The gain
  4239. operation is performed in the analogue domain before A/D
  4240. conversion.
  4241. </entry>
  4242. </row>
  4243. <row><entry></entry></row>
  4244. </tbody>
  4245. </tgroup>
  4246. </table>
  4247. </section>
  4248. <section id="image-process-controls">
  4249. <title>Image Process Control Reference</title>
  4250. <note>
  4251. <title>Experimental</title>
  4252. <para>This is an <link
  4253. linkend="experimental">experimental</link> interface and may
  4254. change in the future.</para>
  4255. </note>
  4256. <para>
  4257. The Image Source control class is intended for low-level control of
  4258. image processing functions. Unlike
  4259. <constant>V4L2_CID_IMAGE_SOURCE_CLASS</constant>, the controls in
  4260. this class affect processing the image, and do not control capturing
  4261. of it.
  4262. </para>
  4263. <table pgwide="1" frame="none" id="image-process-control-id">
  4264. <title>Image Source Control IDs</title>
  4265. <tgroup cols="4">
  4266. <colspec colname="c1" colwidth="1*" />
  4267. <colspec colname="c2" colwidth="6*" />
  4268. <colspec colname="c3" colwidth="2*" />
  4269. <colspec colname="c4" colwidth="6*" />
  4270. <spanspec namest="c1" nameend="c2" spanname="id" />
  4271. <spanspec namest="c2" nameend="c4" spanname="descr" />
  4272. <thead>
  4273. <row>
  4274. <entry spanname="id" align="left">ID</entry>
  4275. <entry align="left">Type</entry>
  4276. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  4277. </row>
  4278. </thead>
  4279. <tbody valign="top">
  4280. <row><entry></entry></row>
  4281. <row>
  4282. <entry spanname="id"><constant>V4L2_CID_IMAGE_PROC_CLASS</constant></entry>
  4283. <entry>class</entry>
  4284. </row>
  4285. <row>
  4286. <entry spanname="descr">The IMAGE_PROC class descriptor.</entry>
  4287. </row>
  4288. <row>
  4289. <entry spanname="id"><constant>V4L2_CID_LINK_FREQ</constant></entry>
  4290. <entry>integer menu</entry>
  4291. </row>
  4292. <row>
  4293. <entry spanname="descr">Data bus frequency. Together with the
  4294. media bus pixel code, bus type (clock cycles per sample), the
  4295. data bus frequency defines the pixel rate
  4296. (<constant>V4L2_CID_PIXEL_RATE</constant>) in the
  4297. pixel array (or possibly elsewhere, if the device is not an
  4298. image sensor). The frame rate can be calculated from the pixel
  4299. clock, image width and height and horizontal and vertical
  4300. blanking. While the pixel rate control may be defined elsewhere
  4301. than in the subdev containing the pixel array, the frame rate
  4302. cannot be obtained from that information. This is because only
  4303. on the pixel array it can be assumed that the vertical and
  4304. horizontal blanking information is exact: no other blanking is
  4305. allowed in the pixel array. The selection of frame rate is
  4306. performed by selecting the desired horizontal and vertical
  4307. blanking. The unit of this control is Hz. </entry>
  4308. </row>
  4309. <row>
  4310. <entry spanname="id"><constant>V4L2_CID_PIXEL_RATE</constant></entry>
  4311. <entry>64-bit integer</entry>
  4312. </row>
  4313. <row>
  4314. <entry spanname="descr">Pixel rate in the source pads of
  4315. the subdev. This control is read-only and its unit is
  4316. pixels / second.
  4317. </entry>
  4318. </row>
  4319. <row>
  4320. <entry spanname="id"><constant>V4L2_CID_TEST_PATTERN</constant></entry>
  4321. <entry>menu</entry>
  4322. </row>
  4323. <row id="v4l2-test-pattern">
  4324. <entry spanname="descr"> Some capture/display/sensor devices have
  4325. the capability to generate test pattern images. These hardware
  4326. specific test patterns can be used to test if a device is working
  4327. properly.</entry>
  4328. </row>
  4329. <row><entry></entry></row>
  4330. </tbody>
  4331. </tgroup>
  4332. </table>
  4333. </section>
  4334. <section id="dv-controls">
  4335. <title>Digital Video Control Reference</title>
  4336. <note>
  4337. <title>Experimental</title>
  4338. <para>This is an <link
  4339. linkend="experimental">experimental</link> interface and may
  4340. change in the future.</para>
  4341. </note>
  4342. <para>
  4343. The Digital Video control class is intended to control receivers
  4344. and transmitters for <ulink url="http://en.wikipedia.org/wiki/Vga">VGA</ulink>,
  4345. <ulink url="http://en.wikipedia.org/wiki/Digital_Visual_Interface">DVI</ulink>
  4346. (Digital Visual Interface), HDMI (<xref linkend="hdmi" />) and DisplayPort (<xref linkend="dp" />).
  4347. These controls are generally expected to be private to the receiver or transmitter
  4348. subdevice that implements them, so they are only exposed on the
  4349. <filename>/dev/v4l-subdev*</filename> device node.
  4350. </para>
  4351. <para>Note that these devices can have multiple input or output pads which are
  4352. hooked up to e.g. HDMI connectors. Even though the subdevice will receive or
  4353. transmit video from/to only one of those pads, the other pads can still be
  4354. active when it comes to EDID (Extended Display Identification Data,
  4355. <xref linkend="vesaedid" />) and HDCP (High-bandwidth Digital Content
  4356. Protection System, <xref linkend="hdcp" />) processing, allowing the device
  4357. to do the fairly slow EDID/HDCP handling in advance. This allows for quick
  4358. switching between connectors.</para>
  4359. <para>These pads appear in several of the controls in this section as
  4360. bitmasks, one bit for each pad. Bit 0 corresponds to pad 0, bit 1 to pad 1,
  4361. etc. The maximum value of the control is the set of valid pads.</para>
  4362. <table pgwide="1" frame="none" id="dv-control-id">
  4363. <title>Digital Video Control IDs</title>
  4364. <tgroup cols="4">
  4365. <colspec colname="c1" colwidth="1*" />
  4366. <colspec colname="c2" colwidth="6*" />
  4367. <colspec colname="c3" colwidth="2*" />
  4368. <colspec colname="c4" colwidth="6*" />
  4369. <spanspec namest="c1" nameend="c2" spanname="id" />
  4370. <spanspec namest="c2" nameend="c4" spanname="descr" />
  4371. <thead>
  4372. <row>
  4373. <entry spanname="id" align="left">ID</entry>
  4374. <entry align="left">Type</entry>
  4375. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  4376. </row>
  4377. </thead>
  4378. <tbody valign="top">
  4379. <row><entry></entry></row>
  4380. <row>
  4381. <entry spanname="id"><constant>V4L2_CID_DV_CLASS</constant></entry>
  4382. <entry>class</entry>
  4383. </row>
  4384. <row>
  4385. <entry spanname="descr">The Digital Video class descriptor.</entry>
  4386. </row>
  4387. <row>
  4388. <entry spanname="id"><constant>V4L2_CID_DV_TX_HOTPLUG</constant></entry>
  4389. <entry>bitmask</entry>
  4390. </row>
  4391. <row>
  4392. <entry spanname="descr">Many connectors have a hotplug pin which is high
  4393. if EDID information is available from the source. This control shows the
  4394. state of the hotplug pin as seen by the transmitter.
  4395. Each bit corresponds to an output pad on the transmitter. If an output pad
  4396. does not have an associated hotplug pin, then the bit for that pad will be 0.
  4397. This read-only control is applicable to DVI-D, HDMI and DisplayPort connectors.
  4398. </entry>
  4399. </row>
  4400. <row>
  4401. <entry spanname="id"><constant>V4L2_CID_DV_TX_RXSENSE</constant></entry>
  4402. <entry>bitmask</entry>
  4403. </row>
  4404. <row>
  4405. <entry spanname="descr">Rx Sense is the detection of pull-ups on the TMDS
  4406. clock lines. This normally means that the sink has left/entered standby (i.e.
  4407. the transmitter can sense that the receiver is ready to receive video).
  4408. Each bit corresponds to an output pad on the transmitter. If an output pad
  4409. does not have an associated Rx Sense, then the bit for that pad will be 0.
  4410. This read-only control is applicable to DVI-D and HDMI devices.
  4411. </entry>
  4412. </row>
  4413. <row>
  4414. <entry spanname="id"><constant>V4L2_CID_DV_TX_EDID_PRESENT</constant></entry>
  4415. <entry>bitmask</entry>
  4416. </row>
  4417. <row>
  4418. <entry spanname="descr">When the transmitter sees the hotplug signal from the
  4419. receiver it will attempt to read the EDID. If set, then the transmitter has read
  4420. at least the first block (= 128 bytes).
  4421. Each bit corresponds to an output pad on the transmitter. If an output pad
  4422. does not support EDIDs, then the bit for that pad will be 0.
  4423. This read-only control is applicable to VGA, DVI-A/D, HDMI and DisplayPort connectors.
  4424. </entry>
  4425. </row>
  4426. <row>
  4427. <entry spanname="id"><constant>V4L2_CID_DV_TX_MODE</constant></entry>
  4428. <entry id="v4l2-dv-tx-mode">enum v4l2_dv_tx_mode</entry>
  4429. </row>
  4430. <row>
  4431. <entry spanname="descr">HDMI transmitters can transmit in DVI-D mode (just video)
  4432. or in HDMI mode (video + audio + auxiliary data). This control selects which mode
  4433. to use: V4L2_DV_TX_MODE_DVI_D or V4L2_DV_TX_MODE_HDMI.
  4434. This control is applicable to HDMI connectors.
  4435. </entry>
  4436. </row>
  4437. <row>
  4438. <entry spanname="id"><constant>V4L2_CID_DV_TX_RGB_RANGE</constant></entry>
  4439. <entry id="v4l2-dv-rgb-range">enum v4l2_dv_rgb_range</entry>
  4440. </row>
  4441. <row>
  4442. <entry spanname="descr">Select the quantization range for RGB output. V4L2_DV_RANGE_AUTO
  4443. follows the RGB quantization range specified in the standard for the video interface
  4444. (ie. <xref linkend="cea861" /> for HDMI). V4L2_DV_RANGE_LIMITED and V4L2_DV_RANGE_FULL override the standard
  4445. to be compatible with sinks that have not implemented the standard correctly
  4446. (unfortunately quite common for HDMI and DVI-D). Full range allows all possible values to be
  4447. used whereas limited range sets the range to (16 &lt;&lt; (N-8)) - (235 &lt;&lt; (N-8))
  4448. where N is the number of bits per component.
  4449. This control is applicable to VGA, DVI-A/D, HDMI and DisplayPort connectors.
  4450. </entry>
  4451. </row>
  4452. <row>
  4453. <entry spanname="id"><constant>V4L2_CID_DV_RX_POWER_PRESENT</constant></entry>
  4454. <entry>bitmask</entry>
  4455. </row>
  4456. <row>
  4457. <entry spanname="descr">Detects whether the receiver receives power from the source
  4458. (e.g. HDMI carries 5V on one of the pins). This is often used to power an eeprom
  4459. which contains EDID information, such that the source can read the EDID even if
  4460. the sink is in standby/power off.
  4461. Each bit corresponds to an input pad on the transmitter. If an input pad
  4462. cannot detect whether power is present, then the bit for that pad will be 0.
  4463. This read-only control is applicable to DVI-D, HDMI and DisplayPort connectors.
  4464. </entry>
  4465. </row>
  4466. <row>
  4467. <entry spanname="id"><constant>V4L2_CID_DV_RX_RGB_RANGE</constant></entry>
  4468. <entry>enum v4l2_dv_rgb_range</entry>
  4469. </row>
  4470. <row>
  4471. <entry spanname="descr">Select the quantization range for RGB input. V4L2_DV_RANGE_AUTO
  4472. follows the RGB quantization range specified in the standard for the video interface
  4473. (ie. <xref linkend="cea861" /> for HDMI). V4L2_DV_RANGE_LIMITED and V4L2_DV_RANGE_FULL override the standard
  4474. to be compatible with sources that have not implemented the standard correctly
  4475. (unfortunately quite common for HDMI and DVI-D). Full range allows all possible values to be
  4476. used whereas limited range sets the range to (16 &lt;&lt; (N-8)) - (235 &lt;&lt; (N-8))
  4477. where N is the number of bits per component.
  4478. This control is applicable to VGA, DVI-A/D, HDMI and DisplayPort connectors.
  4479. </entry>
  4480. </row>
  4481. <row><entry></entry></row>
  4482. </tbody>
  4483. </tgroup>
  4484. </table>
  4485. </section>
  4486. <section id="fm-rx-controls">
  4487. <title>FM Receiver Control Reference</title>
  4488. <para>The FM Receiver (FM_RX) class includes controls for common features of
  4489. FM Reception capable devices.</para>
  4490. <table pgwide="1" frame="none" id="fm-rx-control-id">
  4491. <title>FM_RX Control IDs</title>
  4492. <tgroup cols="4">
  4493. <colspec colname="c1" colwidth="1*" />
  4494. <colspec colname="c2" colwidth="6*" />
  4495. <colspec colname="c3" colwidth="2*" />
  4496. <colspec colname="c4" colwidth="6*" />
  4497. <spanspec namest="c1" nameend="c2" spanname="id" />
  4498. <spanspec namest="c2" nameend="c4" spanname="descr" />
  4499. <thead>
  4500. <row>
  4501. <entry spanname="id" align="left">ID</entry>
  4502. <entry align="left">Type</entry>
  4503. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  4504. </row>
  4505. </thead>
  4506. <tbody valign="top">
  4507. <row><entry></entry></row>
  4508. <row>
  4509. <entry spanname="id"><constant>V4L2_CID_FM_RX_CLASS</constant>&nbsp;</entry>
  4510. <entry>class</entry>
  4511. </row><row><entry spanname="descr">The FM_RX class
  4512. descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
  4513. description of this control class.</entry>
  4514. </row>
  4515. <row>
  4516. <entry spanname="id"><constant>V4L2_CID_RDS_RECEPTION</constant>&nbsp;</entry>
  4517. <entry>boolean</entry>
  4518. </row><row><entry spanname="descr">Enables/disables RDS
  4519. reception by the radio tuner</entry>
  4520. </row>
  4521. <row>
  4522. <entry spanname="id"><constant>V4L2_CID_TUNE_DEEMPHASIS</constant>&nbsp;</entry>
  4523. <entry>enum v4l2_deemphasis</entry>
  4524. </row>
  4525. <row id="v4l2-deemphasis"><entry spanname="descr">Configures the de-emphasis value for reception.
  4526. A de-emphasis filter is applied to the broadcast to accentuate the high audio frequencies.
  4527. Depending on the region, a time constant of either 50 or 75 useconds is used. The enum&nbsp;v4l2_deemphasis
  4528. defines possible values for de-emphasis. Here they are:</entry>
  4529. </row><row>
  4530. <entrytbl spanname="descr" cols="2">
  4531. <tbody valign="top">
  4532. <row>
  4533. <entry><constant>V4L2_DEEMPHASIS_DISABLED</constant>&nbsp;</entry>
  4534. <entry>No de-emphasis is applied.</entry>
  4535. </row>
  4536. <row>
  4537. <entry><constant>V4L2_DEEMPHASIS_50_uS</constant>&nbsp;</entry>
  4538. <entry>A de-emphasis of 50 uS is used.</entry>
  4539. </row>
  4540. <row>
  4541. <entry><constant>V4L2_DEEMPHASIS_75_uS</constant>&nbsp;</entry>
  4542. <entry>A de-emphasis of 75 uS is used.</entry>
  4543. </row>
  4544. </tbody>
  4545. </entrytbl>
  4546. </row>
  4547. <row><entry></entry></row>
  4548. </tbody>
  4549. </tgroup>
  4550. </table>
  4551. </section>
  4552. </section>