summaryrefslogtreecommitdiff
path: root/src/MXFTypes.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2011-10-27 22:07:13 +0000
committerjhurst <>2011-10-27 22:07:13 +0000
commit289216de368bb6456b2f5e5dc6d4c38abac2b0d9 (patch)
treeb71a49a34001f894fb8607e4ec261bfa12962977 /src/MXFTypes.cpp
parentd1be446a52726e2223f58b07e5bd2179c8742075 (diff)
release
Diffstat (limited to 'src/MXFTypes.cpp')
-rwxr-xr-xsrc/MXFTypes.cpp29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/MXFTypes.cpp b/src/MXFTypes.cpp
index e2741d3..1418541 100755
--- a/src/MXFTypes.cpp
+++ b/src/MXFTypes.cpp
@@ -38,6 +38,7 @@ using Kumu::DefaultLogSink;
//------------------------------------------------------------------------------------------
//
+//
bool
ASDCP::UL::operator==(const UL& rhs) const
{
@@ -48,7 +49,7 @@ ASDCP::UL::operator==(const UL& rhs) const
m_Value[4] == rhs.m_Value[4] &&
m_Value[5] == rhs.m_Value[5] &&
m_Value[6] == rhs.m_Value[6] &&
- // m_Value[7] == rhs.m_Value[7] && version is ignored when performing lookups
+ // m_Value[7] == rhs.m_Value[7] && // version is ignored when performing lookups
m_Value[8] == rhs.m_Value[8] &&
m_Value[9] == rhs.m_Value[9] &&
m_Value[10] == rhs.m_Value[10] &&
@@ -63,7 +64,33 @@ ASDCP::UL::operator==(const UL& rhs) const
return false;
}
+//
+bool
+ASDCP::UL::MatchIgnoreStream(const UL& rhs) const
+{
+ if ( m_Value[0] == rhs.m_Value[0] &&
+ m_Value[1] == rhs.m_Value[1] &&
+ m_Value[2] == rhs.m_Value[2] &&
+ m_Value[3] == rhs.m_Value[3] &&
+ m_Value[4] == rhs.m_Value[4] &&
+ m_Value[5] == rhs.m_Value[5] &&
+ m_Value[6] == rhs.m_Value[6] &&
+ // m_Value[7] == rhs.m_Value[7] && // version is ignored when performing lookups
+ m_Value[8] == rhs.m_Value[8] &&
+ m_Value[9] == rhs.m_Value[9] &&
+ m_Value[10] == rhs.m_Value[10] &&
+ m_Value[11] == rhs.m_Value[11] &&
+ m_Value[12] == rhs.m_Value[12] &&
+ m_Value[13] == rhs.m_Value[13] &&
+ m_Value[14] == rhs.m_Value[14]
+ // m_Value[15] == rhs.m_Value[15] // ignore stream number
+ )
+ return true;
+ return false;
+}
+
+//
bool
ASDCP::UL::ExactMatch(const UL& rhs) const
{