platform/upstream/qtmultimedia.git
12 years agoAdding script which will run automated testcases.
Mylione Anadarajah [Tue, 10 Jul 2012 00:41:34 +0000 (10:41 +1000)]
Adding script which will run automated testcases.

Change-Id: I586b6a52c3c3fea508ca0d4d1d8f7eb9c3b3716f
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded wmf implementation for QAudioDecoderControl
Ling Hu [Thu, 5 Jul 2012 04:47:42 +0000 (14:47 +1000)]
Added wmf implementation for QAudioDecoderControl

Change-Id: Ib6d5c93577bd55995a9ae51e757156149890f15d
Reviewed-by: Jun Zhu <jun.5.zhu@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed qaudioinput unit test with pulseaudio backend
Kurt Korbatits [Tue, 10 Jul 2012 21:54:31 +0000 (07:54 +1000)]
Fixed qaudioinput unit test with pulseaudio backend

- notify signal wasn't being emitted enough.
- range checking on processedUSecs extended.

Change-Id: Icfa1f3b364a7e0f9d3f37abd8dc5ed0c1e22f923
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded some directories for coming systemtests
dakovaci [Tue, 3 Jul 2012 04:44:08 +0000 (14:44 +1000)]
Added some directories for coming systemtests

Some directories missing needed for coming tier 1 systemtests

Change-Id: Ie22e91e5011960687daed29cf6442271c97d3352
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
12 years agoUpdate ALSA device enumeration to return all devices
Mithra Pattison [Thu, 28 Jun 2012 05:40:16 +0000 (15:40 +1000)]
Update ALSA device enumeration to return all devices

Previously, if a device was marked as "Default Audio Device" then
only this device would be returned during device enumeration. Now
it returns all devices, with the default device placed first.

Task-number: QTBUG-22103
Change-Id: I1705415bf6b58ff046c4d2812107b46b76500001
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoDelete obsolete class methods and update related code
Mithra Pattison [Tue, 10 Jul 2012 03:26:48 +0000 (13:26 +1000)]
Delete obsolete class methods and update related code

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>
12 years agoFix typo in config test name.
Michael Goddard [Tue, 10 Jul 2012 02:19:55 +0000 (12:19 +1000)]
Fix typo in config test name.

Change-Id: Ic89cb21f9098591c97f780bd50248686f4da3919
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
12 years agoUpdated QAudioOutput and QAudioInput system tests
Kurt Korbatits [Sun, 8 Jul 2012 23:13:29 +0000 (09:13 +1000)]
Updated QAudioOutput and QAudioInput system tests

