platform/upstream/qtmultimedia.git
11 years agoEnable the auto test script to run on OS X
Andy Nichols [Wed, 10 Oct 2012 13:36:19 +0000 (15:36 +0200)]
Enable the auto test script to run on OS X

Only a few test could be run on OS X because they were not stored in an
application bundle.  Now on OS X we check for the application bundle for
a test in the runautotests.py script.

Change-Id: If9e3f343f5005ecfe4a83d8282564d1309b4379e
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: Jason Barron <jason.barron@digia.com>
11 years agoUpdate docs after modularization of docs
Tor Arne Vestbø [Thu, 11 Oct 2012 13:23:49 +0000 (15:23 +0200)]
Update docs after modularization of docs

The global files now live in qtbase only, and are made available to the
other modules via the $QT_INSTALL_DOCS variable.

We now use QMAKE_DOCS to trigger doc generation instead of rolling our
own rules for qdoc.

Change-Id: I900029d71c305a1f269cddeeb0e05c524d933834
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoBuild fix after a QVariant change
Jędrzej Nowacki [Wed, 10 Oct 2012 16:43:25 +0000 (18:43 +0200)]
Build fix after a QVariant change

QVariant(Qt::GlobalColor) ctor was removed in Qt5.

Change-Id: If272ff26003cdc58eb3decf5030e927134d126b0
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoFix issue sharing OpenGL context from render thread on OS X
Andy Nichols [Mon, 8 Oct 2012 15:37:44 +0000 (17:37 +0200)]
Fix issue sharing OpenGL context from render thread on OS X

On OS X when running in QtQuick 2 examples in debug mode we fail an
assert because we try to set a dynamic property using
QObject::setProperty from the render thread, while the object exists in
the main thread.  Now we call setProperty from the correct thread.

Change-Id: I3f26ead0f68fadcded472bf5c9014a4025f0a03e
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Reviewed-by: Jason Barron <jason.barron@digia.com>
11 years agoAdded config test for AVFoundation framework
Andy Nichols [Fri, 17 Aug 2012 01:19:17 +0000 (11:19 +1000)]
Added config test for AVFoundation framework

Change-Id: Ifd152513074e6b7802a3ed6d4722ba78762ec79c
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoFixed AVF camera backend build with namespaced Qt
Dmytro Poplavskiy [Tue, 28 Aug 2012 03:47:30 +0000 (13:47 +1000)]
Fixed AVF camera backend build with namespaced Qt

Objective-C declarations may only appear in global
scope, moved them out of Qt namespace

Change-Id: Icb136be75f544e5929ac28f0ba0681211b81a983
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoExport QAudioHelperInternal symbols
Kevin Ottens [Thu, 30 Aug 2012 13:41:34 +0000 (15:41 +0200)]
Export QAudioHelperInternal symbols

They can be useful to some of the audio plugins.

Change-Id: I10856c104770ed57c72b674829e3922b5067a822
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
11 years agoDon't add the beginning of the file to the end of the last period
Kevin Ottens [Thu, 30 Aug 2012 13:43:13 +0000 (15:43 +0200)]
Don't add the beginning of the file to the end of the last period

If we're in the last loop, it is not necessary to provide a full period
on read. Just provide the remaining of the data and hit the end of the
stream by returning less than requested, otherwise we potentially
generate some garbage noise.

Change-Id: I9d3a632ddc0c3289957c9f876d5dbe2999b50ebd
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
11 years agoBlackberry: Move the mediaservice plugin in a subdirectory
Kevin Ottens [Mon, 13 Aug 2012 14:39:09 +0000 (16:39 +0200)]
Blackberry: Move the mediaservice plugin in a subdirectory

Move the current platform plugin content in a subdir in order to make
room for several plugins (at least an extra one will be needed for the
audio type).

Change-Id: If17d6a464e36014fbefda52ddb0e8f8a58697f48
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
11 years agoDoc: Added Qt Multimedia to 'qmlmodules' group
Jerome Pasion [Wed, 3 Oct 2012 14:24:48 +0000 (16:24 +0200)]
Doc: Added Qt Multimedia to 'qmlmodules' group

-'qmlmodules' contains Qt's QML API
-made brief description consistent with other QML API

Change-Id: I30473048b06e2a4e13deb57c394a12c51a11693b
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoUse QVideoGraphicsItem in the videographicsitem example.
Yoann Lopes [Mon, 1 Oct 2012 15:50:55 +0000 (17:50 +0200)]
Use QVideoGraphicsItem in the videographicsitem example.

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>
11 years agoQVideoWidget: fixed setFullScreen(false) on the Xcb platform.
Yoann Lopes [Fri, 28 Sep 2012 15:53:11 +0000 (17:53 +0200)]
QVideoWidget: fixed setFullScreen(false) on the Xcb platform.

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>
11 years agoDoc: Organized related information in subsections
Venugopal Shivashankar [Fri, 28 Sep 2012 10:00:27 +0000 (12:00 +0200)]
Doc: Organized related information in subsections

