[PATCH v3 0/1] cam: Add support for pnm output format

Milan Zamazal mzamazal at redhat.com
Mon Mar 18 11:43:56 CET 2024


This is to make cam file output directly usable in image viewers and
processors, without the need to explore the file format and to convert
it to something usable using home-made converters.

v3:
 - Pass Sink rather than void* to the writer.
 - Fix the copyright line.

v2: No change, just rebased on current master.

Milan Zamazal (1):
  apps: cam: Add support for pnm output format

 src/apps/cam/file_sink.cpp     | 11 +++++++
 src/apps/cam/main.cpp          |  2 ++
 src/apps/common/meson.build    |  1 +
 src/apps/common/pnm_writer.cpp | 54 ++++++++++++++++++++++++++++++++++
 src/apps/common/pnm_writer.h   | 20 +++++++++++++
 5 files changed, 88 insertions(+)
 create mode 100644 src/apps/common/pnm_writer.cpp
 create mode 100644 src/apps/common/pnm_writer.h

-- 
2.42.0



More information about the libcamera-devel mailing list