controls.xml 180 KB

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