platform/upstream/qtmultimedia.git
12 years agoQtMultimedia: Remove qpa-sections from .profiles.
Friedemann Kleint [Fri, 28 Oct 2011 07:09:59 +0000 (09:09 +0200)]
QtMultimedia: Remove qpa-sections from .profiles.

Prepare for removal of the -qpa configure option.

Change-Id: Ibf4be58231d29cd972eb765f32b410e1eb9d7fed
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoFix logic in QAudioDeviceInfoInternal::updateLists()
Kent Hansen [Wed, 5 Oct 2011 12:20:22 +0000 (14:20 +0200)]
Fix logic in QAudioDeviceInfoInternal::updateLists()

Task-number: QTBUG-20482

Change-Id: I0dd59a0388965726eb8cfd36a8549250916d999a
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRemove the last bits of QtMultimediaKit (*).
Michael Goddard [Thu, 27 Oct 2011 00:45:13 +0000 (10:45 +1000)]
Remove the last bits of QtMultimediaKit (*).

Except a comment about it in the module overview.

Change-Id: I22d9111d7917d1a3259ee1e525fd52501733454e
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoUse deleteLater when called on a decoder error.
Michael Goddard [Wed, 26 Oct 2011 05:33:16 +0000 (15:33 +1000)]
Use deleteLater when called on a decoder error.

Since we cleanup the decoder itself, it can crash when the stack
unwinds back into the decoder code.  Similarly on a network error.

Change-Id: Ice36a3008359565f186406945973747b3134d296
Reviewed-by: Ling Hu <ling.hu@nokia.com>
(cherry picked from commit fb10bcf6cea520e1c43a77b6b88cf01ae9dc74ad)

12 years agoMerge remote branch 'qtmultimedia.git/master'
Michael Goddard [Wed, 26 Oct 2011 00:33:50 +0000 (10:33 +1000)]
Merge remote branch 'qtmultimedia.git/master'

This replaces the qtmultimedia.git contents with qtmultimediakit.git's
contents (as a merge with -s ours, when run against qtmmk).

Change-Id: I940f84fb09285eb7e37d0aaac07ccc4f3165b04f

12 years agoFix config.test
Michael Goddard [Tue, 25 Oct 2011 05:03:11 +0000 (15:03 +1000)]
Fix config.test

Using "this" in non member function, oops.

Change-Id: I7cda3eea755099af2ff2df7b777e3e228e53e325
Reviewed-by: Sergey Dubitskiy <sergey.dubitskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoDon't ignore debug plugins on Mac when release plugins aren't available
Rohan McGovern [Tue, 25 Oct 2011 01:05:20 +0000 (11:05 +1000)]
Don't ignore debug plugins on Mac when release plugins aren't available

Previously, we unconditionally ignored any plugins whose names ended
with _debug.dylib.  This makes the mediaservice plugins unusable on Mac
if Qt is configured to build plugins as debug-only (which is
incidentally the default).

Change-Id: I5a8981b2251e803fa233b74c968f6eaa452d367c
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoWe already have a mock backend.
Michael Goddard [Tue, 25 Oct 2011 03:51:32 +0000 (13:51 +1000)]
We already have a mock backend.

Change-Id: Ic4f9277c4c4bff225ac6cd70d28b495a42435e35
Reviewed-by: Sergey Dubitskiy <sergey.dubitskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoDeclare these metatypes.
Michael Goddard [Tue, 25 Oct 2011 02:57:05 +0000 (12:57 +1000)]
Declare these metatypes.

Change-Id: I5b10669f2b17f67d95469dc28e99822d7f08280c
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoAdapt to QtDeclarative api renaming (QSG --> QQuick)
Kent Hansen [Thu, 20 Oct 2011 06:37:39 +0000 (08:37 +0200)]
Adapt to QtDeclarative api renaming (QSG --> QQuick)

Change-Id: Iefee24c6262679263caef1976d0d9af541834ea0
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed compile; QDesktopServices -> QStandardPaths
Rohan McGovern [Mon, 24 Oct 2011 03:04:56 +0000 (13:04 +1000)]
Fixed compile; QDesktopServices -> QStandardPaths

Broken by qtbase dfa24768a3243eda68d91f573050bf23f96da2dd.

Change-Id: Ie0d79eaee5c6fedfaacae69800f6aec9190f83db
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded RDS functionality to the QRadioTuner/QDeclarativeRadio
Sami Nurmenniemi [Tue, 11 Oct 2011 06:06:12 +0000 (09:06 +0300)]
Added RDS functionality to the QRadioTuner/QDeclarativeRadio

Change-Id: I865e3caba82977002cf1f01f1d64ee0a42de77c6
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoLimit the sequential bytes skipping to a max 16kB at a time.
Michael Goddard [Fri, 21 Oct 2011 01:32:21 +0000 (11:32 +1000)]
Limit the sequential bytes skipping to a max 16kB at a time.

Otherwise QIODevice::read will try and allocate whatever junk is
passed in, so a corrupt chunk can result in 1GB+ allocations which
are never actually used.

Change-Id: I1ea4a5c1a5d21b1ee6f7e428105c52c0ee6ca7f7
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoFix debug output test - type is qreal, so can be float or double.
Michael Goddard [Fri, 21 Oct 2011 01:16:26 +0000 (11:16 +1000)]
Fix debug output test - type is qreal, so can be float or double.

