diff options
| author | jhurst <jhurst@cinecert.com> | 2018-10-13 21:48:34 +0000 |
|---|---|---|
| committer | jhurst <> | 2018-10-13 21:48:34 +0000 |
| commit | 2d8ed1812b98fe0af65fccf2e1565e724a93d701 (patch) | |
| tree | 779e314b38bc2d26ae597d57b65d9d64c9c29a4e /src/AS_02_PHDR.h | |
| parent | 0f29208c6d5be72d3bd03c1e72d92451e62d3727 (diff) | |
Removed PIMD support (unused prototype)
Diffstat (limited to 'src/AS_02_PHDR.h')
| -rw-r--r-- | src/AS_02_PHDR.h | 90 |
1 files changed, 1 insertions, 89 deletions
diff --git a/src/AS_02_PHDR.h b/src/AS_02_PHDR.h index 5609ea5..754247d 100644 --- a/src/AS_02_PHDR.h +++ b/src/AS_02_PHDR.h @@ -1,5 +1,5 @@ /* -Copyright (c) 2011-2016, John Hurst +Copyright (c) 2011-2018, John Hurst All rights reserved. @@ -182,94 +182,6 @@ namespace AS_02 } // end namespace PHDR - namespace PIDM - { - // - class MXFWriter - { - class h__Writer; - ASDCP::mem_ptr<h__Writer> m_Writer; - ASDCP_NO_COPY_CONSTRUCT(MXFWriter); - - public: - MXFWriter(); - virtual ~MXFWriter(); - - // Warning: direct manipulation of MXF structures can interfere - // with the normal operation of the wrapper. Caveat emptor! - virtual ASDCP::MXF::OP1aHeader& OP1aHeader(); - virtual ASDCP::MXF::RIP& RIP(); - - // Open the file for writing. The file must not exist. Returns error if - // the operation cannot be completed or if nonsensical data is discovered - // in the essence descriptor. - Result_t OpenWrite(const std::string& filename, const ASDCP::WriterInfo&, - const ASDCP::UL& data_essence_coding, - const ASDCP::Rational& edit_rate, const ui32_t& header_size = 16384, - const IndexStrategy_t& strategy = IS_FOLLOW, const ui32_t& partition_space = 10); - - // Writes a frame of essence to the MXF file. If the optional AESEncContext - // argument is present, the essence is encrypted prior to writing. - // Fails if the file is not open, is finalized, or an operating system - // error occurs. - Result_t WriteFrame(const ASDCP::FrameBuffer&, ASDCP::AESEncContext* = 0, ASDCP::HMACContext* = 0); - - // Closes the MXF file, writing the index and revised header. No global metadata block is written. - Result_t Finalize(); - - // Closes the MXF file, writing the global metadata block and then final index and revised header. - Result_t Finalize(const ASDCP::FrameBuffer& global_metadata); - }; - - // - class MXFReader - { - class h__Reader; - ASDCP::mem_ptr<h__Reader> m_Reader; - ASDCP_NO_COPY_CONSTRUCT(MXFReader); - - public: - MXFReader(); - virtual ~MXFReader(); - - // Warning: direct manipulation of MXF structures can interfere - // with the normal operation of the wrapper. Caveat emptor! - virtual ASDCP::MXF::OP1aHeader& OP1aHeader(); - virtual AS_02::MXF::AS02IndexReader& AS02IndexReader(); - virtual ASDCP::MXF::RIP& RIP(); - - // Open the file for reading. The file must exist. Returns error if the - // operation cannot be completed. - Result_t OpenRead(const std::string& filename) const; - - // Open the file for reading. The file must exist. Returns error if the - // operation cannot be completed. If global metadata is available it will - // be placed into the buffer object passed as the second argument. - Result_t OpenRead(const std::string& filename, ASDCP::FrameBuffer& global_metadata) const; - - // Returns RESULT_INIT if the file is not open. - Result_t Close() const; - - // Fill a WriterInfo struct with the values from the file's header. - // Returns RESULT_INIT if the file is not open. - Result_t FillWriterInfo(ASDCP::WriterInfo&) const; - - // Reads a frame of essence from the MXF file. If the optional AESEncContext - // argument is present, the essence is decrypted after reading. If the MXF - // file is encrypted and the AESDecContext argument is NULL, the frame buffer - // will contain the ciphertext frame data. If the HMACContext argument is - // not NULL, the HMAC will be calculated (if the file supports it). - // Returns RESULT_INIT if the file is not open, failure if the frame number is - // out of range, or if optional decrypt or HAMC operations fail. - Result_t ReadFrame(ui32_t frame_number, ASDCP::FrameBuffer&, ASDCP::AESDecContext* = 0, ASDCP::HMACContext* = 0) const; - - // Print debugging information to stream - void DumpHeaderMetadata(FILE* = 0) const; - void DumpIndex(FILE* = 0) const; - }; - - } - } // end namespace AS_02 #endif // _AS_02_PHDR_H_ |
