controls.xml 161 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277
  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>
  2170. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_CPB_SIZE</constant>&nbsp;</entry>
  2171. <entry>integer</entry>
  2172. </row>
  2173. <row><entry spanname="descr">The Coded Picture Buffer size in kilobytes, it is used as a limitation of frame skip.
  2174. The CPB is defined in the H264 standard as a mean to verify that the produced stream will be successfully decoded.
  2175. Applicable to the H264 encoder.</entry>
  2176. </row>
  2177. <row><entry></entry></row>
  2178. <row>
  2179. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_I_PERIOD</constant>&nbsp;</entry>
  2180. <entry>integer</entry>
  2181. </row>
  2182. <row><entry spanname="descr">Period between I-frames in the open GOP for H264. In case of an open GOP
  2183. this is the period between two I-frames. The period between IDR (Instantaneous Decoding Refresh) frames is taken from the GOP_SIZE control.
  2184. An IDR frame, which stands for Instantaneous Decoding Refresh is an I-frame after which no prior frames are
  2185. referenced. This means that a stream can be restarted from an IDR frame without the need to store or decode any
  2186. previous frames. Applicable to the H264 encoder.</entry>
  2187. </row>
  2188. <row><entry></entry></row>
  2189. <row id="v4l2-mpeg-video-header-mode">
  2190. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_HEADER_MODE</constant>&nbsp;</entry>
  2191. <entry>enum&nbsp;v4l2_mpeg_video_header_mode</entry>
  2192. </row>
  2193. <row><entry spanname="descr">Determines whether the header is returned as the first buffer or is
  2194. it returned together with the first frame. Applicable to encoders.
  2195. Possible values are:</entry>
  2196. </row>
  2197. <row>
  2198. <entrytbl spanname="descr" cols="2">
  2199. <tbody valign="top">
  2200. <row>
  2201. <entry><constant>V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE</constant>&nbsp;</entry>
  2202. <entry>The stream header is returned separately in the first buffer.</entry>
  2203. </row>
  2204. <row>
  2205. <entry><constant>V4L2_MPEG_VIDEO_HEADER_MODE_JOINED_WITH_1ST_FRAME</constant>&nbsp;</entry>
  2206. <entry>The stream header is returned together with the first encoded frame.</entry>
  2207. </row>
  2208. </tbody>
  2209. </entrytbl>
  2210. </row>
  2211. <row><entry></entry></row>
  2212. <row>
  2213. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_DECODER_MPEG4_DEBLOCK_FILTER</constant>&nbsp;</entry>
  2214. <entry>boolean</entry>
  2215. </row><row><entry spanname="descr">Enabled the deblocking post processing filter for MPEG4 decoder.
  2216. Applicable to the MPEG4 decoder.</entry>
  2217. </row>
  2218. <row><entry></entry></row>
  2219. <row>
  2220. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_VOP_TIME_RES</constant>&nbsp;</entry>
  2221. <entry>integer</entry>
  2222. </row><row><entry spanname="descr">vop_time_increment_resolution value for MPEG4. Applicable to the MPEG4 encoder.</entry>
  2223. </row>
  2224. <row><entry></entry></row>
  2225. <row>
  2226. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_VOP_TIME_INC</constant>&nbsp;</entry>
  2227. <entry>integer</entry>
  2228. </row><row><entry spanname="descr">vop_time_increment value for MPEG4. Applicable to the MPEG4 encoder.</entry>
  2229. </row>
  2230. </tbody>
  2231. </tgroup>
  2232. </table>
  2233. </section>
  2234. <section>
  2235. <title>MFC 5.1 MPEG Controls</title>
  2236. <para>The following MPEG class controls deal with MPEG
  2237. decoding and encoding settings that are specific to the Multi Format Codec 5.1 device present
  2238. in the S5P family of SoCs by Samsung.
  2239. </para>
  2240. <table pgwide="1" frame="none" id="mfc51-control-id">
  2241. <title>MFC 5.1 Control IDs</title>
  2242. <tgroup cols="4">
  2243. <colspec colname="c1" colwidth="1*" />
  2244. <colspec colname="c2" colwidth="6*" />
  2245. <colspec colname="c3" colwidth="2*" />
  2246. <colspec colname="c4" colwidth="6*" />
  2247. <spanspec namest="c1" nameend="c2" spanname="id" />
  2248. <spanspec namest="c2" nameend="c4" spanname="descr" />
  2249. <thead>
  2250. <row>
  2251. <entry spanname="id" align="left">ID</entry>
  2252. <entry align="left">Type</entry>
  2253. </row><row><entry spanname="descr" align="left">Description</entry>
  2254. </row>
  2255. </thead>
  2256. <tbody valign="top">
  2257. <row><entry></entry></row>
  2258. <row>
  2259. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY_ENABLE</constant>&nbsp;</entry>
  2260. <entry>integer</entry>
  2261. </row><row><entry spanname="descr">If the display delay is enabled then the decoder has to return a
  2262. CAPTURE buffer after processing a certain number of OUTPUT buffers. If this number is low, then it may result in
  2263. buffers not being dequeued in display order. In addition hardware may still use those buffers as reference, thus
  2264. application should not write to those buffers. This feature can be used for example for generating thumbnails of videos.
  2265. Applicable to the H264 decoder.
  2266. </entry>
  2267. </row>
  2268. <row><entry></entry></row>
  2269. <row>
  2270. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY</constant>&nbsp;</entry>
  2271. <entry>integer</entry>
  2272. </row><row><entry spanname="descr">Display delay value for H264 decoder.
  2273. The decoder is forced to return a decoded frame after the set 'display delay' number of frames. If this number is
  2274. low it may result in frames returned out of dispaly order, in addition the hardware may still be using the returned buffer
  2275. as a reference picture for subsequent frames.
  2276. </entry>
  2277. </row>
  2278. <row><entry></entry></row>
  2279. <row>
  2280. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_NUM_REF_PIC_FOR_P</constant>&nbsp;</entry>
  2281. <entry>integer</entry>
  2282. </row><row><entry spanname="descr">The number of reference pictures used for encoding a P picture.
  2283. Applicable to the H264 encoder.</entry>
  2284. </row>
  2285. <row><entry></entry></row>
  2286. <row>
  2287. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_PADDING</constant>&nbsp;</entry>
  2288. <entry>boolean</entry>
  2289. </row><row><entry spanname="descr">Padding enable in the encoder - use a color instead of repeating border pixels.
  2290. Applicable to encoders.</entry>
  2291. </row>
  2292. <row><entry></entry></row>
  2293. <row>
  2294. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_PADDING_YUV</constant>&nbsp;</entry>
  2295. <entry>integer</entry>
  2296. </row><row><entry spanname="descr">Padding color in the encoder. Applicable to encoders. The supplied 32-bit integer is interpreted as follows (bit
  2297. 0 = least significant bit):</entry>
  2298. </row>
  2299. <row>
  2300. <entrytbl spanname="descr" cols="2">
  2301. <tbody valign="top">
  2302. <row>
  2303. <entry>Bit 0:7</entry>
  2304. <entry>V chrominance information</entry>
  2305. </row>
  2306. <row>
  2307. <entry>Bit 8:15</entry>
  2308. <entry>U chrominance information</entry>
  2309. </row>
  2310. <row>
  2311. <entry>Bit 16:23</entry>
  2312. <entry>Y luminance information</entry>
  2313. </row>
  2314. <row>
  2315. <entry>Bit 24:31</entry>
  2316. <entry>Must be zero.</entry>
  2317. </row>
  2318. </tbody>
  2319. </entrytbl>
  2320. </row>
  2321. <row><entry></entry></row>
  2322. <row>
  2323. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_RC_REACTION_COEFF</constant>&nbsp;</entry>
  2324. <entry>integer</entry>
  2325. </row><row><entry spanname="descr">Reaction coefficient for MFC rate control. Applicable to encoders.
  2326. <para>Note 1: Valid only when the frame level RC is enabled.</para>
  2327. <para>Note 2: For tight CBR, this field must be small (ex. 2 ~ 10).
  2328. For VBR, this field must be large (ex. 100 ~ 1000).</para>
  2329. <para>Note 3: It is not recommended to use the greater number than FRAME_RATE * (10^9 / BIT_RATE).</para>
  2330. </entry>
  2331. </row>
  2332. <row><entry></entry></row>
  2333. <row>
  2334. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_DARK</constant>&nbsp;</entry>
  2335. <entry>boolean</entry>
  2336. </row><row><entry spanname="descr">Adaptive rate control for dark region.
  2337. Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
  2338. Applicable to the H264 encoder.</entry>
  2339. </row>
  2340. <row><entry></entry></row>
  2341. <row>
  2342. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_SMOOTH</constant>&nbsp;</entry>
  2343. <entry>boolean</entry>
  2344. </row><row><entry spanname="descr">Adaptive rate control for smooth region.
  2345. Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
  2346. Applicable to the H264 encoder.</entry>
  2347. </row>
  2348. <row><entry></entry></row>
  2349. <row>
  2350. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_STATIC</constant>&nbsp;</entry>
  2351. <entry>boolean</entry>
  2352. </row><row><entry spanname="descr">Adaptive rate control for static region.
  2353. Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
  2354. Applicable to the H264 encoder.</entry>
  2355. </row>
  2356. <row><entry></entry></row>
  2357. <row>
  2358. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_ACTIVITY</constant>&nbsp;</entry>
  2359. <entry>boolean</entry>
  2360. </row><row><entry spanname="descr">Adaptive rate control for activity region.
  2361. Valid only when H.264 and macroblock level RC is enabled (<constant>V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE</constant>).
  2362. Applicable to the H264 encoder.</entry>
  2363. </row>
  2364. <row><entry></entry></row>
  2365. <row id="v4l2-mpeg-mfc51-video-frame-skip-mode">
  2366. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE</constant>&nbsp;</entry>
  2367. <entry>enum&nbsp;v4l2_mpeg_mfc51_video_frame_skip_mode</entry>
  2368. </row>
  2369. <row><entry spanname="descr">
  2370. Indicates in what conditions the encoder should skip frames. If encoding a frame would cause the encoded stream to be larger then
  2371. a chosen data limit then the frame will be skipped.
  2372. Possible values are:</entry>
  2373. </row>
  2374. <row>
  2375. <entrytbl spanname="descr" cols="2">
  2376. <tbody valign="top">
  2377. <row>
  2378. <entry><constant>V4L2_MPEG_MFC51_FRAME_SKIP_MODE_DISABLED</constant>&nbsp;</entry>
  2379. <entry>Frame skip mode is disabled.</entry>
  2380. </row>
  2381. <row>
  2382. <entry><constant>V4L2_MPEG_MFC51_FRAME_SKIP_MODE_LEVEL_LIMIT</constant>&nbsp;</entry>
  2383. <entry>Frame skip mode enabled and buffer limit is set by the chosen level and is defined by the standard.</entry>
  2384. </row>
  2385. <row>
  2386. <entry><constant>V4L2_MPEG_MFC51_FRAME_SKIP_MODE_BUF_LIMIT</constant>&nbsp;</entry>
  2387. <entry>Frame skip mode enabled and buffer limit is set by the VBV (MPEG1/2/4) or CPB (H264) buffer size control.</entry>
  2388. </row>
  2389. </tbody>
  2390. </entrytbl>
  2391. </row>
  2392. <row><entry></entry></row>
  2393. <row>
  2394. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_RC_FIXED_TARGET_BIT</constant>&nbsp;</entry>
  2395. <entry>integer</entry>
  2396. </row><row><entry spanname="descr">Enable rate-control with fixed target bit.
  2397. If this setting is enabled, then the rate control logic of the encoder will calculate the average bitrate
  2398. for a GOP and keep it below or equal the set bitrate target. Otherwise the rate control logic calculates the
  2399. overall average bitrate for the stream and keeps it below or equal to the set bitrate. In the first case
  2400. the average bitrate for the whole stream will be smaller then the set bitrate. This is caused because the
  2401. average is calculated for smaller number of frames, on the other hand enabling this setting will ensure that
  2402. the stream will meet tight bandwidth contraints. Applicable to encoders.
  2403. </entry>
  2404. </row>
  2405. <row><entry></entry></row>
  2406. <row id="v4l2-mpeg-mfc51-video-force-frame-type">
  2407. <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_FORCE_FRAME_TYPE</constant>&nbsp;</entry>
  2408. <entry>enum&nbsp;v4l2_mpeg_mfc51_video_force_frame_type</entry>
  2409. </row>
  2410. <row><entry spanname="descr">Force a frame type for the next queued buffer. Applicable to encoders.
  2411. Possible values are:</entry>
  2412. </row>
  2413. <row>
  2414. <entrytbl spanname="descr" cols="2">
  2415. <tbody valign="top">
  2416. <row>
  2417. <entry><constant>V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_DISABLED</constant>&nbsp;</entry>
  2418. <entry>Forcing a specific frame type disabled.</entry>
  2419. </row>
  2420. <row>
  2421. <entry><constant>V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_I_FRAME</constant>&nbsp;</entry>
  2422. <entry>Force an I-frame.</entry>
  2423. </row>
  2424. <row>
  2425. <entry><constant>V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_NOT_CODED</constant>&nbsp;</entry>
  2426. <entry>Force a non-coded frame.</entry>
  2427. </row>
  2428. </tbody>
  2429. </entrytbl>
  2430. </row>
  2431. </tbody>
  2432. </tgroup>
  2433. </table>
  2434. </section>
  2435. <section>
  2436. <title>CX2341x MPEG Controls</title>
  2437. <para>The following MPEG class controls deal with MPEG
  2438. encoding settings that are specific to the Conexant CX23415 and
  2439. CX23416 MPEG encoding chips.</para>
  2440. <table pgwide="1" frame="none" id="cx2341x-control-id">
  2441. <title>CX2341x Control IDs</title>
  2442. <tgroup cols="4">
  2443. <colspec colname="c1" colwidth="1*" />
  2444. <colspec colname="c2" colwidth="6*" />
  2445. <colspec colname="c3" colwidth="2*" />
  2446. <colspec colname="c4" colwidth="6*" />
  2447. <spanspec namest="c1" nameend="c2" spanname="id" />
  2448. <spanspec namest="c2" nameend="c4" spanname="descr" />
  2449. <thead>
  2450. <row>
  2451. <entry spanname="id" align="left">ID</entry>
  2452. <entry align="left">Type</entry>
  2453. </row><row><entry spanname="descr" align="left">Description</entry>
  2454. </row>
  2455. </thead>
  2456. <tbody valign="top">
  2457. <row><entry></entry></row>
  2458. <row id="v4l2-mpeg-cx2341x-video-spatial-filter-mode">
  2459. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE</constant>&nbsp;</entry>
  2460. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_spatial_filter_mode</entry>
  2461. </row><row><entry spanname="descr">Sets the Spatial
  2462. Filter mode (default <constant>MANUAL</constant>). Possible values
  2463. are:</entry>
  2464. </row>
  2465. <row>
  2466. <entrytbl spanname="descr" cols="2">
  2467. <tbody valign="top">
  2468. <row>
  2469. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_MANUAL</constant>&nbsp;</entry>
  2470. <entry>Choose the filter manually</entry>
  2471. </row>
  2472. <row>
  2473. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO</constant>&nbsp;</entry>
  2474. <entry>Choose the filter automatically</entry>
  2475. </row>
  2476. </tbody>
  2477. </entrytbl>
  2478. </row>
  2479. <row><entry></entry></row>
  2480. <row>
  2481. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER</constant>&nbsp;</entry>
  2482. <entry>integer&nbsp;(0-15)</entry>
  2483. </row><row><entry spanname="descr">The setting for the
  2484. Spatial Filter. 0 = off, 15 = maximum. (Default is 0.)</entry>
  2485. </row>
  2486. <row><entry></entry></row>
  2487. <row id="luma-spatial-filter-type">
  2488. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE</constant>&nbsp;</entry>
  2489. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_luma_spatial_filter_type</entry>
  2490. </row><row><entry spanname="descr">Select the algorithm
  2491. to use for the Luma Spatial Filter (default
  2492. <constant>1D_HOR</constant>). Possible values:</entry>
  2493. </row>
  2494. <row>
  2495. <entrytbl spanname="descr" cols="2">
  2496. <tbody valign="top">
  2497. <row>
  2498. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_OFF</constant>&nbsp;</entry>
  2499. <entry>No filter</entry>
  2500. </row>
  2501. <row>
  2502. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_HOR</constant>&nbsp;</entry>
  2503. <entry>One-dimensional horizontal</entry>
  2504. </row>
  2505. <row>
  2506. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_VERT</constant>&nbsp;</entry>
  2507. <entry>One-dimensional vertical</entry>
  2508. </row>
  2509. <row>
  2510. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_HV_SEPARABLE</constant>&nbsp;</entry>
  2511. <entry>Two-dimensional separable</entry>
  2512. </row>
  2513. <row>
  2514. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_SYM_NON_SEPARABLE</constant>&nbsp;</entry>
  2515. <entry>Two-dimensional symmetrical
  2516. non-separable</entry>
  2517. </row>
  2518. </tbody>
  2519. </entrytbl>
  2520. </row>
  2521. <row><entry></entry></row>
  2522. <row id="chroma-spatial-filter-type">
  2523. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE</constant>&nbsp;</entry>
  2524. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_chroma_spatial_filter_type</entry>
  2525. </row><row><entry spanname="descr">Select the algorithm
  2526. for the Chroma Spatial Filter (default <constant>1D_HOR</constant>).
  2527. Possible values are:</entry>
  2528. </row>
  2529. <row>
  2530. <entrytbl spanname="descr" cols="2">
  2531. <tbody valign="top">
  2532. <row>
  2533. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_OFF</constant>&nbsp;</entry>
  2534. <entry>No filter</entry>
  2535. </row>
  2536. <row>
  2537. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_1D_HOR</constant>&nbsp;</entry>
  2538. <entry>One-dimensional horizontal</entry>
  2539. </row>
  2540. </tbody>
  2541. </entrytbl>
  2542. </row>
  2543. <row><entry></entry></row>
  2544. <row id="v4l2-mpeg-cx2341x-video-temporal-filter-mode">
  2545. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE</constant>&nbsp;</entry>
  2546. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_temporal_filter_mode</entry>
  2547. </row><row><entry spanname="descr">Sets the Temporal
  2548. Filter mode (default <constant>MANUAL</constant>). Possible values
  2549. are:</entry>
  2550. </row>
  2551. <row>
  2552. <entrytbl spanname="descr" cols="2">
  2553. <tbody valign="top">
  2554. <row>
  2555. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_MANUAL</constant>&nbsp;</entry>
  2556. <entry>Choose the filter manually</entry>
  2557. </row>
  2558. <row>
  2559. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO</constant>&nbsp;</entry>
  2560. <entry>Choose the filter automatically</entry>
  2561. </row>
  2562. </tbody>
  2563. </entrytbl>
  2564. </row>
  2565. <row><entry></entry></row>
  2566. <row>
  2567. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER</constant>&nbsp;</entry>
  2568. <entry>integer&nbsp;(0-31)</entry>
  2569. </row><row><entry spanname="descr">The setting for the
  2570. Temporal Filter. 0 = off, 31 = maximum. (Default is 8 for full-scale
  2571. capturing and 0 for scaled capturing.)</entry>
  2572. </row>
  2573. <row><entry></entry></row>
  2574. <row id="v4l2-mpeg-cx2341x-video-median-filter-type">
  2575. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE</constant>&nbsp;</entry>
  2576. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_median_filter_type</entry>
  2577. </row><row><entry spanname="descr">Median Filter Type
  2578. (default <constant>OFF</constant>). Possible values are:</entry>
  2579. </row>
  2580. <row>
  2581. <entrytbl spanname="descr" cols="2">
  2582. <tbody valign="top">
  2583. <row>
  2584. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF</constant>&nbsp;</entry>
  2585. <entry>No filter</entry>
  2586. </row>
  2587. <row>
  2588. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR</constant>&nbsp;</entry>
  2589. <entry>Horizontal filter</entry>
  2590. </row>
  2591. <row>
  2592. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_VERT</constant>&nbsp;</entry>
  2593. <entry>Vertical filter</entry>
  2594. </row>
  2595. <row>
  2596. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR_VERT</constant>&nbsp;</entry>
  2597. <entry>Horizontal and vertical filter</entry>
  2598. </row>
  2599. <row>
  2600. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_DIAG</constant>&nbsp;</entry>
  2601. <entry>Diagonal filter</entry>
  2602. </row>
  2603. </tbody>
  2604. </entrytbl>
  2605. </row>
  2606. <row><entry></entry></row>
  2607. <row>
  2608. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_BOTTOM</constant>&nbsp;</entry>
  2609. <entry>integer&nbsp;(0-255)</entry>
  2610. </row><row><entry spanname="descr">Threshold above which
  2611. the luminance median filter is enabled (default 0)</entry>
  2612. </row>
  2613. <row><entry></entry></row>
  2614. <row>
  2615. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_TOP</constant>&nbsp;</entry>
  2616. <entry>integer&nbsp;(0-255)</entry>
  2617. </row><row><entry spanname="descr">Threshold below which
  2618. the luminance median filter is enabled (default 255)</entry>
  2619. </row>
  2620. <row><entry></entry></row>
  2621. <row>
  2622. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_BOTTOM</constant>&nbsp;</entry>
  2623. <entry>integer&nbsp;(0-255)</entry>
  2624. </row><row><entry spanname="descr">Threshold above which
  2625. the chroma median filter is enabled (default 0)</entry>
  2626. </row>
  2627. <row><entry></entry></row>
  2628. <row>
  2629. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_TOP</constant>&nbsp;</entry>
  2630. <entry>integer&nbsp;(0-255)</entry>
  2631. </row><row><entry spanname="descr">Threshold below which
  2632. the chroma median filter is enabled (default 255)</entry>
  2633. </row>
  2634. <row><entry></entry></row>
  2635. <row>
  2636. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_STREAM_INSERT_NAV_PACKETS</constant>&nbsp;</entry>
  2637. <entry>boolean</entry>
  2638. </row>
  2639. <row><entry spanname="descr">The CX2341X MPEG encoder
  2640. can insert one empty MPEG-2 PES packet into the stream between every
  2641. four video frames. The packet size is 2048 bytes, including the
  2642. packet_start_code_prefix and stream_id fields. The stream_id is 0xBF
  2643. (private stream 2). The payload consists of 0x00 bytes, to be filled
  2644. in by the application. 0 = do not insert, 1 = insert packets.</entry>
  2645. </row>
  2646. </tbody>
  2647. </tgroup>
  2648. </table>
  2649. </section>
  2650. </section>
  2651. <section id="camera-controls">
  2652. <title>Camera Control Reference</title>
  2653. <para>The Camera class includes controls for mechanical (or
  2654. equivalent digital) features of a device such as controllable lenses
  2655. or sensors.</para>
  2656. <table pgwide="1" frame="none" id="camera-control-id">
  2657. <title>Camera Control IDs</title>
  2658. <tgroup cols="4">
  2659. <colspec colname="c1" colwidth="1*" />
  2660. <colspec colname="c2" colwidth="6*" />
  2661. <colspec colname="c3" colwidth="2*" />
  2662. <colspec colname="c4" colwidth="6*" />
  2663. <spanspec namest="c1" nameend="c2" spanname="id" />
  2664. <spanspec namest="c2" nameend="c4" spanname="descr" />
  2665. <thead>
  2666. <row>
  2667. <entry spanname="id" align="left">ID</entry>
  2668. <entry align="left">Type</entry>
  2669. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  2670. </row>
  2671. </thead>
  2672. <tbody valign="top">
  2673. <row><entry></entry></row>
  2674. <row>
  2675. <entry spanname="id"><constant>V4L2_CID_CAMERA_CLASS</constant>&nbsp;</entry>
  2676. <entry>class</entry>
  2677. </row><row><entry spanname="descr">The Camera class
  2678. descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
  2679. description of this control class.</entry>
  2680. </row>
  2681. <row><entry></entry></row>
  2682. <row id="v4l2-exposure-auto-type">
  2683. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_AUTO</constant>&nbsp;</entry>
  2684. <entry>enum&nbsp;v4l2_exposure_auto_type</entry>
  2685. </row><row><entry spanname="descr">Enables automatic
  2686. adjustments of the exposure time and/or iris aperture. The effect of
  2687. manual changes of the exposure time or iris aperture while these
  2688. features are enabled is undefined, drivers should ignore such
  2689. requests. Possible values are:</entry>
  2690. </row>
  2691. <row>
  2692. <entrytbl spanname="descr" cols="2">
  2693. <tbody valign="top">
  2694. <row>
  2695. <entry><constant>V4L2_EXPOSURE_AUTO</constant>&nbsp;</entry>
  2696. <entry>Automatic exposure time, automatic iris
  2697. aperture.</entry>
  2698. </row>
  2699. <row>
  2700. <entry><constant>V4L2_EXPOSURE_MANUAL</constant>&nbsp;</entry>
  2701. <entry>Manual exposure time, manual iris.</entry>
  2702. </row>
  2703. <row>
  2704. <entry><constant>V4L2_EXPOSURE_SHUTTER_PRIORITY</constant>&nbsp;</entry>
  2705. <entry>Manual exposure time, auto iris.</entry>
  2706. </row>
  2707. <row>
  2708. <entry><constant>V4L2_EXPOSURE_APERTURE_PRIORITY</constant>&nbsp;</entry>
  2709. <entry>Auto exposure time, manual iris.</entry>
  2710. </row>
  2711. </tbody>
  2712. </entrytbl>
  2713. </row>
  2714. <row><entry></entry></row>
  2715. <row>
  2716. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_ABSOLUTE</constant>&nbsp;</entry>
  2717. <entry>integer</entry>
  2718. </row><row><entry spanname="descr">Determines the exposure
  2719. time of the camera sensor. The exposure time is limited by the frame
  2720. interval. Drivers should interpret the values as 100 &micro;s units,
  2721. where the value 1 stands for 1/10000th of a second, 10000 for 1 second
  2722. and 100000 for 10 seconds.</entry>
  2723. </row>
  2724. <row><entry></entry></row>
  2725. <row>
  2726. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_AUTO_PRIORITY</constant>&nbsp;</entry>
  2727. <entry>boolean</entry>
  2728. </row><row><entry spanname="descr">When
  2729. <constant>V4L2_CID_EXPOSURE_AUTO</constant> is set to
  2730. <constant>AUTO</constant> or <constant>APERTURE_PRIORITY</constant>,
  2731. this control determines if the device may dynamically vary the frame
  2732. rate. By default this feature is disabled (0) and the frame rate must
  2733. remain constant.</entry>
  2734. </row>
  2735. <row><entry></entry></row>
  2736. <row>
  2737. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_BIAS</constant>&nbsp;</entry>
  2738. <entry>integer menu</entry>
  2739. </row><row><entry spanname="descr"> Determines the automatic
  2740. exposure compensation, it is effective only when <constant>V4L2_CID_EXPOSURE_AUTO</constant>
  2741. control is set to <constant>AUTO</constant>, <constant>SHUTTER_PRIORITY </constant>
  2742. or <constant>APERTURE_PRIORITY</constant>.
  2743. It is expressed in terms of EV, drivers should interpret the values as 0.001 EV
  2744. units, where the value 1000 stands for +1 EV.
  2745. <para>Increasing the exposure compensation value is equivalent to decreasing
  2746. the exposure value (EV) and will increase the amount of light at the image
  2747. sensor. The camera performs the exposure compensation by adjusting absolute
  2748. exposure time and/or aperture.</para></entry>
  2749. </row>
  2750. <row><entry></entry></row>
  2751. <row id="v4l2-exposure-metering">
  2752. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_METERING</constant>&nbsp;</entry>
  2753. <entry>enum&nbsp;v4l2_exposure_metering</entry>
  2754. </row><row><entry spanname="descr">Determines how the camera measures
  2755. the amount of light available for the frame exposure. Possible values are:</entry>
  2756. </row>
  2757. <row>
  2758. <entrytbl spanname="descr" cols="2">
  2759. <tbody valign="top">
  2760. <row>
  2761. <entry><constant>V4L2_EXPOSURE_METERING_AVERAGE</constant>&nbsp;</entry>
  2762. <entry>Use the light information coming from the entire frame
  2763. and average giving no weighting to any particular portion of the metered area.
  2764. </entry>
  2765. </row>
  2766. <row>
  2767. <entry><constant>V4L2_EXPOSURE_METERING_CENTER_WEIGHTED</constant>&nbsp;</entry>
  2768. <entry>Average the light information coming from the entire frame
  2769. giving priority to the center of the metered area.</entry>
  2770. </row>
  2771. <row>
  2772. <entry><constant>V4L2_EXPOSURE_METERING_SPOT</constant>&nbsp;</entry>
  2773. <entry>Measure only very small area at the center of the frame.</entry>
  2774. </row>
  2775. </tbody>
  2776. </entrytbl>
  2777. </row>
  2778. <row><entry></entry></row>
  2779. <row>
  2780. <entry spanname="id"><constant>V4L2_CID_PAN_RELATIVE</constant>&nbsp;</entry>
  2781. <entry>integer</entry>
  2782. </row><row><entry spanname="descr">This control turns the
  2783. camera horizontally by the specified amount. The unit is undefined. A
  2784. positive value moves the camera to the right (clockwise when viewed
  2785. from above), a negative value to the left. A value of zero does not
  2786. cause motion. This is a write-only control.</entry>
  2787. </row>
  2788. <row><entry></entry></row>
  2789. <row>
  2790. <entry spanname="id"><constant>V4L2_CID_TILT_RELATIVE</constant>&nbsp;</entry>
  2791. <entry>integer</entry>
  2792. </row><row><entry spanname="descr">This control turns the
  2793. camera vertically by the specified amount. The unit is undefined. A
  2794. positive value moves the camera up, a negative value down. A value of
  2795. zero does not cause motion. This is a write-only control.</entry>
  2796. </row>
  2797. <row><entry></entry></row>
  2798. <row>
  2799. <entry spanname="id"><constant>V4L2_CID_PAN_RESET</constant>&nbsp;</entry>
  2800. <entry>button</entry>
  2801. </row><row><entry spanname="descr">When this control is set,
  2802. the camera moves horizontally to the default position.</entry>
  2803. </row>
  2804. <row><entry></entry></row>
  2805. <row>
  2806. <entry spanname="id"><constant>V4L2_CID_TILT_RESET</constant>&nbsp;</entry>
  2807. <entry>button</entry>
  2808. </row><row><entry spanname="descr">When this control is set,
  2809. the camera moves vertically to the default position.</entry>
  2810. </row>
  2811. <row><entry></entry></row>
  2812. <row>
  2813. <entry spanname="id"><constant>V4L2_CID_PAN_ABSOLUTE</constant>&nbsp;</entry>
  2814. <entry>integer</entry>
  2815. </row><row><entry spanname="descr">This control
  2816. turns the camera horizontally to the specified position. Positive
  2817. values move the camera to the right (clockwise when viewed from above),
  2818. negative values to the left. Drivers should interpret the values as arc
  2819. seconds, with valid values between -180 * 3600 and +180 * 3600
  2820. inclusive.</entry>
  2821. </row>
  2822. <row><entry></entry></row>
  2823. <row>
  2824. <entry spanname="id"><constant>V4L2_CID_TILT_ABSOLUTE</constant>&nbsp;</entry>
  2825. <entry>integer</entry>
  2826. </row><row><entry spanname="descr">This control
  2827. turns the camera vertically to the specified position. Positive values
  2828. move the camera up, negative values down. Drivers should interpret the
  2829. values as arc seconds, with valid values between -180 * 3600 and +180
  2830. * 3600 inclusive.</entry>
  2831. </row>
  2832. <row><entry></entry></row>
  2833. <row>
  2834. <entry spanname="id"><constant>V4L2_CID_FOCUS_ABSOLUTE</constant>&nbsp;</entry>
  2835. <entry>integer</entry>
  2836. </row><row><entry spanname="descr">This control sets the
  2837. focal point of the camera to the specified position. The unit is
  2838. undefined. Positive values set the focus closer to the camera,
  2839. negative values towards infinity.</entry>
  2840. </row>
  2841. <row><entry></entry></row>
  2842. <row>
  2843. <entry spanname="id"><constant>V4L2_CID_FOCUS_RELATIVE</constant>&nbsp;</entry>
  2844. <entry>integer</entry>
  2845. </row><row><entry spanname="descr">This control moves the
  2846. focal point of the camera by the specified amount. The unit is
  2847. undefined. Positive values move the focus closer to the camera,
  2848. negative values towards infinity. This is a write-only control.</entry>
  2849. </row>
  2850. <row><entry></entry></row>
  2851. <row>
  2852. <entry spanname="id"><constant>V4L2_CID_FOCUS_AUTO</constant>&nbsp;</entry>
  2853. <entry>boolean</entry>
  2854. </row><row><entry spanname="descr">Enables continuous automatic
  2855. focus adjustments. The effect of manual focus adjustments while this feature
  2856. is enabled is undefined, drivers should ignore such requests.</entry>
  2857. </row>
  2858. <row><entry></entry></row>
  2859. <row>
  2860. <entry spanname="id"><constant>V4L2_CID_AUTO_FOCUS_START</constant>&nbsp;</entry>
  2861. <entry>button</entry>
  2862. </row><row><entry spanname="descr">Starts single auto focus process.
  2863. The effect of setting this control when <constant>V4L2_CID_FOCUS_AUTO</constant>
  2864. is set to <constant>TRUE</constant> (1) is undefined, drivers should ignore
  2865. such requests.</entry>
  2866. </row>
  2867. <row><entry></entry></row>
  2868. <row>
  2869. <entry spanname="id"><constant>V4L2_CID_AUTO_FOCUS_STOP</constant>&nbsp;</entry>
  2870. <entry>button</entry>
  2871. </row><row><entry spanname="descr">Aborts automatic focusing
  2872. started with <constant>V4L2_CID_AUTO_FOCUS_START</constant> control. It is
  2873. effective only when the continuous autofocus is disabled, that is when
  2874. <constant>V4L2_CID_FOCUS_AUTO</constant> control is set to <constant>FALSE
  2875. </constant> (0).</entry>
  2876. </row>
  2877. <row><entry></entry></row>
  2878. <row id="v4l2-auto-focus-status">
  2879. <entry spanname="id">
  2880. <constant>V4L2_CID_AUTO_FOCUS_STATUS</constant>&nbsp;</entry>
  2881. <entry>bitmask</entry>
  2882. </row>
  2883. <row><entry spanname="descr">The automatic focus status. This is a read-only
  2884. control.</entry>
  2885. </row>
  2886. <row>
  2887. <entrytbl spanname="descr" cols="2">
  2888. <tbody valign="top">
  2889. <row>
  2890. <entry><constant>V4L2_AUTO_FOCUS_STATUS_IDLE</constant>&nbsp;</entry>
  2891. <entry>Automatic focus is not active.</entry>
  2892. </row>
  2893. <row>
  2894. <entry><constant>V4L2_AUTO_FOCUS_STATUS_BUSY</constant>&nbsp;</entry>
  2895. <entry>Automatic focusing is in progress.</entry>
  2896. </row>
  2897. <row>
  2898. <entry><constant>V4L2_AUTO_FOCUS_STATUS_REACHED</constant>&nbsp;</entry>
  2899. <entry>Focus has been reached.</entry>
  2900. </row>
  2901. <row>
  2902. <entry><constant>V4L2_AUTO_FOCUS_STATUS_FAILED</constant>&nbsp;</entry>
  2903. <entry>Automatic focus has failed, the driver will not
  2904. transition from this state until another action is
  2905. performed by an application.</entry>
  2906. </row>
  2907. </tbody>
  2908. </entrytbl>
  2909. </row>
  2910. <row><entry spanname="descr">
  2911. Setting <constant>V4L2_LOCK_FOCUS</constant> lock bit of the <constant>V4L2_CID_3A_LOCK
  2912. </constant> control may stop updates of the <constant>V4L2_CID_AUTO_FOCUS_STATUS</constant>
  2913. control value.</entry>
  2914. </row>
  2915. <row><entry></entry></row>
  2916. <row id="v4l2-auto-focus-range">
  2917. <entry spanname="id">
  2918. <constant>V4L2_CID_AUTO_FOCUS_RANGE</constant>&nbsp;</entry>
  2919. <entry>enum&nbsp;v4l2_auto_focus_range</entry>
  2920. </row>
  2921. <row><entry spanname="descr">Determines auto focus distance range
  2922. for which lens may be adjusted. </entry>
  2923. </row>
  2924. <row>
  2925. <entrytbl spanname="descr" cols="2">
  2926. <tbody valign="top">
  2927. <row>
  2928. <entry><constant>V4L2_AUTO_FOCUS_RANGE_AUTO</constant>&nbsp;</entry>
  2929. <entry>The camera automatically selects the focus range.</entry>
  2930. </row>
  2931. <row>
  2932. <entry><constant>V4L2_AUTO_FOCUS_RANGE_NORMAL</constant>&nbsp;</entry>
  2933. <entry>Normal distance range, limited for best automatic focus
  2934. performance.</entry>
  2935. </row>
  2936. <row>
  2937. <entry><constant>V4L2_AUTO_FOCUS_RANGE_MACRO</constant>&nbsp;</entry>
  2938. <entry>Macro (close-up) auto focus. The camera will
  2939. use its minimum possible distance for auto focus.</entry>
  2940. </row>
  2941. <row>
  2942. <entry><constant>V4L2_AUTO_FOCUS_RANGE_INFINITY</constant>&nbsp;</entry>
  2943. <entry>The lens is set to focus on an object at infinite distance.</entry>
  2944. </row>
  2945. </tbody>
  2946. </entrytbl>
  2947. </row>
  2948. <row><entry></entry></row>
  2949. <row>
  2950. <entry spanname="id"><constant>V4L2_CID_ZOOM_ABSOLUTE</constant>&nbsp;</entry>
  2951. <entry>integer</entry>
  2952. </row><row><entry spanname="descr">Specify the objective lens
  2953. focal length as an absolute value. The zoom unit is driver-specific and its
  2954. value should be a positive integer.</entry>
  2955. </row>
  2956. <row><entry></entry></row>
  2957. <row>
  2958. <entry spanname="id"><constant>V4L2_CID_ZOOM_RELATIVE</constant>&nbsp;</entry>
  2959. <entry>integer</entry>
  2960. </row><row><entry spanname="descr">Specify the objective lens
  2961. focal length relatively to the current value. Positive values move the zoom
  2962. lens group towards the telephoto direction, negative values towards the
  2963. wide-angle direction. The zoom unit is driver-specific. This is a write-only control.</entry>
  2964. </row>
  2965. <row><entry></entry></row>
  2966. <row>
  2967. <entry spanname="id"><constant>V4L2_CID_ZOOM_CONTINUOUS</constant>&nbsp;</entry>
  2968. <entry>integer</entry>
  2969. </row><row><entry spanname="descr">Move the objective lens group
  2970. at the specified speed until it reaches physical device limits or until an
  2971. explicit request to stop the movement. A positive value moves the zoom lens
  2972. group towards the telephoto direction. A value of zero stops the zoom lens
  2973. group movement. A negative value moves the zoom lens group towards the
  2974. wide-angle direction. The zoom speed unit is driver-specific.</entry>
  2975. </row>
  2976. <row><entry></entry></row>
  2977. <row>
  2978. <entry spanname="id"><constant>V4L2_CID_IRIS_ABSOLUTE</constant>&nbsp;</entry>
  2979. <entry>integer</entry>
  2980. </row><row><entry spanname="descr">This control sets the
  2981. camera's aperture to the specified value. The unit is undefined.
  2982. Larger values open the iris wider, smaller values close it.</entry>
  2983. </row>
  2984. <row><entry></entry></row>
  2985. <row>
  2986. <entry spanname="id"><constant>V4L2_CID_IRIS_RELATIVE</constant>&nbsp;</entry>
  2987. <entry>integer</entry>
  2988. </row><row><entry spanname="descr">This control modifies the
  2989. camera's aperture by the specified amount. The unit is undefined.
  2990. Positive values open the iris one step further, negative values close
  2991. it one step further. This is a write-only control.</entry>
  2992. </row>
  2993. <row><entry></entry></row>
  2994. <row>
  2995. <entry spanname="id"><constant>V4L2_CID_PRIVACY</constant>&nbsp;</entry>
  2996. <entry>boolean</entry>
  2997. </row><row><entry spanname="descr">Prevent video from being acquired
  2998. by the camera. When this control is set to <constant>TRUE</constant> (1), no
  2999. image can be captured by the camera. Common means to enforce privacy are
  3000. mechanical obturation of the sensor and firmware image processing, but the
  3001. device is not restricted to these methods. Devices that implement the privacy
  3002. control must support read access and may support write access.</entry>
  3003. </row>
  3004. <row>
  3005. <entry spanname="id"><constant>V4L2_CID_BAND_STOP_FILTER</constant>&nbsp;</entry>
  3006. <entry>integer</entry>
  3007. </row><row><entry spanname="descr">Switch the band-stop filter of a
  3008. camera sensor on or off, or specify its strength. Such band-stop filters can
  3009. be used, for example, to filter out the fluorescent light component.</entry>
  3010. </row>
  3011. <row><entry></entry></row>
  3012. <row id="v4l2-auto-n-preset-white-balance">
  3013. <entry spanname="id"><constant>V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE</constant>&nbsp;</entry>
  3014. <entry>enum&nbsp;v4l2_auto_n_preset_white_balance</entry>
  3015. </row><row><entry spanname="descr">Sets white balance to automatic,
  3016. manual or a preset. The presets determine color temperature of the light as
  3017. a hint to the camera for white balance adjustments resulting in most accurate
  3018. color representation. The following white balance presets are listed in order
  3019. of increasing color temperature.</entry>
  3020. </row>
  3021. <row>
  3022. <entrytbl spanname="descr" cols="2">
  3023. <tbody valign="top">
  3024. <row>
  3025. <entry><constant>V4L2_WHITE_BALANCE_MANUAL</constant>&nbsp;</entry>
  3026. <entry>Manual white balance.</entry>
  3027. </row>
  3028. <row>
  3029. <entry><constant>V4L2_WHITE_BALANCE_AUTO</constant>&nbsp;</entry>
  3030. <entry>Automatic white balance adjustments.</entry>
  3031. </row>
  3032. <row>
  3033. <entry><constant>V4L2_WHITE_BALANCE_INCANDESCENT</constant>&nbsp;</entry>
  3034. <entry>White balance setting for incandescent (tungsten) lighting.
  3035. It generally cools down the colors and corresponds approximately to 2500...3500 K
  3036. color temperature range.</entry>
  3037. </row>
  3038. <row>
  3039. <entry><constant>V4L2_WHITE_BALANCE_FLUORESCENT</constant>&nbsp;</entry>
  3040. <entry>White balance preset for fluorescent lighting.
  3041. It corresponds approximately to 4000...5000 K color temperature.</entry>
  3042. </row>
  3043. <row>
  3044. <entry><constant>V4L2_WHITE_BALANCE_FLUORESCENT_H</constant>&nbsp;</entry>
  3045. <entry>With this setting the camera will compensate for
  3046. fluorescent H lighting.</entry>
  3047. </row>
  3048. <row>
  3049. <entry><constant>V4L2_WHITE_BALANCE_HORIZON</constant>&nbsp;</entry>
  3050. <entry>White balance setting for horizon daylight.
  3051. It corresponds approximately to 5000 K color temperature.</entry>
  3052. </row>
  3053. <row>
  3054. <entry><constant>V4L2_WHITE_BALANCE_DAYLIGHT</constant>&nbsp;</entry>
  3055. <entry>White balance preset for daylight (with clear sky).
  3056. It corresponds approximately to 5000...6500 K color temperature.</entry>
  3057. </row>
  3058. <row>
  3059. <entry><constant>V4L2_WHITE_BALANCE_FLASH</constant>&nbsp;</entry>
  3060. <entry>With this setting the camera will compensate for the flash
  3061. light. It slightly warms up the colors and corresponds roughly to 5000...5500 K
  3062. color temperature.</entry>
  3063. </row>
  3064. <row>
  3065. <entry><constant>V4L2_WHITE_BALANCE_CLOUDY</constant>&nbsp;</entry>
  3066. <entry>White balance preset for moderately overcast sky.
  3067. This option corresponds approximately to 6500...8000 K color temperature
  3068. range.</entry>
  3069. </row>
  3070. <row>
  3071. <entry><constant>V4L2_WHITE_BALANCE_SHADE</constant>&nbsp;</entry>
  3072. <entry>White balance preset for shade or heavily overcast
  3073. sky. It corresponds approximately to 9000...10000 K color temperature.
  3074. </entry>
  3075. </row>
  3076. </tbody>
  3077. </entrytbl>
  3078. </row>
  3079. <row><entry></entry></row>
  3080. <row id="v4l2-wide-dynamic-range">
  3081. <entry spanname="id"><constant>V4L2_CID_WIDE_DYNAMIC_RANGE</constant></entry>
  3082. <entry>boolean</entry>
  3083. </row>
  3084. <row>
  3085. <entry spanname="descr">Enables or disables the camera's wide dynamic
  3086. range feature. This feature allows to obtain clear images in situations where
  3087. intensity of the illumination varies significantly throughout the scene, i.e.
  3088. there are simultaneously very dark and very bright areas. It is most commonly
  3089. realized in cameras by combining two subsequent frames with different exposure
  3090. times. <footnote id="ctypeconv"><para> This control may be changed to a menu
  3091. control in the future, if more options are required.</para></footnote></entry>
  3092. </row>
  3093. <row><entry></entry></row>
  3094. <row id="v4l2-image-stabilization">
  3095. <entry spanname="id"><constant>V4L2_CID_IMAGE_STABILIZATION</constant></entry>
  3096. <entry>boolean</entry>
  3097. </row>
  3098. <row>
  3099. <entry spanname="descr">Enables or disables image stabilization.
  3100. <footnoteref linkend="ctypeconv"/></entry>
  3101. </row>
  3102. <row><entry></entry></row>
  3103. <row>
  3104. <entry spanname="id"><constant>V4L2_CID_ISO_SENSITIVITY</constant>&nbsp;</entry>
  3105. <entry>integer menu</entry>
  3106. </row><row><entry spanname="descr">Determines ISO equivalent of an
  3107. image sensor indicating the sensor's sensitivity to light. The numbers are
  3108. expressed in arithmetic scale, as per <xref linkend="iso12232" /> standard,
  3109. where doubling the sensor sensitivity is represented by doubling the numerical
  3110. ISO value. Applications should interpret the values as standard ISO values
  3111. multiplied by 1000, e.g. control value 800 stands for ISO 0.8. Drivers will
  3112. usually support only a subset of standard ISO values. The effect of setting
  3113. this control while the <constant>V4L2_CID_ISO_SENSITIVITY_AUTO</constant>
  3114. control is set to a value other than <constant>V4L2_CID_ISO_SENSITIVITY_MANUAL
  3115. </constant> is undefined, drivers should ignore such requests.</entry>
  3116. </row>
  3117. <row><entry></entry></row>
  3118. <row id="v4l2-iso-sensitivity-auto-type">
  3119. <entry spanname="id"><constant>V4L2_CID_ISO_SENSITIVITY_AUTO</constant>&nbsp;</entry>
  3120. <entry>enum&nbsp;v4l2_iso_sensitivity_type</entry>
  3121. </row><row><entry spanname="descr">Enables or disables automatic ISO
  3122. sensitivity adjustments.</entry>
  3123. </row>
  3124. <row>
  3125. <entrytbl spanname="descr" cols="2">
  3126. <tbody valign="top">
  3127. <row>
  3128. <entry><constant>V4L2_CID_ISO_SENSITIVITY_MANUAL</constant>&nbsp;</entry>
  3129. <entry>Manual ISO sensitivity.</entry>
  3130. </row>
  3131. <row>
  3132. <entry><constant>V4L2_CID_ISO_SENSITIVITY_AUTO</constant>&nbsp;</entry>
  3133. <entry>Automatic ISO sensitivity adjustments.</entry>
  3134. </row>
  3135. </tbody>
  3136. </entrytbl>
  3137. </row>
  3138. <row><entry></entry></row>
  3139. <row id="v4l2-scene-mode">
  3140. <entry spanname="id"><constant>V4L2_CID_SCENE_MODE</constant>&nbsp;</entry>
  3141. <entry>enum&nbsp;v4l2_scene_mode</entry>
  3142. </row><row><entry spanname="descr">This control allows to select
  3143. scene programs as the camera automatic modes optimized for common shooting
  3144. scenes. Within these modes the camera determines best exposure, aperture,
  3145. focusing, light metering, white balance and equivalent sensitivity. The
  3146. controls of those parameters are influenced by the scene mode control.
  3147. An exact behavior in each mode is subject to the camera specification.
  3148. <para>When the scene mode feature is not used, this control should be set to
  3149. <constant>V4L2_SCENE_MODE_NONE</constant> to make sure the other possibly
  3150. related controls are accessible. The following scene programs are defined:
  3151. </para>
  3152. </entry>
  3153. </row>
  3154. <row>
  3155. <entrytbl spanname="descr" cols="2">
  3156. <tbody valign="top">
  3157. <row>
  3158. <entry><constant>V4L2_SCENE_MODE_NONE</constant>&nbsp;</entry>
  3159. <entry>The scene mode feature is disabled.</entry>
  3160. </row>
  3161. <row>
  3162. <entry><constant>V4L2_SCENE_MODE_BACKLIGHT</constant>&nbsp;</entry>
  3163. <entry>Backlight. Compensates for dark shadows when light is
  3164. coming from behind a subject, also by automatically turning
  3165. on the flash.</entry>
  3166. </row>
  3167. <row>
  3168. <entry><constant>V4L2_SCENE_MODE_BEACH_SNOW</constant>&nbsp;</entry>
  3169. <entry>Beach and snow. This mode compensates for all-white or
  3170. bright scenes, which tend to look gray and low contrast, when camera's automatic
  3171. exposure is based on an average scene brightness. To compensate, this mode
  3172. automatically slightly overexposes the frames. The white balance may also be
  3173. adjusted to compensate for the fact that reflected snow looks bluish rather
  3174. than white.</entry>
  3175. </row>
  3176. <row>
  3177. <entry><constant>V4L2_SCENE_MODE_CANDLELIGHT</constant>&nbsp;</entry>
  3178. <entry>Candle light. The camera generally raises the ISO
  3179. sensitivity and lowers the shutter speed. This mode compensates for relatively
  3180. close subject in the scene. The flash is disabled in order to preserve the
  3181. ambiance of the light.</entry>
  3182. </row>
  3183. <row>
  3184. <entry><constant>V4L2_SCENE_MODE_DAWN_DUSK</constant>&nbsp;</entry>
  3185. <entry>Dawn and dusk. Preserves the colors seen in low
  3186. natural light before dusk and after down. The camera may turn off the flash,
  3187. and automatically focus at infinity. It will usually boost saturation and
  3188. lower the shutter speed.</entry>
  3189. </row>
  3190. <row>
  3191. <entry><constant>V4L2_SCENE_MODE_FALL_COLORS</constant>&nbsp;</entry>
  3192. <entry>Fall colors. Increases saturation and adjusts white
  3193. balance for color enhancement. Pictures of autumn leaves get saturated reds
  3194. and yellows.</entry>
  3195. </row>
  3196. <row>
  3197. <entry><constant>V4L2_SCENE_MODE_FIREWORKS</constant>&nbsp;</entry>
  3198. <entry>Fireworks. Long exposure times are used to capture
  3199. the expanding burst of light from a firework. The camera may invoke image
  3200. stabilization.</entry>
  3201. </row>
  3202. <row>
  3203. <entry><constant>V4L2_SCENE_MODE_LANDSCAPE</constant>&nbsp;</entry>
  3204. <entry>Landscape. The camera may choose a small aperture to
  3205. provide deep depth of field and long exposure duration to help capture detail
  3206. in dim light conditions. The focus is fixed at infinity. Suitable for distant
  3207. and wide scenery.</entry>
  3208. </row>
  3209. <row>
  3210. <entry><constant>V4L2_SCENE_MODE_NIGHT</constant>&nbsp;</entry>
  3211. <entry>Night, also known as Night Landscape. Designed for low
  3212. light conditions, it preserves detail in the dark areas without blowing out bright
  3213. objects. The camera generally sets itself to a medium-to-high ISO sensitivity,
  3214. with a relatively long exposure time, and turns flash off. As such, there will be
  3215. increased image noise and the possibility of blurred image.</entry>
  3216. </row>
  3217. <row>
  3218. <entry><constant>V4L2_SCENE_MODE_PARTY_INDOOR</constant>&nbsp;</entry>
  3219. <entry>Party and indoor. Designed to capture indoor scenes
  3220. that are lit by indoor background lighting as well as the flash. The camera
  3221. usually increases ISO sensitivity, and adjusts exposure for the low light
  3222. conditions.</entry>
  3223. </row>
  3224. <row>
  3225. <entry><constant>V4L2_SCENE_MODE_PORTRAIT</constant>&nbsp;</entry>
  3226. <entry>Portrait. The camera adjusts the aperture so that the
  3227. depth of field is reduced, which helps to isolate the subject against a smooth
  3228. background. Most cameras recognize the presence of faces in the scene and focus
  3229. on them. The color hue is adjusted to enhance skin tones. The intensity of the
  3230. flash is often reduced.</entry>
  3231. </row>
  3232. <row>
  3233. <entry><constant>V4L2_SCENE_MODE_SPORTS</constant>&nbsp;</entry>
  3234. <entry>Sports. Significantly increases ISO and uses a fast
  3235. shutter speed to freeze motion of rapidly-moving subjects. Increased image
  3236. noise may be seen in this mode.</entry>
  3237. </row>
  3238. <row>
  3239. <entry><constant>V4L2_SCENE_MODE_SUNSET</constant>&nbsp;</entry>
  3240. <entry>Sunset. Preserves deep hues seen in sunsets and
  3241. sunrises. It bumps up the saturation.</entry>
  3242. </row>
  3243. <row>
  3244. <entry><constant>V4L2_SCENE_MODE_TEXT</constant>&nbsp;</entry>
  3245. <entry>Text. It applies extra contrast and sharpness, it is
  3246. typically a black-and-white mode optimized for readability. Automatic focus
  3247. may be switched to close-up mode and this setting may also involve some
  3248. lens-distortion correction.</entry>
  3249. </row>
  3250. </tbody>
  3251. </entrytbl>
  3252. </row>
  3253. <row><entry></entry></row>
  3254. <row>
  3255. <entry spanname="id"><constant>V4L2_CID_3A_LOCK</constant></entry>
  3256. <entry>bitmask</entry>
  3257. </row>
  3258. <row>
  3259. <entry spanname="descr">This control locks or unlocks the automatic
  3260. focus, exposure and white balance. The automatic adjustments can be paused
  3261. independently by setting the corresponding lock bit to 1. The camera then retains
  3262. the settings until the lock bit is cleared. The following lock bits are defined:
  3263. </entry>
  3264. </row>
  3265. <row>
  3266. <entrytbl spanname="descr" cols="2">
  3267. <tbody valign="top">
  3268. <row>
  3269. <entry><constant>V4L2_LOCK_EXPOSURE</constant></entry>
  3270. <entry>Automatic exposure adjustments lock.</entry>
  3271. </row>
  3272. <row>
  3273. <entry><constant>V4L2_LOCK_WHITE_BALANCE</constant></entry>
  3274. <entry>Automatic white balance adjustments lock.</entry>
  3275. </row>
  3276. <row>
  3277. <entry><constant>V4L2_LOCK_FOCUS</constant></entry>
  3278. <entry>Automatic focus lock.</entry>
  3279. </row>
  3280. </tbody>
  3281. </entrytbl>
  3282. </row>
  3283. <row><entry spanname="descr">
  3284. When a given algorithm is not enabled, drivers should ignore requests
  3285. to lock it and should return no error. An example might be an application
  3286. setting bit <constant>V4L2_LOCK_WHITE_BALANCE</constant> when the
  3287. <constant>V4L2_CID_AUTO_WHITE_BALANCE</constant> control is set to
  3288. <constant>FALSE</constant>. The value of this control may be changed
  3289. by exposure, white balance or focus controls.</entry>
  3290. </row>
  3291. <row><entry></entry></row>
  3292. </tbody>
  3293. </tgroup>
  3294. </table>
  3295. </section>
  3296. <section id="fm-tx-controls">
  3297. <title>FM Transmitter Control Reference</title>
  3298. <para>The FM Transmitter (FM_TX) class includes controls for common features of
  3299. FM transmissions capable devices. Currently this class includes parameters for audio
  3300. compression, pilot tone generation, audio deviation limiter, RDS transmission and
  3301. tuning power features.</para>
  3302. <table pgwide="1" frame="none" id="fm-tx-control-id">
  3303. <title>FM_TX Control IDs</title>
  3304. <tgroup cols="4">
  3305. <colspec colname="c1" colwidth="1*" />
  3306. <colspec colname="c2" colwidth="6*" />
  3307. <colspec colname="c3" colwidth="2*" />
  3308. <colspec colname="c4" colwidth="6*" />
  3309. <spanspec namest="c1" nameend="c2" spanname="id" />
  3310. <spanspec namest="c2" nameend="c4" spanname="descr" />
  3311. <thead>
  3312. <row>
  3313. <entry spanname="id" align="left">ID</entry>
  3314. <entry align="left">Type</entry>
  3315. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  3316. </row>
  3317. </thead>
  3318. <tbody valign="top">
  3319. <row><entry></entry></row>
  3320. <row>
  3321. <entry spanname="id"><constant>V4L2_CID_FM_TX_CLASS</constant>&nbsp;</entry>
  3322. <entry>class</entry>
  3323. </row><row><entry spanname="descr">The FM_TX class
  3324. descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
  3325. description of this control class.</entry>
  3326. </row>
  3327. <row>
  3328. <entry spanname="id"><constant>V4L2_CID_RDS_TX_DEVIATION</constant>&nbsp;</entry>
  3329. <entry>integer</entry>
  3330. </row>
  3331. <row><entry spanname="descr">Configures RDS signal frequency deviation level in Hz.
  3332. The range and step are driver-specific.</entry>
  3333. </row>
  3334. <row>
  3335. <entry spanname="id"><constant>V4L2_CID_RDS_TX_PI</constant>&nbsp;</entry>
  3336. <entry>integer</entry>
  3337. </row>
  3338. <row><entry spanname="descr">Sets the RDS Programme Identification field
  3339. for transmission.</entry>
  3340. </row>
  3341. <row>
  3342. <entry spanname="id"><constant>V4L2_CID_RDS_TX_PTY</constant>&nbsp;</entry>
  3343. <entry>integer</entry>
  3344. </row>
  3345. <row><entry spanname="descr">Sets the RDS Programme Type field for transmission.
  3346. This encodes up to 31 pre-defined programme types.</entry>
  3347. </row>
  3348. <row>
  3349. <entry spanname="id"><constant>V4L2_CID_RDS_TX_PS_NAME</constant>&nbsp;</entry>
  3350. <entry>string</entry>
  3351. </row>
  3352. <row><entry spanname="descr">Sets the Programme Service name (PS_NAME) for transmission.
  3353. It is intended for static display on a receiver. It is the primary aid to listeners in programme service
  3354. identification and selection. In Annex E of <xref linkend="en50067" />, the RDS specification,
  3355. there is a full description of the correct character encoding for Programme Service name strings.
  3356. Also from RDS specification, PS is usually a single eight character text. However, it is also possible
  3357. to find receivers which can scroll strings sized as 8 x N characters. So, this control must be configured
  3358. with steps of 8 characters. The result is it must always contain a string with size multiple of 8.</entry>
  3359. </row>
  3360. <row>
  3361. <entry spanname="id"><constant>V4L2_CID_RDS_TX_RADIO_TEXT</constant>&nbsp;</entry>
  3362. <entry>string</entry>
  3363. </row>
  3364. <row><entry spanname="descr">Sets the Radio Text info for transmission. It is a textual description of
  3365. what is being broadcasted. RDS Radio Text can be applied when broadcaster wishes to transmit longer PS names,
  3366. programme-related information or any other text. In these cases, RadioText should be used in addition to
  3367. <constant>V4L2_CID_RDS_TX_PS_NAME</constant>. The encoding for Radio Text strings is also fully described
  3368. in Annex E of <xref linkend="en50067" />. The length of Radio Text strings depends on which RDS Block is being
  3369. used to transmit it, either 32 (2A block) or 64 (2B block). However, it is also possible
  3370. to find receivers which can scroll strings sized as 32 x N or 64 x N characters. So, this control must be configured
  3371. with steps of 32 or 64 characters. The result is it must always contain a string with size multiple of 32 or 64. </entry>
  3372. </row>
  3373. <row>
  3374. <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_ENABLED</constant>&nbsp;</entry>
  3375. <entry>boolean</entry>
  3376. </row>
  3377. <row><entry spanname="descr">Enables or disables the audio deviation limiter feature.
  3378. The limiter is useful when trying to maximize the audio volume, minimize receiver-generated
  3379. distortion and prevent overmodulation.
  3380. </entry>
  3381. </row>
  3382. <row>
  3383. <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_RELEASE_TIME</constant>&nbsp;</entry>
  3384. <entry>integer</entry>
  3385. </row>
  3386. <row><entry spanname="descr">Sets the audio deviation limiter feature release time.
  3387. Unit is in useconds. Step and range are driver-specific.</entry>
  3388. </row>
  3389. <row>
  3390. <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_DEVIATION</constant>&nbsp;</entry>
  3391. <entry>integer</entry>
  3392. </row>
  3393. <row><entry spanname="descr">Configures audio frequency deviation level in Hz.
  3394. The range and step are driver-specific.</entry>
  3395. </row>
  3396. <row>
  3397. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_ENABLED</constant>&nbsp;</entry>
  3398. <entry>boolean</entry>
  3399. </row>
  3400. <row><entry spanname="descr">Enables or disables the audio compression feature.
  3401. This feature amplifies signals below the threshold by a fixed gain and compresses audio
  3402. signals above the threshold by the ratio of Threshold/(Gain + Threshold).</entry>
  3403. </row>
  3404. <row>
  3405. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_GAIN</constant>&nbsp;</entry>
  3406. <entry>integer</entry>
  3407. </row>
  3408. <row><entry spanname="descr">Sets the gain for audio compression feature. It is
  3409. a dB value. The range and step are driver-specific.</entry>
  3410. </row>
  3411. <row>
  3412. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_THRESHOLD</constant>&nbsp;</entry>
  3413. <entry>integer</entry>
  3414. </row>
  3415. <row><entry spanname="descr">Sets the threshold level for audio compression freature.
  3416. It is a dB value. The range and step are driver-specific.</entry>
  3417. </row>
  3418. <row>
  3419. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_ATTACK_TIME</constant>&nbsp;</entry>
  3420. <entry>integer</entry>
  3421. </row>
  3422. <row><entry spanname="descr">Sets the attack time for audio compression feature.
  3423. It is a useconds value. The range and step are driver-specific.</entry>
  3424. </row>
  3425. <row>
  3426. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_RELEASE_TIME</constant>&nbsp;</entry>
  3427. <entry>integer</entry>
  3428. </row>
  3429. <row><entry spanname="descr">Sets the release time for audio compression feature.
  3430. It is a useconds value. The range and step are driver-specific.</entry>
  3431. </row>
  3432. <row>
  3433. <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_ENABLED</constant>&nbsp;</entry>
  3434. <entry>boolean</entry>
  3435. </row>
  3436. <row><entry spanname="descr">Enables or disables the pilot tone generation feature.</entry>
  3437. </row>
  3438. <row>
  3439. <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_DEVIATION</constant>&nbsp;</entry>
  3440. <entry>integer</entry>
  3441. </row>
  3442. <row><entry spanname="descr">Configures pilot tone frequency deviation level. Unit is
  3443. in Hz. The range and step are driver-specific.</entry>
  3444. </row>
  3445. <row>
  3446. <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_FREQUENCY</constant>&nbsp;</entry>
  3447. <entry>integer</entry>
  3448. </row>
  3449. <row><entry spanname="descr">Configures pilot tone frequency value. Unit is
  3450. in Hz. The range and step are driver-specific.</entry>
  3451. </row>
  3452. <row>
  3453. <entry spanname="id"><constant>V4L2_CID_TUNE_PREEMPHASIS</constant>&nbsp;</entry>
  3454. <entry>integer</entry>
  3455. </row>
  3456. <row id="v4l2-preemphasis"><entry spanname="descr">Configures the pre-emphasis value for broadcasting.
  3457. A pre-emphasis filter is applied to the broadcast to accentuate the high audio frequencies.
  3458. Depending on the region, a time constant of either 50 or 75 useconds is used. The enum&nbsp;v4l2_preemphasis
  3459. defines possible values for pre-emphasis. Here they are:</entry>
  3460. </row><row>
  3461. <entrytbl spanname="descr" cols="2">
  3462. <tbody valign="top">
  3463. <row>
  3464. <entry><constant>V4L2_PREEMPHASIS_DISABLED</constant>&nbsp;</entry>
  3465. <entry>No pre-emphasis is applied.</entry>
  3466. </row>
  3467. <row>
  3468. <entry><constant>V4L2_PREEMPHASIS_50_uS</constant>&nbsp;</entry>
  3469. <entry>A pre-emphasis of 50 uS is used.</entry>
  3470. </row>
  3471. <row>
  3472. <entry><constant>V4L2_PREEMPHASIS_75_uS</constant>&nbsp;</entry>
  3473. <entry>A pre-emphasis of 75 uS is used.</entry>
  3474. </row>
  3475. </tbody>
  3476. </entrytbl>
  3477. </row>
  3478. <row>
  3479. <entry spanname="id"><constant>V4L2_CID_TUNE_POWER_LEVEL</constant>&nbsp;</entry>
  3480. <entry>integer</entry>
  3481. </row>
  3482. <row><entry spanname="descr">Sets the output power level for signal transmission.
  3483. Unit is in dBuV. Range and step are driver-specific.</entry>
  3484. </row>
  3485. <row>
  3486. <entry spanname="id"><constant>V4L2_CID_TUNE_ANTENNA_CAPACITOR</constant>&nbsp;</entry>
  3487. <entry>integer</entry>
  3488. </row>
  3489. <row><entry spanname="descr">This selects the value of antenna tuning capacitor
  3490. manually or automatically if set to zero. Unit, range and step are driver-specific.</entry>
  3491. </row>
  3492. <row><entry></entry></row>
  3493. </tbody>
  3494. </tgroup>
  3495. </table>
  3496. <para>For more details about RDS specification, refer to
  3497. <xref linkend="en50067" /> document, from CENELEC.</para>
  3498. </section>
  3499. <section id="flash-controls">
  3500. <title>Flash Control Reference</title>
  3501. <note>
  3502. <title>Experimental</title>
  3503. <para>This is an <link linkend="experimental">experimental</link>
  3504. interface and may change in the future.</para>
  3505. </note>
  3506. <para>
  3507. The V4L2 flash controls are intended to provide generic access
  3508. to flash controller devices. Flash controller devices are
  3509. typically used in digital cameras.
  3510. </para>
  3511. <para>
  3512. The interface can support both LED and xenon flash devices. As
  3513. of writing this, there is no xenon flash driver using this
  3514. interface.
  3515. </para>
  3516. <section id="flash-controls-use-cases">
  3517. <title>Supported use cases</title>
  3518. <section>
  3519. <title>Unsynchronised LED flash (software strobe)</title>
  3520. <para>
  3521. Unsynchronised LED flash is controlled directly by the
  3522. host as the sensor. The flash must be enabled by the host
  3523. before the exposure of the image starts and disabled once
  3524. it ends. The host is fully responsible for the timing of
  3525. the flash.
  3526. </para>
  3527. <para>Example of such device: Nokia N900.</para>
  3528. </section>
  3529. <section>
  3530. <title>Synchronised LED flash (hardware strobe)</title>
  3531. <para>
  3532. The synchronised LED flash is pre-programmed by the host
  3533. (power and timeout) but controlled by the sensor through a
  3534. strobe signal from the sensor to the flash.
  3535. </para>
  3536. <para>
  3537. The sensor controls the flash duration and timing. This
  3538. information typically must be made available to the
  3539. sensor.
  3540. </para>
  3541. </section>
  3542. <section>
  3543. <title>LED flash as torch</title>
  3544. <para>
  3545. LED flash may be used as torch in conjunction with another
  3546. use case involving camera or individually.
  3547. </para>
  3548. </section>
  3549. </section>
  3550. <table pgwide="1" frame="none" id="flash-control-id">
  3551. <title>Flash Control IDs</title>
  3552. <tgroup cols="4">
  3553. <colspec colname="c1" colwidth="1*" />
  3554. <colspec colname="c2" colwidth="6*" />
  3555. <colspec colname="c3" colwidth="2*" />
  3556. <colspec colname="c4" colwidth="6*" />
  3557. <spanspec namest="c1" nameend="c2" spanname="id" />
  3558. <spanspec namest="c2" nameend="c4" spanname="descr" />
  3559. <thead>
  3560. <row>
  3561. <entry spanname="id" align="left">ID</entry>
  3562. <entry align="left">Type</entry>
  3563. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  3564. </row>
  3565. </thead>
  3566. <tbody valign="top">
  3567. <row><entry></entry></row>
  3568. <row>
  3569. <entry spanname="id"><constant>V4L2_CID_FLASH_CLASS</constant></entry>
  3570. <entry>class</entry>
  3571. </row>
  3572. <row>
  3573. <entry spanname="descr">The FLASH class descriptor.</entry>
  3574. </row>
  3575. <row>
  3576. <entry spanname="id"><constant>V4L2_CID_FLASH_LED_MODE</constant></entry>
  3577. <entry>menu</entry>
  3578. </row>
  3579. <row id="v4l2-flash-led-mode">
  3580. <entry spanname="descr">Defines the mode of the flash LED,
  3581. the high-power white LED attached to the flash controller.
  3582. Setting this control may not be possible in presence of
  3583. some faults. See V4L2_CID_FLASH_FAULT.</entry>
  3584. </row>
  3585. <row>
  3586. <entrytbl spanname="descr" cols="2">
  3587. <tbody valign="top">
  3588. <row>
  3589. <entry><constant>V4L2_FLASH_LED_MODE_NONE</constant></entry>
  3590. <entry>Off.</entry>
  3591. </row>
  3592. <row>
  3593. <entry><constant>V4L2_FLASH_LED_MODE_FLASH</constant></entry>
  3594. <entry>Flash mode.</entry>
  3595. </row>
  3596. <row>
  3597. <entry><constant>V4L2_FLASH_LED_MODE_TORCH</constant></entry>
  3598. <entry>Torch mode. See V4L2_CID_FLASH_TORCH_INTENSITY.</entry>
  3599. </row>
  3600. </tbody>
  3601. </entrytbl>
  3602. </row>
  3603. <row>
  3604. <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE_SOURCE</constant></entry>
  3605. <entry>menu</entry>
  3606. </row>
  3607. <row id="v4l2-flash-strobe-source"><entry
  3608. spanname="descr">Defines the source of the flash LED
  3609. strobe.</entry>
  3610. </row>
  3611. <row>
  3612. <entrytbl spanname="descr" cols="2">
  3613. <tbody valign="top">
  3614. <row>
  3615. <entry><constant>V4L2_FLASH_STROBE_SOURCE_SOFTWARE</constant></entry>
  3616. <entry>The flash strobe is triggered by using
  3617. the V4L2_CID_FLASH_STROBE control.</entry>
  3618. </row>
  3619. <row>
  3620. <entry><constant>V4L2_FLASH_STROBE_SOURCE_EXTERNAL</constant></entry>
  3621. <entry>The flash strobe is triggered by an
  3622. external source. Typically this is a sensor,
  3623. which makes it possible to synchronises the
  3624. flash strobe start to exposure start.</entry>
  3625. </row>
  3626. </tbody>
  3627. </entrytbl>
  3628. </row>
  3629. <row>
  3630. <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE</constant></entry>
  3631. <entry>button</entry>
  3632. </row>
  3633. <row>
  3634. <entry spanname="descr">Strobe flash. Valid when
  3635. V4L2_CID_FLASH_LED_MODE is set to
  3636. V4L2_FLASH_LED_MODE_FLASH and V4L2_CID_FLASH_STROBE_SOURCE
  3637. is set to V4L2_FLASH_STROBE_SOURCE_SOFTWARE. Setting this
  3638. control may not be possible in presence of some faults.
  3639. See V4L2_CID_FLASH_FAULT.</entry>
  3640. </row>
  3641. <row>
  3642. <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE_STOP</constant></entry>
  3643. <entry>button</entry>
  3644. </row>
  3645. <row><entry spanname="descr">Stop flash strobe immediately.</entry>
  3646. </row>
  3647. <row>
  3648. <entry spanname="id"><constant>V4L2_CID_FLASH_STROBE_STATUS</constant></entry>
  3649. <entry>boolean</entry>
  3650. </row>
  3651. <row>
  3652. <entry spanname="descr">Strobe status: whether the flash
  3653. is strobing at the moment or not. This is a read-only
  3654. control.</entry>
  3655. </row>
  3656. <row>
  3657. <entry spanname="id"><constant>V4L2_CID_FLASH_TIMEOUT</constant></entry>
  3658. <entry>integer</entry>
  3659. </row>
  3660. <row>
  3661. <entry spanname="descr">Hardware timeout for flash. The
  3662. flash strobe is stopped after this period of time has
  3663. passed from the start of the strobe.</entry>
  3664. </row>
  3665. <row>
  3666. <entry spanname="id"><constant>V4L2_CID_FLASH_INTENSITY</constant></entry>
  3667. <entry>integer</entry>
  3668. </row>
  3669. <row>
  3670. <entry spanname="descr">Intensity of the flash strobe when
  3671. the flash LED is in flash mode
  3672. (V4L2_FLASH_LED_MODE_FLASH). The unit should be milliamps
  3673. (mA) if possible.</entry>
  3674. </row>
  3675. <row>
  3676. <entry spanname="id"><constant>V4L2_CID_FLASH_TORCH_INTENSITY</constant></entry>
  3677. <entry>integer</entry>
  3678. </row>
  3679. <row>
  3680. <entry spanname="descr">Intensity of the flash LED in
  3681. torch mode (V4L2_FLASH_LED_MODE_TORCH). The unit should be
  3682. milliamps (mA) if possible. Setting this control may not
  3683. be possible in presence of some faults. See
  3684. V4L2_CID_FLASH_FAULT.</entry>
  3685. </row>
  3686. <row>
  3687. <entry spanname="id"><constant>V4L2_CID_FLASH_INDICATOR_INTENSITY</constant></entry>
  3688. <entry>integer</entry>
  3689. </row>
  3690. <row>
  3691. <entry spanname="descr">Intensity of the indicator LED.
  3692. The indicator LED may be fully independent of the flash
  3693. LED. The unit should be microamps (uA) if possible.</entry>
  3694. </row>
  3695. <row>
  3696. <entry spanname="id"><constant>V4L2_CID_FLASH_FAULT</constant></entry>
  3697. <entry>bitmask</entry>
  3698. </row>
  3699. <row>
  3700. <entry spanname="descr">Faults related to the flash. The
  3701. faults tell about specific problems in the flash chip
  3702. itself or the LEDs attached to it. Faults may prevent
  3703. further use of some of the flash controls. In particular,
  3704. V4L2_CID_FLASH_LED_MODE is set to V4L2_FLASH_LED_MODE_NONE
  3705. if the fault affects the flash LED. Exactly which faults
  3706. have such an effect is chip dependent. Reading the faults
  3707. resets the control and returns the chip to a usable state
  3708. if possible.</entry>
  3709. </row>
  3710. <row>
  3711. <entrytbl spanname="descr" cols="2">
  3712. <tbody valign="top">
  3713. <row>
  3714. <entry><constant>V4L2_FLASH_FAULT_OVER_VOLTAGE</constant></entry>
  3715. <entry>Flash controller voltage to the flash LED
  3716. has exceeded the limit specific to the flash
  3717. controller.</entry>
  3718. </row>
  3719. <row>
  3720. <entry><constant>V4L2_FLASH_FAULT_TIMEOUT</constant></entry>
  3721. <entry>The flash strobe was still on when
  3722. the timeout set by the user ---
  3723. V4L2_CID_FLASH_TIMEOUT control --- has expired.
  3724. Not all flash controllers may set this in all
  3725. such conditions.</entry>
  3726. </row>
  3727. <row>
  3728. <entry><constant>V4L2_FLASH_FAULT_OVER_TEMPERATURE</constant></entry>
  3729. <entry>The flash controller has overheated.</entry>
  3730. </row>
  3731. <row>
  3732. <entry><constant>V4L2_FLASH_FAULT_SHORT_CIRCUIT</constant></entry>
  3733. <entry>The short circuit protection of the flash
  3734. controller has been triggered.</entry>
  3735. </row>
  3736. <row>
  3737. <entry><constant>V4L2_FLASH_FAULT_OVER_CURRENT</constant></entry>
  3738. <entry>Current in the LED power supply has exceeded the limit
  3739. specific to the flash controller.</entry>
  3740. </row>
  3741. <row>
  3742. <entry><constant>V4L2_FLASH_FAULT_INDICATOR</constant></entry>
  3743. <entry>The flash controller has detected a short or open
  3744. circuit condition on the indicator LED.</entry>
  3745. </row>
  3746. </tbody>
  3747. </entrytbl>
  3748. </row>
  3749. <row>
  3750. <entry spanname="id"><constant>V4L2_CID_FLASH_CHARGE</constant></entry>
  3751. <entry>boolean</entry>
  3752. </row>
  3753. <row><entry spanname="descr">Enable or disable charging of the xenon
  3754. flash capacitor.</entry>
  3755. </row>
  3756. <row>
  3757. <entry spanname="id"><constant>V4L2_CID_FLASH_READY</constant></entry>
  3758. <entry>boolean</entry>
  3759. </row>
  3760. <row>
  3761. <entry spanname="descr">Is the flash ready to strobe?
  3762. Xenon flashes require their capacitors charged before
  3763. strobing. LED flashes often require a cooldown period
  3764. after strobe during which another strobe will not be
  3765. possible. This is a read-only control.</entry>
  3766. </row>
  3767. <row><entry></entry></row>
  3768. </tbody>
  3769. </tgroup>
  3770. </table>
  3771. </section>
  3772. <section id="jpeg-controls">
  3773. <title>JPEG Control Reference</title>
  3774. <para>The JPEG class includes controls for common features of JPEG
  3775. encoders and decoders. Currently it includes features for codecs
  3776. implementing progressive baseline DCT compression process with
  3777. Huffman entrophy coding.</para>
  3778. <table pgwide="1" frame="none" id="jpeg-control-id">
  3779. <title>JPEG Control IDs</title>
  3780. <tgroup cols="4">
  3781. <colspec colname="c1" colwidth="1*" />
  3782. <colspec colname="c2" colwidth="6*" />
  3783. <colspec colname="c3" colwidth="2*" />
  3784. <colspec colname="c4" colwidth="6*" />
  3785. <spanspec namest="c1" nameend="c2" spanname="id" />
  3786. <spanspec namest="c2" nameend="c4" spanname="descr" />
  3787. <thead>
  3788. <row>
  3789. <entry spanname="id" align="left">ID</entry>
  3790. <entry align="left">Type</entry>
  3791. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  3792. </row>
  3793. </thead>
  3794. <tbody valign="top">
  3795. <row><entry></entry></row>
  3796. <row>
  3797. <entry spanname="id"><constant>V4L2_CID_JPEG_CLASS</constant>&nbsp;</entry>
  3798. <entry>class</entry>
  3799. </row><row><entry spanname="descr">The JPEG class descriptor. Calling
  3800. &VIDIOC-QUERYCTRL; for this control will return a description of this
  3801. control class.
  3802. </entry>
  3803. </row>
  3804. <row>
  3805. <entry spanname="id"><constant>V4L2_CID_JPEG_CHROMA_SUBSAMPLING</constant></entry>
  3806. <entry>menu</entry>
  3807. </row>
  3808. <row id="v4l2-jpeg-chroma-subsampling">
  3809. <entry spanname="descr">The chroma subsampling factors describe how
  3810. each component of an input image is sampled, in respect to maximum
  3811. sample rate in each spatial dimension. See <xref linkend="itu-t81"/>,
  3812. clause A.1.1. for more details. The <constant>
  3813. V4L2_CID_JPEG_CHROMA_SUBSAMPLING</constant> control determines how
  3814. Cb and Cr components are downsampled after coverting an input image
  3815. from RGB to Y'CbCr color space.
  3816. </entry>
  3817. </row>
  3818. <row>
  3819. <entrytbl spanname="descr" cols="2">
  3820. <tbody valign="top">
  3821. <row>
  3822. <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_444</constant>
  3823. </entry><entry>No chroma subsampling, each pixel has
  3824. Y, Cr and Cb values.</entry>
  3825. </row>
  3826. <row>
  3827. <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_422</constant>
  3828. </entry><entry>Horizontally subsample Cr, Cb components
  3829. by a factor of 2.</entry>
  3830. </row>
  3831. <row>
  3832. <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_420</constant>
  3833. </entry><entry>Subsample Cr, Cb components horizontally
  3834. and vertically by 2.</entry>
  3835. </row>
  3836. <row>
  3837. <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_411</constant>
  3838. </entry><entry>Horizontally subsample Cr, Cb components
  3839. by a factor of 4.</entry>
  3840. </row>
  3841. <row>
  3842. <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_410</constant>
  3843. </entry><entry>Subsample Cr, Cb components horizontally
  3844. by 4 and vertically by 2.</entry>
  3845. </row>
  3846. <row>
  3847. <entry><constant>V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY</constant>
  3848. </entry><entry>Use only luminance component.</entry>
  3849. </row>
  3850. </tbody>
  3851. </entrytbl>
  3852. </row>
  3853. <row>
  3854. <entry spanname="id"><constant>V4L2_CID_JPEG_RESTART_INTERVAL</constant>
  3855. </entry><entry>integer</entry>
  3856. </row>
  3857. <row><entry spanname="descr">
  3858. The restart interval determines an interval of inserting RSTm
  3859. markers (m = 0..7). The purpose of these markers is to additionally
  3860. reinitialize the encoder process, in order to process blocks of
  3861. an image independently.
  3862. For the lossy compression processes the restart interval unit is
  3863. MCU (Minimum Coded Unit) and its value is contained in DRI
  3864. (Define Restart Interval) marker. If <constant>
  3865. V4L2_CID_JPEG_RESTART_INTERVAL</constant> control is set to 0,
  3866. DRI and RSTm markers will not be inserted.
  3867. </entry>
  3868. </row>
  3869. <row id="jpeg-quality-control">
  3870. <entry spanname="id"><constant>V4L2_CID_JPEG_COMPRESSION_QUALITY</constant></entry>
  3871. <entry>integer</entry>
  3872. </row>
  3873. <row>
  3874. <entry spanname="descr">
  3875. <constant>V4L2_CID_JPEG_COMPRESSION_QUALITY</constant> control
  3876. determines trade-off between image quality and size.
  3877. It provides simpler method for applications to control image quality,
  3878. without a need for direct reconfiguration of luminance and chrominance
  3879. quantization tables.
  3880. In cases where a driver uses quantization tables configured directly
  3881. by an application, using interfaces defined elsewhere, <constant>
  3882. V4L2_CID_JPEG_COMPRESSION_QUALITY</constant> control should be set
  3883. by driver to 0.
  3884. <para>The value range of this control is driver-specific. Only
  3885. positive, non-zero values are meaningful. The recommended range
  3886. is 1 - 100, where larger values correspond to better image quality.
  3887. </para>
  3888. </entry>
  3889. </row>
  3890. <row id="jpeg-active-marker-control">
  3891. <entry spanname="id"><constant>V4L2_CID_JPEG_ACTIVE_MARKER</constant></entry>
  3892. <entry>bitmask</entry>
  3893. </row>
  3894. <row>
  3895. <entry spanname="descr">Specify which JPEG markers are included
  3896. in compressed stream. This control is valid only for encoders.
  3897. </entry>
  3898. </row>
  3899. <row>
  3900. <entrytbl spanname="descr" cols="2">
  3901. <tbody valign="top">
  3902. <row>
  3903. <entry><constant>V4L2_JPEG_ACTIVE_MARKER_APP0</constant></entry>
  3904. <entry>Application data segment APP<subscript>0</subscript>.</entry>
  3905. </row><row>
  3906. <entry><constant>V4L2_JPEG_ACTIVE_MARKER_APP1</constant></entry>
  3907. <entry>Application data segment APP<subscript>1</subscript>.</entry>
  3908. </row><row>
  3909. <entry><constant>V4L2_JPEG_ACTIVE_MARKER_COM</constant></entry>
  3910. <entry>Comment segment.</entry>
  3911. </row><row>
  3912. <entry><constant>V4L2_JPEG_ACTIVE_MARKER_DQT</constant></entry>
  3913. <entry>Quantization tables segment.</entry>
  3914. </row><row>
  3915. <entry><constant>V4L2_JPEG_ACTIVE_MARKER_DHT</constant></entry>
  3916. <entry>Huffman tables segment.</entry>
  3917. </row>
  3918. </tbody>
  3919. </entrytbl>
  3920. </row>
  3921. <row><entry></entry></row>
  3922. </tbody>
  3923. </tgroup>
  3924. </table>
  3925. <para>For more details about JPEG specification, refer
  3926. to <xref linkend="itu-t81"/>, <xref linkend="jfif"/>,
  3927. <xref linkend="w3c-jpeg-jfif"/>.</para>
  3928. </section>
  3929. <section id="image-source-controls">
  3930. <title>Image Source Control Reference</title>
  3931. <note>
  3932. <title>Experimental</title>
  3933. <para>This is an <link
  3934. linkend="experimental">experimental</link> interface and may
  3935. change in the future.</para>
  3936. </note>
  3937. <para>
  3938. The Image Source control class is intended for low-level
  3939. control of image source devices such as image sensors. The
  3940. devices feature an analogue to digital converter and a bus
  3941. transmitter to transmit the image data out of the device.
  3942. </para>
  3943. <table pgwide="1" frame="none" id="image-source-control-id">
  3944. <title>Image Source Control IDs</title>
  3945. <tgroup cols="4">
  3946. <colspec colname="c1" colwidth="1*" />
  3947. <colspec colname="c2" colwidth="6*" />
  3948. <colspec colname="c3" colwidth="2*" />
  3949. <colspec colname="c4" colwidth="6*" />
  3950. <spanspec namest="c1" nameend="c2" spanname="id" />
  3951. <spanspec namest="c2" nameend="c4" spanname="descr" />
  3952. <thead>
  3953. <row>
  3954. <entry spanname="id" align="left">ID</entry>
  3955. <entry align="left">Type</entry>
  3956. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  3957. </row>
  3958. </thead>
  3959. <tbody valign="top">
  3960. <row><entry></entry></row>
  3961. <row>
  3962. <entry spanname="id"><constant>V4L2_CID_IMAGE_SOURCE_CLASS</constant></entry>
  3963. <entry>class</entry>
  3964. </row>
  3965. <row>
  3966. <entry spanname="descr">The IMAGE_SOURCE class descriptor.</entry>
  3967. </row>
  3968. <row>
  3969. <entry spanname="id"><constant>V4L2_CID_VBLANK</constant></entry>
  3970. <entry>integer</entry>
  3971. </row>
  3972. <row>
  3973. <entry spanname="descr">Vertical blanking. The idle period
  3974. after every frame during which no image data is produced.
  3975. The unit of vertical blanking is a line. Every line has
  3976. length of the image width plus horizontal blanking at the
  3977. pixel rate defined by
  3978. <constant>V4L2_CID_PIXEL_RATE</constant> control in the
  3979. same sub-device.</entry>
  3980. </row>
  3981. <row>
  3982. <entry spanname="id"><constant>V4L2_CID_HBLANK</constant></entry>
  3983. <entry>integer</entry>
  3984. </row>
  3985. <row>
  3986. <entry spanname="descr">Horizontal blanking. The idle
  3987. period after every line of image data during which no
  3988. image data is produced. The unit of horizontal blanking is
  3989. pixels.</entry>
  3990. </row>
  3991. <row>
  3992. <entry spanname="id"><constant>V4L2_CID_ANALOGUE_GAIN</constant></entry>
  3993. <entry>integer</entry>
  3994. </row>
  3995. <row>
  3996. <entry spanname="descr">Analogue gain is gain affecting
  3997. all colour components in the pixel matrix. The gain
  3998. operation is performed in the analogue domain before A/D
  3999. conversion.
  4000. </entry>
  4001. </row>
  4002. <row><entry></entry></row>
  4003. </tbody>
  4004. </tgroup>
  4005. </table>
  4006. </section>
  4007. <section id="image-process-controls">
  4008. <title>Image Process Control Reference</title>
  4009. <note>
  4010. <title>Experimental</title>
  4011. <para>This is an <link
  4012. linkend="experimental">experimental</link> interface and may
  4013. change in the future.</para>
  4014. </note>
  4015. <para>
  4016. The Image Source control class is intended for low-level control of
  4017. image processing functions. Unlike
  4018. <constant>V4L2_CID_IMAGE_SOURCE_CLASS</constant>, the controls in
  4019. this class affect processing the image, and do not control capturing
  4020. of it.
  4021. </para>
  4022. <table pgwide="1" frame="none" id="image-process-control-id">
  4023. <title>Image Source Control IDs</title>
  4024. <tgroup cols="4">
  4025. <colspec colname="c1" colwidth="1*" />
  4026. <colspec colname="c2" colwidth="6*" />
  4027. <colspec colname="c3" colwidth="2*" />
  4028. <colspec colname="c4" colwidth="6*" />
  4029. <spanspec namest="c1" nameend="c2" spanname="id" />
  4030. <spanspec namest="c2" nameend="c4" spanname="descr" />
  4031. <thead>
  4032. <row>
  4033. <entry spanname="id" align="left">ID</entry>
  4034. <entry align="left">Type</entry>
  4035. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  4036. </row>
  4037. </thead>
  4038. <tbody valign="top">
  4039. <row><entry></entry></row>
  4040. <row>
  4041. <entry spanname="id"><constant>V4L2_CID_IMAGE_PROC_CLASS</constant></entry>
  4042. <entry>class</entry>
  4043. </row>
  4044. <row>
  4045. <entry spanname="descr">The IMAGE_PROC class descriptor.</entry>
  4046. </row>
  4047. <row>
  4048. <entry spanname="id"><constant>V4L2_CID_LINK_FREQ</constant></entry>
  4049. <entry>integer menu</entry>
  4050. </row>
  4051. <row>
  4052. <entry spanname="descr">Data bus frequency. Together with the
  4053. media bus pixel code, bus type (clock cycles per sample), the
  4054. data bus frequency defines the pixel rate
  4055. (<constant>V4L2_CID_PIXEL_RATE</constant>) in the
  4056. pixel array (or possibly elsewhere, if the device is not an
  4057. image sensor). The frame rate can be calculated from the pixel
  4058. clock, image width and height and horizontal and vertical
  4059. blanking. While the pixel rate control may be defined elsewhere
  4060. than in the subdev containing the pixel array, the frame rate
  4061. cannot be obtained from that information. This is because only
  4062. on the pixel array it can be assumed that the vertical and
  4063. horizontal blanking information is exact: no other blanking is
  4064. allowed in the pixel array. The selection of frame rate is
  4065. performed by selecting the desired horizontal and vertical
  4066. blanking. The unit of this control is Hz. </entry>
  4067. </row>
  4068. <row>
  4069. <entry spanname="id"><constant>V4L2_CID_PIXEL_RATE</constant></entry>
  4070. <entry>64-bit integer</entry>
  4071. </row>
  4072. <row>
  4073. <entry spanname="descr">Pixel rate in the source pads of
  4074. the subdev. This control is read-only and its unit is
  4075. pixels / second.
  4076. </entry>
  4077. </row>
  4078. <row><entry></entry></row>
  4079. </tbody>
  4080. </tgroup>
  4081. </table>
  4082. </section>
  4083. </section>