summaryrefslogtreecommitdiff
path: root/src/AS_DCP_JP2K.cpp
diff options
context:
space:
mode:
authorJohn Hurst <jhurst@cinecert.com>2021-08-26 20:42:53 -0700
committerGitHub <noreply@github.com>2021-08-26 20:42:53 -0700
commitb8c87905046423d7f04e9103ffb321a4d23870eb (patch)
tree06ca1754874997abe9279e34b275ff5159e3d927 /src/AS_DCP_JP2K.cpp
parent1ff08641353a1ff1887f223dc01310cc0167d8fe (diff)
parentfdd28f8bb3608978e75b27c5410db447396f361b (diff)
Merge pull request #10 from DolbyLaboratories/dolby/atmos_storage/asdcplib_integration/definitions_into_namespace
Put definitions inside their corresponding namespaces
Diffstat (limited to 'src/AS_DCP_JP2K.cpp')
-rwxr-xr-xsrc/AS_DCP_JP2K.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/AS_DCP_JP2K.cpp b/src/AS_DCP_JP2K.cpp
index 39aaa2a..73b0494 100755
--- a/src/AS_DCP_JP2K.cpp
+++ b/src/AS_DCP_JP2K.cpp
@@ -513,7 +513,10 @@ ASDCP::MD_to_JP2K_PDesc(const ASDCP::MXF::GenericPictureEssenceDescriptor& Esse
//
// hidden, internal implementation of JPEG 2000 reader
+namespace ASDCP {
+namespace JP2K
+{
class lh__Reader : public ASDCP::h__ASDCPReader
{
RGBAEssenceDescriptor* m_EssenceDescriptor;
@@ -535,6 +538,8 @@ public:
Result_t OpenRead(const std::string&, EssenceType_t);
Result_t ReadFrame(ui32_t, JP2K::FrameBuffer&, AESDecContext*, HMACContext*);
};
+} // namespace JP2K
+} // namespace asdcp
//
@@ -1131,6 +1136,10 @@ ASDCP::JP2K::MXFSReader::Close() const
//
+namespace ASDCP {
+
+namespace JP2K
+{
class lh__Writer : public ASDCP::h__ASDCPWriter
{
ASDCP_NO_COPY_CONSTRUCT(lh__Writer);
@@ -1154,6 +1163,8 @@ public:
Result_t WriteFrame(const JP2K::FrameBuffer&, bool add_index, AESEncContext*, HMACContext*);
Result_t Finalize();
};
+} // namespace JP2K
+} // namespace asdcp
// Open the file for writing. The file must not exist. Returns error if
// the operation cannot be completed.