Change-Id: Ica34e3076b186c4e4af4492722c1fe00445d3184
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdded testcase to qcamerabackend test CONFIG
Dmytro Poplavskiy [Thu, 20 Oct 2011 04:04:36 +0000 (14:04 +1000)]
Added testcase to qcamerabackend test CONFIG

To ensure the test case is installed.

Change-Id: I959a1d73e3d8c913c4f15bb9e12b663ca4fb0343
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoFixed build problems with Quicktime
Jonas Rabbe [Thu, 20 Oct 2011 02:45:28 +0000 (12:45 +1000)]
Fixed build problems with Quicktime

Because the Q_WS_* defines were removed, the Quicktime backend
stopped working. Replacing them with Q_OS_* works. Additionally,
the Quicktimer Player Service has to depend on QtWidgets.

Change-Id: I687b352191c38a91edaaf2a687ac13ed118fcf88
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoDoc: Add ability to generate documentation for the module.
Jerome Pasion [Wed, 12 Oct 2011 13:21:24 +0000 (15:21 +0200)]
Doc: Add ability to generate documentation for the module.

-Added targets so that "make docs" will generate the
documentation.

Change-Id: I16a74d7e15e12df16570f110c7e67a110d53afad
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoInit mediaobject at classBegin rather than componentComplete
Ling Hu [Fri, 14 Oct 2011 00:36:49 +0000 (10:36 +1000)]
Init mediaobject at classBegin rather than componentComplete

Since we use an explicit backgroundaudio class,
there is no need to wait for other property to determine
the mediaobject type. So it is better to init the mediaobject
at classBegin to prevent being accessed before mediaobject initialized.

Change-Id: Ia55b8b4c1ab70cc0acbf6f49bcb3e20bdb813a88
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoMake the C++ API of QSoundEffect public.
Michael Goddard [Mon, 17 Oct 2011 02:12:43 +0000 (12:12 +1000)]
Make the C++ API of QSoundEffect public.

The QML API already was.  The C++ API still needs good documentation,
though.

Change-Id: I669f5ec7dd17d616788d71d77dc906acc0c0279f
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoDeclarative VideoOutput: added support for more rgb formats.
Dmytro Poplavskiy [Fri, 14 Oct 2011 02:36:18 +0000 (12:36 +1000)]
Declarative VideoOutput: added support for more rgb formats.

RGB 565, RGB 32 and BGR 32 formats added,
all of them supported with OpenGL ES.

Change-Id: I026628611c59575af5934bac0a5f95dfbc6770cb
Reviewed-on: http://codereview.qt-project.org/6644
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoCopied ALSA config test into QtMultimedia module
Jonas Rabbe [Fri, 14 Oct 2011 02:49:25 +0000 (12:49 +1000)]
Copied ALSA config test into QtMultimedia module

The config test which still exists in QtBase should be removed at a
later date, together with pulseaudio and gstreamer config tests.

Change-Id: I4bea45ab69d1bac10814fc60ecf24dbc859b0f20
Reviewed-on: http://codereview.qt-project.org/6643
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMake sure this library gets installed.
Michael Goddard [Fri, 14 Oct 2011 01:49:41 +0000 (11:49 +1000)]
Make sure this library gets installed.

Change-Id: I6b556b3b22deae002d2d2cf47680f23e207b5d00
Reviewed-on: http://codereview.qt-project.org/6639
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoFix qwavedecoder test data deployment on device
Kalle Juhani Lehtonen [Thu, 13 Oct 2011 07:16:51 +0000 (17:16 +1000)]
Fix qwavedecoder test data deployment on device

- Device deployment changed to use DEPLOYMENT instead of INSTALLS for
test data files
- Test data deployment target fixed to go under binary
installation directory instead of the build directory

Change-Id: I4b0007f9309767083a4a5dfa6f3dc26f3c36c330
Reviewed-on: http://codereview.qt-project.org/6573
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMultimedia: Compile on Windows.
Friedemann Kleint [Wed, 12 Oct 2011 06:53:21 +0000 (08:53 +0200)]
Multimedia: Compile on Windows.

MSVC is more strict about #include <> and #include "".

Reviewed-by: Ling Hu <ling.hu@nokia.com>
Change-Id: I8973d7b2717d892407ad93785f92a64b05bdb6b5
Reviewed-on: http://codereview.qt-project.org/6134
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoMoved general gstreamer helper classes into separate library.
Jonas Rabbe [Tue, 11 Oct 2011 05:25:36 +0000 (15:25 +1000)]
Moved general gstreamer helper classes into separate library.

Cleaned up configuration of gstreamer with a separate config
test.

Change-Id: I1ec9ee466233687fbcfdc544a12d9fce578e4379
Reviewed-on: http://codereview.qt-project.org/6459
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed a couple of failing auto tests.
Jonas Rabbe [Tue, 11 Oct 2011 21:41:09 +0000 (07:41 +1000)]
Fixed a couple of failing auto tests.

QDeclarativeAudio test is using a fake backend initialised
to a specific volume. The test was testing against a
different volume.

QMediaPlayerWidgets was trying to include QApplication,
but from the wrong place and was not including QtWidgets
module.

Change-Id: I5ca108a040a4f4bd0d7550268f3a4ef5d790e755
Reviewed-on: http://codereview.qt-project.org/6458
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoTests should not be unconditionally excluded.
Jonas Rabbe [Tue, 11 Oct 2011 05:59:56 +0000 (15:59 +1000)]
Tests should not be unconditionally excluded.