Change-Id: Iabe4a032d998003b659e298c3d602d68d83de8b1
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoAdd missing QT_{BEGIN,END}_NAMESPACE
Sergio Ahumada [Thu, 27 Sep 2012 09:33:42 +0000 (11:33 +0200)]
Add missing QT_{BEGIN,END}_NAMESPACE

Change-Id: I85bbd4f711191c14d6f58f098fced7336c66308f
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
11 years agoDoc: Moved example documentation and images
Venugopal Shivashankar [Wed, 26 Sep 2012 15:12:01 +0000 (17:12 +0200)]
Doc: Moved example documentation and images

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>
11 years agoUse QVideoWidget in the videowidget example.
Yoann Lopes [Tue, 25 Sep 2012 14:58:44 +0000 (16:58 +0200)]
Use QVideoWidget in the videowidget example.

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>
11 years agoDoc: Adding documentation templates from qtbase
Jerome Pasion [Fri, 21 Sep 2012 12:20:50 +0000 (14:20 +0200)]
Doc: Adding documentation templates from qtbase

Task-number: QTBUG-27293
Change-Id: I86ca7bbb5bb2899617f3a2afb56183110666f71a
Reviewed-by: Martin Smith <martin.smith@digia.com>
11 years agoChange copyrights from Nokia to Digia
Iikka Eklund [Mon, 24 Sep 2012 05:27:03 +0000 (08:27 +0300)]
Change copyrights from Nokia to Digia

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>
11 years agoFix missing internal module in sync.profile
Andy Nichols [Sun, 23 Sep 2012 12:36:51 +0000 (14:36 +0200)]
Fix missing internal module in sync.profile

Build was broken for shadow builds because qtmultimediaquicktools
was not listed in sync.profile

Change-Id: If9d23906dbd37b651a545ae810ee9883b6a23348
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoFix gstreamer plugin build for platforms with qreal -> float
Romain Pokrzywka [Thu, 13 Sep 2012 18:17:23 +0000 (11:17 -0700)]
Fix gstreamer plugin build for platforms with qreal -> float

simple case of qFuzzyCompare with double and float.
I kept m_volume as double rather than changing it to float, to mimic
the behavior of the mute variable.

Change-Id: Ife2f58f60738215ebd430ba94bef885c09994e72
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@gmail.com>
11 years agoDoc: Updated landing page to be consistent with other module landing pages
Venugopal Shivashankar [Thu, 6 Sep 2012 15:41:54 +0000 (17:41 +0200)]
Doc: Updated landing page to be consistent with other module landing pages

Change-Id: Ib230a7c01f2573b08f0a505fb0ada80d01757ba7
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
11 years agoDoc: Removed the unnecessary \annotatedlist command to avoid duplication
Venugopal Shivashankar [Tue, 11 Sep 2012 14:20:55 +0000 (16:20 +0200)]
Doc: Removed the unnecessary \annotatedlist command to avoid duplication

Change-Id: I5b1b42ed2b94735ff758e0e93e8df8eb5ab73a0f
Reviewed-by: Martin Smith <martin.smith@nokia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
11 years agoremove usage of QT_MAKEDLL from QtMultimedia
Joerg Bornemann [Mon, 10 Sep 2012 15:11:07 +0000 (17:11 +0200)]
remove usage of QT_MAKEDLL from QtMultimedia

Change-Id: Ie427497c999c6d8d666b21cc5cc079036c505cc6
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoremove references to qMemSet & qMemCopy
Oswald Buddenhagen [Tue, 11 Sep 2012 11:03:14 +0000 (13:03 +0200)]
remove references to qMemSet & qMemCopy

Change-Id: Ie6e24798368305fb1eaa01d0e5fccdb5bb5aa33b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agocentralize load(qt_build_config)s in .qmake.conf
Oswald Buddenhagen [Mon, 3 Sep 2012 10:10:27 +0000 (12:10 +0200)]
centralize load(qt_build_config)s in .qmake.conf

Change-Id: Ie07a32729ec8679f799613f8f6ccdd9c1b6bf7c9
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agoFix compilation after the qreal->float change in Math3D
Thiago Macieira [Wed, 12 Sep 2012 10:29:25 +0000 (12:29 +0200)]
Fix compilation after the qreal->float change in Math3D