- Updated tests with volume checking.
- Updated reset function in QAudioInput test.
  (Checking bytesReady() in pull mode is not valid)
  (Checking state after writing one byte doesn't guarantee going to active state)
- Improved stability in CI system

Change-Id: I8018bfbc163971bcb3d5f7b7a1ece6306e75ed07
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoBlackberry: Fix erratic video resize behaviour
Thomas McGuire [Mon, 9 Jul 2012 07:25:34 +0000 (09:25 +0200)]
Blackberry: Fix erratic video resize behaviour

Change-Id: I699e7f81abb73e75eca2ddda22c7e5f2e852fcd5
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoTurned back on some disabled unit tests as insignificant tests
Kurt Korbatits [Sun, 8 Jul 2012 23:05:26 +0000 (09:05 +1000)]
Turned back on some disabled unit tests as insignificant tests

- qaudiodecoderbackend, qaudiodeviceinfo, qaudiooutput, qaudioinput,
  qmediaplayerbackend, qsound, qsoundeffect enabled as insignificant tests.
- skip iteration over all formats if QT_TEST_CI environement set (CI system)

Change-Id: I6692dcb817445870784193c0f78c0d5f7a201063
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
12 years agoGst capture: use QDesktopServices for default storage location
Dmytro Poplavskiy [Thu, 5 Jul 2012 03:30:47 +0000 (13:30 +1000)]
Gst capture: use QDesktopServices for default storage location

Change-Id: Icff46f2dc88572beab2eb835e24424f15ff05616
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoGst audio input: use autoaudiosrc as default device
Dmytro Poplavskiy [Thu, 5 Jul 2012 03:28:23 +0000 (13:28 +1000)]
Gst audio input: use autoaudiosrc as default device

Currently pulsesrc element is selected if it's installed,
even if pulseaudio is not used.

Change-Id: I7e23e647767116955e24e3681155f9cb5f6d8574
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix a potential leak in wmf
Ling Hu [Wed, 4 Jul 2012 04:47:32 +0000 (14:47 +1000)]
Fix a potential leak in wmf

Change-Id: I4fc039aeaf00a02122d5e11867c73223cc2ebbc1
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoGst capture: report the actual media location to application
Dmytro Poplavskiy [Mon, 2 Jul 2012 07:48:24 +0000 (17:48 +1000)]
Gst capture: report the actual media location to application

Change-Id: I2ebc7b9607fe499e2465428118bff3fe98e58672
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix internal compiler error of MSVC2012.
Friedemann Kleint [Mon, 2 Jul 2012 10:24:12 +0000 (12:24 +0200)]
Fix internal compiler error of MSVC2012.

Default to QLatin1String.

Change-Id: I20b74f77ee0828a1c2b1337a3ab2e0012c8df06e
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMoved some files to different dir's
dakovaci [Tue, 3 Jul 2012 06:28:16 +0000 (16:28 +1000)]
Moved some files to different dir's

Just some rearanging to be done.

Change-Id: Ib76403c3cf41cb1d1502ed2f94bdc066321e637d
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
12 years agoEdited radio systemtests to support tier 1 platforms
dakovaci [Tue, 3 Jul 2012 04:36:56 +0000 (14:36 +1000)]
Edited radio systemtests to support tier 1 platforms

Some tests were not compatable to tier 1 platforms

Change-Id: Ibf3221f638b5a52159e6f3004f1a6da7ef83785e
Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
12 years agoRemoved some system tests not applicatple to tier 1 platforms
dakovaci [Thu, 28 Jun 2012 06:38:44 +0000 (16:38 +1000)]
Removed some system tests not applicatple to tier 1 platforms

Change-Id: I24ab04409593f4b046aec55a1e467e3bb4b08464
Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
12 years agoFix installation of spectrum example
Mithra Pattison [Fri, 29 Jun 2012 03:47:15 +0000 (13:47 +1000)]
Fix installation of spectrum example

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>
12 years agoFixed QML video playback on Mac
Dmytro Poplavskiy [Wed, 20 Jun 2012 07:57:45 +0000 (17:57 +1000)]
Fixed QML video playback on Mac

Use the same CIImage based video frames as with
QGraphicsVideoItem, but since CIImages can't be
rendered directly in Scene Graph,
the frame is rendered to FBO first.

Task-number: QT-5423
Change-Id: I16f7e6351578bae21f8642a8028538c441e1f544
Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoGst Capture: image capture fixes
Dmytro Poplavskiy [Fri, 29 Jun 2012 04:21:58 +0000 (14:21 +1000)]
Gst Capture: image capture fixes

Report camera is ready to capture only in image capture modes;
Emit capture failed if camera not configured for capture

Change-Id: Ia2b92e2f8c760db948185a29c3e5ceae81dd3af4
Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoGst capture service: capture mode fixes
Dmytro Poplavskiy [Fri, 29 Jun 2012 03:35:41 +0000 (13:35 +1000)]
Gst capture service: capture mode fixes

Fixed reporting the current capture mode
Set the correct default capture mode
Allow viewfinder only and Video+Image capture modes

Change-Id: Ib12504304bca22fe664631ff5ffbc0a392ba34a8
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com>
12 years agoGst capture: don't wait for pipeline to stop
Dmytro Poplavskiy [Fri, 29 Jun 2012 02:18:54 +0000 (12:18 +1000)]
Gst capture: don't wait for pipeline to stop

State changes to lower state are synchronous in gstreamer

Change-Id: Ib87eabfeee9ec100f24efbaa989ec909ac7f9a1b
Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoAllow gst video capture startup without viewfinder attached.
Dmytro Poplavskiy [Fri, 29 Jun 2012 02:13:58 +0000 (12:13 +1000)]
Allow gst video capture startup without viewfinder attached.

Change-Id: I5f0b7dc12f4ee8e988d6107047d963949bcdb5bf
Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoFixed a testing bug on windows platform.
bigbearzhu [Wed, 27 Jun 2012 05:18:31 +0000 (15:18 +1000)]
Fixed a testing bug on windows platform.

Change-Id: Iaf11864e6929345b105cdd185b4bb01b24961406
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoRefactoring wmf plugin
Ling Hu [Thu, 28 Jun 2012 05:27:13 +0000 (15:27 +1000)]
Refactoring wmf plugin

make mf startup/shutdwon inside plugin instead of player component
make sourceresolver a common component for a wmf related tasks.

Change-Id: I49cdc4fa512a62398a68cd2be2f522f567d11c7c
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed a WMF seek bug.
Ling Hu [Thu, 28 Jun 2012 06:55:52 +0000 (16:55 +1000)]
Fixed a WMF seek bug.

Change-Id: I1f077a045dad94127e747dd3f8c8566559aef5a2
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRename availabilityError to availability.
Michael Goddard [Mon, 25 Jun 2012 00:53:26 +0000 (10:53 +1000)]
Rename availabilityError to availability.

It's perhaps clearer in the usual case.

Change-Id: Id3cef82ac83f8c9b538b3315281664ce1c6a2b96
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoRename a few controls.
Michael Goddard [Wed, 20 Jun 2012 06:04:57 +0000 (16:04 +1000)]
Rename a few controls.

The encoder controls could be confused with actual encoding, so make
clear they are just settings.  Also, the end point selector controls
were not named very well.

Change-Id: I27f8bf9c865c5f295abad97c01ef98752af42613
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoLocate qdoc on Windows correctly.
Friedemann Kleint [Thu, 28 Jun 2012 10:10:07 +0000 (12:10 +0200)]
Locate qdoc on Windows correctly.

Change-Id: I1a7ac5293f76b62e467208b59948d58032c2a2cf
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoRead actual period size after initializing a stream.
Lev Zelenskiy [Thu, 28 Jun 2012 05:04:09 +0000 (15:04 +1000)]
Read actual period size after initializing a stream.

QTBUG-23833

Change-Id: I2bd352cf34d12e1be22f640c47fc2388dc3a7f8a
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix header path for audio engine on Mac.
Michael Goddard [Wed, 27 Jun 2012 07:07:44 +0000 (17:07 +1000)]
Fix header path for audio engine on Mac.

There's a different prefix here.

Change-Id: Ifda82e19824801b1d903ab6ad40c97428fff236c
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAllow frequences up to 96000 in QAudioInput win32 backend.
Lev Zelenskiy [Wed, 27 Jun 2012 06:06:45 +0000 (16:06 +1000)]
Allow frequences up to 96000 in QAudioInput win32 backend.

QTBUG-26102

Change-Id: I1c594f7df4aea2292045e1e96f58926d97bcfd82
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed timeout on waiting for positionChanged event.
bigbearzhu [Tue, 26 Jun 2012 06:06:39 +0000 (16:06 +1000)]
Fixed timeout on waiting for positionChanged event.

Change-Id: I894af066073f601e5838dbd47eb92da516c04544
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed plugin dir error on Windows.
bigbearzhu [Tue, 26 Jun 2012 05:26:28 +0000 (15:26 +1000)]
Fixed plugin dir error on Windows.

Change-Id: I470877d988fb70915607b65c4f17eee1adb8049d
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoClean buffers before closing the input device.
Lev Zelenskiy [Tue, 26 Jun 2012 02:45:58 +0000 (12:45 +1000)]
Clean buffers before closing the input device.

Input device handle is invalid after waveInClose()
QTBUG-24119

Change-Id: I8276e56766684efd26b78dc019ff871ebac28408
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agosyncX() doesn't do anything anymore. Remove it.
Thiago Macieira [Tue, 26 Jun 2012 15:33:27 +0000 (17:33 +0200)]
syncX() doesn't do anything anymore. Remove it.

Change-Id: Id15af428e1d04606564bad093847b3dc5a731e85
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAdd blackberry backend
Thomas McGuire [Tue, 3 Apr 2012 13:26:56 +0000 (15:26 +0200)]
Add blackberry backend

Change-Id: I88be743f0cad94d4beabdae917758be7e4293bfd
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAdded support for big endian data to QAudioOutput win32 backend.
Lev Zelenskiy [Tue, 26 Jun 2012 04:03:54 +0000 (14:03 +1000)]
Added support for big endian data to QAudioOutput win32 backend.

Convert data from big endian to little endian.
QTBUG-19881

Change-Id: If62a69b79c01d66536010b3326a86df8ca5f83b0
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoRemove insignificant flag from tests that are passing.
Toby Tomkins [Mon, 25 Jun 2012 07:13:24 +0000 (17:13 +1000)]
Remove insignificant flag from tests that are passing.

Change-Id: I246d7cfa79cbbbee3cfc4a354b38c155aa887aa2
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoAdd expected fail flags for consistently failing autotests.
Toby Tomkins [Tue, 26 Jun 2012 05:22:16 +0000 (15:22 +1000)]
Add expected fail flags for consistently failing autotests.

Task-number: QTBUG-26320

Change-Id: I58624a8c39c0c247d9073097616a7a78e7e307da
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoFix crash in audioinput and audiooutput examples.
Lev Zelenskiy [Tue, 26 Jun 2012 02:07:20 +0000 (12:07 +1000)]
Fix crash in audioinput and audiooutput examples.

Do not call tr while initializing static objects.

Change-Id: Ia75ddd53ae22b0e4179f174da7d933156744e261
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoFixed a testing bug.
bigbearzhu [Tue, 26 Jun 2012 00:48:26 +0000 (10:48 +1000)]
Fixed a testing bug.

Change-Id: Iff7fb6d4de2f38fde37019ea7e8b034707f8bbe1
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agobuild system cleanups
Oswald Buddenhagen [Tue, 22 May 2012 17:17:51 +0000 (19:17 +0200)]
build system cleanups

- load(qt_module) => load(qt_build_config)
- remove:
  - CONFIG+=module (obsolete)
  - code relating to module version headers (automated now)
  - %mastercontent assignment (automated now)
  - QT_BUILD_*_LIB defines (automated now)
  - pointless QPRO_PWD assignments
  - pointless DEFINES+=QT_MAKEDLL
  - pointless and commented out include and depend paths
  - qmake -project boilerplate

Change-Id: I8f4586403848fe8f2dff4e889b389956ffcdea59
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agofix bogus conditional
Oswald Buddenhagen [Thu, 5 Apr 2012 14:04:20 +0000 (16:04 +0200)]
fix bogus conditional

this code meant (alsa && linux) || openbsd || freebsd, which is
presumably not what was meant.
but the os test seems rather pointless in the first place, so just
remove it.

Change-Id: I2591c9307ab9d6e821625b24797259ed60e9a082
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
12 years agoswitch to new-style configure tests
Oswald Buddenhagen [Thu, 5 Apr 2012 12:29:09 +0000 (14:29 +0200)]
switch to new-style configure tests

Change-Id: Ib56d0cb24065c1f990aee5d7f41bfedfe75332a1
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoauto-generate module pris
Oswald Buddenhagen [Thu, 12 Apr 2012 09:07:13 +0000 (11:07 +0200)]
auto-generate module pris

Change-Id: I19285dfef7294e813ec241a8f6f00a804d56df49
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdd default initialisation to various multimedia classes
Mithra Pattison [Wed, 30 May 2012 05:31:39 +0000 (15:31 +1000)]
Add default initialisation to various multimedia classes

Change-Id: I902de05984fdae152e2678e4cf2d401a0b670703
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
12 years agoFixed some crash with WMF backend
Ling Hu [Thu, 21 Jun 2012 06:18:05 +0000 (16:18 +1000)]
Fixed some crash with WMF backend

Change-Id: I721ba049e2ecafff53ee70d5b930fb52c15fbe09
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix namespace compilation.
Toby Tomkins [Thu, 21 Jun 2012 03:37:23 +0000 (13:37 +1000)]
Fix namespace compilation.

Change-Id: Id8d71a48df20da16647834e8f9732012f26f928f
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoAdd a few things to the .gitignore file.
Michael Goddard [Mon, 25 Jun 2012 01:16:27 +0000 (11:16 +1000)]
Add a few things to the .gitignore file.

A few Mac specific things, plus .o files.

Change-Id: I7273977666a07cdf39cf0916bc5c2dbede30af05
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAdd the QtBase/lib directory as a library path, not just frameworks.
Michael Goddard [Mon, 25 Jun 2012 04:24:16 +0000 (14:24 +1000)]
Add the QtBase/lib directory as a library path, not just frameworks.

This meant that any non-framework libraries there weren't found (like
the multimedia helper libraries).