Change-Id: I3910a03e5c2231f91b84b368339948fbca750f28
Reviewed-on: http://codereview.qt-project.org/6399
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdd QNAM tests to wavedecoder as well, to simulate slow sources.
Michael Goddard [Tue, 11 Oct 2011 06:41:05 +0000 (16:41 +1000)]
Add QNAM tests to wavedecoder as well, to simulate slow sources.

Change-Id: Ic65659bfdf72aea2cea5ae97de50a1e661db189b
Reviewed-on: http://codereview.qt-project.org/6404
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoRename the parsing error signal to parsingError.
Michael Goddard [Tue, 11 Oct 2011 06:38:34 +0000 (16:38 +1000)]
Rename the parsing error signal to parsingError.

Refactor the error handling code a little.

Change-Id: I717b3aaacb24660b3f26769f19ac718b73106473
Reviewed-on: http://codereview.qt-project.org/6401
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoFix the wavedecoder a little.
Michael Goddard [Tue, 11 Oct 2011 03:50:50 +0000 (13:50 +1000)]
Fix the wavedecoder a little.

Handle RIFX and corrupted files better.  Update the autotest so that it
is run properly (and copies files properly in shadow build).  Fix the
gendata script to properly create testdata.

Change-Id: I47b705507bebaef54df2835ec767c6b220c64678
Reviewed-on: http://codereview.qt-project.org/6380
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agotests: eliminated usage of qttest_p4.prf
Rohan McGovern [Tue, 11 Oct 2011 03:59:32 +0000 (13:59 +1000)]
tests: eliminated usage of qttest_p4.prf

Change-Id: I45f6c818c9dbdcf37c9f5f382b42da9c69618311
Reviewed-on: http://codereview.qt-project.org/6382
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoonly corrupt 'data' descriptor nothing else
hawcroft [Mon, 10 Oct 2011 04:31:09 +0000 (14:31 +1000)]
only corrupt 'data' descriptor nothing else

Change-Id: I5640d13e8c893152e449d348f8bf6c45b899b44d
Reviewed-on: http://codereview.qt-project.org/6283
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agotests: eliminated usage of qttest_p4.prf
Rohan McGovern [Mon, 10 Oct 2011 04:59:27 +0000 (14:59 +1000)]
tests: eliminated usage of qttest_p4.prf

qttest_p4.prf was added as a convenience for Qt's own autotests in Qt4.
It enables various crufty undocumented magic, of dubious value.
Stop using it, and explicitly enable the things from it which we want.

Change-Id: I3f49fd3b79899eff1d6ad9458143f34419026276
Reviewed-on: http://codereview.qt-project.org/6286
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoAuto test for private class QWaveDecoder
hawcroft [Mon, 10 Oct 2011 03:36:02 +0000 (13:36 +1000)]
Auto test for private class QWaveDecoder

Change-Id: I50ffbc3187ae7d7a7623af3ef7d3fed2975bdbbe
Reviewed-on: http://codereview.qt-project.org/6270
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Sanity-Review: Michael Goddard <michael.goddard@nokia.com>

12 years agobail out in case of missing descriptors
hawcroft [Mon, 10 Oct 2011 03:55:02 +0000 (13:55 +1000)]
bail out in case of missing descriptors

Change-Id: I7c231367a4b5ef2d15fd1a7af2c2a6c1d51c9460
Reviewed-on: http://codereview.qt-project.org/6279
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoImprove video test coverage and debugging output.
Michael Goddard [Fri, 7 Oct 2011 02:03:35 +0000 (12:03 +1000)]
Improve video test coverage and debugging output.

Added a few debug operators for some useful enums, and
added tests for them.  One or two other features not really
tested.

Change-Id: Idffec6ade1d4e05dbf72f3dc47dfc0d01ddddf8b
Reviewed-on: http://codereview.qt-project.org/6201
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoRename QtMultimediaKit to QtMultimedia.
Michael Goddard [Thu, 6 Oct 2011 04:31:58 +0000 (14:31 +1000)]
Rename QtMultimediaKit to QtMultimedia.

There are a few legacy bits left in place so it passes CI, and
then qt5.git etc can be updated.

Change-Id: I6b082e50e6958c72fdabc2974992e16d90dafa3a
Reviewed-on: http://codereview.qt-project.org/5368
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdd a new servicename for background mediaplayer
Ling Hu [Fri, 9 Sep 2011 01:23:37 +0000 (11:23 +1000)]
Add a new servicename for background mediaplayer

Change-Id: I40b3670462f0b865a9e64bd2abd6d6a01db01e80
Reviewed-on: http://codereview.qt-project.org/4492
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoUpdate background audio element to use new service name
Ling Hu [Fri, 9 Sep 2011 01:25:53 +0000 (11:25 +1000)]
Update background audio element to use new service name

Change-Id: I8f0480e4fb40b034f75dcd900f2d440fd0e7610d
Reviewed-on: http://codereview.qt-project.org/4493
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoUpdate audiooutput example with volume slider
hawcroft [Wed, 28 Sep 2011 03:04:18 +0000 (13:04 +1000)]
Update audiooutput example with volume slider

Update example for new volume API

Change-Id: I1b9ccbccc62930549e667f0063b3d76feb23a2ea
Reviewed-on: http://codereview.qt-project.org/5662
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoAdd QAudioOutput volume API and pulseaudio backend implementation.
hawcroft [Wed, 28 Sep 2011 03:20:26 +0000 (13:20 +1000)]
Add QAudioOutput volume API and pulseaudio backend implementation.

