summaryrefslogtreecommitdiff
path: root/src/Index.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2012-02-03 19:49:57 +0000
committerjhurst <>2012-02-03 19:49:57 +0000
commite0f46a5384974afa6f0be8a738e4989853323fbe (patch)
treef241bfa4eddad47143afa6164aa18735e7b1de90 /src/Index.cpp
parent99f3c9bd7e314ed2342598ad0e2357c68c79e732 (diff)
megachanges
Diffstat (limited to 'src/Index.cpp')
-rwxr-xr-xsrc/Index.cpp25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/Index.cpp b/src/Index.cpp
index 307e851..449d5bf 100755
--- a/src/Index.cpp
+++ b/src/Index.cpp
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2005-2009, John Hurst
+Copyright (c) 2005-2012, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -39,6 +39,8 @@ ASDCP::MXF::IndexTableSegment::IndexTableSegment(const Dictionary*& d) :
IndexStartPosition(0), IndexDuration(0), EditUnitByteCount(0),
IndexSID(129), BodySID(1), SliceCount(0), PosTableCount(0)
{
+ assert(m_Dict);
+ m_UL = m_Dict->ul(MDD_IndexTableSegment);
}
//
@@ -47,6 +49,23 @@ ASDCP::MXF::IndexTableSegment::~IndexTableSegment()
}
//
+void
+ASDCP::MXF::IndexTableSegment::Copy(const IndexTableSegment& rhs)
+{
+ InterchangeObject::Copy(rhs);
+ IndexEditRate = rhs.IndexEditRate;
+ IndexStartPosition = rhs.IndexStartPosition;
+ IndexDuration = rhs.IndexDuration;
+ EditUnitByteCount = rhs.EditUnitByteCount;
+ IndexSID = rhs.IndexSID;
+ BodySID = rhs.BodySID;
+ SliceCount = rhs.SliceCount;
+ PosTableCount = rhs.PosTableCount;
+ DeltaEntryArray = rhs.DeltaEntryArray;
+ IndexEntryArray = rhs.IndexEntryArray;
+}
+
+//
ASDCP::Result_t
ASDCP::MXF::IndexTableSegment::InitFromTLVSet(TLVReader& TLVSet)
{
@@ -86,8 +105,6 @@ ASDCP::MXF::IndexTableSegment::WriteToTLVSet(TLVWriter& TLVSet)
ASDCP::Result_t
ASDCP::MXF::IndexTableSegment::InitFromBuffer(const byte_t* p, ui32_t l)
{
- assert(m_Dict);
- m_Typeinfo = &(m_Dict->Type(MDD_IndexTableSegment));
return InterchangeObject::InitFromBuffer(p, l);
}
@@ -95,8 +112,6 @@ ASDCP::MXF::IndexTableSegment::InitFromBuffer(const byte_t* p, ui32_t l)
ASDCP::Result_t
ASDCP::MXF::IndexTableSegment::WriteToBuffer(ASDCP::FrameBuffer& Buffer)
{
- assert(m_Dict);
- m_Typeinfo = &(m_Dict->Type(MDD_IndexTableSegment));
return InterchangeObject::WriteToBuffer(Buffer);
}