QVector3D::length() returns float now, so this qBound call was running
into template substitution failure.

Change-Id: Ib03ab96bf18a4b04fa80a8f706761329faab2541
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
11 years agoBlackberry: Add Q_DECL_OVERRIDE keywords
Thomas McGuire [Wed, 5 Sep 2012 11:34:03 +0000 (13:34 +0200)]
Blackberry: Add Q_DECL_OVERRIDE keywords

Change-Id: Ibd6cf76ac41e16cbf65182994d68eb81c315f0af
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
11 years agoHide the video overlay when the QML element is hidden
Thomas McGuire [Wed, 5 Sep 2012 11:25:03 +0000 (13:25 +0200)]
Hide the video overlay when the QML element is hidden

An display invalid rect is used for invisible QML
items.

Change-Id: Ifb2a25f1c5387ab8cef1359ac6c3e2f90a42cd10
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@gmail.com>
11 years agoBlackberry: Use debug output for errors by default
Thomas McGuire [Wed, 5 Sep 2012 11:45:05 +0000 (13:45 +0200)]
Blackberry: Use debug output for errors by default

This makes diagnosing problems remotely a lot easier.

Change-Id: I23434af5e88fb8dcdb154be34f12276eba652d4f
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
11 years agoWMF Backend: Fix crash in MFPlayerService::releaseControl.
Jason Barron [Tue, 4 Sep 2012 08:47:04 +0000 (10:47 +0200)]
WMF Backend: Fix crash in MFPlayerService::releaseControl.

When releasing a video render control or a video window control, we
were deleting the object pointed to by the 'control' pointer, but
were not setting this pointer to 0 which left it dangling. Shortly
after we tried to cast this dangling pointer to another type which
crashed. The solution is just to return after deleting the control.

Change-Id: I9ab672c8b86a13af889d87c76141e6b8db5b74a7
Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
11 years agoMake compile with -no-widgets
Tasuku Suzuki [Thu, 30 Aug 2012 15:51:20 +0000 (00:51 +0900)]
Make compile with -no-widgets

Change-Id: I6a057950315a1e2084fd6fc130007f865d096f12
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoUpdate the git-archive export options
Thiago Macieira [Wed, 29 Aug 2012 19:40:03 +0000 (21:40 +0200)]
Update the git-archive export options

The .gitattributes and .gitignore files do not need to be present in
packaged sources, as they are for people using the Git repository.
People who download tarballs usually don't reimport into Git -- they
should just download the actual repositories.

Meanwhile, the .tag file is quite useful. Instead of making Git extract
to the useless SHA-1 of the $n string, ask git-archive to store
the SHA-1 of the commit being packaged.

Change-Id: I7f56327b21264dfd32d5d2519ca49aa1453083d2
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoremove useless dependency in qmlvideofx.pro
Tasuku Suzuki [Sat, 1 Sep 2012 06:50:49 +0000 (15:50 +0900)]
remove useless dependency in qmlvideofx.pro

Change-Id: Ie79cc9294f3845c089525195684df4a60171f78c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoDoc: Added an index page and separated \qmlproperty and \property documentation
Venugopal Shivashankar [Thu, 2 Aug 2012 09:17:05 +0000 (11:17 +0200)]
Doc: Added an index page and separated \qmlproperty and \property documentation

Change-Id: I29bcfd0a31c781deb4cce2d6bcb2afca32191ae6
Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
Reviewed-by: Martin Smith <martin.smith@nokia.com>
11 years agoCamera integration test fixes
Dmytro Poplavskiy [Thu, 16 Aug 2012 04:45:46 +0000 (14:45 +1000)]
Camera integration test fixes

Skip the testCtorWithDevice test if camera doesn't
support devices selection;

Allow synchronous camera status changes

Change-Id: I14f4a74f8a92b8dc2f75f8f5df2bcf9c124bda68
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
11 years agoInitial implementation of Mac camera backend
Dmytro Poplavskiy [Fri, 17 Aug 2012 03:44:14 +0000 (13:44 +1000)]
Initial implementation of Mac camera backend

Based on AVFoundation framework

Change-Id: If4cfd105a592f50b42606624548b9ffc870e3e47
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
11 years agoRe-enabled CIImage based gfx video item on Mac
Dmytro Poplavskiy [Thu, 23 Aug 2012 05:59:18 +0000 (15:59 +1000)]
Re-enabled CIImage based gfx video item on Mac

Also prefer CoreImageHandle to GLTextureHandle
in QuickTime player backend, to avoid unnecessary
copy via FBO.