Change-Id: I70784e8d17522a23f6467713d58384b30557694b
Reviewed-on: http://codereview.qt-project.org/5663
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoFakeradio: emit signal when scanning aborted
Jonas Rabbe [Tue, 27 Sep 2011 02:25:49 +0000 (12:25 +1000)]
Fakeradio: emit signal when scanning aborted

Patch from Sami Nurmenniemi.

Emits searchingChanged(false)
when scanning is aborted because it was initiated too close to
the limits of the frequency range.

Change-Id: I15a1334c8a7058dd8eb413c2742f8f12aed7bed5
Reviewed-on: http://codereview.qt-project.org/5570
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoGst player backend: don't show the first frame when resuming playback.
Dmytro Poplavskiy [Mon, 29 Aug 2011 06:09:04 +0000 (16:09 +1000)]
Gst player backend: don't show the first frame when resuming playback.

It's necessary to temporarily disable show-preroll-frame of video sink,
load pipeline to paused state, seek to requested position,
and after seeking is finished (position updated) playback is started
with show-preroll-frame restored.

Task-number: MOBILITY-3030
Reviewed-by: Jonas Rabbe
Change-Id: Ide1e6d909dd53f670229c293bc6be496a54e8626
(cherry picked from commit 625cce87e28fc7b5ec8785824affb3129fd3607b)
Reviewed-on: http://codereview.qt-project.org/5500
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoNeeds widgets module to build.
hawcroft [Mon, 26 Sep 2011 04:39:29 +0000 (14:39 +1000)]
Needs widgets module to build.

Change-Id: I95ba0c64843bfcdfc9797c4d818ac17606e4a1d3
Reviewed-on: http://codereview.qt-project.org/5563
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoFix a few QT_BEGIN/END_HEADER pairs.
Michael Goddard [Mon, 26 Sep 2011 07:07:49 +0000 (17:07 +1000)]
Fix a few QT_BEGIN/END_HEADER pairs.

Change-Id: Ie723af34680222b939aeb0179df21d63cec3cf3b
Reviewed-on: http://codereview.qt-project.org/5514
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoRemove QApplication usage - it's in QCoreApplication.
Michael Goddard [Mon, 26 Sep 2011 06:49:20 +0000 (16:49 +1000)]
Remove QApplication usage - it's in QCoreApplication.

Change-Id: I0c1fab0c0eea56f1ecb141d6238acdf2778c82d8
Reviewed-on: http://codereview.qt-project.org/5513
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Sergey Dubitskiy <sergey.dubitskiy@nokia.com>
12 years agoMove the backend specific documentation into a nicer place.
Michael Goddard [Wed, 31 Aug 2011 07:37:58 +0000 (17:37 +1000)]
Move the backend specific documentation into a nicer place.

We really don't need to bore the 99.9% of people who won't care.  And
it's certainly not more important than camera.

Reviewed-by: Derick Hawcroft
(cherry picked from commit 51e3a1bc45ffc2688fcd3949216aedda4c41bf81)

Change-Id: I8add47e42c2c06bf5e16f406604a19531af6901e
Reviewed-on: http://codereview.qt-project.org/5501
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix a playback bug for mediaplayer windows media foundation backend
Ling Hu [Mon, 15 Aug 2011 01:17:23 +0000 (11:17 +1000)]
Fix a playback bug for mediaplayer windows media foundation backend

Task-number:QTMOBILITY-1606

Reviewed-by:Jonas Rabbe
(cherry picked from commit d5426bf52e19c9c6a52837b423f48024979ea076)

Change-Id: Ie7c1c90a8f5a64e77c435ffc1917d8f9638dfff3
Reviewed-on: http://codereview.qt-project.org/5499
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed directshow config test
Gareth Stockwell [Mon, 1 Aug 2011 10:17:29 +0000 (11:17 +0100)]
Fixed directshow config test

