Change stream info to PlaYUVerStream file

This commit is contained in:
jfmcarreira committed 2014-10-04 18:36:51 +01:00
1 parent 9906befa92
commit 60b82a0bf0
5 files changed
+71 -67

No files matched your search

+6 -21
View File
@@ -41,20 +41,6 @@ namespace plaYUVer
class SubWindowHandle;
typedef struct
{
QString m_cFilename;
UInt m_uiWidth;
UInt m_uiHeight;
Int m_iPelFormat;
UInt m_uiFrameRate;
}PlaYUVerStreamInfo;
typedef QVector<PlaYUVerStreamInfo> PlaYUVerStreamInfoVector;
QDataStream& operator<<(QDataStream& out, const PlaYUVerStreamInfoVector& d);
QDataStream& operator>>(QDataStream& in, PlaYUVerStreamInfoVector& d);
class SubWindowHandle: public QMdiSubWindow
{
Q_OBJECT
@@ -64,11 +50,10 @@ private:
QScrollArea* m_cScrollArea;
ViewArea* m_cViewArea;
PlaYUVerStreamInfo m_sStreamInfo;
PlaYUVerStream* m_pCurrStream;
PlaYUVerFrame* m_pcCurrFrame;
QString m_cFilename;
PlaYUVerModuleIf* m_pcCurrentModule;
SubWindowHandle* m_pcReferenceSubWindow;
@@ -113,7 +98,10 @@ public:
PlaYUVerStreamInfo getStreamInfo()
{
return m_sStreamInfo;
PlaYUVerStreamInfo info;
if( m_pCurrStream )
info = m_pCurrStream->getStreamInfo();
return info;
}
PlaYUVerStream* getInputStream()
@@ -214,7 +202,7 @@ public:
}
QString getCurrentFileName()
{
return m_sStreamInfo.m_cFilename;
return m_cFilename;
}
Bool getIsModule()
@@ -233,8 +221,5 @@ public Q_SLOTS:
} // NAMESPACE
Q_DECLARE_METATYPE(plaYUVer::PlaYUVerStreamInfo);
Q_DECLARE_METATYPE(plaYUVer::PlaYUVerStreamInfoVector);
#endif // __SUBWINDOWHANDLE_H__