Change-Id: Id5aa039c438378b7bbf816b7845b05574683c471
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
11 years agoUse Qt::WindowFlags, not Qt::WFlags.
Stephen Kelly [Mon, 13 Aug 2012 08:56:18 +0000 (10:56 +0200)]
Use Qt::WindowFlags, not Qt::WFlags.

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>
11 years agomake use of QT_PRIVATE to specify private Qt dependencies
Oswald Buddenhagen [Tue, 7 Aug 2012 17:35:19 +0000 (19:35 +0200)]
make use of QT_PRIVATE to specify private Qt dependencies

Change-Id: I339de1ebc3cde795a3b4a258f3899bd5658a1f54
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agofollow rename of qt_module_config.prf to qt_module.prf
Oswald Buddenhagen [Tue, 7 Aug 2012 17:11:07 +0000 (19:11 +0200)]
follow rename of qt_module_config.prf to qt_module.prf

Change-Id: I6fd02095b9c75952c689b2c55aec9c71b39aadd3
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agoRemove the WA_PaintOnScreen widget attribute for vide widgets
Lars Knoll [Mon, 6 Aug 2012 18:46:55 +0000 (20:46 +0200)]
Remove the WA_PaintOnScreen widget attribute for vide widgets

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>
11 years agoAdded skips to reported bugs in qmediaplayerbackend test
Kurt Korbatits [Mon, 6 Aug 2012 00:46:52 +0000 (10:46 +1000)]
Added skips to reported bugs in qmediaplayerbackend test

- Changed some checks to QTRY's to avoid using qWait's

Change-Id: Ib7fb6fd25170c40969389c9c1b16f4a4e0e7a5e7
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
11 years agoqt_module is deprecated, use qt_build_config
Oswald Buddenhagen [Thu, 2 Aug 2012 20:10:01 +0000 (22:10 +0200)]
qt_module is deprecated, use qt_build_config

Change-Id: Idbc3c1d35b859317ac1128c4dc3754996e816911
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
11 years agoCompile in C++11 mode: the Q_DECLARE_METATYPE must be visible
Thiago Macieira [Wed, 1 Aug 2012 14:19:36 +0000 (16:19 +0200)]
Compile in C++11 mode: the Q_DECLARE_METATYPE must be visible

The error was:
tests/auto/integration/qdeclarativevideooutput/tst_qdeclarativevideooutput.cpp:113:62:   required from here
qmetatype.h:637:5: error: static assertion failed: Type is not registered, please use Q_DECLARE_METATYPE macro to make it know to Qt's meta-object system

Change-Id: Id4e29803de646cbad0d401b1fe0e0b38e458d12f
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
11 years agoChange the way camera format is selected.
Lev Zelenskiy [Tue, 31 Jul 2012 07:20:09 +0000 (17:20 +1000)]
Change the way camera format is selected.

Build list of supported formats before starting directshow graph.
Select first available format supported by both device and surface.
Force DirectShow to do color space conversion instead of using QImage.

Change-Id: I8f946cc7c2693eea0135981e899003b453bd8784
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
11 years agoAdd 32 bit support (int/float) support to audioinput example.
Michael Goddard [Mon, 9 Jul 2012 06:51:50 +0000 (16:51 +1000)]
Add 32 bit support (int/float) support to audioinput example.

Change-Id: Ib7160f60af36cdccfe91a620f5555189792c13c4
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
11 years agoFix some failing QAudioInput integration tests on OSX.
Michael Goddard [Mon, 9 Jul 2012 06:51:16 +0000 (16:51 +1000)]
Fix some failing QAudioInput integration tests on OSX.

This also meant implementing software volume support, and since
this is the last backend to do so, make that interface pure
virtual again.

In some cases the test needed tweaks.

Change-Id: Ie429863f187b43802cdd4f16d841929e0cb0e729
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
11 years agoUse moniker display name for device string.
Lev Zelenskiy [Fri, 27 Jul 2012 01:35:17 +0000 (11:35 +1000)]
Use moniker display name for device string.

Moniker names are unique, while device friendly names are not.

Change-Id: Ic3e842e49d04c502cf5ad1fc40f89db657f0401a
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
11 years agoAdded check to qsound and qsoundeffect unit tests for audio support
Kurt Korbatits [Tue, 31 Jul 2012 00:26:28 +0000 (10:26 +1000)]
Added check to qsound and qsoundeffect unit tests for audio support

- skip tests if QSoundEffect::supportedMimeTypes() returns empty list

