From: jhurst Date: Tue, 24 Feb 2009 01:44:50 +0000 (+0000) Subject: text UL updates X-Git-Tag: rel_2_10_32~427 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=c476a7b00664ca00003ad01f01e5270fca31790a;p=asdcplib.git text UL updates --- diff --git a/src/AS_DCP_TimedText.cpp b/src/AS_DCP_TimedText.cpp index b9bda07..d011758 100644 --- a/src/AS_DCP_TimedText.cpp +++ b/src/AS_DCP_TimedText.cpp @@ -92,7 +92,7 @@ ASDCP::TimedText::DescriptorDump(ASDCP::TimedText::TimedTextDescriptor const& TD fprintf(stream, "ContainerDuration: %u\n", TDesc.ContainerDuration); fprintf(stream, " AssetID: %s\n", TmpID.EncodeHex(buf, 64)); fprintf(stream, " NamespaceName: %s\n", TDesc.NamespaceName.c_str()); - fprintf(stream, " ResourceCount: %du\n", TDesc.ResourceList.size()); + fprintf(stream, " ResourceCount: %d\n", TDesc.ResourceList.size()); TimedText::ResourceList_t::const_iterator ri; for ( ri = TDesc.ResourceList.begin() ; ri != TDesc.ResourceList.end(); ri++ ) @@ -318,7 +318,7 @@ ASDCP::TimedText::MXFReader::h__Reader::ReadAncillaryResource(const byte_t* uuid // read the essence packet if( ASDCP_SUCCESS(result) ) - result = ReadEKLVPacket(0, 1, FrameBuf, Dict::ul(MDD_TimedTextEssence), Ctx, HMAC); + result = ReadEKLVPacket(0, 1, FrameBuf, Dict::ul(MDD_GenericStream_DataElement), Ctx, HMAC); } } } @@ -584,6 +584,7 @@ ASDCP::TimedText::MXFWriter::h__Writer::WriteAncillaryResource(const ASDCP::Time Kumu::fpos_t here = m_File.Tell(); // create generic stream partition header + static UL GenericStream_DataElement(Dict::ul(MDD_GenericStream_DataElement)); MXF::Partition GSPart; GSPart.ThisPartition = here; @@ -597,9 +598,9 @@ ASDCP::TimedText::MXFWriter::h__Writer::WriteAncillaryResource(const ASDCP::Time Result_t result = GSPart.WriteToFile(m_File, TmpUL); if ( ASDCP_SUCCESS(result) ) - result = WriteEKLVPacket(FrameBuf, m_EssenceUL, Ctx, HMAC); + result = WriteEKLVPacket(FrameBuf, GenericStream_DataElement.Value(), Ctx, HMAC); - m_FramesWritten++; + m_FramesWritten++; return result; } diff --git a/src/MDD.cpp b/src/MDD.cpp index da0163f..1630b9a 100644 --- a/src/MDD.cpp +++ b/src/MDD.cpp @@ -479,7 +479,7 @@ static const ASDCP::MDDEntry s_MDD_Table[] = { { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x02, // 147 0x06, 0x01, 0x01, 0x04, 0x06, 0x03, 0x00, 0x00 }, {0x2f, 0x01}, true, "GenericDescriptor_Locators" }, - { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x02, // 148 + { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x09, // 148 0x06, 0x01, 0x01, 0x04, 0x06, 0x10, 0x00, 0x00 }, {0}, true, "GenericDescriptor_SubDescriptors" }, { { 0x06, 0x0e, 0x2b, 0x34, 0x02, 0x53, 0x01, 0x01, // 149 @@ -800,7 +800,7 @@ static const ASDCP::MDDEntry s_MDD_Table[] = { { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x09, // 254 0x02, 0x09, 0x03, 0x01, 0x02, 0x00, 0x00, 0x00 }, {0}, false, "CryptographicContext_CryptographicKeyID" }, - { { 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x09, // 255 + { { 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x0a, // 255 0x0d, 0x01, 0x03, 0x01, 0x02, 0x13, 0x01, 0x01 }, {0}, false, "TimedTextWrapping" }, { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x02, 0x01, 0x09, // 256 @@ -830,8 +830,8 @@ static const ASDCP::MDDEntry s_MDD_Table[] = { { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x04, // 264 0x01, 0x03, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00 }, {0}, false, "TimedTextResourceSubDescriptor_EssenceStreamID" }, - { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x04, // 265 - 0x06, 0x10, 0x10, 0x05, 0x01, 0x02, 0x11, 0x00 }, + { { 0x06, 0x0e, 0x2b, 0x34, 0x02, 0x05, 0x01, 0x01, // 265 + 0x0d, 0x01, 0x02, 0x01, 0x01, 0x03, 0x11, 0x00 }, {0}, false, "GenericStreamPartition" }, { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x02, // 266 0x04, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 }, @@ -848,11 +848,14 @@ static const ASDCP::MDDEntry s_MDD_Table[] = { { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x07, // 270 0x04, 0x02, 0x01, 0x01, 0x05, 0x00, 0x00, 0x00 }, {0x3d, 0x32}, true, "WaveAudioDescriptor_ChannelAssignment" }, + { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x0c, // 271 + 0x0d, 0x01, 0x05, 0x05, 0x01, 0x00, 0x00, 0x00 }, + {0x00, 0x00}, false, "GenericStream_DataElement" }, { {0}, {0}, false, 0 } }; -const ui32_t s_MDD_Table_size = 270; +const ui32_t s_MDD_Table_size = 272; // // end MDD.cpp diff --git a/src/MDD.h b/src/MDD.h index 5ec2b23..343757e 100755 --- a/src/MDD.h +++ b/src/MDD.h @@ -306,7 +306,8 @@ namespace ASDCP { MDD_DMSegment_TrackIDList, // 268 MDD_StereoscopicPictureSubDescriptor, // 269 MDD_WaveAudioDescriptor_ChannelAssignment, // 270 - MDD_Max, + MDD_GenericStream_DataElement, // 271 + MDD_Max }; // enum MDD_t } // namespaceASDCP