summaryrefslogtreecommitdiff
path: root/includes/dynamic_depth/dynamic_depth.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/dynamic_depth/dynamic_depth.h')
-rw-r--r--includes/dynamic_depth/dynamic_depth.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/dynamic_depth/dynamic_depth.h b/includes/dynamic_depth/dynamic_depth.h
index 40a0db7..5f8b760 100644
--- a/includes/dynamic_depth/dynamic_depth.h
+++ b/includes/dynamic_depth/dynamic_depth.h
@@ -4,7 +4,6 @@
#include "dynamic_depth/device.h"
#include "xmpmeta/xmp_writer.h"
-namespace photos_editing_formats {
namespace dynamic_depth {
// Serialize a JPEG image, its Dynamic Depth metadata, and GContainer files
@@ -14,6 +13,11 @@ bool WriteImageAndMetadataAndContainer(const string& out_filename,
size_t primary_image_bytes_count,
Device* device);
+// Same as WriteImageAndMetadataAndContainer, but on istream and ostream.
+bool WriteImageAndMetadataAndContainer(std::istream* input_jpeg_stream,
+ Device* device,
+ std::ostream* output_jpeg_stream);
+
// Retrieves the contents of a Container:Item's associated file. The contents
// are populated into out_payload.
// As per the Dynamic Depth spec, file contents are base64-encoded if they're
@@ -29,6 +33,5 @@ bool GetItemPayload(const string& input_image_filename, const Device* device,
const string& item_uri, string* out_payload);
} // namespace dynamic_depth
-} // namespace photos_editing_formats
-#endif // DYNAMIC_DEPTH_INCLUDES_DYNAMIC_DEPTH_DYNAMIC_DEPTH_H_ // NOLINT
+#endif // DYNAMIC_DEPTH_INCLUDES_DYNAMIC_DEPTH_DYNAMIC_DEPTH_H_ // NOLINT