/usr/share/qt5/doc/qtmultimedia/qml-qtmultimedia-camerafocus.html is in qtmultimedia5-doc-html 5.2.1-0ubuntu5.
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 | <?xml version="1.0" encoding="UTF-8"?>
<!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" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdeclarativecamerafocus.cpp -->
<title>CameraFocus | QtMultimedia 5.2</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.2</li>
<li><a href="qtmultimedia-index.html">Qt Multimedia</a></li>
<li><a href="qtmultimedia-qmlmodule.html">QML Types</a></li>
<li>CameraFocus</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#methods">Methods</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">CameraFocus</h1>
<span class="subtitle"></span>
<!-- $$$CameraFocus-brief -->
<p>An interface for focus related camera settings. <a href="#details">More...</a></p>
<!-- @@@CameraFocus -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> </b><tt>import QtMultimedia 5.0</tt></td></tr></table><ul>
<li><a href="qml-qtmultimedia-camerafocus-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtmultimedia-camerafocus.html#customFocusPoint-prop">customFocusPoint</a></b></b> : point</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-camerafocus.html#focusMode-prop">focusMode</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-camerafocus.html#focusPointMode-prop">focusPointMode</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-camerafocus.html#focusZones-prop">focusZones</a></b></b> : list<focusZone></li>
</ul>
<a name="methods"></a>
<h2>Methods</h2>
<ul>
<li class="fn">bool <b><b><a href="qml-qtmultimedia-camerafocus.html#isFocusModeSupported-method">isFocusModeSupported</a></b></b>(mode)</li>
<li class="fn">bool <b><b><a href="qml-qtmultimedia-camerafocus.html#isFocusPointModeSupported-method">isFocusPointModeSupported</a></b></b>(mode)</li>
</ul>
<!-- $$$CameraFocus-description -->
<a name="details"></a>
<h2>Detailed Description</h2>
<p>CameraFocus is part of the <b><a href="qtmultimedia-module.html">QtMultimedia</a> 5.0</b> module.</p>
<p>This type allows control over manual and automatic focus settings, including information about any parts of the camera frame that are selected for autofocusing.</p>
<p>It should not be constructed separately, instead the <tt>focus</tt> property of a <a href="qml-qtmultimedia-camera.html">Camera</a> should be used.</p>
<pre class="qml">import QtQuick 2.0
import QtMultimedia 5.0
<span class="type">Item</span> {
<span class="name">width</span>: <span class="number">640</span>
<span class="name">height</span>: <span class="number">360</span>
<span class="type"><a href="qml-qtmultimedia-camera.html">Camera</a></span> {
<span class="name">id</span>: <span class="name">camera</span>
<span class="type">focus</span> {
<span class="name">focusMode</span>: <span class="name">Camera</span>.<span class="name">FocusMacro</span>
<span class="name">focusPointMode</span>: <span class="name">Camera</span>.<span class="name">FocusPointCustom</span>
<span class="name">customFocusPoint</span>: <span class="name">Qt</span>.<span class="name">point</span>(<span class="number">0.2</span>, <span class="number">0.2</span>) <span class="comment">// Focus relative to top-left corner</span>
}
}
<span class="type"><a href="qml-qtmultimedia-videooutput.html">VideoOutput</a></span> {
<span class="name">source</span>: <span class="name">camera</span>
<span class="name">anchors</span>.fill: <span class="name">parent</span>
}
}</pre>
<!-- @@@CameraFocus -->
<h2>Property Documentation</h2>
<!-- $$$customFocusPoint -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="customFocusPoint-prop"></a><span class="name">customFocusPoint</span> : <span class="type">point</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the position of custom focus point, in relative frame coordinates: QPointF(0,0) points to the left top frame point, QPointF(0.5,0.5) points to the frame center.</p>
<p>Custom focus point is used only in FocusPointCustom focus mode.</p>
</div></div><!-- @@@customFocusPoint -->
<br/>
<!-- $$$focusMode -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="focusMode-prop"></a><span class="name">focusMode</span> : <span class="type">enumeration</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the current camera focus mode, which can be one of the following values:</p>
<table class="generic">
<thead><tr class="qt-style"><th >Value</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >FocusManual</td><td >Manual or fixed focus mode.</td></tr>
<tr valign="top" class="even"><td >FocusHyperfocal</td><td >Focus to hyperfocal distance, with the maximum depth of field achieved. All objects at distances from half of this distance out to infinity will be acceptably sharp.</td></tr>
<tr valign="top" class="odd"><td >FocusInfinity</td><td >Focus strictly to infinity.</td></tr>
<tr valign="top" class="even"><td >FocusAuto</td><td >One-shot auto focus mode.</td></tr>
<tr valign="top" class="odd"><td >FocusContinuous</td><td >Continuous auto focus mode.</td></tr>
<tr valign="top" class="even"><td >FocusMacro</td><td >One shot auto focus to objects close to camera.</td></tr>
</table>
<p>It's possible to combine multiple Camera::FocusMode values, for example Camera.FocusMacro + Camera.FocusContinuous.</p>
<p>In automatic focusing modes, the <a href="qml-qtmultimedia-camerafocus.html#focusPointMode-prop">focusPointMode</a> property and <a href="qml-qtmultimedia-camerafocus.html#focusZones-prop">focusZones</a> property provide information and control over how automatic focusing is performed.</p>
</div></div><!-- @@@focusMode -->
<br/>
<!-- $$$focusPointMode -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="focusPointMode-prop"></a><span class="name">focusPointMode</span> : <span class="type">enumeration</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the current camera focus point mode. It is used in automatic focusing modes to determine what to focus on. If the current focus point mode is <tt>Camera.FocusPointCustom</tt>, the <a href="qml-qtmultimedia-camerafocus.html#customFocusPoint-prop">customFocusPoint</a> property allows you to specify which part of the frame to focus on.</p>
<p>The property can take one of the following values:</p>
<table class="generic">
<thead><tr class="qt-style"><th >Value</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >FocusPointAuto</td><td >Automatically select one or multiple focus points.</td></tr>
<tr valign="top" class="even"><td >FocusPointCenter</td><td >Focus to the frame center.</td></tr>
<tr valign="top" class="odd"><td >FocusPointFaceDetection</td><td >Focus on faces in the frame.</td></tr>
<tr valign="top" class="even"><td >FocusPointCustom</td><td >Focus to the custom point, defined by the <a href="qml-qtmultimedia-camerafocus.html#customFocusPoint-prop">customFocusPoint</a> property.</td></tr>
</table>
</div></div><!-- @@@focusPointMode -->
<br/>
<!-- $$$focusZones -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="focusZones-prop"></a><span class="name">focusZones</span> : <span class="type">list</span><<span class="type">focusZone</span>></p></td></tr></table></div><div class="qmldoc"><p>This property holds the list of current camera focus zones, each including <tt>area</tt> specified in the same coordinates as <a href="qml-qtmultimedia-camerafocus.html#customFocusPoint-prop">customFocusPoint</a>, and zone <tt>status</tt> as one of the following values:</p>
<table class="generic">
<thead><tr class="qt-style"><th >Value</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >Camera.FocusAreaUnused</td><td >This focus point area is currently unused in autofocusing.</td></tr>
<tr valign="top" class="even"><td >Camera.FocusAreaSelected</td><td >This focus point area is used in autofocusing, but is not in focus.</td></tr>
<tr valign="top" class="odd"><td >Camera.FocusAreaFocused</td><td >This focus point is used in autofocusing, and is in focus.</td></tr>
</table>
<pre class="qml"><span class="type"><a href="qml-qtmultimedia-videooutput.html">VideoOutput</a></span> {
<span class="name">id</span>: <span class="name">viewfinder</span>
<span class="name">source</span>: <span class="name">camera</span>
<span class="comment">//display focus areas on camera viewfinder:</span>
<span class="type">Repeater</span> {
<span class="name">model</span>: <span class="name">camera</span>.<span class="name">focus</span>.<span class="name">focusZones</span>
<span class="type">Rectangle</span> {
<span class="type">border</span> {
<span class="name">width</span>: <span class="number">2</span>
<span class="name">color</span>: <span class="name">status</span> <span class="operator">==</span> <span class="name">Camera</span>.<span class="name">FocusAreaFocused</span> ? <span class="string">"green"</span> : <span class="string">"white"</span>
}
<span class="name">color</span>: <span class="string">"transparent"</span>
<span class="comment">// Map from the relative, normalized frame coordinates</span>
property <span class="type">variant</span> <span class="name">mappedRect</span>: <span class="name">viewfinder</span>.<span class="name">mapNormalizedRectToItem</span>(<span class="name">area</span>);
<span class="name">x</span>: <span class="name">mappedRect</span>.<span class="name">x</span>
<span class="name">y</span>: <span class="name">mappedRect</span>.<span class="name">y</span>
<span class="name">width</span>: <span class="name">mappedRect</span>.<span class="name">width</span>
<span class="name">height</span>: <span class="name">mappedRect</span>.<span class="name">height</span>
}
}
}</pre>
</div></div><!-- @@@focusZones -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$isFocusModeSupported -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="isFocusModeSupported-method"></a><span class="type">bool</span> <span class="name">isFocusModeSupported</span>(<span class="type">mode</span>) const</p></td></tr></table></div><div class="qmldoc"><p>Returns true if the supplied <i>mode</i> is a supported focus mode, and false otherwise.</p>
</div></div><!-- @@@isFocusModeSupported -->
<br/>
<!-- $$$isFocusPointModeSupported -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="isFocusPointModeSupported-method"></a><span class="type">bool</span> <span class="name">isFocusPointModeSupported</span>(<span class="type">mode</span>) const</p></td></tr></table></div><div class="qmldoc"><p>Returns true if the supplied <i>mode</i> is a supported focus point mode, and false otherwise.</p>
</div></div><!-- @@@isFocusPointModeSupported -->
<br/>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|