summaryrefslogtreecommitdiff
path: root/src/AS_DCP.h
diff options
context:
space:
mode:
authormsheby <msheby@cinecert.com>2008-07-11 01:04:24 +0000
committermsheby <>2008-07-11 01:04:24 +0000
commit8fad4cc485b8791abb93ec97fe6bff7b7aa3834b (patch)
treebe23e6b1bce0e9ef0d9bab1c11da86807c9ce993 /src/AS_DCP.h
parentc10e0c7be537d3bb949d2c200f508a1b6bab1e0d (diff)
Use iostreams instead of file descriptors for dumping.
Diffstat (limited to 'src/AS_DCP.h')
-rwxr-xr-xsrc/AS_DCP.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/AS_DCP.h b/src/AS_DCP.h
index bda4c13..b49746b 100755
--- a/src/AS_DCP.h
+++ b/src/AS_DCP.h
@@ -90,7 +90,7 @@ This project depends upon the following libraries:
#include <stdio.h>
#include <stdarg.h>
#include <math.h>
-#include <iostream>
+#include <iosfwd>
#include <string>
#include <list>
@@ -338,6 +338,8 @@ namespace ASDCP {
}
};
+ // Print WriterInfo to std::ostream
+ std::ostream& operator << (std::ostream& strm, const WriterInfo& winfo);
// Print WriterInfo to stream, stderr by default.
void WriterInfoDump(const WriterInfo&, FILE* = 0);
@@ -568,6 +570,8 @@ namespace ASDCP {
ui32_t ContainerDuration; //
};
+ // Print VideoDescriptor to std::ostream
+ std::ostream& operator << (std::ostream& strm, const VideoDescriptor& vdesc);
// Print VideoDescriptor to stream, stderr by default.
void VideoDescriptorDump(const VideoDescriptor&, FILE* = 0);
@@ -760,6 +764,8 @@ namespace ASDCP {
ui32_t ContainerDuration; // number of frames
};
+ // Print AudioDescriptor to std::ostream
+ std::ostream& operator << (std::ostream& strm, const AudioDescriptor& adesc);
// Print debugging information to stream (stderr default)
void AudioDescriptorDump(const AudioDescriptor&, FILE* = 0);
@@ -962,6 +968,8 @@ namespace ASDCP {
QuantizationDefault_t QuantizationDefault;
};
+ // Print debugging information to std::ostream
+ std::ostream& operator << (std::ostream& strm, const PictureDescriptor& pdesc);
// Print debugging information to stream (stderr default)
void PictureDescriptorDump(const PictureDescriptor&, FILE* = 0);
@@ -1247,6 +1255,8 @@ namespace ASDCP {
TimedTextDescriptor() : ContainerDuration(0), EncodingName("UTF-8") {} // D-Cinema format is always UTF-8
};
+ // Print debugging information to std::ostream
+ std::ostream& operator << (std::ostream& strm, const TimedTextDescriptor& tinfo);
// Print debugging information to stream (stderr default)
void DescriptorDump(const TimedTextDescriptor&, FILE* = 0);