diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-05-01 03:19:19 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-05-02 14:46:17 +0200 |
commit | db7235b7141aa4e2922827b4678e25da4faa8c5d (patch) | |
tree | de98aff4cca9159255d5f9178e291d59932365fd /src/qcam/dng_writer.h | |
parent | 55d5e3e59f48ed251da5953657570c2f7c50a553 (diff) |
qcam: Add DNGWriter
Add an initial DNG file writer. The writer can only deal with a small
set of pixel formats. The generated file is consumable by standard
tools. The writer needs to be extended to write more metadata to the
generated file.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/dng_writer.h')
-rw-r--r-- | src/qcam/dng_writer.h | 29 |
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__ */ |