diff options
| author | John Hurst <jhurst@cinecert.com> | 2021-05-27 08:40:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-27 08:40:57 -0700 |
| commit | f9d7fbc33aa571c547d916b145712469efd9f4b8 (patch) | |
| tree | 7462f81cc3402e8c3d702bcade119ba57239d824 /src/AS_DCP_internal.h | |
| parent | c47dfc50558d41b5d6aba532bb1b709f0de1c044 (diff) | |
| parent | a1f2a8835d55652ff3a5dc4726efcfff7942a915 (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-x | src/AS_DCP_internal.h | 16 |
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, |