Change-Id: Iacd99f82763d39fc47c779c9498dfd5e1cc0e743
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoFix QAudioOutput volume on OSX.
Michael Goddard [Wed, 20 Jun 2012 05:53:39 +0000 (15:53 +1000)]
Fix QAudioOutput volume on OSX.

Change-Id: I142ca638d3dc0839f7c5b103f03edac6715a0bb6
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoFix target executable name in audiooutput example
Mithra Pattison [Wed, 20 Jun 2012 05:00:48 +0000 (15:00 +1000)]
Fix target executable name in audiooutput example

Change-Id: I4481879366f136370f4bd549bb2ef2f8764cf821
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRemove the USE_COCOA #ifdef, it's always defined now.
Michael Goddard [Wed, 20 Jun 2012 05:03:47 +0000 (15:03 +1000)]
Remove the USE_COCOA #ifdef, it's always defined now.

Change-Id: If3528cdfda647fa3cfba3c310bc9816b8b1e0344
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoEnabled wmf plugin on Windows again
Ling Hu [Wed, 20 Jun 2012 02:01:24 +0000 (12:01 +1000)]
Enabled wmf plugin on Windows again

Change-Id: Ia1fe3ef6ec8f70888c7beb390678935ad9995a90
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agofix volume handling on Windows
Maurice Kalinowski [Tue, 19 Jun 2012 10:32:32 +0000 (12:32 +0200)]
fix volume handling on Windows

