summaryrefslogtreecommitdiff
path: root/src/AS_DCP_internal.h
diff options
context:
space:
mode:
authormilla <marc.illa@dolby.com>2021-05-26 14:13:38 +0200
committermilla <marc.illa@dolby.com>2021-06-03 14:12:33 +0200
commitc45055937fb80cf78384e942dea0a57b5bf4b14c (patch)
treebdc6e5ad02c185da6ef55452b67406c1c64fe1fe /src/AS_DCP_internal.h
parentf9d7fbc33aa571c547d916b145712469efd9f4b8 (diff)
Added API functions in AS_02_IAB.h: AddDmsGenericPartUtf8Text for write and ReadGenericStreamPartitionPayload for read. These functions are a wrapper so that the writer and reader call their implementation of AddDmsGenericPartUtf8Text and ReadGenericStreamPartitionPayload respectively. In the case of the AddDmsGenericPartUtf8Text 2 new parameters have been added: trackDescription and dataDescription.
Diffstat (limited to 'src/AS_DCP_internal.h')
-rwxr-xr-xsrc/AS_DCP_internal.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/AS_DCP_internal.h b/src/AS_DCP_internal.h
index 5626058..7f3201f 100755
--- a/src/AS_DCP_internal.h
+++ b/src/AS_DCP_internal.h
@@ -170,7 +170,8 @@ namespace ASDCP
WriterInfo& Descr, const UL& WrappingUL, const Dictionary *Dict);
Result_t AddDmsTrackGenericPartUtf8Text(Kumu::FileWriter&, ASDCP::MXF::OP1aHeader&, SourcePackage&,
- ASDCP::MXF::RIP&, const Dictionary*);
+ ASDCP::MXF::RIP&, const Dictionary*, const std::string&, const std::string&, std::list<ui64_t*>&);
+
//
Result_t WriteGenericStreamPartition(Kumu::FileWriter&, ASDCP::MXF::OP1aHeader&, ASDCP::MXF::RIP&, const Dictionary*,
const ASDCP::FrameBuffer&, ASDCP::AESEncContext* = 0, ASDCP::HMACContext* = 0);
@@ -854,10 +855,13 @@ namespace ASDCP
}
Result_t AddDmsGenericPartUtf8Text(const ASDCP::FrameBuffer& frame_buffer,
- ASDCP::AESEncContext* enc = 0, ASDCP::HMACContext* hmac = 0)
+ ASDCP::AESEncContext* enc = 0, ASDCP::HMACContext* hmac = 0,
+ const std::string& trackDescription = "Descriptive Track",
+ const std::string& dataDescription = "")
{
Kumu::fpos_t previous_partition_offset = m_RIP.PairArray.back().ByteOffset;
- Result_t result = AddDmsTrackGenericPartUtf8Text(m_File, m_HeaderPart, *m_FilePackage, m_RIP, m_Dict);
+
+ Result_t result = AddDmsTrackGenericPartUtf8Text(m_File, m_HeaderPart, *m_FilePackage, m_RIP, m_Dict, trackDescription, dataDescription, m_DurationUpdateList);
if ( KM_SUCCESS(result) )
{
@@ -886,8 +890,9 @@ namespace ASDCP
if ( KM_SUCCESS(result) )
{
+ ui64_t streamOffset = m_StreamOffset;
result = Write_EKLV_Packet(m_File, *m_Dict, m_HeaderPart, m_Info, m_CtFrameBuf, m_FramesWritten,
- m_StreamOffset, frame_buffer, GenericStream_DataElement.Value(),
+ streamOffset, frame_buffer, GenericStream_DataElement.Value(),
MXF_BER_LENGTH, enc, hmac);
}
}