/usr/share/qt5/doc/qtmultimedia/qimageencodersettings.html is in qtmultimedia5-doc-html 5.9.5-0ubuntu1.
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 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmediaencodersettings.cpp -->
<title>QImageEncoderSettings Class | Qt Multimedia 5.9</title>
<link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
<script type="text/javascript">
document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
// loading style sheet breaks anchors that were jumped to before
// so force jumping to anchor again
setTimeout(function() {
var anchor = location.hash;
// need to jump to different anchor first (e.g. none)
location.hash = "#";
setTimeout(function() {
location.hash = anchor;
}, 0);
}, 0);
</script>
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<table><tr>
<td >Qt 5.9</td><td ><a href="qtmultimedia-index.html">Qt Multimedia</a></td><td ><a href="qtmultimedia-modules.html">C++ Classes</a></td><td >QImageEncoderSettings</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.5 Reference Documentation</td>
</tr></table>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QImageEncoderSettings Class</h1>
<!-- $$$QImageEncoderSettings-brief -->
<p>The <a href="qimageencodersettings.html">QImageEncoderSettings</a> class provides a set of image encoder settings. <a href="#details">More...</a></p>
<!-- @@@QImageEncoderSettings -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QImageEncoderSettings></span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += multimedia</td></tr></table></div><ul>
<li><a href="qimageencodersettings-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#QImageEncoderSettings">QImageEncoderSettings</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#QImageEncoderSettings-1">QImageEncoderSettings</a></b>(const QImageEncoderSettings &<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#dtor.QImageEncoderSettings">~QImageEncoderSettings</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#codec">codec</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#encodingOption">encodingOption</a></b>(const QString &<i>option</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariantMap </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#encodingOptions">encodingOptions</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#isNull">isNull</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMultimedia::EncodingQuality </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#quality">quality</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#resolution">resolution</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#setCodec">setCodec</a></b>(const QString &<i>codec</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#setEncodingOption">setEncodingOption</a></b>(const QString &<i>option</i>, const QVariant &<i>value</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#setEncodingOptions">setEncodingOptions</a></b>(const QVariantMap &<i>options</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#setQuality">setQuality</a></b>(QMultimedia::EncodingQuality <i>quality</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#setResolution">setResolution</a></b>(const QSize &<i>resolution</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#setResolution-1">setResolution</a></b>(int <i>width</i>, int <i>height</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#operator-not-eq">operator!=</a></b>(const QImageEncoderSettings &<i>other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QImageEncoderSettings &</td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#operator-eq">operator=</a></b>(const QImageEncoderSettings &<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qimageencodersettings.html#operator-eq-eq">operator==</a></b>(const QImageEncoderSettings &<i>other</i>) const</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QImageEncoderSettings-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qimageencodersettings.html">QImageEncoderSettings</a> class provides a set of image encoder settings.</p>
<p>A image encoder settings object is used to specify the image encoder settings used by <a href="qcameraimagecapture.html">QCameraImageCapture</a>. Image encoder settings are selected by constructing a <a href="qimageencodersettings.html">QImageEncoderSettings</a> object, setting the desired properties and then passing it to a <a href="qcameraimagecapture.html">QCameraImageCapture</a> instance using the QCameraImageCapture::setImageSettings() function.</p>
<pre class="cpp">
<span class="type"><a href="qimageencodersettings.html#QImageEncoderSettings">QImageEncoderSettings</a></span> imageSettings;
imageSettings<span class="operator">.</span>setCodec(<span class="string">"image/jpeg"</span>);
imageSettings<span class="operator">.</span>setResolution(<span class="number">1600</span><span class="operator">,</span> <span class="number">1200</span>);
imageCapture<span class="operator">-</span><span class="operator">></span>setEncodingSettings(imageSettings);
</pre>
</div>
<p><b>See also </b><a href="qimageencodercontrol.html">QImageEncoderControl</a>.</p>
<!-- @@@QImageEncoderSettings -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QImageEncoderSettings[overload1]$$$QImageEncoderSettings -->
<h3 class="fn" id="QImageEncoderSettings"><a name="QImageEncoderSettings"></a>QImageEncoderSettings::<span class="name">QImageEncoderSettings</span>()</h3>
<p>Constructs a null image encoder settings object.</p>
<!-- @@@QImageEncoderSettings -->
<!-- $$$QImageEncoderSettings$$$QImageEncoderSettingsconstQImageEncoderSettings& -->
<h3 class="fn" id="QImageEncoderSettings-1"><a name="QImageEncoderSettings-1"></a>QImageEncoderSettings::<span class="name">QImageEncoderSettings</span>(const <span class="type"><a href="qimageencodersettings.html#QImageEncoderSettings">QImageEncoderSettings</a></span> &<i>other</i>)</h3>
<p>Constructs a copy of the image encoder settings object <i>other</i>.</p>
<!-- @@@QImageEncoderSettings -->
<!-- $$$~QImageEncoderSettings[overload1]$$$~QImageEncoderSettings -->
<h3 class="fn" id="dtor.QImageEncoderSettings"><a name="dtor.QImageEncoderSettings"></a>QImageEncoderSettings::<span class="name">~QImageEncoderSettings</span>()</h3>
<p>Destroys a image encoder settings object.</p>
<!-- @@@~QImageEncoderSettings -->
<!-- $$$codec[overload1]$$$codec -->
<h3 class="fn" id="codec"><a name="codec"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QImageEncoderSettings::<span class="name">codec</span>() const</h3>
<p>Returns the image codec.</p>
<p><b>See also </b><a href="qimageencodersettings.html#setCodec">setCodec</a>().</p>
<!-- @@@codec -->
<!-- $$$encodingOption[overload1]$$$encodingOptionconstQString& -->
<h3 class="fn" id="encodingOption"><a name="encodingOption"></a><span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> QImageEncoderSettings::<span class="name">encodingOption</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>option</i>) const</h3>
<p>Returns the value of encoding <i>option</i>.</p>
<p><b>See also </b><a href="qimageencodersettings.html#setEncodingOption">setEncodingOption</a>() and <a href="qimageencodersettings.html#encodingOptions">encodingOptions</a>().</p>
<!-- @@@encodingOption -->
<!-- $$$encodingOptions[overload1]$$$encodingOptions -->
<h3 class="fn" id="encodingOptions"><a name="encodingOptions"></a><span class="type"><a href="../qtcore/qvariant.html#QVariantMap-typedef">QVariantMap</a></span> QImageEncoderSettings::<span class="name">encodingOptions</span>() const</h3>
<p>Returns the all the encoding options as <a href="../qtcore/qvariant.html#QVariantMap-typedef">QVariantMap</a>.</p>
<p><b>See also </b><a href="qimageencodersettings.html#encodingOption">encodingOption</a>() and <a href="qimageencodersettings.html#setEncodingOptions">setEncodingOptions</a>().</p>
<!-- @@@encodingOptions -->
<!-- $$$isNull[overload1]$$$isNull -->
<h3 class="fn" id="isNull"><a name="isNull"></a><span class="type">bool</span> QImageEncoderSettings::<span class="name">isNull</span>() const</h3>
<p>Identifies if a image encoder settings object is uninitalized.</p>
<p>Returns true if the settings are null, and false if they are not.</p>
<!-- @@@isNull -->
<!-- $$$quality[overload1]$$$quality -->
<h3 class="fn" id="quality"><a name="quality"></a><span class="type"><a href="qmultimedia.html#EncodingQuality-enum">QMultimedia::EncodingQuality</a></span> QImageEncoderSettings::<span class="name">quality</span>() const</h3>
<p>Returns the image encoding quality.</p>
<p><b>See also </b><a href="qimageencodersettings.html#setQuality">setQuality</a>().</p>
<!-- @@@quality -->
<!-- $$$resolution[overload1]$$$resolution -->
<h3 class="fn" id="resolution"><a name="resolution"></a><span class="type"><a href="../qtcore/qsize.html">QSize</a></span> QImageEncoderSettings::<span class="name">resolution</span>() const</h3>
<p>Returns the resolution of the encoded image.</p>
<p><b>See also </b><a href="qimageencodersettings.html#setResolution">setResolution</a>().</p>
<!-- @@@resolution -->
<!-- $$$setCodec[overload1]$$$setCodecconstQString& -->
<h3 class="fn" id="setCodec"><a name="setCodec"></a><span class="type">void</span> QImageEncoderSettings::<span class="name">setCodec</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>codec</i>)</h3>
<p>Sets the image <i>codec</i>.</p>
<p><b>See also </b><a href="qimageencodersettings.html#codec">codec</a>().</p>
<!-- @@@setCodec -->
<!-- $$$setEncodingOption[overload1]$$$setEncodingOptionconstQString&constQVariant& -->
<h3 class="fn" id="setEncodingOption"><a name="setEncodingOption"></a><span class="type">void</span> QImageEncoderSettings::<span class="name">setEncodingOption</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>option</i>, const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &<i>value</i>)</h3>
<p>Set the encoding <i>option</i> <i>value</i>.</p>
<p>The supported set and meaning of encoding options are system and selected codec specific.</p>
<p><b>See also </b><a href="qimageencodersettings.html#encodingOption">encodingOption</a>() and <a href="qimageencodersettings.html#setEncodingOptions">setEncodingOptions</a>().</p>
<!-- @@@setEncodingOption -->
<!-- $$$setEncodingOptions[overload1]$$$setEncodingOptionsconstQVariantMap& -->
<h3 class="fn" id="setEncodingOptions"><a name="setEncodingOptions"></a><span class="type">void</span> QImageEncoderSettings::<span class="name">setEncodingOptions</span>(const <span class="type"><a href="../qtcore/qvariant.html#QVariantMap-typedef">QVariantMap</a></span> &<i>options</i>)</h3>
<p>Replace all the encoding options with <i>options</i>.</p>
<p>The supported set and meaning of encoding options are system and selected codec specific.</p>
<p><b>See also </b><a href="qimageencodersettings.html#encodingOptions">encodingOptions</a>(), <a href="qimageencodersettings.html#encodingOption">encodingOption</a>(), and <a href="qimageencodersettings.html#setEncodingOption">setEncodingOption</a>().</p>
<!-- @@@setEncodingOptions -->
<!-- $$$setQuality[overload1]$$$setQualityQMultimedia::EncodingQuality -->
<h3 class="fn" id="setQuality"><a name="setQuality"></a><span class="type">void</span> QImageEncoderSettings::<span class="name">setQuality</span>(<span class="type"><a href="qmultimedia.html#EncodingQuality-enum">QMultimedia::EncodingQuality</a></span> <i>quality</i>)</h3>
<p>Sets the image encoding <i>quality</i>.</p>
<p><b>See also </b><a href="qimageencodersettings.html#quality">quality</a>().</p>
<!-- @@@setQuality -->
<!-- $$$setResolution[overload1]$$$setResolutionconstQSize& -->
<h3 class="fn" id="setResolution"><a name="setResolution"></a><span class="type">void</span> QImageEncoderSettings::<span class="name">setResolution</span>(const <span class="type"><a href="../qtcore/qsize.html">QSize</a></span> &<i>resolution</i>)</h3>
<p>Sets the <i>resolution</i> of the encoded image.</p>
<p>An empty <a href="../qtcore/qsize.html">QSize</a> indicates the encoder should make an optimal choice based on what is available from the image source and the limitations of the codec.</p>
<p><b>See also </b><a href="qimageencodersettings.html#resolution">resolution</a>().</p>
<!-- @@@setResolution -->
<!-- $$$setResolution$$$setResolutionintint -->
<h3 class="fn" id="setResolution-1"><a name="setResolution-1"></a><span class="type">void</span> QImageEncoderSettings::<span class="name">setResolution</span>(<span class="type">int</span> <i>width</i>, <span class="type">int</span> <i>height</i>)</h3>
<p>Sets the <i>width</i> and <i>height</i> of the resolution of the encoded image.</p>
<p>This is an overloaded function.</p>
<!-- @@@setResolution -->
<!-- $$$operator!=[overload1]$$$operator!=constQImageEncoderSettings& -->
<h3 class="fn" id="operator-not-eq"><a name="operator-not-eq"></a><span class="type">bool</span> QImageEncoderSettings::<span class="name">operator!=</span>(const <span class="type"><a href="qimageencodersettings.html#QImageEncoderSettings">QImageEncoderSettings</a></span> &<i>other</i>) const</h3>
<p>Determines if <i>other</i> is of equal value to a image encoder settings object.</p>
<p>Returns true if the settings objects are not of equal value, and false if they are of equal value.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQImageEncoderSettings& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qimageencodersettings.html#QImageEncoderSettings">QImageEncoderSettings</a></span> &QImageEncoderSettings::<span class="name">operator=</span>(const <span class="type"><a href="qimageencodersettings.html#QImageEncoderSettings">QImageEncoderSettings</a></span> &<i>other</i>)</h3>
<p>Assigns the value of <i>other</i> to a image encoder settings object.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQImageEncoderSettings& -->
<h3 class="fn" id="operator-eq-eq"><a name="operator-eq-eq"></a><span class="type">bool</span> QImageEncoderSettings::<span class="name">operator==</span>(const <span class="type"><a href="qimageencodersettings.html#QImageEncoderSettings">QImageEncoderSettings</a></span> &<i>other</i>) const</h3>
<p>Determines if <i>other</i> is of equal value to a image encoder settings object.</p>
<p>Returns true if the settings objects are of equal value, and false if they are not of equal value.</p>
<!-- @@@operator== -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2017 The Qt Company Ltd.
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> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|