volume handling for QAudioOutput is broken currently as it fallbacks to
the default implementation.
Need to cache the volume, as hWaveOut is invalid while the output is not
in active state.

Task-number: QTBUG-25454
Change-Id: I2adb28a5e6719a5d3c360553abd70af46b646080
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoQIODevice* is used, but QIODevice was never declared
Thiago Macieira [Tue, 19 Jun 2012 10:24:37 +0000 (12:24 +0200)]
QIODevice* is used, but QIODevice was never declared

After I made qpair.h no longer include qdatastream.h, which included
qiodevice.h.

Change-Id: Icae2b466e022d3394ce5cafceeb4ea6601f6d33f
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoFix a number of other qdoc issues.
Michael Goddard [Wed, 13 Jun 2012 03:52:05 +0000 (13:52 +1000)]
Fix a number of other qdoc issues.

* Several places needed the forward class declaration hack
* Missing/wrong minor version numbers on imports
* A few typos
* Any number of attempts to work around qdoc
* A few missing docs
* Tweaked soundeffect docs

Change-Id: I3c2ab998a11cbb0956712e0423e01fdb70f5bfff
Reviewed-by: Peter Yard <peter.yard@nokia.com>
Reviewed-by: Angus Cummings <angus.cummings@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
12 years agoTweak the controls documentation.
Michael Goddard [Thu, 14 Jun 2012 05:03:30 +0000 (15:03 +1000)]
Tweak the controls documentation.

