summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix building of installed player example.Friedemann Kleint2012-11-211-1/+1
| | | | | | Task-number: QTBUG-27977 Change-Id: I383cd971a54d40008f9a5899f043abb9961c489a Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Multimedia: examples coding style unificationhjk2012-11-2169-459/+387
| | | | | Change-Id: Iffae3a276bb2b01f871aee76dc069ce006d69fce Reviewed-by: David Schulz <david.schulz@digia.com>
* QtMultimedia: examples/camera coding stylehjk2012-11-216-72/+57
| | | | | | | Also unconditionally include code for Qt >= 4.7 Change-Id: Ic8b9d009a54f9e0fe7e9477c75c125ad09a485ee Reviewed-by: David Schulz <david.schulz@digia.com>
* simplified exampleMaurice Kalinowski2012-11-202-10/+0
| | | | | | | | | - do not use any opengl additions inside this simple example - also fixes problems in relation to mixing angle with GLWidgets Task-number: QTBUG-27963 Change-Id: I69a966b886cd8b3e88d6f3be48463eee59baa58a Reviewed-by: hjk <qthjk@ovi.com>
* Adding 3rdparty library libfftreal to install stepHolger Ihrig2012-11-081-1/+2
| | | | | | | | | | Adding libfftreal to install step in this directory, otherwise it will not be deployed for the installers Task-Number: QTBUG-27876 Change-Id: I090b61def94eee9c63d732067036b3ca5398cc52 Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Andy Nichols <andy.nichols@digia.com>
* All QWindow properties that have "window" in them have been renamed.Shawn Rutledge2012-11-082-4/+4
| | | | | | | Depends on patch Ie4424ec15fbdef6b29b137f90a2ae33f173edd21 in qtbase. Change-Id: I2903a7404a738ae651ba07d4bdc003520473bd80 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* Rename namespace QtMultimedia -> QMultimediaSze Howe Koh2012-11-064-16/+16
| | | | | | | | | | | | | | | | Main code, examples, tests and docs updated. Method: 1. Mass find+replace "QtMultimedia::" -> "QMultimedia::" 2. Hand-modified declaration in qtmedianamespace.h/cpp For consistency (with minimal disruption), namespaces with a "Qt" prefix will be renamed. Part of the Header Consistency Project (http://lists.qt-project.org/pipermail/development/2012-October/007570.html) Change-Id: I1fbc43a1aa91d996aa61869fcd8d05186bf7cf6d Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Rename namespace QtMultimedia::MetaData -> QMediaMetaDataSze Howe Koh2012-11-062-4/+4
| | | | | | | | | | | | | | | | | | Main code, examples, tests and docs updated. Method: 1. Remove unused forward-declarations, "class QMediaMetaData" 2. Mass find+replace "QtMultimedia::MetaData" -> "QMediaMetaData" 3. Un-nest from the QtMultimedia namespace in qtmedianamespace.h For consistency (with minimal disruption), namespaces with a "Qt" prefix will be renamed. Also, Qt guidelines don't include nested namespaces (http://lists.qt-project.org/pipermail/development/2012-October/006756.html) Part of the Header Consistency Project (http://lists.qt-project.org/pipermail/development/2012-October/007570.html) Change-Id: I40e59c1cf58c1792725e735e9285c51bc5f226b1 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Use QVideoGraphicsItem in the videographicsitem example.Yoann Lopes2012-10-0218-32/+366
| | | | | | | | | | The videographicsitem example now uses QVideoGraphicsItem instead of a custom QAbstractVideoSurface. The old code has been moved to a new example: "customvideosurface/customvideoitem". Change-Id: I83212f36168ef94d670b447eb1a742a39753939d Reviewed-by: Jason Barron <jason.barron@digia.com>
* QVideoWidget: fixed setFullScreen(false) on the Xcb platform.Yoann Lopes2012-10-011-1/+1
| | | | | | | | | | Fixed exiting fullscreen when a QVideoWidget is embedded in another QWidget. Requires change I3616dc0f in qtbase to work. Because of a bug in some X window managers, the order in which setWindowFlags() and showNormal() are called has been changed. Change-Id: I335d47a3a1d9ce517978cad35597d72312150db1 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* Doc: Moved example documentation and imagesVenugopal Shivashankar2012-09-2629-0/+1062
| | | | | | | | | Changed to adhere to the new documentation structure outlined here: http://qt-project.org/wiki/Qt_Documentation_Structure Change-Id: I634e086c7d55abfac3680144cbbe97059fcbea4f Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Use QVideoWidget in the videowidget example.Yoann Lopes2012-09-2612-11/+304
| | | | | | | | | | | | The videowidget example now uses QVideoWidget instead of a custom QAbstractVideoSurface, the former being the most straightforward and fastest way of showing a video in a QWidget. The old code has been moved to a new example: "customvideosurface". Change-Id: I15fb4482d0e77bafd24d4cb03316fc8f4ef13c35 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Jason Barron <jason.barron@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-24222-3623/+3623
| | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Id77334cfb15de096941c88e32d04ca07b4eb4709 Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Make compile with -no-widgetsTasuku Suzuki2012-09-041-8/+10
| | | | | Change-Id: I6a057950315a1e2084fd6fc130007f865d096f12 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* remove useless dependency in qmlvideofx.proTasuku Suzuki2012-09-031-1/+0
| | | | | Change-Id: Ie79cc9294f3845c089525195684df4a60171f78c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Use Qt::WindowFlags, not Qt::WFlags.Stephen Kelly2012-08-132-4/+4
| | | | | | | | | The latter seems to date from the Qt 1 days, and such abbreviations are not current Qt style. Change-Id: I576a04e60c59e0bdf60da9c07e4d2917fc02a491 Reviewed-by: Andy Shaw <andy.shaw@digia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Remove the WA_PaintOnScreen widget attribute for vide widgetsLars Knoll2012-08-081-1/+0
| | | | | | | | | This attribute doesn't quite do what it used to do in Qt 4.x anymore, and will lead to Qt not painting the video at all. Change-Id: I2338815756cab82ae152058ff5a7b5f14e07001e Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Add 32 bit support (int/float) support to audioinput example.Michael Goddard2012-08-032-3/+33
| | | | | Change-Id: Ib7160f60af36cdccfe91a620f5555189792c13c4 Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
* QRegion::subtract is deprecatedThiago Macieira2012-08-021-1/+1
| | | | | | | | This code was suspicious. It looks like it was broken, caught by the gotcha that the old API was. Change-Id: Ief9543de3b9fdf18f6b620c9462a75594a4a3903 Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
* QAbstractItemMode::reset() is deprecated, don't use itThiago Macieira2012-08-011-2/+2
| | | | | | | | Instead, use beginResetModel() before the model is reset, and add endResetModel() after it. Change-Id: Ibac3f2207ed999ed9d703266509b3ad91203f28d Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* 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>