<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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" /> <!-- qvideosurfaceformat.cpp --> <title>Qt 4.8: QVideoSurfaceFormat Class Reference</title> <link rel="stylesheet" type="text/css" href="style/style.css" /> <script src="scripts/jquery.js" type="text/javascript"></script> <script src="scripts/functions.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="style/superfish.css" /> <link rel="stylesheet" type="text/css" href="style/narrow.css" /> <!--[if IE]> <meta name="MSSmartTagsPreventParsing" content="true"> <meta http-equiv="imagetoolbar" content="no"> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie6.css"> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie7.css"> <![endif]--> <!--[if IE 8]> <link rel="stylesheet" type="text/css" href="style/style_ie8.css"> <![endif]--> <script src="scripts/superfish.js" type="text/javascript"></script> <script src="scripts/narrow.js" type="text/javascript"></script> </head> <body class="" onload="CheckEmptyAndLoadList();"> <div class="header" id="qtdocheader"> <div class="content"> <div id="nav-logo"> <a href="index.html">Home</a></div> <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a> <div id="narrowsearch"></div> <div id="nav-topright"> <ul> <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li> <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li> <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/"> DOC</a></li> <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li> </ul> </div> <div id="shortCut"> <ul> <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li> <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS </a></li> </ul> </div> <ul class="sf-menu" id="narrowmenu"> <li><a href="#">API Lookup</a> <ul> <li><a href="classes.html">Class index</a></li> <li><a href="functions.html">Function index</a></li> <li><a href="modules.html">Modules</a></li> <li><a href="namespaces.html">Namespaces</a></li> <li><a href="qtglobal.html">Global Declarations</a></li> <li><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </li> <li><a href="#">Qt Topics</a> <ul> <li><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li><a href="qtquick.html">Device UIs & Qt Quick</a></li> <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li><a href="supported-platforms.html">Supported Platforms</a></li> <li><a href="technology-apis.html">Qt and Key Technologies</a></li> <li><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </li> <li><a href="#">Examples</a> <ul> <li><a href="all-examples.html">Examples</a></li> <li><a href="tutorials.html">Tutorials</a></li> <li><a href="demos.html">Demos</a></li> <li><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </li> </ul> </div> </div> <div class="wrapper"> <div class="hd"> <span></span> </div> <div class="bd group"> <div class="sidebar"> <div class="searchlabel"> Search index:</div> <div class="search" id="sidebarsearch"> <form id="qtdocsearch" action="" onsubmit="return false;"> <fieldset> <input type="text" name="searchstring" id="pageType" value="" /> <div id="resultdialog"> <a href="#" id="resultclose">Close</a> <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span> results:</p> <ul id="resultlist" class="all"> </ul> </div> </fieldset> </form> </div> <div class="box first bottombar" id="lookup"> <h2 title="API Lookup"><span></span> API Lookup</h2> <div id="list001" class="list"> <ul id="ul001" > <li class="defaultLink"><a href="classes.html">Class index</a></li> <li class="defaultLink"><a href="functions.html">Function index</a></li> <li class="defaultLink"><a href="modules.html">Modules</a></li> <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li> <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li> <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </div> </div> <div class="box bottombar" id="topics"> <h2 title="Qt Topics"><span></span> Qt Topics</h2> <div id="list002" class="list"> <ul id="ul002" > <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li class="defaultLink"><a href="qtquick.html">Device UIs & Qt Quick</a></li> <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li> <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </div> </div> <div class="box" id="examples"> <h2 title="Examples"><span></span> Examples</h2> <div id="list003" class="list"> <ul id="ul003"> <li class="defaultLink"><a href="all-examples.html">Examples</a></li> <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li> <li class="defaultLink"><a href="demos.html">Demos</a></li> <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </div> </div> </div> <div class="wrap"> <div class="toolbar"> <div class="breadcrumb toolblock"> <ul> <li class="first"><a href="index.html">Home</a></li> <!-- Breadcrumbs go here --> <li><a href="modules.html">Modules</a></li> <li><a href="qtmultimedia.html">QtMultimedia</a></li> <li>QVideoSurfaceFormat</li> </ul> </div> <div class="toolbuttons toolblock"> <ul> <li id="smallA" class="t_button">A</li> <li id="medA" class="t_button active">A</li> <li id="bigA" class="t_button">A</li> <li id="print" class="t_button"><a href="javascript:this.print();"> <span>Print</span></a></li> </ul> </div> </div> <div class="content mainContent"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#public-types">Public Types</a></li> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <h1 class="title">QVideoSurfaceFormat Class Reference</h1> <!-- $$$QVideoSurfaceFormat-brief --> <p>The QVideoSurfaceFormat class specifies the stream format of a video presentation surface. <a href="#details">More...</a></p> <!-- @@@QVideoSurfaceFormat --> <pre class="cpp"> <span class="preprocessor">#include <QVideoSurfaceFormat></span></pre><p>This class was introduced in Qt 4.6.</p> <ul> <li><a href="qvideosurfaceformat-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-types"></a> <h2>Public Types</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#Direction-enum">Direction</a></b> { TopToBottom, BottomToTop }</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#YCbCrColorSpace-enum">YCbCrColorSpace</a></b> { YCbCr_Undefined, YCbCr_BT601, YCbCr_BT709, YCbCr_xvYCC601, YCbCr_xvYCC709, YCbCr_JPEG }</td></tr> </table> <a name="public-functions"></a> <h2>Public Functions</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#QVideoSurfaceFormat">QVideoSurfaceFormat</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#QVideoSurfaceFormat-2">QVideoSurfaceFormat</a></b> ( const QSize & <i>size</i>, QVideoFrame::PixelFormat <i>format</i>, QAbstractVideoBuffer::HandleType <i>type</i> = QAbstractVideoBuffer::NoHandle )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#QVideoSurfaceFormat-3">QVideoSurfaceFormat</a></b> ( const QVideoSurfaceFormat & <i>other</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#dtor.QVideoSurfaceFormat">~QVideoSurfaceFormat</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#frameHeight">frameHeight</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#frameRate">frameRate</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#frameSize">frameSize</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#frameWidth">frameWidth</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QAbstractVideoBuffer::HandleType </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#handleType">handleType</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#isValid">isValid</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#pixelAspectRatio">pixelAspectRatio</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QVideoFrame::PixelFormat </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#pixelFormat">pixelFormat</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#property">property</a></b> ( const char * <i>name</i> ) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QList<QByteArray> </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#propertyNames">propertyNames</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Direction </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#scanLineDirection">scanLineDirection</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#setFrameRate">setFrameRate</a></b> ( qreal <i>rate</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#setFrameSize">setFrameSize</a></b> ( const QSize & <i>size</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#setFrameSize-2">setFrameSize</a></b> ( int <i>width</i>, int <i>height</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#setPixelAspectRatio">setPixelAspectRatio</a></b> ( const QSize & <i>ratio</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#setPixelAspectRatio-2">setPixelAspectRatio</a></b> ( int <i>horizontal</i>, int <i>vertical</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#setProperty">setProperty</a></b> ( const char * <i>name</i>, const QVariant & <i>value</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#setScanLineDirection">setScanLineDirection</a></b> ( Direction <i>direction</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#setViewport">setViewport</a></b> ( const QRect & <i>viewport</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#setYCbCrColorSpace">setYCbCrColorSpace</a></b> ( YCbCrColorSpace <i>space</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#sizeHint">sizeHint</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QRect </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#viewport">viewport</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> YCbCrColorSpace </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#yCbCrColorSpace">yCbCrColorSpace</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#operator-not-eq">operator!=</a></b> ( const QVideoSurfaceFormat & <i>other</i> ) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QVideoSurfaceFormat & </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#operator-eq">operator=</a></b> ( const QVideoSurfaceFormat & <i>other</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qvideosurfaceformat.html#operator-eq-eq">operator==</a></b> ( const QVideoSurfaceFormat & <i>other</i> ) const</td></tr> </table> <a name="details"></a> <!-- $$$QVideoSurfaceFormat-description --> <div class="descr"> <h2>Detailed Description</h2> <p>The QVideoSurfaceFormat class specifies the stream format of a video presentation surface.</p> <p>A video surface presents a stream of video frames. The surface's format describes the type of the frames and determines how they should be presented.</p> <p>The core properties of a video stream required to setup a video surface are the pixel format given by <a href="qvideosurfaceformat.html#pixelFormat">pixelFormat</a>(), and the frame dimensions given by <a href="qvideosurfaceformat.html#frameSize">frameSize</a>().</p> <p>If the surface is to present frames using a frame's handle a surface format will also include a handle type which is given by the <a href="qvideosurfaceformat.html#handleType">handleType</a>() function.</p> <p>The region of a frame that is actually displayed on a video surface is given by the <a href="qvideosurfaceformat.html#viewport">viewport</a>(). A stream may have a viewport less than the entire region of a frame to allow for videos smaller than the nearest optimal size of a video frame. For example the width of a frame may be extended so that the start of each scan line is eight byte aligned.</p> <p>Other common properties are the <a href="qvideosurfaceformat.html#pixelAspectRatio">pixelAspectRatio</a>(), <a href="qvideosurfaceformat.html#scanLineDirection">scanLineDirection</a>(), and <a href="qvideosurfaceformat.html#frameRate">frameRate</a>(). Additionally a stream may have some additional type specific properties which are listed by the dynamicPropertyNames() function and can be accessed using the <a href="qvideosurfaceformat.html#property">property</a>(), and <a href="qvideosurfaceformat.html#setProperty">setProperty</a>() functions.</p> </div> <!-- @@@QVideoSurfaceFormat --> <div class="types"> <h2>Member Type Documentation</h2> <!-- $$$Direction$$$TopToBottom$$$BottomToTop --> <h3 class="fn"><a name="Direction-enum"></a>enum QVideoSurfaceFormat::<span class="name">Direction</span></h3> <p>Enumerates the layout direction of video scan lines.</p> <table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><tt>QVideoSurfaceFormat::TopToBottom</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Scan lines are arranged from the top of the frame to the bottom.</td></tr> <tr><td class="topAlign"><tt>QVideoSurfaceFormat::BottomToTop</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Scan lines are arranged from the bottom of the frame to the top.</td></tr> </table> <!-- @@@Direction --> <!-- $$$YCbCrColorSpace$$$YCbCr_Undefined$$$YCbCr_BT601$$$YCbCr_BT709$$$YCbCr_xvYCC601$$$YCbCr_xvYCC709$$$YCbCr_JPEG --> <h3 class="fn"><a name="YCbCrColorSpace-enum"></a>enum QVideoSurfaceFormat::<span class="name">YCbCrColorSpace</span></h3> <p>Enumerates the Y'CbCr color space of video frames.</p> <table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><tt>QVideoSurfaceFormat::YCbCr_Undefined</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">No color space is specified.</td></tr> <tr><td class="topAlign"><tt>QVideoSurfaceFormat::YCbCr_BT601</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">A Y'CbCr color space defined by ITU-R recommendation BT.601 with Y value range from 16 to 235, and Cb/Cr range from 16 to 240. Used in standard definition video.</td></tr> <tr><td class="topAlign"><tt>QVideoSurfaceFormat::YCbCr_BT709</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">A Y'CbCr color space defined by ITU-R BT.709 with the same values range as YCbCr_BT601. Used for HDTV.</td></tr> <tr><td class="topAlign"><tt>QVideoSurfaceFormat::YCbCr_xvYCC601</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The BT.601 color space with the value range extended to 0 to 255. It is backward compatibile with BT.601 and uses values outside BT.601 range to represent wider colors range.</td></tr> <tr><td class="topAlign"><tt>QVideoSurfaceFormat::YCbCr_xvYCC709</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">The BT.709 color space with the value range extended to 0 to 255.</td></tr> <tr><td class="topAlign"><tt>QVideoSurfaceFormat::YCbCr_JPEG</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">The full range Y'CbCr color space used in JPEG files.</td></tr> </table> <!-- @@@YCbCrColorSpace --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QVideoSurfaceFormat[overload1]$$$QVideoSurfaceFormat --> <h3 class="fn"><a name="QVideoSurfaceFormat"></a>QVideoSurfaceFormat::<span class="name">QVideoSurfaceFormat</span> ()</h3> <p>Constructs a null video stream format.</p> <!-- @@@QVideoSurfaceFormat --> <!-- $$$QVideoSurfaceFormat$$$QVideoSurfaceFormatconstQSize&QVideoFrame::PixelFormatQAbstractVideoBuffer::HandleType --> <h3 class="fn"><a name="QVideoSurfaceFormat-2"></a>QVideoSurfaceFormat::<span class="name">QVideoSurfaceFormat</span> ( const <span class="type"><a href="qsize.html">QSize</a></span> & <i>size</i>, <span class="type"><a href="qvideoframe.html#PixelFormat-enum">QVideoFrame::PixelFormat</a></span> <i>format</i>, <span class="type"><a href="qabstractvideobuffer.html#HandleType-enum">QAbstractVideoBuffer::HandleType</a></span> <i>type</i> = QAbstractVideoBuffer::NoHandle )</h3> <p>Contructs a description of stream which receives stream of <i>type</i> buffers with given frame <i>size</i> and pixel <i>format</i>.</p> <!-- @@@QVideoSurfaceFormat --> <!-- $$$QVideoSurfaceFormat$$$QVideoSurfaceFormatconstQVideoSurfaceFormat& --> <h3 class="fn"><a name="QVideoSurfaceFormat-3"></a>QVideoSurfaceFormat::<span class="name">QVideoSurfaceFormat</span> ( const <span class="type">QVideoSurfaceFormat</span> & <i>other</i> )</h3> <p>Constructs a copy of <i>other</i>.</p> <!-- @@@QVideoSurfaceFormat --> <!-- $$$~QVideoSurfaceFormat[overload1]$$$~QVideoSurfaceFormat --> <h3 class="fn"><a name="dtor.QVideoSurfaceFormat"></a>QVideoSurfaceFormat::<span class="name">~QVideoSurfaceFormat</span> ()</h3> <p>Destroys a video stream description.</p> <!-- @@@~QVideoSurfaceFormat --> <!-- $$$frameHeight[overload1]$$$frameHeight --> <h3 class="fn"><a name="frameHeight"></a><span class="type">int</span> QVideoSurfaceFormat::<span class="name">frameHeight</span> () const</h3> <p>Returns the height of frame in a video stream.</p> <!-- @@@frameHeight --> <!-- $$$frameRate[overload1]$$$frameRate --> <h3 class="fn"><a name="frameRate"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QVideoSurfaceFormat::<span class="name">frameRate</span> () const</h3> <p>Returns the frame rate of a video stream in frames per second.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#setFrameRate">setFrameRate</a>().</p> <!-- @@@frameRate --> <!-- $$$frameSize[overload1]$$$frameSize --> <h3 class="fn"><a name="frameSize"></a><span class="type"><a href="qsize.html">QSize</a></span> QVideoSurfaceFormat::<span class="name">frameSize</span> () const</h3> <p>Returns the size of frames in a video stream.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#setFrameSize">setFrameSize</a>(), <a href="qvideosurfaceformat.html#frameWidth">frameWidth</a>(), and <a href="qvideosurfaceformat.html#frameHeight">frameHeight</a>().</p> <!-- @@@frameSize --> <!-- $$$frameWidth[overload1]$$$frameWidth --> <h3 class="fn"><a name="frameWidth"></a><span class="type">int</span> QVideoSurfaceFormat::<span class="name">frameWidth</span> () const</h3> <p>Returns the width of frames in a video stream.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#frameSize">frameSize</a>() and <a href="qvideosurfaceformat.html#frameHeight">frameHeight</a>().</p> <!-- @@@frameWidth --> <!-- $$$handleType[overload1]$$$handleType --> <h3 class="fn"><a name="handleType"></a><span class="type"><a href="qabstractvideobuffer.html#HandleType-enum">QAbstractVideoBuffer::HandleType</a></span> QVideoSurfaceFormat::<span class="name">handleType</span> () const</h3> <p>Returns the type of handle the surface uses to present the frame data.</p> <p>If the handle type is <a href="qabstractvideobuffer.html#HandleType-enum">QAbstractVideoBuffer::NoHandle</a> buffers with any handle type are valid provided they can be <a href="qabstractvideobuffer.html#map">mapped</a> with the <a href="qabstractvideobuffer.html#MapMode-enum">QAbstractVideoBuffer::ReadOnly</a> flag. If the handleType() is not <a href="qabstractvideobuffer.html#HandleType-enum">QAbstractVideoBuffer::NoHandle</a> then the handle type of the buffer be the same as that of the surface format.</p> <!-- @@@handleType --> <!-- $$$isValid[overload1]$$$isValid --> <h3 class="fn"><a name="isValid"></a><span class="type">bool</span> QVideoSurfaceFormat::<span class="name">isValid</span> () const</h3> <p>Identifies if a video surface format has a valid pixel format and frame size.</p> <p>Returns true if the format is valid, and false otherwise.</p> <!-- @@@isValid --> <!-- $$$pixelAspectRatio[overload1]$$$pixelAspectRatio --> <h3 class="fn"><a name="pixelAspectRatio"></a><span class="type"><a href="qsize.html">QSize</a></span> QVideoSurfaceFormat::<span class="name">pixelAspectRatio</span> () const</h3> <p>Returns a video stream's pixel aspect ratio.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#setPixelAspectRatio">setPixelAspectRatio</a>().</p> <!-- @@@pixelAspectRatio --> <!-- $$$pixelFormat[overload1]$$$pixelFormat --> <h3 class="fn"><a name="pixelFormat"></a><span class="type"><a href="qvideoframe.html#PixelFormat-enum">QVideoFrame::PixelFormat</a></span> QVideoSurfaceFormat::<span class="name">pixelFormat</span> () const</h3> <p>Returns the pixel format of frames in a video stream.</p> <!-- @@@pixelFormat --> <!-- $$$property[overload1]$$$propertyconstchar* --> <h3 class="fn"><a name="property"></a><span class="type"><a href="qvariant.html">QVariant</a></span> QVideoSurfaceFormat::<span class="name">property</span> ( const <span class="type">char</span> * <i>name</i> ) const</h3> <p>Returns the value of the video format's <i>name</i> property.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#setProperty">setProperty</a>().</p> <!-- @@@property --> <!-- $$$propertyNames[overload1]$$$propertyNames --> <h3 class="fn"><a name="propertyNames"></a><span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qbytearray.html">QByteArray</a></span>> QVideoSurfaceFormat::<span class="name">propertyNames</span> () const</h3> <p>Returns a list of video format dynamic property names.</p> <!-- @@@propertyNames --> <!-- $$$scanLineDirection[overload1]$$$scanLineDirection --> <h3 class="fn"><a name="scanLineDirection"></a><span class="type"><a href="qvideosurfaceformat.html#Direction-enum">Direction</a></span> QVideoSurfaceFormat::<span class="name">scanLineDirection</span> () const</h3> <p>Returns the direction of scan lines.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#setScanLineDirection">setScanLineDirection</a>().</p> <!-- @@@scanLineDirection --> <!-- $$$setFrameRate[overload1]$$$setFrameRateqreal --> <h3 class="fn"><a name="setFrameRate"></a><span class="type">void</span> QVideoSurfaceFormat::<span class="name">setFrameRate</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>rate</i> )</h3> <p>Sets the frame <i>rate</i> of a video stream in frames per second.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#frameRate">frameRate</a>().</p> <!-- @@@setFrameRate --> <!-- $$$setFrameSize[overload1]$$$setFrameSizeconstQSize& --> <h3 class="fn"><a name="setFrameSize"></a><span class="type">void</span> QVideoSurfaceFormat::<span class="name">setFrameSize</span> ( const <span class="type"><a href="qsize.html">QSize</a></span> & <i>size</i> )</h3> <p>Sets the size of frames in a video stream to <i>size</i>.</p> <p>This will reset the <a href="qvideosurfaceformat.html#viewport">viewport</a>() to fill the entire frame.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#frameSize">frameSize</a>().</p> <!-- @@@setFrameSize --> <!-- $$$setFrameSize$$$setFrameSizeintint --> <h3 class="fn"><a name="setFrameSize-2"></a><span class="type">void</span> QVideoSurfaceFormat::<span class="name">setFrameSize</span> ( <span class="type">int</span> <i>width</i>, <span class="type">int</span> <i>height</i> )</h3> <p>This is an overloaded function.</p> <p>Sets the <i>width</i> and <i>height</i> of frames in a video stream.</p> <p>This will reset the <a href="qvideosurfaceformat.html#viewport">viewport</a>() to fill the entire frame.</p> <!-- @@@setFrameSize --> <!-- $$$setPixelAspectRatio[overload1]$$$setPixelAspectRatioconstQSize& --> <h3 class="fn"><a name="setPixelAspectRatio"></a><span class="type">void</span> QVideoSurfaceFormat::<span class="name">setPixelAspectRatio</span> ( const <span class="type"><a href="qsize.html">QSize</a></span> & <i>ratio</i> )</h3> <p>Sets a video stream's pixel aspect <i>ratio</i>.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#pixelAspectRatio">pixelAspectRatio</a>().</p> <!-- @@@setPixelAspectRatio --> <!-- $$$setPixelAspectRatio$$$setPixelAspectRatiointint --> <h3 class="fn"><a name="setPixelAspectRatio-2"></a><span class="type">void</span> QVideoSurfaceFormat::<span class="name">setPixelAspectRatio</span> ( <span class="type">int</span> <i>horizontal</i>, <span class="type">int</span> <i>vertical</i> )</h3> <p>This is an overloaded function.</p> <p>Sets the <i>horizontal</i> and <i>vertical</i> elements of a video stream's pixel aspect ratio.</p> <!-- @@@setPixelAspectRatio --> <!-- $$$setProperty[overload1]$$$setPropertyconstchar*constQVariant& --> <h3 class="fn"><a name="setProperty"></a><span class="type">void</span> QVideoSurfaceFormat::<span class="name">setProperty</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvariant.html">QVariant</a></span> & <i>value</i> )</h3> <p>Sets the video format's <i>name</i> property to <i>value</i>.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#property">property</a>().</p> <!-- @@@setProperty --> <!-- $$$setScanLineDirection[overload1]$$$setScanLineDirectionDirection --> <h3 class="fn"><a name="setScanLineDirection"></a><span class="type">void</span> QVideoSurfaceFormat::<span class="name">setScanLineDirection</span> ( <span class="type"><a href="qvideosurfaceformat.html#Direction-enum">Direction</a></span> <i>direction</i> )</h3> <p>Sets the <i>direction</i> of scan lines.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#scanLineDirection">scanLineDirection</a>().</p> <!-- @@@setScanLineDirection --> <!-- $$$setViewport[overload1]$$$setViewportconstQRect& --> <h3 class="fn"><a name="setViewport"></a><span class="type">void</span> QVideoSurfaceFormat::<span class="name">setViewport</span> ( const <span class="type"><a href="qrect.html">QRect</a></span> & <i>viewport</i> )</h3> <p>Sets the viewport of a video stream to <i>viewport</i>.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#viewport">viewport</a>().</p> <!-- @@@setViewport --> <!-- $$$setYCbCrColorSpace[overload1]$$$setYCbCrColorSpaceYCbCrColorSpace --> <h3 class="fn"><a name="setYCbCrColorSpace"></a><span class="type">void</span> QVideoSurfaceFormat::<span class="name">setYCbCrColorSpace</span> ( <span class="type"><a href="qvideosurfaceformat.html#YCbCrColorSpace-enum">YCbCrColorSpace</a></span> <i>space</i> )</h3> <p>Sets the Y'CbCr color <i>space</i> of a video stream. It is only used with raw YUV frame types.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#yCbCrColorSpace">yCbCrColorSpace</a>().</p> <!-- @@@setYCbCrColorSpace --> <!-- $$$sizeHint[overload1]$$$sizeHint --> <h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QVideoSurfaceFormat::<span class="name">sizeHint</span> () const</h3> <p>Returns a suggested size in pixels for the video stream.</p> <p>This is the size of the viewport scaled according to the pixel aspect ratio.</p> <!-- @@@sizeHint --> <!-- $$$viewport[overload1]$$$viewport --> <h3 class="fn"><a name="viewport"></a><span class="type"><a href="qrect.html">QRect</a></span> QVideoSurfaceFormat::<span class="name">viewport</span> () const</h3> <p>Returns the viewport of a video stream.</p> <p>The viewport is the region of a video frame that is actually displayed.</p> <p>By default the viewport covers an entire frame.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#setViewport">setViewport</a>().</p> <!-- @@@viewport --> <!-- $$$yCbCrColorSpace[overload1]$$$yCbCrColorSpace --> <h3 class="fn"><a name="yCbCrColorSpace"></a><span class="type"><a href="qvideosurfaceformat.html#YCbCrColorSpace-enum">YCbCrColorSpace</a></span> QVideoSurfaceFormat::<span class="name">yCbCrColorSpace</span> () const</h3> <p>Returns the Y'CbCr color space of a video stream.</p> <p><b>See also </b><a href="qvideosurfaceformat.html#setYCbCrColorSpace">setYCbCrColorSpace</a>().</p> <!-- @@@yCbCrColorSpace --> <!-- $$$operator!=[overload1]$$$operator!=constQVideoSurfaceFormat& --> <h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QVideoSurfaceFormat::<span class="name">operator!=</span> ( const <span class="type">QVideoSurfaceFormat</span> & <i>other</i> ) const</h3> <p>Returns true if <i>other</i> is different to a video format, and false if they are the same.</p> <!-- @@@operator!= --> <!-- $$$operator=[overload1]$$$operator=constQVideoSurfaceFormat& --> <h3 class="fn"><a name="operator-eq"></a><span class="type">QVideoSurfaceFormat</span> & QVideoSurfaceFormat::<span class="name">operator=</span> ( const <span class="type">QVideoSurfaceFormat</span> & <i>other</i> )</h3> <p>Assigns the values of <i>other</i> to a video stream description.</p> <!-- @@@operator= --> <!-- $$$operator==[overload1]$$$operator==constQVideoSurfaceFormat& --> <h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QVideoSurfaceFormat::<span class="name">operator==</span> ( const <span class="type">QVideoSurfaceFormat</span> & <i>other</i> ) const</h3> <p>Returns true if <i>other</i> is the same as a video format, and false if they are the different.</p> <!-- @@@operator== --> </div> </div> </div> </div> <div class="ft"> <span></span> </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.</p> <br /> <p> 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.</p> <p> Documentation sources may be obtained from <a href="http://www.qt-project.org"> www.qt-project.org</a>.</p> <br /> <p> 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. <a title="Privacy Policy" href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p> </div> <script src="scripts/functions.js" type="text/javascript"></script> </body> </html>