CameraBridgeViewBase.html 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_65) on Fri Dec 18 18:19:50 MSK 2015 -->
  6. <title>CameraBridgeViewBase</title>
  7. <meta name="date" content="2015-12-18">
  8. <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="CameraBridgeViewBase";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="package-tree.html">Tree</a></li>
  44. <li><a href="../../../index-all.html">Index</a></li>
  45. <li><a href="../../../help-doc.html">Help</a></li>
  46. </ul>
  47. <div class="aboutLanguage">OpenCV 3.1.0</div>
  48. </div>
  49. <div class="subNav">
  50. <ul class="navList">
  51. <li><a href="../../../org/opencv/android/BaseLoaderCallback.html" title="class in org.opencv.android"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  52. <li><a href="../../../org/opencv/android/CameraBridgeViewBase.CvCameraViewFrame.html" title="interface in org.opencv.android"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  53. </ul>
  54. <ul class="navList">
  55. <li><a href="../../../index.html?org/opencv/android/CameraBridgeViewBase.html" target="_top">Frames</a></li>
  56. <li><a href="CameraBridgeViewBase.html" target="_top">No&nbsp;Frames</a></li>
  57. </ul>
  58. <ul class="navList" id="allclasses_navbar_top">
  59. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  60. </ul>
  61. <div>
  62. <script type="text/javascript"><!--
  63. allClassesLink = document.getElementById("allclasses_navbar_top");
  64. if(window==top) {
  65. allClassesLink.style.display = "block";
  66. }
  67. else {
  68. allClassesLink.style.display = "none";
  69. }
  70. //-->
  71. </script>
  72. </div>
  73. <div>
  74. <ul class="subNavList">
  75. <li>Summary:&nbsp;</li>
  76. <li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
  77. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  78. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  79. <li><a href="#method.summary">Method</a></li>
  80. </ul>
  81. <ul class="subNavList">
  82. <li>Detail:&nbsp;</li>
  83. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  84. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  85. <li><a href="#method.detail">Method</a></li>
  86. </ul>
  87. </div>
  88. <a name="skip.navbar.top">
  89. <!-- -->
  90. </a></div>
  91. <!-- ========= END OF TOP NAVBAR ========= -->
  92. <!-- ======== START OF CLASS DATA ======== -->
  93. <div class="header">
  94. <div class="subTitle">org.opencv.android</div>
  95. <h2 title="Class CameraBridgeViewBase" class="title">Class CameraBridgeViewBase</h2>
  96. </div>
  97. <div class="contentContainer">
  98. <ul class="inheritance">
  99. <li>java.lang.Object</li>
  100. <li>
  101. <ul class="inheritance">
  102. <li>android.view.View</li>
  103. <li>
  104. <ul class="inheritance">
  105. <li>android.view.SurfaceView</li>
  106. <li>
  107. <ul class="inheritance">
  108. <li>org.opencv.android.CameraBridgeViewBase</li>
  109. </ul>
  110. </li>
  111. </ul>
  112. </li>
  113. </ul>
  114. </li>
  115. </ul>
  116. <div class="description">
  117. <ul class="blockList">
  118. <li class="blockList">
  119. <dl>
  120. <dt>All Implemented Interfaces:</dt>
  121. <dd>android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.view.SurfaceHolder.Callback</dd>
  122. </dl>
  123. <dl>
  124. <dt>Direct Known Subclasses:</dt>
  125. <dd><a href="../../../org/opencv/android/JavaCameraView.html" title="class in org.opencv.android">JavaCameraView</a></dd>
  126. </dl>
  127. <hr>
  128. <br>
  129. <pre>public abstract class <span class="typeNameLabel">CameraBridgeViewBase</span>
  130. extends android.view.SurfaceView
  131. implements android.view.SurfaceHolder.Callback</pre>
  132. <div class="block">This is a basic class, implementing the interaction with Camera and OpenCV library.
  133. The main responsibility of it - is to control when camera can be enabled, process the frame,
  134. call external listener to make any adjustments to the frame and then draw the resulting
  135. frame to the screen.
  136. The clients shall implement CvCameraViewListener.</div>
  137. </li>
  138. </ul>
  139. </div>
  140. <div class="summary">
  141. <ul class="blockList">
  142. <li class="blockList">
  143. <!-- ======== NESTED CLASS SUMMARY ======== -->
  144. <ul class="blockList">
  145. <li class="blockList"><a name="nested.class.summary">
  146. <!-- -->
  147. </a>
  148. <h3>Nested Class Summary</h3>
  149. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
  150. <caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
  151. <tr>
  152. <th class="colFirst" scope="col">Modifier and Type</th>
  153. <th class="colLast" scope="col">Class and Description</th>
  154. </tr>
  155. <tr class="altColor">
  156. <td class="colFirst"><code>static interface&nbsp;</code></td>
  157. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.CvCameraViewFrame.html" title="interface in org.opencv.android">CameraBridgeViewBase.CvCameraViewFrame</a></span></code>
  158. <div class="block">This class interface is abstract representation of single frame from camera for onCameraFrame callback
  159. Attention: Do not use objects, that represents this interface out of onCameraFrame callback!</div>
  160. </td>
  161. </tr>
  162. <tr class="rowColor">
  163. <td class="colFirst"><code>static interface&nbsp;</code></td>
  164. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.CvCameraViewListener.html" title="interface in org.opencv.android">CameraBridgeViewBase.CvCameraViewListener</a></span></code>&nbsp;</td>
  165. </tr>
  166. <tr class="altColor">
  167. <td class="colFirst"><code>static interface&nbsp;</code></td>
  168. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.CvCameraViewListener2.html" title="interface in org.opencv.android">CameraBridgeViewBase.CvCameraViewListener2</a></span></code>&nbsp;</td>
  169. </tr>
  170. <tr class="rowColor">
  171. <td class="colFirst"><code>static interface&nbsp;</code></td>
  172. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.ListItemAccessor.html" title="interface in org.opencv.android">CameraBridgeViewBase.ListItemAccessor</a></span></code>&nbsp;</td>
  173. </tr>
  174. </table>
  175. <ul class="blockList">
  176. <li class="blockList"><a name="nested.classes.inherited.from.class.android.view.View">
  177. <!-- -->
  178. </a>
  179. <h3>Nested classes/interfaces inherited from class&nbsp;android.view.View</h3>
  180. <code>android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener</code></li>
  181. </ul>
  182. </li>
  183. </ul>
  184. <!-- =========== FIELD SUMMARY =========== -->
  185. <ul class="blockList">
  186. <li class="blockList"><a name="field.summary">
  187. <!-- -->
  188. </a>
  189. <h3>Field Summary</h3>
  190. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  191. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  192. <tr>
  193. <th class="colFirst" scope="col">Modifier and Type</th>
  194. <th class="colLast" scope="col">Field and Description</th>
  195. </tr>
  196. <tr class="altColor">
  197. <td class="colFirst"><code>static int</code></td>
  198. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#CAMERA_ID_ANY">CAMERA_ID_ANY</a></span></code>&nbsp;</td>
  199. </tr>
  200. <tr class="rowColor">
  201. <td class="colFirst"><code>static int</code></td>
  202. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#CAMERA_ID_BACK">CAMERA_ID_BACK</a></span></code>&nbsp;</td>
  203. </tr>
  204. <tr class="altColor">
  205. <td class="colFirst"><code>static int</code></td>
  206. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#CAMERA_ID_FRONT">CAMERA_ID_FRONT</a></span></code>&nbsp;</td>
  207. </tr>
  208. <tr class="rowColor">
  209. <td class="colFirst"><code>static int</code></td>
  210. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#GRAY">GRAY</a></span></code>&nbsp;</td>
  211. </tr>
  212. <tr class="altColor">
  213. <td class="colFirst"><code>static int</code></td>
  214. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#RGBA">RGBA</a></span></code>&nbsp;</td>
  215. </tr>
  216. </table>
  217. <ul class="blockList">
  218. <li class="blockList"><a name="fields.inherited.from.class.android.view.View">
  219. <!-- -->
  220. </a>
  221. <h3>Fields inherited from class&nbsp;android.view.View</h3>
  222. <code>ALPHA, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, TRANSLATION_X, TRANSLATION_Y, VISIBLE, X, Y</code></li>
  223. </ul>
  224. </li>
  225. </ul>
  226. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  227. <ul class="blockList">
  228. <li class="blockList"><a name="constructor.summary">
  229. <!-- -->
  230. </a>
  231. <h3>Constructor Summary</h3>
  232. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  233. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  234. <tr>
  235. <th class="colOne" scope="col">Constructor and Description</th>
  236. </tr>
  237. <tr class="altColor">
  238. <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#CameraBridgeViewBase-android.content.Context-android.util.AttributeSet-">CameraBridgeViewBase</a></span>(android.content.Context&nbsp;context,
  239. android.util.AttributeSet&nbsp;attrs)</code>&nbsp;</td>
  240. </tr>
  241. <tr class="rowColor">
  242. <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#CameraBridgeViewBase-android.content.Context-int-">CameraBridgeViewBase</a></span>(android.content.Context&nbsp;context,
  243. int&nbsp;cameraId)</code>&nbsp;</td>
  244. </tr>
  245. </table>
  246. </li>
  247. </ul>
  248. <!-- ========== METHOD SUMMARY =========== -->
  249. <ul class="blockList">
  250. <li class="blockList"><a name="method.summary">
  251. <!-- -->
  252. </a>
  253. <h3>Method Summary</h3>
  254. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  255. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  256. <tr>
  257. <th class="colFirst" scope="col">Modifier and Type</th>
  258. <th class="colLast" scope="col">Method and Description</th>
  259. </tr>
  260. <tr id="i0" class="altColor">
  261. <td class="colFirst"><code>void</code></td>
  262. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#disableFpsMeter--">disableFpsMeter</a></span>()</code>&nbsp;</td>
  263. </tr>
  264. <tr id="i1" class="rowColor">
  265. <td class="colFirst"><code>void</code></td>
  266. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#disableView--">disableView</a></span>()</code>
  267. <div class="block">This method is provided for clients, so they can disable camera connection and stop
  268. the delivery of frames even though the surface view itself is not destroyed and still stays on the scren</div>
  269. </td>
  270. </tr>
  271. <tr id="i2" class="altColor">
  272. <td class="colFirst"><code>void</code></td>
  273. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#enableFpsMeter--">enableFpsMeter</a></span>()</code>
  274. <div class="block">This method enables label with fps value on the screen</div>
  275. </td>
  276. </tr>
  277. <tr id="i3" class="rowColor">
  278. <td class="colFirst"><code>void</code></td>
  279. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#enableView--">enableView</a></span>()</code>
  280. <div class="block">This method is provided for clients, so they can enable the camera connection.</div>
  281. </td>
  282. </tr>
  283. <tr id="i4" class="altColor">
  284. <td class="colFirst"><code>void</code></td>
  285. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#setCameraIndex-int-">setCameraIndex</a></span>(int&nbsp;cameraIndex)</code>
  286. <div class="block">Sets the camera index</div>
  287. </td>
  288. </tr>
  289. <tr id="i5" class="rowColor">
  290. <td class="colFirst"><code>void</code></td>
  291. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#SetCaptureFormat-int-">SetCaptureFormat</a></span>(int&nbsp;format)</code>&nbsp;</td>
  292. </tr>
  293. <tr id="i6" class="altColor">
  294. <td class="colFirst"><code>void</code></td>
  295. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#setCvCameraViewListener-org.opencv.android.CameraBridgeViewBase.CvCameraViewListener-">setCvCameraViewListener</a></span>(<a href="../../../org/opencv/android/CameraBridgeViewBase.CvCameraViewListener.html" title="interface in org.opencv.android">CameraBridgeViewBase.CvCameraViewListener</a>&nbsp;listener)</code>&nbsp;</td>
  296. </tr>
  297. <tr id="i7" class="rowColor">
  298. <td class="colFirst"><code>void</code></td>
  299. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#setCvCameraViewListener-org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2-">setCvCameraViewListener</a></span>(<a href="../../../org/opencv/android/CameraBridgeViewBase.CvCameraViewListener2.html" title="interface in org.opencv.android">CameraBridgeViewBase.CvCameraViewListener2</a>&nbsp;listener)</code>&nbsp;</td>
  300. </tr>
  301. <tr id="i8" class="altColor">
  302. <td class="colFirst"><code>void</code></td>
  303. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#setMaxFrameSize-int-int-">setMaxFrameSize</a></span>(int&nbsp;maxWidth,
  304. int&nbsp;maxHeight)</code>
  305. <div class="block">This method sets the maximum size that camera frame is allowed to be.</div>
  306. </td>
  307. </tr>
  308. <tr id="i9" class="rowColor">
  309. <td class="colFirst"><code>void</code></td>
  310. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#surfaceChanged-android.view.SurfaceHolder-int-int-int-">surfaceChanged</a></span>(android.view.SurfaceHolder&nbsp;arg0,
  311. int&nbsp;arg1,
  312. int&nbsp;arg2,
  313. int&nbsp;arg3)</code>&nbsp;</td>
  314. </tr>
  315. <tr id="i10" class="altColor">
  316. <td class="colFirst"><code>void</code></td>
  317. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#surfaceCreated-android.view.SurfaceHolder-">surfaceCreated</a></span>(android.view.SurfaceHolder&nbsp;holder)</code>&nbsp;</td>
  318. </tr>
  319. <tr id="i11" class="rowColor">
  320. <td class="colFirst"><code>void</code></td>
  321. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/android/CameraBridgeViewBase.html#surfaceDestroyed-android.view.SurfaceHolder-">surfaceDestroyed</a></span>(android.view.SurfaceHolder&nbsp;holder)</code>&nbsp;</td>
  322. </tr>
  323. </table>
  324. <ul class="blockList">
  325. <li class="blockList"><a name="methods.inherited.from.class.android.view.SurfaceView">
  326. <!-- -->
  327. </a>
  328. <h3>Methods inherited from class&nbsp;android.view.SurfaceView</h3>
  329. <code>draw, gatherTransparentRegion, getHolder, setVisibility, setZOrderMediaOverlay, setZOrderOnTop</code></li>
  330. </ul>
  331. <ul class="blockList">
  332. <li class="blockList"><a name="methods.inherited.from.class.android.view.View">
  333. <!-- -->
  334. </a>
  335. <h3>Methods inherited from class&nbsp;android.view.View</h3>
  336. <code>addFocusables, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addTouchables, animate, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, cancelLongPress, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, clearFocus, combineMeasuredStates, computeScroll, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowVisibilityChanged, findFocus, findViewById, findViewsWithText, findViewWithTag, fitsSystemWindows, focusSearch, forceLayout, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getContentDescription, getContext, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getId, getKeepScreenOn, getKeyDispatcherState, getLayerType, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getPivotX, getPivotY, getResources, getRight, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSystemUiVisibility, getTag, getTag, getTop, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasFocus, hasFocusable, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, isActivated, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, jumpDrawablesToCurrentState, layout, measure, offsetLeftAndRight, offsetTopAndBottom, onCheckIsTextEditor, onCreateInputConnection, onDragEvent, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPopulateAccessibilityEvent, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onWindowFocusChanged, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setActivated, setAlpha, setAnimation, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setKeepScreenOn, setLayerType, setLayoutParams, setLeft, setLongClickable, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOverScrollMode, setPadding, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollbarFadingEnabled, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDraw</code></li>
  337. </ul>
  338. <ul class="blockList">
  339. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  340. <!-- -->
  341. </a>
  342. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  343. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  344. </ul>
  345. </li>
  346. </ul>
  347. </li>
  348. </ul>
  349. </div>
  350. <div class="details">
  351. <ul class="blockList">
  352. <li class="blockList">
  353. <!-- ============ FIELD DETAIL =========== -->
  354. <ul class="blockList">
  355. <li class="blockList"><a name="field.detail">
  356. <!-- -->
  357. </a>
  358. <h3>Field Detail</h3>
  359. <a name="CAMERA_ID_ANY">
  360. <!-- -->
  361. </a>
  362. <ul class="blockList">
  363. <li class="blockList">
  364. <h4>CAMERA_ID_ANY</h4>
  365. <pre>public static final&nbsp;int CAMERA_ID_ANY</pre>
  366. <dl>
  367. <dt><span class="seeLabel">See Also:</span></dt>
  368. <dd><a href="../../../constant-values.html#org.opencv.android.CameraBridgeViewBase.CAMERA_ID_ANY">Constant Field Values</a></dd>
  369. </dl>
  370. </li>
  371. </ul>
  372. <a name="CAMERA_ID_BACK">
  373. <!-- -->
  374. </a>
  375. <ul class="blockList">
  376. <li class="blockList">
  377. <h4>CAMERA_ID_BACK</h4>
  378. <pre>public static final&nbsp;int CAMERA_ID_BACK</pre>
  379. <dl>
  380. <dt><span class="seeLabel">See Also:</span></dt>
  381. <dd><a href="../../../constant-values.html#org.opencv.android.CameraBridgeViewBase.CAMERA_ID_BACK">Constant Field Values</a></dd>
  382. </dl>
  383. </li>
  384. </ul>
  385. <a name="CAMERA_ID_FRONT">
  386. <!-- -->
  387. </a>
  388. <ul class="blockList">
  389. <li class="blockList">
  390. <h4>CAMERA_ID_FRONT</h4>
  391. <pre>public static final&nbsp;int CAMERA_ID_FRONT</pre>
  392. <dl>
  393. <dt><span class="seeLabel">See Also:</span></dt>
  394. <dd><a href="../../../constant-values.html#org.opencv.android.CameraBridgeViewBase.CAMERA_ID_FRONT">Constant Field Values</a></dd>
  395. </dl>
  396. </li>
  397. </ul>
  398. <a name="GRAY">
  399. <!-- -->
  400. </a>
  401. <ul class="blockList">
  402. <li class="blockList">
  403. <h4>GRAY</h4>
  404. <pre>public static final&nbsp;int GRAY</pre>
  405. <dl>
  406. <dt><span class="seeLabel">See Also:</span></dt>
  407. <dd><a href="../../../constant-values.html#org.opencv.android.CameraBridgeViewBase.GRAY">Constant Field Values</a></dd>
  408. </dl>
  409. </li>
  410. </ul>
  411. <a name="RGBA">
  412. <!-- -->
  413. </a>
  414. <ul class="blockListLast">
  415. <li class="blockList">
  416. <h4>RGBA</h4>
  417. <pre>public static final&nbsp;int RGBA</pre>
  418. <dl>
  419. <dt><span class="seeLabel">See Also:</span></dt>
  420. <dd><a href="../../../constant-values.html#org.opencv.android.CameraBridgeViewBase.RGBA">Constant Field Values</a></dd>
  421. </dl>
  422. </li>
  423. </ul>
  424. </li>
  425. </ul>
  426. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  427. <ul class="blockList">
  428. <li class="blockList"><a name="constructor.detail">
  429. <!-- -->
  430. </a>
  431. <h3>Constructor Detail</h3>
  432. <a name="CameraBridgeViewBase-android.content.Context-android.util.AttributeSet-">
  433. <!-- -->
  434. </a>
  435. <ul class="blockList">
  436. <li class="blockList">
  437. <h4>CameraBridgeViewBase</h4>
  438. <pre>public&nbsp;CameraBridgeViewBase(android.content.Context&nbsp;context,
  439. android.util.AttributeSet&nbsp;attrs)</pre>
  440. </li>
  441. </ul>
  442. <a name="CameraBridgeViewBase-android.content.Context-int-">
  443. <!-- -->
  444. </a>
  445. <ul class="blockListLast">
  446. <li class="blockList">
  447. <h4>CameraBridgeViewBase</h4>
  448. <pre>public&nbsp;CameraBridgeViewBase(android.content.Context&nbsp;context,
  449. int&nbsp;cameraId)</pre>
  450. </li>
  451. </ul>
  452. </li>
  453. </ul>
  454. <!-- ============ METHOD DETAIL ========== -->
  455. <ul class="blockList">
  456. <li class="blockList"><a name="method.detail">
  457. <!-- -->
  458. </a>
  459. <h3>Method Detail</h3>
  460. <a name="disableFpsMeter--">
  461. <!-- -->
  462. </a>
  463. <ul class="blockList">
  464. <li class="blockList">
  465. <h4>disableFpsMeter</h4>
  466. <pre>public&nbsp;void&nbsp;disableFpsMeter()</pre>
  467. </li>
  468. </ul>
  469. <a name="disableView--">
  470. <!-- -->
  471. </a>
  472. <ul class="blockList">
  473. <li class="blockList">
  474. <h4>disableView</h4>
  475. <pre>public&nbsp;void&nbsp;disableView()</pre>
  476. <div class="block">This method is provided for clients, so they can disable camera connection and stop
  477. the delivery of frames even though the surface view itself is not destroyed and still stays on the scren</div>
  478. </li>
  479. </ul>
  480. <a name="enableFpsMeter--">
  481. <!-- -->
  482. </a>
  483. <ul class="blockList">
  484. <li class="blockList">
  485. <h4>enableFpsMeter</h4>
  486. <pre>public&nbsp;void&nbsp;enableFpsMeter()</pre>
  487. <div class="block">This method enables label with fps value on the screen</div>
  488. </li>
  489. </ul>
  490. <a name="enableView--">
  491. <!-- -->
  492. </a>
  493. <ul class="blockList">
  494. <li class="blockList">
  495. <h4>enableView</h4>
  496. <pre>public&nbsp;void&nbsp;enableView()</pre>
  497. <div class="block">This method is provided for clients, so they can enable the camera connection.
  498. The actual onCameraViewStarted callback will be delivered only after both this method is called and surface is available</div>
  499. </li>
  500. </ul>
  501. <a name="setCameraIndex-int-">
  502. <!-- -->
  503. </a>
  504. <ul class="blockList">
  505. <li class="blockList">
  506. <h4>setCameraIndex</h4>
  507. <pre>public&nbsp;void&nbsp;setCameraIndex(int&nbsp;cameraIndex)</pre>
  508. <div class="block">Sets the camera index</div>
  509. <dl>
  510. <dt><span class="paramLabel">Parameters:</span></dt>
  511. <dd><code>cameraIndex</code> - new camera index</dd>
  512. </dl>
  513. </li>
  514. </ul>
  515. <a name="SetCaptureFormat-int-">
  516. <!-- -->
  517. </a>
  518. <ul class="blockList">
  519. <li class="blockList">
  520. <h4>SetCaptureFormat</h4>
  521. <pre>public&nbsp;void&nbsp;SetCaptureFormat(int&nbsp;format)</pre>
  522. </li>
  523. </ul>
  524. <a name="setCvCameraViewListener-org.opencv.android.CameraBridgeViewBase.CvCameraViewListener-">
  525. <!-- -->
  526. </a>
  527. <ul class="blockList">
  528. <li class="blockList">
  529. <h4>setCvCameraViewListener</h4>
  530. <pre>public&nbsp;void&nbsp;setCvCameraViewListener(<a href="../../../org/opencv/android/CameraBridgeViewBase.CvCameraViewListener.html" title="interface in org.opencv.android">CameraBridgeViewBase.CvCameraViewListener</a>&nbsp;listener)</pre>
  531. </li>
  532. </ul>
  533. <a name="setCvCameraViewListener-org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2-">
  534. <!-- -->
  535. </a>
  536. <ul class="blockList">
  537. <li class="blockList">
  538. <h4>setCvCameraViewListener</h4>
  539. <pre>public&nbsp;void&nbsp;setCvCameraViewListener(<a href="../../../org/opencv/android/CameraBridgeViewBase.CvCameraViewListener2.html" title="interface in org.opencv.android">CameraBridgeViewBase.CvCameraViewListener2</a>&nbsp;listener)</pre>
  540. <dl>
  541. <dt><span class="paramLabel">Parameters:</span></dt>
  542. <dd><code>listener</code> - </dd>
  543. </dl>
  544. </li>
  545. </ul>
  546. <a name="setMaxFrameSize-int-int-">
  547. <!-- -->
  548. </a>
  549. <ul class="blockList">
  550. <li class="blockList">
  551. <h4>setMaxFrameSize</h4>
  552. <pre>public&nbsp;void&nbsp;setMaxFrameSize(int&nbsp;maxWidth,
  553. int&nbsp;maxHeight)</pre>
  554. <div class="block">This method sets the maximum size that camera frame is allowed to be. When selecting
  555. size - the biggest size which less or equal the size set will be selected.
  556. As an example - we set setMaxFrameSize(200,200) and we have 176x152 and 320x240 sizes. The
  557. preview frame will be selected with 176x152 size.
  558. This method is useful when need to restrict the size of preview frame for some reason (for example for video recording)</div>
  559. <dl>
  560. <dt><span class="paramLabel">Parameters:</span></dt>
  561. <dd><code>maxWidth</code> - - the maximum width allowed for camera frame.</dd>
  562. <dd><code>maxHeight</code> - - the maximum height allowed for camera frame</dd>
  563. </dl>
  564. </li>
  565. </ul>
  566. <a name="surfaceChanged-android.view.SurfaceHolder-int-int-int-">
  567. <!-- -->
  568. </a>
  569. <ul class="blockList">
  570. <li class="blockList">
  571. <h4>surfaceChanged</h4>
  572. <pre>public&nbsp;void&nbsp;surfaceChanged(android.view.SurfaceHolder&nbsp;arg0,
  573. int&nbsp;arg1,
  574. int&nbsp;arg2,
  575. int&nbsp;arg3)</pre>
  576. <dl>
  577. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  578. <dd><code>surfaceChanged</code>&nbsp;in interface&nbsp;<code>android.view.SurfaceHolder.Callback</code></dd>
  579. </dl>
  580. </li>
  581. </ul>
  582. <a name="surfaceCreated-android.view.SurfaceHolder-">
  583. <!-- -->
  584. </a>
  585. <ul class="blockList">
  586. <li class="blockList">
  587. <h4>surfaceCreated</h4>
  588. <pre>public&nbsp;void&nbsp;surfaceCreated(android.view.SurfaceHolder&nbsp;holder)</pre>
  589. <dl>
  590. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  591. <dd><code>surfaceCreated</code>&nbsp;in interface&nbsp;<code>android.view.SurfaceHolder.Callback</code></dd>
  592. </dl>
  593. </li>
  594. </ul>
  595. <a name="surfaceDestroyed-android.view.SurfaceHolder-">
  596. <!-- -->
  597. </a>
  598. <ul class="blockListLast">
  599. <li class="blockList">
  600. <h4>surfaceDestroyed</h4>
  601. <pre>public&nbsp;void&nbsp;surfaceDestroyed(android.view.SurfaceHolder&nbsp;holder)</pre>
  602. <dl>
  603. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  604. <dd><code>surfaceDestroyed</code>&nbsp;in interface&nbsp;<code>android.view.SurfaceHolder.Callback</code></dd>
  605. </dl>
  606. </li>
  607. </ul>
  608. </li>
  609. </ul>
  610. </li>
  611. </ul>
  612. </div>
  613. </div>
  614. <!-- ========= END OF CLASS DATA ========= -->
  615. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  616. <div class="bottomNav"><a name="navbar.bottom">
  617. <!-- -->
  618. </a>
  619. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  620. <a name="navbar.bottom.firstrow">
  621. <!-- -->
  622. </a>
  623. <ul class="navList" title="Navigation">
  624. <li><a href="../../../overview-summary.html">Overview</a></li>
  625. <li><a href="package-summary.html">Package</a></li>
  626. <li class="navBarCell1Rev">Class</li>
  627. <li><a href="package-tree.html">Tree</a></li>
  628. <li><a href="../../../index-all.html">Index</a></li>
  629. <li><a href="../../../help-doc.html">Help</a></li>
  630. </ul>
  631. <div class="aboutLanguage"><a href="http://docs.opencv.org">OpenCV 3.1.0 Documentation</a></div>
  632. </div>
  633. <div class="subNav">
  634. <ul class="navList">
  635. <li><a href="../../../org/opencv/android/BaseLoaderCallback.html" title="class in org.opencv.android"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  636. <li><a href="../../../org/opencv/android/CameraBridgeViewBase.CvCameraViewFrame.html" title="interface in org.opencv.android"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  637. </ul>
  638. <ul class="navList">
  639. <li><a href="../../../index.html?org/opencv/android/CameraBridgeViewBase.html" target="_top">Frames</a></li>
  640. <li><a href="CameraBridgeViewBase.html" target="_top">No&nbsp;Frames</a></li>
  641. </ul>
  642. <ul class="navList" id="allclasses_navbar_bottom">
  643. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  644. </ul>
  645. <div>
  646. <script type="text/javascript"><!--
  647. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  648. if(window==top) {
  649. allClassesLink.style.display = "block";
  650. }
  651. else {
  652. allClassesLink.style.display = "none";
  653. }
  654. //-->
  655. </script>
  656. </div>
  657. <div>
  658. <ul class="subNavList">
  659. <li>Summary:&nbsp;</li>
  660. <li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
  661. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  662. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  663. <li><a href="#method.summary">Method</a></li>
  664. </ul>
  665. <ul class="subNavList">
  666. <li>Detail:&nbsp;</li>
  667. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  668. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  669. <li><a href="#method.detail">Method</a></li>
  670. </ul>
  671. </div>
  672. <a name="skip.navbar.bottom">
  673. <!-- -->
  674. </a></div>
  675. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  676. </body>
  677. </html>