/usr/share/doc/libjuce/apiref/classCameraDevice.html is in libjuce-doc 4.3.0~repack-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JUCE: CameraDevice Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">JUCE
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="classCameraDevice-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">CameraDevice Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Controls any video capture devices that might be available.
<a href="classCameraDevice.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classCameraDevice_1_1Listener.html">Listener</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Receives callbacks with images from a <a class="el" href="classCameraDevice.html" title="Controls any video capture devices that might be available. ">CameraDevice</a>. <a href="classCameraDevice_1_1Listener.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac885198479887e5a3779a818e07e9917"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classCameraDevice.html#ac885198479887e5a3779a818e07e9917">~CameraDevice</a> ()</td></tr>
<tr class="memdesc:ac885198479887e5a3779a818e07e9917"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ac885198479887e5a3779a818e07e9917">More...</a><br /></td></tr>
<tr class="separator:ac885198479887e5a3779a818e07e9917"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa555467e7121ec6ad3538d5f799aca83"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classString.html">String</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCameraDevice.html#aa555467e7121ec6ad3538d5f799aca83">getName</a> () const noexcept</td></tr>
<tr class="memdesc:aa555467e7121ec6ad3538d5f799aca83"><td class="mdescLeft"> </td><td class="mdescRight">Returns the name of this device. <a href="#aa555467e7121ec6ad3538d5f799aca83">More...</a><br /></td></tr>
<tr class="separator:aa555467e7121ec6ad3538d5f799aca83"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a17948f7b0ba629b0958bd0638bdb112a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classComponent.html">Component</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCameraDevice.html#a17948f7b0ba629b0958bd0638bdb112a">createViewerComponent</a> ()</td></tr>
<tr class="memdesc:a17948f7b0ba629b0958bd0638bdb112a"><td class="mdescLeft"> </td><td class="mdescRight">Creates a component that can be used to display a preview of the video from this camera. <a href="#a17948f7b0ba629b0958bd0638bdb112a">More...</a><br /></td></tr>
<tr class="separator:a17948f7b0ba629b0958bd0638bdb112a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a14cf9ed22ac491e949d05ac44071fbee"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCameraDevice.html#a14cf9ed22ac491e949d05ac44071fbee">startRecordingToFile</a> (const <a class="el" href="classFile.html">File</a> &file, int quality=2)</td></tr>
<tr class="memdesc:a14cf9ed22ac491e949d05ac44071fbee"><td class="mdescLeft"> </td><td class="mdescRight">Starts recording video to the specified file. <a href="#a14cf9ed22ac491e949d05ac44071fbee">More...</a><br /></td></tr>
<tr class="separator:a14cf9ed22ac491e949d05ac44071fbee"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8f4e51fb9d4a77a5bb479749e65e8d8e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCameraDevice.html#a8f4e51fb9d4a77a5bb479749e65e8d8e">stopRecording</a> ()</td></tr>
<tr class="memdesc:a8f4e51fb9d4a77a5bb479749e65e8d8e"><td class="mdescLeft"> </td><td class="mdescRight">Stops recording, after a call to <a class="el" href="classCameraDevice.html#a14cf9ed22ac491e949d05ac44071fbee" title="Starts recording video to the specified file. ">startRecordingToFile()</a>. <a href="#a8f4e51fb9d4a77a5bb479749e65e8d8e">More...</a><br /></td></tr>
<tr class="separator:a8f4e51fb9d4a77a5bb479749e65e8d8e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae502d768dd3378e145b28907d8a3c714"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTime.html">Time</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCameraDevice.html#ae502d768dd3378e145b28907d8a3c714">getTimeOfFirstRecordedFrame</a> () const</td></tr>
<tr class="memdesc:ae502d768dd3378e145b28907d8a3c714"><td class="mdescLeft"> </td><td class="mdescRight">After calling <a class="el" href="classCameraDevice.html#a8f4e51fb9d4a77a5bb479749e65e8d8e" title="Stops recording, after a call to startRecordingToFile(). ">stopRecording()</a>, this method can be called to return the timestamp of the first frame that was written to the file. <a href="#ae502d768dd3378e145b28907d8a3c714">More...</a><br /></td></tr>
<tr class="separator:ae502d768dd3378e145b28907d8a3c714"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a37d6fce26ed8f3814eb90c6acefb2244"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCameraDevice.html#a37d6fce26ed8f3814eb90c6acefb2244">addListener</a> (<a class="el" href="classCameraDevice_1_1Listener.html">Listener</a> *listenerToAdd)</td></tr>
<tr class="memdesc:a37d6fce26ed8f3814eb90c6acefb2244"><td class="mdescLeft"> </td><td class="mdescRight">Adds a listener to receive images from the camera. <a href="#a37d6fce26ed8f3814eb90c6acefb2244">More...</a><br /></td></tr>
<tr class="separator:a37d6fce26ed8f3814eb90c6acefb2244"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab91e1f572ebcee77ffeccd17017c43dd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCameraDevice.html#ab91e1f572ebcee77ffeccd17017c43dd">removeListener</a> (<a class="el" href="classCameraDevice_1_1Listener.html">Listener</a> *listenerToRemove)</td></tr>
<tr class="memdesc:ab91e1f572ebcee77ffeccd17017c43dd"><td class="mdescLeft"> </td><td class="mdescRight">Removes a listener that was previously added with <a class="el" href="classCameraDevice.html#a37d6fce26ed8f3814eb90c6acefb2244" title="Adds a listener to receive images from the camera. ">addListener()</a>. <a href="#ab91e1f572ebcee77ffeccd17017c43dd">More...</a><br /></td></tr>
<tr class="separator:ab91e1f572ebcee77ffeccd17017c43dd"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:acf99196e8620c39638cb014044012b72"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classStringArray.html">StringArray</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCameraDevice.html#acf99196e8620c39638cb014044012b72">getAvailableDevices</a> ()</td></tr>
<tr class="memdesc:acf99196e8620c39638cb014044012b72"><td class="mdescLeft"> </td><td class="mdescRight">Returns a list of the available cameras on this machine. <a href="#acf99196e8620c39638cb014044012b72">More...</a><br /></td></tr>
<tr class="separator:acf99196e8620c39638cb014044012b72"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4eacdfe0e80e66e7af5115f0af7c116c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCameraDevice.html">CameraDevice</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCameraDevice.html#a4eacdfe0e80e66e7af5115f0af7c116c">openDevice</a> (int deviceIndex, int minWidth=128, int minHeight=64, int maxWidth=1024, int maxHeight=768, bool highQuality=true)</td></tr>
<tr class="memdesc:a4eacdfe0e80e66e7af5115f0af7c116c"><td class="mdescLeft"> </td><td class="mdescRight">Opens a camera device. <a href="#a4eacdfe0e80e66e7af5115f0af7c116c">More...</a><br /></td></tr>
<tr class="separator:a4eacdfe0e80e66e7af5115f0af7c116c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac720c6cdc6a67685a0472c5fc8566f37"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classString.html">String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCameraDevice.html#ac720c6cdc6a67685a0472c5fc8566f37">getFileExtension</a> ()</td></tr>
<tr class="memdesc:ac720c6cdc6a67685a0472c5fc8566f37"><td class="mdescLeft"> </td><td class="mdescRight">Returns the file extension that should be used for the files that you pass to <a class="el" href="classCameraDevice.html#a14cf9ed22ac491e949d05ac44071fbee" title="Starts recording video to the specified file. ">startRecordingToFile()</a>. <a href="#ac720c6cdc6a67685a0472c5fc8566f37">More...</a><br /></td></tr>
<tr class="separator:ac720c6cdc6a67685a0472c5fc8566f37"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Controls any video capture devices that might be available. </p>
<p>Use <a class="el" href="classCameraDevice.html#acf99196e8620c39638cb014044012b72" title="Returns a list of the available cameras on this machine. ">getAvailableDevices()</a> to list the devices that are attached to the system, then call openDevice to open one for use. Once you have a <a class="el" href="classCameraDevice.html" title="Controls any video capture devices that might be available. ">CameraDevice</a> object, you can get a viewer component from it, and use its methods to stream to a file or capture still-frames. </p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="ac885198479887e5a3779a818e07e9917"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac885198479887e5a3779a818e07e9917">§ </a></span>~CameraDevice()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual CameraDevice::~CameraDevice </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Destructor. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="acf99196e8620c39638cb014044012b72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf99196e8620c39638cb014044012b72">§ </a></span>getAvailableDevices()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classStringArray.html">StringArray</a> CameraDevice::getAvailableDevices </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a list of the available cameras on this machine. </p>
<p>You can open one of these devices by calling <a class="el" href="classCameraDevice.html#a4eacdfe0e80e66e7af5115f0af7c116c" title="Opens a camera device. ">openDevice()</a>. </p>
</div>
</div>
<a id="a4eacdfe0e80e66e7af5115f0af7c116c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4eacdfe0e80e66e7af5115f0af7c116c">§ </a></span>openDevice()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classCameraDevice.html">CameraDevice</a>* CameraDevice::openDevice </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>deviceIndex</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>minWidth</em> = <code>128</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>minHeight</em> = <code>64</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>maxWidth</em> = <code>1024</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>maxHeight</em> = <code>768</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>highQuality</em> = <code>true</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Opens a camera device. </p>
<p>The index parameter indicates which of the items returned by <a class="el" href="classCameraDevice.html#acf99196e8620c39638cb014044012b72" title="Returns a list of the available cameras on this machine. ">getAvailableDevices()</a> to open.</p>
<p>The size constraints allow the method to choose between different resolutions if the camera supports this. If the resolution cam't be specified (e.g. on the Mac) then these will be ignored.</p>
<p>On Mac, if highQuality is false, then the camera will be opened in preview mode which will allow the OS to drop frames if the computer cannot keep up in processing the frames. </p>
</div>
</div>
<a id="aa555467e7121ec6ad3538d5f799aca83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa555467e7121ec6ad3538d5f799aca83">§ </a></span>getName()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classString.html">String</a>& CameraDevice::getName </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the name of this device. </p>
</div>
</div>
<a id="a17948f7b0ba629b0958bd0638bdb112a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17948f7b0ba629b0958bd0638bdb112a">§ </a></span>createViewerComponent()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classComponent.html">Component</a>* CameraDevice::createViewerComponent </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a component that can be used to display a preview of the video from this camera. </p>
</div>
</div>
<a id="a14cf9ed22ac491e949d05ac44071fbee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14cf9ed22ac491e949d05ac44071fbee">§ </a></span>startRecordingToFile()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CameraDevice::startRecordingToFile </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classFile.html">File</a> & </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>quality</em> = <code>2</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Starts recording video to the specified file. </p>
<p>You should use <a class="el" href="classCameraDevice.html#ac720c6cdc6a67685a0472c5fc8566f37" title="Returns the file extension that should be used for the files that you pass to startRecordingToFile()...">getFileExtension()</a> to find out the correct extension to use for your filename.</p>
<p>If the file exists, it will be deleted before the recording starts.</p>
<p>This method may not start recording instantly, so if you need to know the exact time at which the file begins, you can call <a class="el" href="classCameraDevice.html#ae502d768dd3378e145b28907d8a3c714" title="After calling stopRecording(), this method can be called to return the timestamp of the first frame t...">getTimeOfFirstRecordedFrame()</a> after the recording has finished.</p>
<p>The quality parameter can be 0, 1, or 2, to indicate low, medium, or high. It may or may not be used, depending on the driver. </p>
</div>
</div>
<a id="a8f4e51fb9d4a77a5bb479749e65e8d8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f4e51fb9d4a77a5bb479749e65e8d8e">§ </a></span>stopRecording()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CameraDevice::stopRecording </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Stops recording, after a call to <a class="el" href="classCameraDevice.html#a14cf9ed22ac491e949d05ac44071fbee" title="Starts recording video to the specified file. ">startRecordingToFile()</a>. </p>
</div>
</div>
<a id="ac720c6cdc6a67685a0472c5fc8566f37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac720c6cdc6a67685a0472c5fc8566f37">§ </a></span>getFileExtension()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classString.html">String</a> CameraDevice::getFileExtension </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the file extension that should be used for the files that you pass to <a class="el" href="classCameraDevice.html#a14cf9ed22ac491e949d05ac44071fbee" title="Starts recording video to the specified file. ">startRecordingToFile()</a>. </p>
<p>This may be platform-specific, e.g. ".mov" or ".avi". </p>
</div>
</div>
<a id="ae502d768dd3378e145b28907d8a3c714"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae502d768dd3378e145b28907d8a3c714">§ </a></span>getTimeOfFirstRecordedFrame()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTime.html">Time</a> CameraDevice::getTimeOfFirstRecordedFrame </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>After calling <a class="el" href="classCameraDevice.html#a8f4e51fb9d4a77a5bb479749e65e8d8e" title="Stops recording, after a call to startRecordingToFile(). ">stopRecording()</a>, this method can be called to return the timestamp of the first frame that was written to the file. </p>
</div>
</div>
<a id="a37d6fce26ed8f3814eb90c6acefb2244"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37d6fce26ed8f3814eb90c6acefb2244">§ </a></span>addListener()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CameraDevice::addListener </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classCameraDevice_1_1Listener.html">Listener</a> * </td>
<td class="paramname"><em>listenerToAdd</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds a listener to receive images from the camera. </p>
<p>Be very careful not to delete the listener without first removing it by calling <a class="el" href="classCameraDevice.html#ab91e1f572ebcee77ffeccd17017c43dd" title="Removes a listener that was previously added with addListener(). ">removeListener()</a>. </p>
</div>
</div>
<a id="ab91e1f572ebcee77ffeccd17017c43dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab91e1f572ebcee77ffeccd17017c43dd">§ </a></span>removeListener()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CameraDevice::removeListener </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classCameraDevice_1_1Listener.html">Listener</a> * </td>
<td class="paramname"><em>listenerToRemove</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Removes a listener that was previously added with <a class="el" href="classCameraDevice.html#a37d6fce26ed8f3814eb90c6acefb2244" title="Adds a listener to receive images from the camera. ">addListener()</a>. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__CameraDevice_8h.html">juce_CameraDevice.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content © ROLI Ltd.</small></address><br/>
</body>
</html>
|