summaryrefslogtreecommitdiff
path: root/dxr3pesframe.h
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-04-18 22:57:09 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-04-18 22:57:09 +0200
commitda6fe9555e54e3277f59bdadf20fc35ab2056280 (patch)
treee9b87a158d9e2f1273513c7facd9620118f8477a /dxr3pesframe.h
parente69dd2aef4cd63be6804e022c60a79f11e785cf9 (diff)
downloadvdr-plugin-dxr3-da6fe9555e54e3277f59bdadf20fc35ab2056280.tar.gz
vdr-plugin-dxr3-da6fe9555e54e3277f59bdadf20fc35ab2056280.tar.bz2
get rid of IsValid from cDxr3PesFrame
Diffstat (limited to 'dxr3pesframe.h')
-rw-r--r--dxr3pesframe.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/dxr3pesframe.h b/dxr3pesframe.h
index 345f184..50f30d8 100644
--- a/dxr3pesframe.h
+++ b/dxr3pesframe.h
@@ -103,7 +103,6 @@ public:
public:
cDxr3PesFrame() :
m_pesDataType(PES_UNKNOWN_DATA),
- m_bValid(false),
m_pPesStart(0),
m_payload(0),
m_payloadLength(0),
@@ -122,78 +121,62 @@ public:
ePesDataType GetPesDataType() const
{
- assert(m_bValid);
return m_pesDataType;
}
const uint8_t* GetPesStart() const
{
- assert(m_bValid);
return m_pPesStart;
}
const uint8_t* GetPayload() const
{
- assert(m_bValid);
return m_payload;
}
uint32_t GetPayloadLength() const
{
- assert(m_bValid);
return m_payloadLength;
}
uint32_t GetPts() const
{
- assert(m_bValid);
return m_pts;
}
eVideoFrameType GetFrameType() const
{
- assert(m_bValid);
assert(m_pesDataType == PES_VIDEO_DATA);
return m_videoFrameType;
}
uint32_t GetAspectRatio() const
{
- assert(m_bValid);
assert(m_pesDataType == PES_VIDEO_DATA);
return m_aspectRatio;
}
uint32_t GetHorizontalSize() const
{
- assert(m_bValid);
assert(m_pesDataType == PES_VIDEO_DATA);
return m_horizontalSize;
}
uint32_t GetVerticalSize() const
{
- assert(m_bValid);
assert(m_pesDataType == PES_VIDEO_DATA);
return m_verticalSize;
}
int GetOffset() const
{
- assert(m_bValid);
return m_offset;
}
- bool IsValid()
- {
- return m_bValid;
- }
-
protected:
void InitData()
{
m_pesDataType = PES_UNKNOWN_DATA;
- m_bValid = false;
m_pPesStart = 0;
m_payload = 0;
m_payloadLength = 0;
@@ -208,7 +191,6 @@ protected:
}
ePesDataType m_pesDataType;
- bool m_bValid;
const uint8_t* m_pPesStart;
const uint8_t* m_payload;
uint32_t m_payloadLength;