qtmobility/plugins/multimedia/gstreamer/mediacapture/qgstreamercaptureservice.h
changeset 14 6fbed849b4f4
parent 11 06b8e2af4411
equal deleted inserted replaced
11:06b8e2af4411 14:6fbed849b4f4
    42 #ifndef QGSTREAMERCAPTURESERVICE_H
    42 #ifndef QGSTREAMERCAPTURESERVICE_H
    43 #define QGSTREAMERCAPTURESERVICE_H
    43 #define QGSTREAMERCAPTURESERVICE_H
    44 
    44 
    45 #include <qmediaservice.h>
    45 #include <qmediaservice.h>
    46 
    46 
    47 #include "qgstreamervideooutputcontrol.h"
       
    48 
       
    49 #include <gst/gst.h>
    47 #include <gst/gst.h>
    50 QT_BEGIN_NAMESPACE
    48 QT_BEGIN_NAMESPACE
    51 class QAudioEndpointSelector;
    49 class QAudioEndpointSelector;
    52 class QVideoDeviceControl;
    50 class QVideoDeviceControl;
    53 QT_END_NAMESPACE
    51 QT_END_NAMESPACE
    70 
    68 
    71 public:
    69 public:
    72     QGstreamerCaptureService(const QString &service, QObject *parent = 0);
    70     QGstreamerCaptureService(const QString &service, QObject *parent = 0);
    73     virtual ~QGstreamerCaptureService();
    71     virtual ~QGstreamerCaptureService();
    74 
    72 
    75     QMediaControl *control(const char *name) const;
    73     QMediaControl *requestControl(const char *name);
    76 
    74     void releaseControl(QMediaControl *);
    77 private slots:
       
    78     void videoOutputChanged(QVideoOutputControl::Output output);    
       
    79 
    75 
    80 private:
    76 private:
    81     void setAudioPreview(GstElement*);
    77     void setAudioPreview(GstElement*);
    82 
    78 
    83     QGstreamerCaptureSession *m_captureSession;
    79     QGstreamerCaptureSession *m_captureSession;
    85     QGstreamerCaptureMetaDataControl *m_metaDataControl;
    81     QGstreamerCaptureMetaDataControl *m_metaDataControl;
    86 
    82 
    87     QAudioEndpointSelector *m_audioInputEndpointSelector;
    83     QAudioEndpointSelector *m_audioInputEndpointSelector;
    88     QVideoDeviceControl *m_videoInputDevice;
    84     QVideoDeviceControl *m_videoInputDevice;
    89 
    85 
    90     QGstreamerVideoOutputControl *m_videoOutput;
    86     QMediaControl *m_videoOutput;
       
    87 
    91     QGstreamerVideoRenderer *m_videoRenderer;
    88     QGstreamerVideoRenderer *m_videoRenderer;
    92     QGstreamerElementFactory *m_videoRendererFactory;
    89     QGstreamerElementFactory *m_videoRendererFactory;
    93     QGstreamerVideoOverlay *m_videoWindow;
    90     QMediaControl *m_videoWindow;
    94     QGstreamerElementFactory *m_videoWindowFactory;
    91     QGstreamerElementFactory *m_videoWindowFactory;
    95     QGstreamerVideoWidgetControl *m_videoWidgetControl;
    92     QMediaControl *m_videoWidgetControl;
    96     QGstreamerElementFactory *m_videoWidgetFactory;
    93     QGstreamerElementFactory *m_videoWidgetFactory;
    97 };
    94 };
    98 
    95 
    99 #endif // QGSTREAMERCAPTURESERVICE_H
    96 #endif // QGSTREAMERCAPTURESERVICE_H