Also move the qaudioendpointselector control into controls.

Change-Id: Ia21f98a683eb38a9c11c42f6e7901d7d841aae90
Reviewed-by: Peter Yard <peter.yard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
12 years agoReplace a writable position() property with a seek() method.
Michael Goddard [Tue, 12 Jun 2012 07:18:03 +0000 (17:18 +1000)]
Replace a writable position() property with a seek() method.

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>
12 years agoUpdating brief layout of QML types
Angus Cummings [Thu, 14 Jun 2012 01:49:54 +0000 (11:49 +1000)]
Updating brief layout of QML types

Change-Id: I1dcd7bf7427f25bb9e19cbe3c7e17808b0fc9708
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Peter Yard <peter.yard@nokia.com>
12 years agoMore doc things
Angus Cummings [Thu, 14 Jun 2012 01:03:33 +0000 (11:03 +1000)]
More doc things

Changing case in some titles
Other misc wording changes

Change-Id: Ie56a390de0c5ee8f80876555d3d9139819fc5a73
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoUpdate folderlistmodel import to version 2
Alan Alpert [Thu, 14 Jun 2012 01:29:04 +0000 (11:29 +1000)]
Update folderlistmodel import to version 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>
12 years agoFix build on Windows with new qdatetime.h that doesn't redefine min/max
Simon Hausmann [Wed, 13 Jun 2012 10:13:36 +0000 (12:13 +0200)]
Fix build on Windows with new qdatetime.h that doesn't redefine min/max

Windows system header files redefine min/max, unless NOMINMAX is defined.
In some cases we can simply include qt_windows.h, which does the trick,
in other cases including qt_windows.h produces different compilation
errors and it's simpler to just do the NOMINMAX trick.

