summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/videooutput.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Video screen region is updated in response to ancestors of video widgetGareth Stockwell2009-10-231-3/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | being moved. Because QWidget::moveEvent is only called when a widget moves relative to its parent, a widget's absolute screen position may change without it receiving a moveEvent (for example, as a result of its parent being moved). The MMF video playback API on Symbian v9.4 requires, in addition to a window handle, an absolute screen rectangle. Changes in the video widget's absolute screen position therefore need to be propagated into the MMF. This change introduces a new object, AncestorMoveMonitor, which installs an event filter on the QCoreApplication instance. A VideoOutput object registers with the AncestorMoveMonitor, which listens on its behalf for MoveEvents and ParentChangeEvents directed at any of the ancestors of the VideoOutput. MoveEvents trigger a callback to the VideoOutput instance, which then notifies the MMF of the new screen rectangle. ParentChangeEvents cause the AncestorMoveMonitor to update the ancestor list associated with the target VideoOutput instance. The video position now tracks that of the associated widget, but there are two problems which require further investigation: 1. The video window lags behind. This may be an unavoidable consequence of the fact that setting a new screen rectangle causes the MMF to tear down its DSA session and start a new one; this is known to block the window server and take some time to complete. 2. Artifacts are visible around the edges of the moving video widget. Task-number: QTBUG-4787 Reviewed-by: Frans Englich
* Replace tabs with whitespace.Frans Englich2009-10-151-10/+10
| | | | | sed -i -e 's/\t/ /g' `find -name "*.cpp" -or -name "*.h" -or -name "*.pro"`
* sed -i -e 's/if(/if (/g' `find -name "*.cpp" -or -name "*.h" -or -nameFrans Englich2009-10-151-1/+1
| | | | "*.pro"`
* Use QT_NO_DEBUG, not _DEBUG.Frans Englich2009-10-151-2/+2
|
* Modified video widget to respond to WinIdChange eventsGareth Stockwell2009-10-091-0/+11
| | | | | Task-number: QTBUG-4664 Reviewed-by: Frans Englich
* Refactored event-handling code in video widgetGareth Stockwell2009-10-091-12/+13
| | | | | | Moved common code into videoOutputRegionChanged() Reviewed-by: Frans Englich
* qdoc: Marked some undocumented Phonon classes internalMartin Smith2009-10-011-0/+4
|
* Revert "Disable code, as we don't have the required code in QtGui."Frans Englich2009-09-281-8/+6
| | | | This reverts commit 1062bbbcd6c30844d9ade10de80f27a3afd4dacf.
* Disable code, as we don't have the required code in QtGui.Frans Englich2009-09-241-6/+8
|
* Essentially do 's/NULL/0/g', to adhere to Qt coding style.Frans Englich2009-09-241-1/+1
| | | | Addresses review comment.
* Modified video widget to set disableBlit flagGareth Stockwell2009-09-231-0/+8
|
* Removed transparency-blitting / -painting code from video widgetGareth Stockwell2009-09-231-104/+1
|
* Experimenting to make video visible.Gareth Stockwell2009-09-231-3/+33
| | | | | | | | | | | | | | | | | | | | | | Removed the hack to set translucent window background in the mediaplayer. Then tried the following: 1. Direct write to backing store: does not work (backing bitmap is 16MU) 2. Set window background color: does not work (is over-written by control's Draw function) 3. Brush using CWindowGc from widget's paint event: does not work (is over-written by control's Draw function) 4. Hack QSymbianControl to blit a transparent bitmap from the Draw function: does work 5. Hack QSymbianControl to brush using CWindowGc from the Draw function: does work Configuration 5 is the one being committed. Other things we could try: 6. Trigger switch to 16MA backing store if child widgets have been created. This could be tested by calling RWindowTreeNode::Child on the TLW's window. - Maybe we could test whether the child window's display mode is 16MA? 7. Somehow tell QSymbianControl not to draw anything at all - Based on setting Qt::WA_PaintOnScreen? - Then we either: - (Ideally) do nothing, and rely on video stack to paint the necessary transparency - Brush using CWindowGc from widget's paint event
* Added extra trace for investigation of 16MU blitting behaviourGareth Stockwell2009-09-231-1/+16
|
* Removed temporary hacks used during initial development of video widgetGareth Stockwell2009-09-231-10/+0
|
* Modified transparentFill to allow RGBA color to be specified more easily, ↵Gareth Stockwell2009-09-231-2/+4
| | | | for testing
* Added function for writing transparent pixels directly to the backing storeGareth Stockwell2009-09-231-0/+47
| | | | | | See VideoOutput::transparentFill. This should be called from the paintEvent, having removed the TranslucentWindowBackground hack from the mediaplayer demo. As yet this has not been tested.
* Modified video output widget to make video visible on target deviceGareth Stockwell2009-09-231-6/+10
|
* Fixes to include paths, required due to objectdump renamingGareth Stockwell2009-09-151-1/+1
|
* Rename objectdump to mmfphonondebug in order to avoid conflicts.Frans Englich2009-09-141-1/+1
|
* Refactored object tree dumping framework into a separate DLLGareth Stockwell2009-09-071-1/+1
|
* Added visitor-based object tree dumping framework, which dumps details of ↵Gareth Stockwell2009-09-071-53/+20
| | | | Symbian control / window associated with each widget
* Merge branch 'mmfphonon' of git@scm.dev.nokia.troll.no:qt/qt-s60-public into ↵Gareth Stockwell2009-09-011-12/+8
|\ | | | | | | mmfphonon
| * Reformatted code to comply with Qt styleGareth Stockwell2009-08-271-66/+60
| |
| * Wrapped code using QT_BEGIN/END_NAMESPACE macrosGareth Stockwell2009-08-271-6/+12
| |
* | Video playback now visible; flickering problems now observedGareth Stockwell2009-08-281-20/+10
| |
* | Added code to VideoOutput for painting the video region (currently commented ↵Gareth Stockwell2009-08-281-4/+5
| | | | | | | | out)
* | Experimenting to try and get video to be visibleGareth Stockwell2009-08-281-4/+13
| |
* | Reformatted code to comply with Qt styleGareth Stockwell2009-08-281-66/+60
| |
* | Wrapped code using QT_BEGIN/END_NAMESPACE macrosGareth Stockwell2009-08-281-6/+12
|/
* Wrapped VideoOuput::dump() in a macro for easier removal later onGareth Stockwell2009-08-261-1/+4
|
* Added VideoOutputObserver, to propagate screen region updates back to ↵Gareth Stockwell2009-08-261-1/+21
| | | | VideoPlayer
* Added a bit more tracing for debugging video visibilityGareth Stockwell2009-08-261-1/+2
|
* Made video playback visible using a couple of hacksGareth Stockwell2009-08-251-2/+67
| | | | | | | | | | | | These hacks, which are enabled using macros in defs.h, are: PHONON_MMF_HARD_CODE_VIDEO_RECT VideoPlayer should obtain the screen rectangle into which video rendering will occur, using the CoeControl associated with the video widget (i.e. the VideoOutput object). However, this control always has co-ordinates (relative to its parent) of (0,0)-(100,30), regardless of whether updateGeometry() and show() are called on the widget. So, this macro just hard-codes the screen rectangle to a value which works when the breakfast.mp4 clip is used for testing. PHONON_MMF_EXPLICITLY_SHOW_VIDEO_WIDGET In order that the video region does not overwrite the slider and buttons below it, the parent widget of the VideoObject instance must be appropriately re-sized. Debugging showed that both the parent and grandparent of VideoObject are in fact invisible at the time playback begins, so for now we just manually call show() on the grandparent. Clearly both of these are only temporary measures, for use until the underlying cause of the problem has been determined.
* Added some missing signals in MediaObject; fixed seek slider in musicplayer.exeGareth Stockwell2009-08-251-8/+12
|
* Modified video player to call updateGeometry on video display widget; having ↵Gareth Stockwell2009-08-251-2/+75
| | | | no effect at present
* Implemented connection between MediaOutput and VideoWidgetGareth Stockwell2009-08-211-2/+8
| | | | | Video is still not visible; need to debug the initialization of the VideoOutput object to determine whether DSA is being aborted.
* Further tidied up volume handlingGareth Stockwell2009-08-211-0/+45