summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Ported QML camera example to QtQuick 2.0 and QtMultimedia 5.0Dmytro Poplavskiy2012-07-1911-510/+401
| | | | | | | | Removed controls not currently supported on Qt5 platforms and added basic video capture mode Change-Id: I1f188d31af770cfb6ebb65ab5ee4a5467abcfbeb Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Player example histogram: Process frames on a separate threadLev Zelenskiy2012-07-192-36/+79
| | | | | | Change-Id: I6989f9ea9cb6e45c54ed75079a5b5748e15ee0d8 Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Update example QML to follow API changeMithra Pattison2012-07-162-4/+4
| | | | | | | | | QML for ListView API in qmlvideo and qmlvideofx was modified. Usage of this API in FileBrowser file required changes to follow the new API. Change-Id: I3da25ed5bc696a72cdefc6c72d2ab95c319b758c Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Fix include path error in shadow build of audiorecorder exampleMithra Pattison2012-07-161-0/+2
| | | | | Change-Id: Iafe726c4b84b728d084b3085bb13e5055e96bb8b Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Delete obsolete class methods and update related codeMithra Pattison2012-07-1014-91/+82
| | | | | | | | Delete obsolete methods from QAudioFormat and QAudioDeviceInfo and update code that relied on the obsolete methods. Change-Id: I007e36375a45399b1d5a289341bc5d5a05dc68cc Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Fix installation of spectrum exampleMithra Pattison2012-07-021-1/+2
| | | | | | | | | Fixed setup of spectrum project, to correctly install the spectrum executable. Task-number: QTBUG-13018 Change-Id: Ifcc55d02cf0e50f9c1015fa89b5f2d851b2a44c4 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Fix crash in audioinput and audiooutput examples.Lev Zelenskiy2012-06-264-38/+26
| | | | | | | Do not call tr while initializing static objects. Change-Id: Ia75ddd53ae22b0e4179f174da7d933156744e261 Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
* switch to new-style configure testsOswald Buddenhagen2012-06-251-1/+1
| | | | | Change-Id: Ib56d0cb24065c1f990aee5d7f41bfedfe75332a1 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Fix target executable name in audiooutput exampleMithra Pattison2012-06-201-1/+1
| | | | | Change-Id: I4481879366f136370f4bd549bb2ef2f8764cf821 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Replace a writable position() property with a seek() method.Michael Goddard2012-06-143-1/+3
| | | | | | | | Seeking is sometimes asynchronous, and more importantly nearly every one using a slider for seeking ends up with a binding loop. Change-Id: I45d92e19b0276c8b97c51c073754d1c9d3dc611e Reviewed-by: Ling Hu <ling.hu@nokia.com>
* Update folderlistmodel import to version 2Alan Alpert2012-06-142-2/+2
| | | | | | | | | | | To help distinguish the QtQuick 1 and QtQuick 2 versions of folderlistmodel, the QtQuick 2 version is now version 2 of folderlistmodel. Depends on e824fa97e4a9fbaa0c850274b448568953692240 in qtdeclarative Change-Id: Ic30c255ecb4c7b12dcf624b4b1d51cbc82b779df Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Don't use QtDeclarative compat moduleKent Hansen2012-05-144-8/+8
| | | | | | | Use QtQml instead. Change-Id: I7618ba89a2ed288f7043ae402ac091a924598f03 Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
* fix project fileOswald Buddenhagen2012-05-091-1/+2
| | | | | | | | | "console" is CONFIG, not QT. also, it doesn't look too convincing if an example uses private headers ... Change-Id: I5bc128c6268901c9842f8b842d6344bd32fc7d1e Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
* Change uses of {to,from}Ascii to {to,from}Latin1Thiago Macieira2012-05-044-4/+4
| | | | | | | | | | This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: Ic591779a3431999c007fb0ff362c7e25ce54097e Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
* Fix compilation after qtbase:8f85b84f4eaa85ff5c02ec5e65fd6706a10690b9.Friedemann Kleint2012-04-247-9/+9
| | | | | | | Remove QDeclarative compatibility module code. Change-Id: Ib24c0c027c899e7eb30b3c8550a483d0d8b2b77f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Move QAudioDecoder to public.Michael Goddard2012-04-112-1/+2
| | | | | | | To get better feedback between alpha & beta. Change-Id: I3620825fb9c2bb9de69951cf1d583b191d62cb0d Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Updated declarative components to use the QML moduleJonas Rabbe2012-03-141-1/+4
| | | | | Change-Id: I4b49466ba5248683c2285f98ce17bc2c24bba515 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Use small-screen layout in qmlvideo, qmlvideofx examples on HarmattanGareth Stockwell2012-03-121-0/+5
| | | | | Change-Id: Ieaaca763630acfb81a1b5b5cfef2d08367a9e265 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Updated qmlvideofx to use MediaPlayer.autoPlay instead of playingGareth Stockwell2012-03-121-1/+1
| | | | | Change-Id: Iee9066a6c7fcddbe6054e9c505b24e478f63cb4d Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Expose availability from the backend to C++ and QML.Michael Goddard2012-03-021-1/+1
| | | | | | | | | | | | | | The availabilityError property was static based on the service, but it can change at run time, so add the plumbing to allow the backend to report it itself. Also make sure that both QML and C++ expose the availability. The radio tuner and data controls previously had properties (but no signals) for availability - these have been removed. Change-Id: I9240cf93e2a51b14cd38642f9312ae3c75f05361 Reviewed-by: Ling Hu <ling.hu@nokia.com>
* Audio decoder example.Lev Zelenskiy2012-02-276-0/+647
| | | | | Change-Id: I0f9fb755ef8bc6f66696a06996ac7a9f13de69cc Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Audio recorder example updated to display level using QAudioProbe.Lev Zelenskiy2012-02-246-4/+251
| | | | | Change-Id: I7d5aea306aeb3cd9109615f9ed4905c53125233a Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Video player example updated to display histogram using QVideoProbe.Lev Zelenskiy2012-02-245-3/+219
| | | | | Change-Id: Iaeba751280133bd405fe90a0d5d07be446c95738 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* clean up qmake-generated projectsOswald Buddenhagen2012-02-221-6/+0
| | | | | | | | remove assignmets which are defaults or bogus Change-Id: I7130f22a66b294f92b0ed03749895136d0890a64 Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com> Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Fix some compiler warnings.Michael Goddard2012-02-145-5/+6
| | | | | | | | | As it turns out, we had an overloaded virtual from an earlier era, with the extra parameter never used. So cleaning that up was a bonus to remove the compiler warning. Change-Id: I780287f8a5d2b0a1ec84ec62c88ba50e051f372b Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Fix shader file loading in qmlvideofx exampleGareth Stockwell2012-02-131-1/+23
| | | | | | | | | | | | | | Each effect is implemented as a QML element, whose fragment/vertexShaderFilename properties specify paths from which shader programs are loaded. These paths are relative to the application installation directory, e.g. "shaders/billboard.fsh". If the current directory from which the application is launched does not match the installation directory, shader program loading fails. This patch converts the relative filename provided by the QML element into an absolute path before attempting to open the file. Change-Id: I8ed39d271c4f1f59180588843e500ed73a93a543 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Disable flicking of qmlvideofx example parameter panelGareth Stockwell2012-02-131-0/+1
| | | | | Change-Id: I4cf563c288aaf37fe60ba1ec56ffc9fd72060b99 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Improve usability of qmlvideofx example on small touchscreensGareth Stockwell2012-02-135-50/+60
| | | | | | | | | | | * Add tolerance to mouse press detection on divider and slider grips, so that clicks just outside of the grip radius are treated as if the click was inside the grip. * When slider bar outside of grip radius is clicked, increment slider position by a fixed amount, towards the click position. Change-Id: Iefb0b274ee5a97ed5cb789596bf6b3c07a7fc8b8 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Add some recent things to the overview docs.Michael Goddard2012-02-091-0/+3
| | | | | | | Also clean up a few other doc related bits and pieces. Change-Id: I56714e1811e38a7225131c1d141430b49f5f509c Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Fixed 'magnify' shader in qmlvideofx exampleGareth Stockwell2012-02-091-5/+8
| | | | | | | | Previous shader caused untransformed pixels (those outside of the lens) radius to be offset slightly from their original positions. Change-Id: I4df847fdc40073a55da8777981c3fdd373937658 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Enable qmlvideofx window to be resized, when large screen layout usedGareth Stockwell2012-02-085-6/+43
| | | | | Change-Id: I3010b9fd5f68e922ff94edd4d08d8114c689c037 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Tidy up frame rate display in video examplesGareth Stockwell2012-02-087-52/+110
| | | | | | | | | | | | | | | * Use a Column element to position QML and video frame rate counters. * When using small-screen layouts, hide frame rate counters when dialogs or menus are displayed. * Do not display instantaneous frame rate. If changes in this rate trigger a repaint, then the rate itself is changed. If the repaint occurs in less time than the QElapsedTimer resolution, the displayed instantaneous rate is always zero. * Add a label, so it is clear which is the QML repaint rate, and which is the video frame rate. Change-Id: Ie58ab162ab44bd7f1c4b297eed929b9baa73552c Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Tidy up file browsing in video examplesGareth Stockwell2012-02-087-632/+672
| | | | | | | | | * Use QStandardPaths to determine the initial folder displayed when the file browser is launched * Persist folder between file browser invocations Change-Id: I5b86dd3d304c3f33802f3189716e1d360774198d Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Add AudioEngine with new implementationLing Hu2012-02-065-0/+348
| | | | | Change-Id: I5eebe662ecbce9814ed3e763db56df9be737d11f Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Remove QMediaImageViewer (SC break).Michael Goddard2012-02-035-375/+0
| | | | | | | This class has turned out to be not very useful at this point in time. Change-Id: Ic07132bdcd01a912a6dd1160c867979fd1307b6a Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-30212-212/+212
| | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I20e5215108c6ebd5f8474fed5c3665118e4791e6 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Add a volume (gain) property to QAudioInput.Michael Goddard2012-01-252-0/+16
| | | | | | | | Only implemented for PulseAudio so far, but the API does explain that it's optional. Change-Id: I4543a1c81d810fe92bb08f1ed13f3a3534a371e4 Reviewed-by: Ling Hu <ling.hu@nokia.com>
* Update in line with recent QWindow API changeAlan Alpert2012-01-252-3/+2
| | | | | Change-Id: Id495215c7861f05849ffbfd1a0e66af9990a1365 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-23214-214/+214
| | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: Ie8cd560b6d9a2c6e552b6be1ad8bc96c80a6535c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Changed metadata keys type from enum to QString.Dmytro Poplavskiy2012-01-202-5/+4
| | | | | | | | This allows to combine metaData and extendedMetaData and simplify metadata handling on both backend and application sides. Change-Id: I136eedc86c215be3485db101c43069ca7c82101b Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Replaced QAudioCaptureSource with QAudioRecorder.Dmytro Poplavskiy2012-01-192-30/+27
| | | | | | | | | | QAudioCaptureSource name is confusing, it's essentially an audio recording service but it's not evident from API. QAudioRecorder replaces QAudioCaptureSource+QMediaRecorder combination. Change-Id: I0082d766fc0d1b8d5ecbfc527f13e715add730c8 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Changed QCamera::captureMode property to QFlagsDmytro Poplavskiy2012-01-171-1/+1
| | | | | | | | | This enables the expression of extra camera modes like viewfinder only or capture during video recording. Change-Id: Ie02fdeef5eb7fd6fc2f133c1afb0141e37c22b06 Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com> Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Update year in Nokia copyright headers.Jason McDonald2012-01-1257-57/+57
| | | | | | | Update headers from before 2011 that were missed in the previous commit. Change-Id: Ib0fd91a39ffc57117fe01280e34519c3f914fac0 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Updated QtMultimedia declarative module to version 5.0Jonas Rabbe2012-01-1116-22/+22
| | | | | | | | | | | | The QtMultimedia module should have version 5.0 to align with Qt 5 in general. This change updates the version, but keeps 4.0 versions of the elements for compatability purposes. Documentation and examples has also been updated to reflect this version change. Change-Id: Ica10c1a5ecc2c7233192a65e04ff77eb33a77e30 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
* Remove widgets config test.Michael Goddard2012-01-111-1/+1
| | | | | | | | | Since it's not guaranteed that other Qt modules will be built by the time qmake is run (and config.tests are created) we can't rely on compilation. Just check the module.pri variable for widgets instead. Change-Id: I352cf6427b748b89b69ec17588ce0dd83065090f Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Properly handle the case where QtWidgets is not available.Michael Goddard2012-01-062-30/+23
| | | | | | | | | | | | | | | It does use a config test for now, just to make it clearer. The Mac backend currently requires widgets, but most of the others should work without it (just not supporting QVideoWidget/WindowControl). The QVideoDeviceControl interface was modified to remove the QIcon usage - it was never implemented. Unfortunately even the QML examples need widgets for the wrapper application, and will need to be ported to QtGui based wrapper. Change-Id: I8a55ad5cf09ab51749510bf16f49de0bd3f0bcdb Reviewed-by: Ling Hu <ling.hu@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-06157-157/+157
| | | | | Change-Id: Ib82c1be5548443ef1f5e97b3d5641a2f55d212af Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix namespace compilation.Michael Goddard2011-12-225-8/+4
| | | | | | | By removing unnamespaced forward decls. Change-Id: Icccb34092ef7451d29f52db08811a2152c50e4b8 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Fix some of the effects in qmlvideofxMichael Goddard2011-12-224-7/+8
| | | | | | | | | | | * TiltShift was sometimes applying the effect in the wrong place. * Blur had some QML properties duplicated * Blur kernel wasn't quite summing to 1, and was applying opacity twice * The target width for the second pass was incorrect, so it was blending darkness, resulting in a dreary image. Change-Id: Ib8ba93d979c597cf4d225b3d24d26a22d0cdffc2 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
* Disable some build time messages.Michael Goddard2011-12-224-7/+0
| | | | | Change-Id: I5a46b36c72f4307471cfe77f055706539a77049c Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>