In some versions of Microsoft Windows SDK v6.0A, the qedit.h header is
present, but dxtrans.h (which is #included by qedit.h) is missing.

The standard workaround for this issue is already used by
plugins/multimedia/directshow/camera/dscamerasession.h; this commit adds
the same workaround to the config test.

Reviewed-by: Michael Goddard
Reviewed-by: Ling Hu
(cherry picked from commit e3c07dc9dd6a9f7930ca3c61cfd667d816731ce1)

Change-Id: Ia53c4f6b3efc86e2447a39e6d95e7f67d7e46b5d
Reviewed-on: http://codereview.qt-project.org/5498
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed a typo in the WMF backend which caused a compilation failure
Gareth Stockwell [Wed, 27 Jul 2011 12:44:37 +0000 (13:44 +0100)]
Fixed a typo in the WMF backend which caused a compilation failure

Reviewed-by: trustme
(cherry picked from commit 7eab979c41513321518d5e3cea6d142bbf4e58d9)

Change-Id: I9cd5de907867ea6561c568d10c88e3bf5a701509
Reviewed-on: http://codereview.qt-project.org/5496
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agofix a spelling error
Ling Hu [Wed, 27 Jul 2011 07:41:25 +0000 (17:41 +1000)]
fix a spelling error

Change-Id: Ic593f342055a4ff65503bd92236ff2904012d4f4
Reviewed-by:Michael Goddard
(cherry picked from commit d9cd5386f6d9aa1c702424d272d70a0b45a6b9db)
Reviewed-on: http://codereview.qt-project.org/5495
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix config.tests for directshow backend.
Ling Hu [Wed, 27 Jul 2011 00:26:59 +0000 (10:26 +1000)]
Fix config.tests for directshow backend.

directshow camera backend requires header qedit.h(currently removed since Windows SDK v7.0),
so if there is only Windows SDK v7.0, directshow backend should be disabled, since the directshow
mediaplayer will also be replaced by wmf backend.

Change-Id: I0de60fdcb683a57cc0aa3570f769179afc0c581b
Reviewed-by:Michael Goddard
(cherry picked from commit 68d78008f9d1eb82de673b8f4c8e73bdde2150c2)
Reviewed-on: http://codereview.qt-project.org/5494
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix the config.tests for WMF backend.
Ling Hu [Wed, 27 Jul 2011 00:22:19 +0000 (10:22 +1000)]
Fix the config.tests for WMF backend.

Windows SDK v7.0 is required to compile the WMF backend,
so add additional check for MENonFatalError.

Change-Id: I3edb86b8132b8022b30c02ea6289f617aadfc683
Reviewed-by: Michael Goddard
(cherry picked from commit b738126352e5d914ea366b2725b72e2306b39ee2)
Reviewed-on: http://codereview.qt-project.org/5493
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMerge branch 'camera' of ssh://codereview.qt-project.org:29418/qt/qtmultimediakit
Michael Goddard [Mon, 26 Sep 2011 04:17:32 +0000 (14:17 +1000)]
Merge branch 'camera' of ssh://codereview.qt-project.org:29418/qt/qtmultimediakit

Conflicts:
src/imports/multimedia/multimedia.cpp
src/imports/multimedia/multimedia.pro

Change-Id: I9d4bc1aa65f89ac24dd12c1e2c21a02f49913e13

12 years agoMove resource policy usage to a config test.
Michael Goddard [Fri, 23 Sep 2011 07:49:49 +0000 (17:49 +1000)]
Move resource policy usage to a config test.

MeeGo uses this too.

Change-Id: I0b7ec00538289d4a3beea62da08233c0d1eb45a2
Reviewed-on: http://codereview.qt-project.org/5447
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoClean some doc warnings.
Michael Goddard [Thu, 22 Sep 2011 05:03:51 +0000 (15:03 +1000)]
Clean some doc warnings.

Change-Id: I9cadc589a02bbc4804d2d21ab30752af375ef89c
Reviewed-on: http://codereview.qt-project.org/5348
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoAdd QT_BEGIN/END_HEADER things, plus QT_MODULE thing.
Michael Goddard [Thu, 22 Sep 2011 04:27:31 +0000 (14:27 +1000)]
Add QT_BEGIN/END_HEADER things, plus QT_MODULE thing.

Change-Id: I1a5f51a659175cadadcdaf0c4e5e9048f98e64e0
Reviewed-on: http://codereview.qt-project.org/5346
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix widget dependencies for multimediawidget tests and examples.
Gunnar Sletta [Wed, 21 Sep 2011 07:11:43 +0000 (09:11 +0200)]
Fix widget dependencies for multimediawidget tests and examples.

Change-Id: I9c7600ce2cf7980f923ba038ef122b49add24c37
Reviewed-on: http://codereview.qt-project.org/5286
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRemove older QGLContext calls in favour of new QOpenGLContext.
Michael Goddard [Thu, 22 Sep 2011 02:28:40 +0000 (12:28 +1000)]
Remove older QGLContext calls in favour of new QOpenGLContext.

Change-Id: I2669f48ebac5c14f5aaf85135f3d0adbf541d877
Reviewed-on: http://codereview.qt-project.org/5339
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoDon't re-set default properties in MediaBase::componentComplete
Ling Hu [Thu, 8 Sep 2011 07:15:15 +0000 (17:15 +1000)]
Don't re-set default properties in MediaBase::componentComplete

This is to avoid conflicting with state restore from background playback.

Change-Id: Idc5440b55a27bb5c5109717f405591e934bbedbc
Reviewed-on: http://codereview.qt-project.org/4397
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoadd QT+=widgets for tests to run
Gunnar Sletta [Tue, 20 Sep 2011 05:28:19 +0000 (07:28 +0200)]
add QT+=widgets for tests to run

Change-Id: Idccbb5429f1f081d815b4596f0cf0f74c1160f5c
Reviewed-on: http://codereview.qt-project.org/5188
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdded basic radio system tests
dakovaci [Thu, 15 Sep 2011 06:39:19 +0000 (16:39 +1000)]
Added basic radio system tests

Change-Id: I6f3ef3e3c9f1bb851c2d9f9cbad1aea1df77004f
Reviewed-on: http://codereview.qt-project.org/4945
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daron Andrew Edie
12 years agoAdded basic camera system tests
dakovaci [Thu, 15 Sep 2011 06:38:05 +0000 (16:38 +1000)]
Added basic camera system tests

Change-Id: I39cefa9207bf45d57cb735cb1a7335b9153d79ee
Reviewed-on: http://codereview.qt-project.org/4944
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daron Andrew Edie
12 years agoadded basic video system tests
dakovaci [Thu, 15 Sep 2011 06:36:13 +0000 (16:36 +1000)]
added basic video system tests

Change-Id: I89cadef1249296c834c4a612f5885439986ff1dc
Reviewed-on: http://codereview.qt-project.org/4943
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daron Andrew Edie
12 years agoAdded basic audio system tests
dakovaci [Thu, 15 Sep 2011 06:18:11 +0000 (16:18 +1000)]
Added basic audio system tests

Change-Id: Ib3cec8adc4cba80a9e91d6fd90c607e99a197c0c
Reviewed-on: http://codereview.qt-project.org/4942
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
Reviewed-by: Daron Andrew Edie
12 years agoCamerabin backend: fixed compilation without X11
Dmytro Poplavskiy [Wed, 14 Sep 2011 02:31:24 +0000 (12:31 +1000)]
Camerabin backend: fixed compilation without X11

Disable video widget and overlay controls on systems without X11

Change-Id: I0163fa83018b35ba6f0f8221ad3c465506b52d00
Reviewed-on: http://codereview.qt-project.org/4850
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoCompile with refactor
Gunnar Sletta [Wed, 14 Sep 2011 13:35:32 +0000 (15:35 +0200)]
Compile with refactor

Change-Id: I248f811a13ca00ccbf5d342a556d389bca625856
Reviewed-on: http://codereview.qt-project.org/4940
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoBuild fix after refactor
Lasse Holmstedt [Tue, 13 Sep 2011 11:18:52 +0000 (13:18 +0200)]
Build fix after refactor

Change-Id: I2de40846fc7402ddf32259d42a486a74330ff626

12 years agoQML Camera element redesign.
Dmytro Poplavskiy [Thu, 25 Aug 2011 04:05:10 +0000 (14:05 +1000)]
QML Camera element redesign.

Grouped camera properties in a similar way to C++ QCamera API.
Added support for video recording.

Change-Id: I8667dc90878b3e20eda5523ba562f5687bd0932b
Reviewed-on: http://codereview.qt-project.org/3552
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoSplit some of the autotests into widget and non widget parts.
Michael Goddard [Mon, 5 Sep 2011 06:13:46 +0000 (16:13 +1000)]
Split some of the autotests into widget and non widget parts.

Since the tests are mostly not widget based.

Change-Id: Ic3fa4224b19f2a5c710fd4763b5e645252975c1c
Reviewed-on: http://codereview.qt-project.org/4174
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoSilly defs file error.
Michael Goddard [Tue, 6 Sep 2011 01:48:41 +0000 (11:48 +1000)]
Silly defs file error.

Change-Id: Ic4c128b6c410701092848048982a8e82a5c58b88
Reviewed-on: http://codereview.qt.nokia.com/4224
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix some compiler warnings.
Michael Goddard [Mon, 5 Sep 2011 01:24:06 +0000 (11:24 +1000)]
Fix some compiler warnings.

Mostly about deprecated ASCII casts.

Change-Id: I70428913799c15f20a1a5f80be57848e1072e058
Reviewed-on: http://codereview.qt.nokia.com/4158
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoClean up the autotest pro files to remove warnings about private headers
Michael Goddard [Mon, 5 Sep 2011 00:53:41 +0000 (10:53 +1000)]
Clean up the autotest pro files to remove warnings about private headers

Since the tests are bound to a version it's unnecessary.

Change-Id: I7884615179157caa3836face22a4aa431ee5c425
Reviewed-on: http://codereview.qt.nokia.com/4155
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdd background audio element.
Ling Hu [Thu, 25 Aug 2011 07:43:31 +0000 (17:43 +1000)]
Add background audio element.

Change-Id: I64c91beb7219cc148efc606e87e5f6e57b4b55ce
Reviewed-on: http://codereview.qt.nokia.com/3574
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMark a few tests as insignificant on QPA.
Michael Goddard [Fri, 2 Sep 2011 02:40:56 +0000 (12:40 +1000)]
Mark a few tests as insignificant on QPA.

Running with QPA minimal isn't enough for a lot of the video related
tests, and in some cases the backing store code crashes.

Change-Id: I7a09c244fb856397a60c53388b22c3e141737a66
Reviewed-on: http://codereview.qt.nokia.com/4106
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdd QMediaBackgroundPlaybackControl interface
Ling Hu [Thu, 25 Aug 2011 05:50:48 +0000 (15:50 +1000)]
Add QMediaBackgroundPlaybackControl interface

Allows some media service backend to provide the ability to can play media in the background while the application is terminated.

Change-Id: Ia5e751367f6d6ea6847c3c873b45df5f971557e2
Reviewed-on: http://codereview.qt.nokia.com/3561
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded tune up and down methods, and changed name of scan methods.
Jonas Rabbe [Wed, 31 Aug 2011 21:44:46 +0000 (07:44 +1000)]
Added tune up and down methods, and changed name of scan methods.

Instead of requiring developers using the radio API to read the
frequency step, adding it to the current frequency and setting the
new frequency, there has been added tuneUp and tuneDown methods.
Also, the searchBackward and searchForward methods have been renamed
to scanDown and scanUp which seem more logical. And cancelSearch
has become cancelScan.

Change-Id: Ib9ff61c0f58163039f41f045037cb9a11b37a59e
Reviewed-on: http://codereview.qt.nokia.com/4013
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoMerge branch 'radio' into 'master'
Jonas Rabbe [Wed, 31 Aug 2011 03:09:47 +0000 (13:09 +1000)]
Merge branch 'radio' into 'master'

Change-Id: I86243b496b9fb42f828a67343dc576baa2c21ca0

12 years agoAdded QML API for getting the limits for a specific radio band.
Jonas Rabbe [Tue, 30 Aug 2011 00:46:19 +0000 (10:46 +1000)]
Added QML API for getting the limits for a specific radio band.

Using properties for the frequency step, minimum and maximum
frequency of the currently selected band.
Also updated the declarative-radio example to use the minimum
and maximum frequencies to show a tuner band for the radio.

Change-Id: I9f28f10e98e008c14b10bdc12b0727086cd45f0b
Reviewed-on: http://codereview.qt.nokia.com/3829
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoMerge branch 'camera' of git://scm.dev.nokia.troll.no/qt/qtmultimediakit
Michael Goddard [Tue, 30 Aug 2011 04:42:21 +0000 (14:42 +1000)]
Merge branch 'camera' of git://scm.dev.nokia.troll.no/qt/qtmultimediakit

Change-Id: Iec6f96e3713257d25f7b1e06c6da9c153b23800b

12 years agoFixed crash when QCameraImageCapture is deleted before QMediaRecorder.
Dmytro Poplavskiy [Thu, 25 Aug 2011 03:56:05 +0000 (13:56 +1000)]
Fixed crash when QCameraImageCapture is deleted before QMediaRecorder.

Change-Id: I3bbb87f03f122378e9367e1f2c0cc5b61fce6ed7
Reviewed-on: http://codereview.qt.nokia.com/3550
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed crash when QMediaObject is deleted before QMediaRecorder.
Dmytro Poplavskiy [Thu, 25 Aug 2011 02:31:00 +0000 (12:31 +1000)]
Fixed crash when QMediaObject is deleted before QMediaRecorder.

Change-Id: I8a1674b6f3d2b2c9ab888facff21f94af41b81de
Reviewed-on: http://codereview.qt.nokia.com/3544
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoIntroduction of fake radio backend to enable testing the radio APIs
Jonas Rabbe [Fri, 26 Aug 2011 00:59:19 +0000 (10:59 +1000)]
Introduction of fake radio backend to enable testing the radio APIs

Includes some behavior for all standard methods.
Also fixes a typo in qradiotunercontrol.h and a couple of minor
bugs in the radio example that came to light using this new
backend.

Change-Id: I65b8b8715a46f0fd702f9630ea81f7d5df527055
Reviewed-on: http://codereview.qt.nokia.com/3619
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoSplit the unit tests for widgets up as well.
Michael Goddard [Thu, 25 Aug 2011 07:12:05 +0000 (17:12 +1000)]
Split the unit tests for widgets up as well.

Currently there seem to be some unit tests that should not depend
on widgets, so they'll have to be cleaned up later.

Change-Id: I30adc4accb3ecce86a6fe7a2fd69d3862f325a41
Reviewed-on: http://codereview.qt.nokia.com/3569
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoDropped Incandescent white balance mode.
Dmytro Poplavskiy [Thu, 25 Aug 2011 06:18:50 +0000 (16:18 +1000)]
Dropped Incandescent white balance mode.

It's the same as Tungsten, was inittialy added by mistake.

Change-Id: Idf1d7be2f8d0969bba3480a8702034b7cabfdaef
Reviewed-on: http://codereview.qt.nokia.com/3563
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoTry to move widget/gvitem code into new QtMultimediaKitWidgets lib.
Michael Goddard [Fri, 22 Jul 2011 05:49:38 +0000 (15:49 +1000)]
Try to move widget/gvitem code into new QtMultimediaKitWidgets lib.

Change-Id: I522b3e6d4465c6c5cce2483676e09320176837d6
Reviewed-on: http://codereview.qt.nokia.com/2665
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoPorted gstreamer camera backend from camerabin to camerabin2.
Dmytro Poplavskiy [Fri, 12 Aug 2011 01:52:47 +0000 (11:52 +1000)]
Ported gstreamer camera backend from camerabin to camerabin2.

Change-Id: Ieb08df492e7b9cbfe35e93a056685cfdac6e704e
Reviewed-on: http://codereview.qt.nokia.com/2994
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRemove obsolete testlib files from .gitignore
Jason McDonald [Tue, 23 Aug 2011 05:56:33 +0000 (15:56 +1000)]
Remove obsolete testlib files from .gitignore

Change-Id: Id5efe3f7223486ec188d723b65e051671e7aa8cc
Reviewed-on: http://codereview.qt.nokia.com/3373
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoAdded first implementation of declarative radio element
Jonas Rabbe [Fri, 12 Aug 2011 03:41:39 +0000 (13:41 +1000)]
Added first implementation of declarative radio element

Simply uses and mirrors radio tuner API directly.
Also added an example which uses the new Radio element,
the example should be functional, but cannot be tested on
current setup (lack of actual radio tuner).

Change-Id: I0f724ef239f65aef9c0640d4a3a9fa0d2e7242ed
Reviewed-on: http://codereview.qt.nokia.com/2890
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoInitial implementation of QML2 VideoOutput element
Dmytro Poplavskiy [Mon, 8 Aug 2011 05:57:32 +0000 (15:57 +1000)]
Initial implementation of QML2 VideoOutput element

Change-Id: I5ed00433fe5e993086ae1698b7344c8d60a5f0f6
Reviewed-on: http://codereview.qt.nokia.com/2727
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoGstreamer media backend cleanup.
Dmytro Poplavskiy [Tue, 2 Aug 2011 04:33:38 +0000 (14:33 +1000)]
Gstreamer media backend cleanup.

Moved controls specific bus/sync messages handling from
player/camera/capture session to corresponding controls.

Reviewed-by: Michael Goddard
Change-Id: Ieb67976ed335b0ef1cde87dc60e8ad8da3409526
Reviewed-on: http://codereview.qt.nokia.com/2535
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoReplace outdated license headers.
Jason McDonald [Thu, 4 Aug 2011 07:56:29 +0000 (17:56 +1000)]
Replace outdated license headers.

Change-Id: Icbdd1bdae223192465b8c84faeb99b01be154275
Reviewed-on: http://codereview.qt.nokia.com/2605
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMark a few tests as "not autotests".
Michael Goddard [Thu, 4 Aug 2011 06:38:42 +0000 (16:38 +1000)]
Mark a few tests as "not autotests".

So "make check" doesn't find them, since they are more system tests
than automatic unit tests (since they access the real MM backends).

Change-Id: I3322b4206bce16a97c28753b80c0ed5dc0bb250e
Reviewed-on: http://codereview.qt.nokia.com/2599
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed compile error on Mac OS X Lion, missing include statement.
Jonas Rabbe [Tue, 2 Aug 2011 00:28:46 +0000 (10:28 +1000)]
Fixed compile error on Mac OS X Lion, missing include statement.

Also, don't try and build the quicktime/CG bits on QPA for now,
since that really doesn't seem to work.

Change-Id: If88b94bae3c092f2480318fa169250c03de44784
Reviewed-on: http://codereview.qt.nokia.com/2545
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
13 years agoFix the module.pri file.
Michael Goddard [Thu, 28 Jul 2011 00:54:22 +0000 (10:54 +1000)]
Fix the module.pri file.

Should have QT_CONFIG+=multimediakit, not DEFINES.

Change-Id: I72fcca770286f99c8711bd047e615d6e0e08d61f
Reviewed-on: http://codereview.qt.nokia.com/2311
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
13 years agoAPI unit tests from Maemo API test team.
Michael Goddard [Mon, 25 Jul 2011 05:02:51 +0000 (15:02 +1000)]
API unit tests from Maemo API test team.

A large number of tweaks and changes to original tests, and refactor
a lot of the mock backends to reduce duplication.

Changed viewfinder test case to use mock service and provider so
that it matches the image capture test case.

Reviewed-by: Jonas Rabbe
(cherry picked from commit e40bef5508a4165cec4a46b97115aed461027fa5)

Also licence header fix:
(cherry picked from commit e9ee9e8c48b45b97d62ee4a82e400fa9d8ea8107)

Change-Id: Ic59891d75563bb2e008a336eea859e8c44d8d831
Reviewed-on: http://codereview.qt.nokia.com/2078
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
13 years agoAdd Windows Media Foundation backend for QMediaPlayer
Michael Goddard [Mon, 25 Jul 2011 06:45:09 +0000 (16:45 +1000)]
Add Windows Media Foundation backend for QMediaPlayer

Task-number:QTMOBILITY-1606
Reviewed-by: Michael Goddard
(cherry picked from commit bdf3a9b39661cfb836245139d02e95e854646a7e)
(cherry picked from commit 8d2370953eb32bf44a037244e0d9f9b484875f7a)

Change-Id: I07790b8c540a04e4e19a3d018a4884a773e980bf
Reviewed-on: http://codereview.qt.nokia.com/2086
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
13 years agoGst backend: Fixed deadlock when pipeline is stopped during prerolling.
Dmytro Poplavskiy [Wed, 20 Jul 2011 00:45:06 +0000 (10:45 +1000)]
Gst backend: Fixed deadlock when pipeline is stopped during prerolling.

Waiting for start() to be invoked in the main thread may block
if gstreamer blocks the main thread until this call is finished.
This situation is rare and usually caused by setState(Null)
while pipeline is being prerolled.

The proper solution to this involves controlling gstreamer pipeline
from other thread than video surface.

Currently start() fails if wait() timed out.

Task-number: QTMOBILITY-1663
Reviewed-by: Michael Goddard
Change-Id: Ib95e589a814e53efb9b4c454ef9f233658ff8c6a
(cherry picked from commit ac9762e2dbc06d696c6c74825ee22ac1fc176d9c)
Reviewed-on: http://codereview.qt.nokia.com/2073
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
13 years agoAdd some debug output in QMediaPlayer gstreamer backend for convenience
Ling Hu [Tue, 28 Jun 2011 04:04:24 +0000 (14:04 +1000)]
Add some debug output in QMediaPlayer gstreamer backend for convenience

Change-Id: I5c4beec63ededc39bda7ae69dce721d118921b83
Reviewed-by: Michael Goddard
(cherry picked from commit 3119b89f549b2fc03a213c355323b1ef31aa20e9)
Reviewed-on: http://codereview.qt.nokia.com/2072
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
13 years agoFix for QTMOBILITY-1772 VideoWidget example crash on windows
Ling Hu [Tue, 19 Jul 2011 00:50:41 +0000 (10:50 +1000)]
Fix for QTMOBILITY-1772 VideoWidget example crash on windows

The surface format stride calculation in directshow backend is wrong which results in memory access violation.

Change-Id: I80da5affc9a727513bad9c8d74a9f49d0c1a6c0d
Task-number:QTMOBILITY-1772
Reviewed-by:Michael Goddard
(cherry picked from commit 0b010e781634d3b33750fcead445fc7bd3a6f828)
Reviewed-on: http://codereview.qt.nokia.com/2070
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>