Change-Id: I0f8d6f854c46b74f8518c4d969bd31ea167d20b2
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
11 years agoThe qt quick imports are build only if qtdeclarative is present
Corentin Jabot [Sat, 28 Jul 2012 12:31:11 +0000 (14:31 +0200)]
The qt quick imports are build only if qtdeclarative is present

If the declarative module is not present, the qtquick/qml plugins
in the imports directory will not be build

Change-Id: I2393b8302f75cbb94d3a85bd70f575817a0a3c34
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
11 years agoAdd a missing include for Q_MULTIMEDIA_EXPORT
Thiago Macieira [Wed, 1 Aug 2012 14:06:18 +0000 (16:06 +0200)]
Add a missing include for Q_MULTIMEDIA_EXPORT

The macro is gone from qglobal.h.

Change-Id: I41c66f61f47ec9e824c3637c7748796df2309d66
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
11 years agoUse QStandardPaths instead of QDesktopServices
Thiago Macieira [Wed, 1 Aug 2012 14:08:24 +0000 (16:08 +0200)]
Use QStandardPaths instead of QDesktopServices

The use of QDesktopServices for getting paths is deprecated in favour
of QStandardPaths.

Change-Id: I93c4a15dd65962d668c90e78f3f33f357e2450bb
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
11 years agoQRegion::subtract is deprecated
Thiago Macieira [Wed, 1 Aug 2012 14:17:37 +0000 (16:17 +0200)]
QRegion::subtract is deprecated

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>
11 years agoSet the Qt API level to compatibility mode in all tests.
Thiago Macieira [Wed, 1 Aug 2012 14:35:23 +0000 (16:35 +0200)]
Set the Qt API level to compatibility mode in all tests.

Qt 5.0 beta requires changing the default to the 5.0 API, disabling
the deprecated code. However, tests should test (and often do) the
compatibility API too, so turn it back on.

Task-number: QTBUG-25053
Change-Id: I9589f57998af237f2e89c7799789dae5a13ef634
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoQAbstractItemMode::reset() is deprecated, don't use it
Thiago Macieira [Wed, 1 Aug 2012 14:33:03 +0000 (16:33 +0200)]
QAbstractItemMode::reset() is deprecated, don't use it

Instead, use beginResetModel() before the model is reset, and add
endResetModel() after it.

Change-Id: Ibac3f2207ed999ed9d703266509b3ad91203f28d
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoBlackberry: Assert that we are in detached state
Thomas McGuire [Mon, 30 Jul 2012 13:27:18 +0000 (15:27 +0200)]
Blackberry: Assert that we are in detached state

Change-Id: I744d542374c72318b548407cd3da084449822e92
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
12 years agoBlackberry: Fix spurious position udpates in playlists
Thomas McGuire [Fri, 27 Jul 2012 11:19:11 +0000 (13:19 +0200)]
Blackberry: Fix spurious position udpates in playlists

Change-Id: I2652cab793034e55a4eb7e52bb534c22983d9517
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
12 years agoBlackberry: Fix playlists not advancing to the next track.
Thomas McGuire [Fri, 27 Jul 2012 09:02:29 +0000 (11:02 +0200)]
Blackberry: Fix playlists not advancing to the next track.

The playlist watches for state changes to the EndOfMedia state, which
wasn't used in the plugin yet.

Change-Id: Ib2a014177df2273cd46baaef1392a73e54daf06c
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
12 years agoBlackberry: Fix playback from certain URLs
Thomas McGuire [Thu, 26 Jul 2012 14:06:17 +0000 (16:06 +0200)]
Blackberry: Fix playback from certain URLs

Previously, playback from URLs of the form "file:path/to/file" did not
work.

Change-Id: Iecd293d09f7c448438dbf259710c0aab218c2591
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
12 years agoFixed: use selected audio input device.
Lev Zelenskiy [Mon, 30 Jul 2012 02:08:00 +0000 (12:08 +1000)]
Fixed: use selected audio input device.

Change-Id: I6bde75bff93160169f9c28ad658db40b03c266f4
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAudio probes for AudioCapture plugin.
Lev Zelenskiy [Mon, 30 Jul 2012 03:06:47 +0000 (13:06 +1000)]
Audio probes for AudioCapture plugin.

Change-Id: Iea37d455ee53c9d055af4f9ca62d8a9ea241d31f
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoFix a few header style violations.
Michael Goddard [Fri, 27 Jul 2012 04:41:52 +0000 (14:41 +1000)]
Fix a few header style violations.

Missing Q_MODULE or using moc keywords.

Change-Id: I3cb21799488c6f57c45d8e32862a49fadd083b99
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoBlackberry: Fix case of setting multiple media files
Thomas McGuire [Thu, 26 Jul 2012 14:02:57 +0000 (16:02 +0200)]
Blackberry: Fix case of setting multiple media files

