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

+23
View File
@@ -36,6 +36,20 @@ namespace plaYUVer
class LibAvContextHandle;
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 PlaYUVerStream
{
private:
@@ -47,6 +61,8 @@ private:
Bool m_bLoadAll;
Int m_iErrorStatus;
PlaYUVerStreamInfo m_sStreamInfo;
LibAvContextHandle* m_cLibAvContext;
QString m_cFilename;
@@ -297,8 +313,15 @@ public:
m_uiHeight = new_height;
}
}
PlaYUVerStreamInfo getStreamInfo()
{
return m_sStreamInfo;
}
};
} // NAMESPACE
Q_DECLARE_METATYPE(plaYUVer::PlaYUVerStreamInfo);
Q_DECLARE_METATYPE(plaYUVer::PlaYUVerStreamInfoVector);
#endif // __PLAYUVERSTREAM_H__