cam: file_sink: Add support for DNG output

Add support for outputting buffers in DNG format. It reuses the DNG
writer that we had previously in qcam.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Paul Elder 2022-10-17 20:33:23 +09:00
parent bb394442ab
commit 6404b163bc
5 changed files with 43 additions and 10 deletions

View file

@ -207,10 +207,10 @@ int CameraSession::start()
if (options_.isSet(OptFile)) {
if (!options_[OptFile].toString().empty())
sink_ = std::make_unique<FileSink>(streamNames_,
sink_ = std::make_unique<FileSink>(camera_.get(), streamNames_,
options_[OptFile]);
else
sink_ = std::make_unique<FileSink>(streamNames_);
sink_ = std::make_unique<FileSink>(camera_.get(), streamNames_);
}
if (sink_) {