Abort the singleshot timer when the media is changed, as otherwise
continueLoadMedia() was called multiple times.
Also, don't use a singleshot timer when setting a null media.

Change-Id: I19d4838c9c70e7fcaa790c223cb19ac3e0246e6b
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
12 years agoBlackberry: Fix metadata reader for more recent OS versions
Thomas McGuire [Fri, 27 Jul 2012 09:37:31 +0000 (11:37 +0200)]
Blackberry: Fix metadata reader for more recent OS versions

Change-Id: I33dae07736eb071f9db3e08c5342921a655ddd57
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
12 years agoDoc: Changed \qmlclass to \qmltype and added \instantiates
Jerome Pasion [Fri, 27 Jul 2012 12:51:00 +0000 (14:51 +0200)]
Doc: Changed \qmlclass to \qmltype and added \instantiates

-New qdoc command \qmltype replaces \qmlclass
-\instantiates <C++ class> for determining if the QML type has a C++
implementation

Change-Id: I83d1e2c3f376f96ea51afedadf88c3cf478e33d8
Reviewed-by: Martin Smith <martin.smith@nokia.com>
12 years agoReplace QSoundEffect backend using qmedia with qaudiooutput implementation
Kurt Korbatits [Wed, 18 Jul 2012 05:39:20 +0000 (15:39 +1000)]
Replace QSoundEffect backend using qmedia with qaudiooutput implementation

- Use backend built on QAudioOutput
- Fixed unit test so backend will pass

Change-Id: I2f2a7d8bf382127c5a5c333d6e36c79169754b4e
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
12 years agoFixed QDoc errors related to snippets and quotefromfile commands
Venugopal Shivashankar [Wed, 25 Jul 2012 13:17:28 +0000 (15:17 +0200)]
Fixed QDoc errors related to snippets and quotefromfile commands

Change-Id: I9dd6381eb95dcbd9aa5cc8f596d87cf55eee7427
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
12 years agoAdded data driven integration tests for qaudioinput.
Mylione Anadarajah [Tue, 17 Jul 2012 09:15:13 +0000 (19:15 +1000)]
Added data driven integration tests for qaudioinput.

Change-Id: I42256833173e9ca94931ff35210802457d407e39
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoVolume control for QAudioInput windows backend.
Lev Zelenskiy [Wed, 25 Jul 2012 03:23:57 +0000 (13:23 +1000)]
Volume control for QAudioInput windows backend.

Change-Id: I1245a38c68254fc48373a856dc44e8ad8142636e
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoAdded check to alsa backend for QAudioOutput
Kurt Korbatits [Wed, 25 Jul 2012 02:28:23 +0000 (12:28 +1000)]
Added check to alsa backend for QAudioOutput

- Was asserting when stop() called when in IdleState

Change-Id: Ib8a5bd149c0b9c700c709520cf8ffdd237e08694
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
12 years agoFix compile failure in qmediaplayer unit test
Kurt Korbatits [Wed, 25 Jul 2012 21:46:46 +0000 (07:46 +1000)]
Fix compile failure in qmediaplayer unit test

Change-Id: Ic8342f536b16c55c79e4ff792634d5d1a03e3a9a
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
12 years agoMoved doc under src to fall in-line with the new modular structure
Venugopal Shivashankar [Thu, 19 Jul 2012 13:44:36 +0000 (15:44 +0200)]
Moved doc under src to fall in-line with the new modular structure

Change-Id: Ia2933baa1f0eaf82b5c2a626cb3661ee087049e3
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
12 years agoMoved the C++ module page from qtdoc
Venugopal Shivashankar [Fri, 20 Jul 2012 09:47:11 +0000 (11:47 +0200)]
Moved the C++ module page from qtdoc

Change-Id: Ib4b3dbe48053532abc31d294f328d21e01047bb5
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoQtMultiMedia/Tests: Fix MSVC2012 warning about overload.
Friedemann Kleint [Tue, 24 Jul 2012 12:53:25 +0000 (14:53 +0200)]
QtMultiMedia/Tests: Fix MSVC2012 warning about overload.

warning C4373: 'MockVideoSurface::supportedPixelFormats': virtual function
overrides 'QAbstractVideoSurface::supportedPixelFormats', previous versions
of the compiler did not override when parameters only differed by
const/volatile qualifiers.

Change-Id: I87701ce0a2db3d4a0ec0a98980ad231f352a2ab2
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix compilation issue with MinGW (disables the usage of strsafe.h).
Lukas Geyer [Tue, 24 Jul 2012 11:12:45 +0000 (13:12 +0200)]
Fix compilation issue with MinGW (disables the usage of strsafe.h).

