summaryrefslogtreecommitdiff
path: root/src/qcam/dng_writer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/dng_writer.h')
-rw-r--r--src/qcam/dng_writer.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/qcam/dng_writer.h b/src/qcam/dng_writer.h
new file mode 100644
index 00000000..88b21875
--- /dev/null
+++ b/src/qcam/dng_writer.h
@@ -0,0 +1,29 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2020, Raspberry Pi (Trading) Ltd.
+ *
+ * dng_writer.h - DNG writer
+ */
+#ifndef __LIBCAMERA_DNG_WRITER_H__
+#define __LIBCAMERA_DNG_WRITER_H__
+
+#ifdef HAVE_TIFF
+#define HAVE_DNG
+
+#include <libcamera/buffer.h>
+#include <libcamera/camera.h>
+#include <libcamera/stream.h>
+
+using namespace libcamera;
+
+class DNGWriter
+{
+public:
+ static int write(const char *filename, const Camera *camera,
+ const StreamConfiguration &config,
+ const FrameBuffer *buffer, const void *data);
+};
+
+#endif /* HAVE_TIFF */
+
+#endif /* __LIBCAMERA_DNG_WRITER_H__ */