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>
This commit is contained in:
committed by
Qt by Nokia
parent
abee3a6548
commit
da9b436cd1
@@ -93,7 +93,7 @@ public:
|
||||
~CameraBinSession();
|
||||
|
||||
GstPhotography *photography();
|
||||
GstElement *cameraBin() { return m_pipeline; }
|
||||
GstElement *cameraBin() { return m_camerabin; }
|
||||
QGstreamerBusHelper *bus() { return m_busHelper; }
|
||||
|
||||
CameraRole cameraRole() const;
|
||||
@@ -143,8 +143,6 @@ public:
|
||||
qint64 duration() const;
|
||||
|
||||
void recordVideo();
|
||||
void pauseVideoRecording();
|
||||
void resumeVideoRecording();
|
||||
void stopVideoRecording();
|
||||
|
||||
bool isMuted() const;
|
||||
@@ -176,8 +174,7 @@ private slots:
|
||||
private:
|
||||
bool setupCameraBin();
|
||||
void setupCaptureResolution();
|
||||
void updateVideoSourceCaps();
|
||||
GstElement *buildVideoSrc();
|
||||
GstElement *buildCameraSource();
|
||||
static void updateBusyStatus(GObject *o, GParamSpec *p, gpointer d);
|
||||
|
||||
QUrl m_sink;
|
||||
@@ -214,14 +211,12 @@ private:
|
||||
|
||||
QGstreamerBusHelper *m_busHelper;
|
||||
GstBus* m_bus;
|
||||
GstElement *m_pipeline;
|
||||
GstElement *m_camerabin;
|
||||
GstElement *m_videoSrc;
|
||||
GstElement *m_viewfinderElement;
|
||||
bool m_viewfinderHasChanged;
|
||||
bool m_videoInputHasChanged;
|
||||
|
||||
GstCaps *m_sourceCaps;
|
||||
|
||||
GstElement *m_audioSrc;
|
||||
GstElement *m_audioConvert;
|
||||
GstElement *m_capsFilter;
|
||||
|
||||
Reference in New Issue
Block a user