summaryrefslogtreecommitdiff
path: root/src/AS_DCP_internal.h
diff options
context:
space:
mode:
authorJohn Hurst <jhurst@cinecert.com>2021-05-27 08:40:57 -0700
committerGitHub <noreply@github.com>2021-05-27 08:40:57 -0700
commitf9d7fbc33aa571c547d916b145712469efd9f4b8 (patch)
tree7462f81cc3402e8c3d702bcade119ba57239d824 /src/AS_DCP_internal.h
parentc47dfc50558d41b5d6aba532bb1b709f0de1c044 (diff)
parenta1f2a8835d55652ff3a5dc4726efcfff7942a915 (diff)
Merge pull request #89 from thorfdbg/master
Added the JXS functionality again into the core library.
Diffstat (limited to 'src/AS_DCP_internal.h')
-rwxr-xr-xsrc/AS_DCP_internal.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/AS_DCP_internal.h b/src/AS_DCP_internal.h
index f3d3c96..5626058 100755
--- a/src/AS_DCP_internal.h
+++ b/src/AS_DCP_internal.h
@@ -161,6 +161,7 @@ namespace ASDCP
const ASDCP::Dictionary& dict,
ASDCP::MXF::GenericPictureEssenceDescriptor& EssenceDescriptor,
ASDCP::MXF::JPEG2000PictureSubDescriptor& EssenceSubDescriptor);
+
Result_t PCM_ADesc_to_MD(PCM::AudioDescriptor& ADesc, ASDCP::MXF::WaveAudioDescriptor* ADescObj);
Result_t MD_to_PCM_ADesc(ASDCP::MXF::WaveAudioDescriptor* ADescObj, PCM::AudioDescriptor& ADesc);
@@ -378,6 +379,21 @@ namespace ASDCP
FrameNum, SequenceNum, FrameBuf, EssenceUL, Ctx, HMAC);
}
+ //
+ // Return the size of the packet
+ Result_t CalcFrameBufferSize(ui64_t &PacketLength)
+ {
+ KLReader Reader;
+ Result_t result = Reader.ReadKLFromFile(m_File);
+
+ if ( KM_FAILURE(result) )
+ return result;
+
+ PacketLength = Reader.Length();
+
+ return result;
+ }
+
// Get the position of a frame from a track file
Result_t LocateFrame(const ui64_t& body_offset,
ui32_t FrameNum, Kumu::fpos_t& streamOffset,