Recent versions of MinGW include strsafe.h in dshow.h.
strsafe.h undefines all non-safe string functions, including
vsprintf and others, to prevent their usage. This causes
QString and others to fail. Defining NO_DSHOW_STRSAFE before
including dshow.h prevents this behaviour.

Change-Id: I012fecbabc5c11900486c1dfdc970a00613ef6f7
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoQtMultimedia: Remove usages of qWaitForWindowShown(QWidget *).
Friedemann Kleint [Tue, 24 Jul 2012 13:08:50 +0000 (15:08 +0200)]
QtMultimedia: Remove usages of qWaitForWindowShown(QWidget *).

Change-Id: I7a2869c381da133b72b1721838a458cdbf058b0d
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoMark QtMultimediaQuickTools library as internal.
Stephen Kelly [Mon, 23 Jul 2012 07:34:14 +0000 (09:34 +0200)]
Mark QtMultimediaQuickTools library as internal.

It does not install useful public headers (and those that it does
install are installed to QtMultimediaQuick_p).

This causes the avoidance of creation of CMake files.

Change-Id: I7360f9c8e4b203ce0573c1cbfcc87d326e8f0d2f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoAdd the CMake directory created during unit testing to .gitignore.
Stephen Kelly [Mon, 23 Jul 2012 07:58:26 +0000 (09:58 +0200)]
Add the CMake directory created during unit testing to .gitignore.

Change-Id: I98a8c1a1231c558b75fd02419237546face4dfcf
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
12 years agoBlackberry: Compile with lastest event filter API changes
Thomas McGuire [Mon, 23 Jul 2012 09:17:42 +0000 (11:17 +0200)]
Blackberry: Compile with lastest event filter API changes

Change-Id: I4eb7ddf050cd8ef34df4547482f53f7372584221
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: David Faure <faure@kde.org>
12 years agoReplaced endpoint control with audio input and output controls
Dmytro Poplavskiy [Mon, 16 Jul 2012 01:28:02 +0000 (11:28 +1000)]
Replaced endpoint control with audio input and output controls

Change-Id: I981aabe39d106ced4ee1240db9e5b653c6fa5e91
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed docs for QAudioInput::bufferSize and setBufferSize
Ali Akhtarzada [Mon, 23 Jul 2012 11:16:56 +0000 (13:16 +0200)]
Fixed docs for QAudioInput::bufferSize and setBufferSize

Change milliseconds to bytes

Task-number: QTBUG-26600

Change-Id: I861ae9c35ddc52d58ed95a2148f72d6476f35522
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed the QDoc errors related to \qmlproperty usage
Venugopal Shivashankar [Thu, 19 Jul 2012 13:41:31 +0000 (15:41 +0200)]
Fixed the QDoc errors related to \qmlproperty usage

Change-Id: Ie4d5f8698fe8a1a774fd8f0bb127c20fc63a14e3
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRemoved QEXPECT_FAIL for non reproducible showFullScreen bug on Mac
Dmytro Poplavskiy [Tue, 24 Jul 2012 02:50:40 +0000 (12:50 +1000)]
Removed QEXPECT_FAIL for non reproducible showFullScreen bug on Mac

Task-number: QTBUG-25310

Change-Id: If5786340386de5f6664ccfa45439858d209a45ba
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoTest that the package configs for QtMultimedia work.
Stephen Kelly [Thu, 19 Jul 2012 14:15:13 +0000 (16:15 +0200)]
Test that the package configs for QtMultimedia work.

Change-Id: I17bbc52d6ab98cef4da6c56bfaa306a154a5aba2
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoAdded volume property to QMediaRecorder
Dmytro Poplavskiy [Mon, 21 May 2012 02:09:50 +0000 (12:09 +1000)]
Added volume property to QMediaRecorder

Change-Id: I19f727107651c9f640ca1c010a3764f05aef8820
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoPorted QML camera example to QtQuick 2.0 and QtMultimedia 5.0
Dmytro Poplavskiy [Mon, 16 Jul 2012 06:40:57 +0000 (16:40 +1000)]
Ported QML camera example to QtQuick 2.0 and QtMultimedia 5.0

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>
12 years agoGst player backend: removed fifo based stream playback fallback
Dmytro Poplavskiy [Thu, 19 Jul 2012 05:40:42 +0000 (15:40 +1000)]
Gst player backend: removed fifo based stream playback fallback

It was used on systems without appsrc element support,
but since the appsrc is part of base elements for a long,
thre is a very little value in fifo based fallback.

