Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/3rdparty/phonon/qt7/mediaobject.h

    r2 r561  
    2525
    2626#include "medianode.h"
     27
     28#if QT_ALLOW_QUICKTIME
     29    #include <QuickTime/QuickTime.h>
     30#endif
    2731
    2832QT_BEGIN_NAMESPACE
     
    3943
    4044    class MediaObject : public MediaNode,
    41         public Phonon::MediaObjectInterface, public Phonon::AddonInterface
     45        public Phonon::MediaObjectInterface
     46#ifndef QT_NO_PHONON_MEDIACONTROLLER
     47        , public Phonon::AddonInterface
     48#endif
    4249    {
    4350        Q_OBJECT
     
    9299
    93100                int videoOutputCount();
     101
     102#if QT_ALLOW_QUICKTIME
     103        void displayLinkEvent();
     104#endif
    94105
    95106    signals:
     
    106117        void currentSourceChanged(const MediaSource &newSource);
    107118
     119        // Add-on interface:
     120        void availableSubtitlesChanged();
     121        void availableAudioChannelsChanged();
     122        void titleChanged(int);
     123        void availableTitlesChanged(int);
     124        void chapterChanged(int);
     125        void availableChaptersChanged(int);
     126        void angleChanged(int);
     127        void availableAnglesChanged(int);
     128
    108129    protected:
    109130        void mediaNodeEvent(const MediaNodeEvent *event);
     
    119140        QuickTimeAudioPlayer *m_nextAudioPlayer;
    120141        MediaObjectAudioNode *m_mediaObjectAudioNode;
    121         QuickTimeMetaData *m_metaData;
     142
     143#if QT_ALLOW_QUICKTIME
     144        CVDisplayLinkRef m_displayLink;
     145        QMutex m_displayLinkMutex;
     146        bool m_pendingDisplayLinkEvent;
     147        void startDisplayLink();
     148        void stopDisplayLink();
     149#endif
    122150
    123151        qint32 m_tickInterval;
     
    128156
    129157        int m_tickTimer;
    130         int m_bufferTimer;
     158        int m_videoTimer;
     159        int m_audioTimer;
    131160        int m_rapidTimer;
    132161
     
    134163        int m_swapTimeLeft;
    135164        QTime m_swapTime;
     165        bool m_autoplayTitles;
    136166
    137167        void synchAudioVideo();
     
    142172        void play_internal();
    143173        void setupAudioSystem();
    144         void updateTimer(int &timer, int interval);
    145         void bufferAudioVideo();
     174        void restartAudioVideoTimers();
    146175        void updateRapidly();
    147176        void updateCrossFade();
     
    155184        void inspectGraph();
    156185        bool isCrossFading();
     186        void setCurrentTrack(int track);
    157187
    158188        QString m_errorString;
Note: See TracChangeset for help on using the changeset viewer.