diff options
| author | jhurst <jhurst@cinecert.com> | 2016-12-01 20:12:38 +0000 |
|---|---|---|
| committer | jhurst <> | 2016-12-01 20:12:38 +0000 |
| commit | c87b3d28b21c927561606cc65a25b47aebc69355 (patch) | |
| tree | cc54031828cc2f244291ed49ea0c21efcb9416d5 /src/AS_02.h | |
| parent | 8fd602770d89acb171dbd878d8737ead85aa35d3 (diff) | |
o Cleared up MXFGCP1FrameWrappedPictureElement / MXFGCP1FrameWrappedPictureElement
ambiguity. PHDR continues to use MXFGCP1FrameWrappedPictureElement.
MXFGCI1FrameWrappedPictureElement is supported for interlace.
o Added prototype PIDM dynamic metadata wrapping, config with --enable-phdr
Diffstat (limited to 'src/AS_02.h')
| -rw-r--r-- | src/AS_02.h | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/src/AS_02.h b/src/AS_02.h index 5d621a7..e4f761f 100644 --- a/src/AS_02.h +++ b/src/AS_02.h @@ -489,93 +489,6 @@ namespace AS_02 } // namespace TimedText - namespace AuxData - { - // - 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; - }; - - } } // namespace AS_02 |