Change-Id: I162233cbb55821443c892f00ebd29c0498ae7152
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRemoved the playbackStateChanged signal from Video element
Dmytro Poplavskiy [Thu, 19 Jul 2012 04:12:05 +0000 (14:12 +1000)]
Removed the playbackStateChanged signal from Video element

It conflicts with Video.playbackState property notifications

Change-Id: I47901547e9db6f2b71e25c05ca8ce24c402eb5a2
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoPlayer example histogram: Process frames on a separate thread
Lev Zelenskiy [Thu, 19 Jul 2012 04:55:52 +0000 (14:55 +1000)]
Player example histogram: Process frames on a separate thread

Change-Id: I6989f9ea9cb6e45c54ed75079a5b5748e15ee0d8
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoVideoprobe implementation for wmf backend.
Lev Zelenskiy [Thu, 19 Jul 2012 04:38:45 +0000 (14:38 +1000)]
Videoprobe implementation for wmf backend.

Change-Id: Ia597af428764229a76c0059ae7a57eb302aee63d
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded base and soundeffect test
Kurt Korbatits [Tue, 17 Jul 2012 03:32:54 +0000 (13:32 +1000)]
Added base and soundeffect test

Change-Id: I50527c75e5e25d897ddf192bfdc34de62dd56127
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
12 years agoAdded an audio recording system test
dakovaci [Tue, 3 Jul 2012 06:31:31 +0000 (16:31 +1000)]
Added an audio recording system test

Added a systemtest for audio recording

Change-Id: Ie4af8145702f29b04c1e62184a9667b54123b8c6
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
12 years agoFix QQuickCanvas renames.
Toby Tomkins [Wed, 18 Jul 2012 03:01:34 +0000 (13:01 +1000)]
Fix QQuickCanvas renames.

This is required because of name changes to QtDeclarative in the commit
feb996e3ab44e68082c97102556ea396f5df3f44.

Change-Id: Ia40b1ea1cf3b3cb5225b7678077b627b74c47132
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoAdded data driven integration tests for qaudiooutput.
Mylione Anadarajah [Mon, 16 Jul 2012 06:13:48 +0000 (16:13 +1000)]
Added data driven integration tests for qaudiooutput.

Change-Id: Ifde39817405557b073fbe60d612d01f48b9ec3ed
Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded volume control for QAudioOutput & QAudioInput (alsa)
Kurt Korbatits [Thu, 5 Jul 2012 23:56:38 +0000 (09:56 +1000)]
Added volume control for QAudioOutput & QAudioInput (alsa)

QTBUG-25454

- Added update to docs on volume control.
- Added internal volume adjustment for alsa implementation.
- Enabled float sample option in QAudioDeviceInfo (alsa).

Change-Id: I6b89fc8beb457d71be9ad71b538c86a008570f07
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
12 years agoFix some QAudioInput errors on OSX.
Michael Goddard [Mon, 9 Jul 2012 06:49:03 +0000 (16:49 +1000)]
Fix some QAudioInput errors on OSX.

Default buffer size wasn't always calculated correctly, and the timer
used in push mode was sometimes incorrect.

Change-Id: Ic31b9d16e16e4c25a5ebfc302590829e179a96bf
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoApply insignificant flag to platform that is actually unstable.
Toby Tomkins [Thu, 12 Jul 2012 02:44:01 +0000 (12:44 +1000)]
Apply insignificant flag to platform that is actually unstable.

Change-Id: Ib0acc0413f3dcc5194dc5d93b071b3bb22b9eef9
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix for broken QML multimedia import on windows
Mithra Pattison [Wed, 11 Jul 2012 03:37:27 +0000 (13:37 +1000)]
Fix for broken QML multimedia import on windows

Changed qtmultimediaquicktools into a module so that it gets installed
to the bin directory. This allows the declarative_multimedia library
to locate it during the 'import multimedia' process.

Task-number: QTBUG-25984

Change-Id: I559469170bc713fb31633917bcbc210f862660cf
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoUpdate example QML to follow API change
Mithra Pattison [Fri, 13 Jul 2012 03:30:27 +0000 (13:30 +1000)]
Update example QML to follow API change

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>
12 years agoCamerabin camera service: configure default video settings
Dmytro Poplavskiy [Fri, 13 Jul 2012 01:12:06 +0000 (11:12 +1000)]
Camerabin camera service: configure default video settings

encodebin doesn't like the encoding profile with ANY
container caps, if container and codecs are not specified
try to find a commonly used supported combination

Change-Id: Icbde042bd17d9682112fb8bbb8f0d506f6ddebe1
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>