Change-Id: I3cf81bab7c239363adfa274f158bdf999d1d3ecd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoReduce the usage of QAbstractVideoBufferPrivate.
Michael Goddard [Tue, 12 Jun 2012 04:54:22 +0000 (14:54 +1000)]
Reduce the usage of QAbstractVideoBufferPrivate.

Move the handle type to the base class (since it's always needed) and
don't allocate the private class in the default paths.

Change-Id: I870a315310ce740f07b1d43cedecfce21feae505
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoClarify documentation about QAudioDecoder::read and blocking.
Michael Goddard [Tue, 12 Jun 2012 01:27:24 +0000 (11:27 +1000)]
Clarify documentation about QAudioDecoder::read and blocking.

It doesn't block - not safe to implement in all cases.  Applications
can implement blocking semantics based on their usage of event loops
or threads.

Change-Id: If9a6b1ae7014df63a43989c4940524bc5eaae383
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoRenaming StopppedState to StoppedState
Angus Cummings [Thu, 7 Jun 2012 01:01:28 +0000 (11:01 +1000)]
Renaming StopppedState to StoppedState

Change-Id: Ib23e9795960f40b46c0b2441ec03e8b1812033e5
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoEnable auto resume of playback for gstreamer mediaplayer
Ling Hu [Fri, 8 Jun 2012 04:57:56 +0000 (14:57 +1000)]
Enable auto resume of playback for gstreamer mediaplayer

The resource policy now supports implicit auto-resume,
so it is better to cooperate with that in mediaplayer
to enable auto resume playback after resource lost.

Change-Id: Iba0d28e64fa864dd6332a62e915316d48a12a533
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAdding qdoc workaround to all control classes
Angus Cummings [Fri, 8 Jun 2012 03:50:06 +0000 (13:50 +1000)]
Adding qdoc workaround to all control classes

Change-Id: Ic8d8aa6f9824954a7745ddaa2639054dea8bf1ba
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRemove the legacy QML API.
Michael Goddard [Fri, 8 Jun 2012 00:57:15 +0000 (10:57 +1000)]
Remove the legacy QML API.

This means no version 4.0 (which was never released) and no
Qt.multimediakit alternative import.

Change-Id: Iaacf047b0d72381a4a8cd975e036135ed11ea383
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoFixing some doc errors for overview
Angus Cummings [Fri, 8 Jun 2012 03:58:31 +0000 (13:58 +1000)]
Fixing some doc errors for overview

Change-Id: Ic502abf295d402678bb28e68bfacc76ae05ee8ec
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix compilation without QtWidgets and QtOpenGL on Mac
Kent Hansen [Wed, 6 Jun 2012 20:21:39 +0000 (22:21 +0200)]
Fix compilation without QtWidgets and QtOpenGL on Mac

Change-Id: I3cff7e41d27955e37bc8207e4820fdc21ce75f7b
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoDon't use QtWidgets/QApplication in autotests
Kent Hansen [Wed, 6 Jun 2012 12:43:33 +0000 (14:43 +0200)]
Don't use QtWidgets/QApplication in autotests

These tests don't link against QtWidgets; including QGuiApplication
is sufficient.

Change-Id: I96812af7ac5ef79a9602acf4b51498350e8e50e1
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded QAbstractVideoBuffer::release virtual method
Dmytro Poplavskiy [Wed, 6 Jun 2012 04:35:42 +0000 (14:35 +1000)]
Added QAbstractVideoBuffer::release virtual method

It's useful when the buffer pool stores QAbstractVideoBuffer
instances instead of underlying system buffers and
allows to avoid reallocation of QAbstractVideoBuffer instances.

The default implementation deletes the buffer,
so this change is source compatible.

Change-Id: I7dadd7dac529748b5eb33e5aa7c2d0578b8b1634
Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRemoved encoding options from Audio/Video encoding controls
Dmytro Poplavskiy [Wed, 6 Jun 2012 04:06:04 +0000 (14:06 +1000)]
Removed encoding options from Audio/Video encoding controls

They are replaced with encoding options from
QAudio/Video/ImageEncoderSettings.
This also allows to specify options without
requesting controls.

Change-Id: I507e68cdb8cb46325689804d27c6d0561cada50b
Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoA number of documentation fixes.
Michael Goddard [Wed, 6 Jun 2012 02:28:34 +0000 (12:28 +1000)]
A number of documentation fixes.

* Remove references to private QMediaServiceProvider class and point
  new backend writers to irc/mailing lists
* Wrong or missing parameter names
* Fix a few links
* Correct a few property data types
* Various other things to keep qdoc happier

Change-Id: I5c8800d65c00f0783541afef35990bd3918acab7
Reviewed-by: Angus Cummings <angus.cummings@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
12 years agoClarify the metadata functionality of QMediaPlayer.
Michael Goddard [Tue, 5 Jun 2012 06:36:35 +0000 (16:36 +1000)]
Clarify the metadata functionality of QMediaPlayer.

By linking to QMediaObject functions.  Also clean that up a bit so it's
a bit more useful for people looking for higher level functionality.

Change-Id: Ie452122c4d55f88326a7b71c5882dfe38f489791
Reviewed-by: Angus Cummings <angus.cummings@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
12 years agoQVideoWindowControl moved to QtMultimedia, fix docs.
Michael Goddard [Tue, 5 Jun 2012 02:24:59 +0000 (12:24 +1000)]
QVideoWindowControl moved to QtMultimedia, fix docs.

Change-Id: I870e5997822b60d8fba07e28ff907cbb3fef6036
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
12 years agoUse QPointer instead of QWeakPointer to track QObjects.
Stephen Kelly [Wed, 6 Jun 2012 09:39:59 +0000 (11:39 +0200)]
Use QPointer instead of QWeakPointer to track QObjects.

The latter is to be deprecated.

Change-Id: I01998be880feba0819a9bc51f9bec48fd4601789
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoRemove the last remainders of the old plugin system
Lars Knoll [Sun, 27 May 2012 10:20:55 +0000 (12:20 +0200)]
Remove the last remainders of the old plugin system

Port the last two currently unused plugins (v4l and wmf) over to the new plugin
format.

Fix documentation that still mentioned Q_EXPORT_PLUGIN.

Change-Id: I18200dd792e8973687e92180fc41d11395b35132
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoCall the base QQuickItem geometryChanged function in our override.
Michael Goddard [Tue, 5 Jun 2012 03:27:52 +0000 (13:27 +1000)]
Call the base QQuickItem geometryChanged function in our override.

Otherwise you get strange errors like the width/height of a
VideoOutput element are 0.

Change-Id: Ib123112b513f5ed2f0ce24da6dbfe00e20551d74
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoAvoid string-based, dynamic lookup of signals
Kent Hansen [Sun, 3 Jun 2012 21:06:48 +0000 (23:06 +0200)]
Avoid string-based, dynamic lookup of signals

Qt5 has a new function QMetaMethod::fromSignal() for obtaining
the meta-method that corresponds to a particular signal (member
function).

This also avoids calling the virtual metaObject() function to
resolve the meta-method every time the signal is emitted; it is
known at compile-time which class the signals are defined in,
so it's safe to retain the meta-methods across calls.

Change-Id: I47328ec2dfc335c570fb18bcd304a2ee405bfd6e
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoadd multimediawidgets before gsttools to SUBDIRS
Oswald Buddenhagen [Tue, 22 May 2012 16:04:58 +0000 (18:04 +0200)]
add multimediawidgets before gsttools to SUBDIRS

the build dependency does not override the qmake processing order, but
this will become important soon.

Change-Id: I8ef88285f9c12829080e6f5e1cc0349dd59f83b8
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
12 years agoensure important docs are built by the automated publisher
Angus Cummings [Fri, 1 Jun 2012 03:02:18 +0000 (13:02 +1000)]
ensure important docs are built by the automated publisher

this workaround makes sure that qdoc can find the \class
and \namespace declarations.

Change-Id: I950e6fbc10064f438d7f282ff20783acdf20de27
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRenaming the QML overview page
Angus Cummings [Thu, 31 May 2012 01:57:21 +0000 (11:57 +1000)]
Renaming the QML overview page

There is a requirement that we refer to internal QML
groups as 'API' rather than 'plugin'

Change-Id: I8dc19435cf3f0d24f714b9840f5b83c6c74f7fa8
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixing doc errors in MediaPlayer and CameraFlash
Angus Cummings [Tue, 22 May 2012 01:32:50 +0000 (11:32 +1000)]
Fixing doc errors in MediaPlayer and CameraFlash

properties were not showing up for either type. There were
namespace errors in flash, and mediaplayer docs needed to
be copied from audio.

Change-Id: I53fa721ec9e0cfa1aee3586c7e3eb608b9a1b465
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
12 years agoAdd gstreamer.json to OTHER_FILES
Johannes Zellner [Thu, 31 May 2012 22:14:57 +0000 (15:14 -0700)]
Add gstreamer.json to OTHER_FILES

Change-Id: Ic063a2bd96c9445b6d1af049df6cf3e33572d547
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoFixed not initialized QVideoFrame mappedCount member
Dmytro Poplavskiy [Tue, 29 May 2012 04:09:15 +0000 (14:09 +1000)]
Fixed not initialized QVideoFrame mappedCount member

Change-Id: Ic0b915df120222b0bb440698c010f0e83ccce8c3
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRelease string after gst_cap_to_string is called.
bigbearzhu [Mon, 28 May 2012 05:51:03 +0000 (15:51 +1000)]
Release string after gst_cap_to_string is called.

Change-Id: I4bf8086e4413b4acb851d67919ac1014705bab03
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoMade pulsedevices high priority than oss for recording
Ling Hu [Fri, 25 May 2012 06:39:55 +0000 (16:39 +1000)]
Made pulsedevices high priority than oss for recording

Change-Id: Iae607d3ee0bcaa21142e264edb32ed0e631a4a03
Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoReplaced camera viewfinder resolution control with settings control
Dmytro Poplavskiy [Fri, 18 May 2012 04:38:54 +0000 (14:38 +1000)]
Replaced camera viewfinder resolution control with settings control

It allows to specify a number of camera fiewfinder parameters
including frame rate, resolution and pixel format.

It also allows to extend the list of parameters without breaking source
or binary compatibility.

Change-Id: Ibea85a968ab7ee7b8d1ae34c7fcbac8f5586f53f
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
12 years agoReordering audio overview doc
Angus Cummings [Fri, 18 May 2012 01:24:18 +0000 (11:24 +1000)]
Reordering audio overview doc

Trying to put more common use cases earlier in the
list of implementation details.

Change-Id: I11195d5d2f7846dec3342d43fe3917fb13374daa
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoFix compilation when appsrc is not available.
Johannes Zellner [Fri, 11 May 2012 23:20:26 +0000 (16:20 -0700)]
Fix compilation when appsrc is not available.

Change-Id: I96c9aad94b5eb0734854bc7cf0126cad6841c0cd
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
12 years agoAdded custom parameters to Audio/Video/ImageEncodingSettings
Dmytro Poplavskiy [Fri, 18 May 2012 00:26:51 +0000 (10:26 +1000)]
Added custom parameters to Audio/Video/ImageEncodingSettings

This allows to specify more advanced and system/codec specific settings

Change-Id: Ia0a2e94eaf56df285a219018e0beab895a2e7c2a
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoAdded missing QDeclarativeCamera::CaptureViewfinder enum value
Dmytro Poplavskiy [Fri, 18 May 2012 01:53:45 +0000 (11:53 +1000)]
Added missing QDeclarativeCamera::CaptureViewfinder enum value

Change-Id: I75844e3a943a76649d1b51f0c845a4bf8b200a8e
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoFixed typo in QCamera::Status documentation
Dmytro Poplavskiy [Fri, 18 May 2012 01:56:08 +0000 (11:56 +1000)]
Fixed typo in QCamera::Status documentation

Change-Id: I8ee9db0e91eceaa20a46713370a9cbd03ead6444
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoQML VideoOutput: don't keep video frames for more than necessary
Dmytro Poplavskiy [Wed, 16 May 2012 04:05:45 +0000 (14:05 +1000)]
QML VideoOutput: don't keep video frames for more than necessary

The frame can be released as soon as it pushed to video node.

Change-Id: Ib2621cc2a001629e722bf15b6e1ca09323170870
Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoExpose camera status to QML Camera element
Dmytro Poplavskiy [Wed, 16 May 2012 03:25:38 +0000 (13:25 +1000)]
Expose camera status to QML Camera element

It's exposed as Camera.cameraStatus property.

Change-Id: Id3b477266d3a666b7a2a61cd4579f0e3f873d3b8
Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoVery minor C++ doc changes
Angus Cummings [Fri, 11 May 2012 01:13:45 +0000 (11:13 +1000)]
Very minor C++ doc changes

Reordering some enum's so values are listed ascending
Replace 'The' with 'the' in some briefs

Change-Id: Ibc5042389687598ddaaf11e72acaa688b85fd4cf
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>