[PATCH v4 0/1] cam: Add support for PPM output format

Milan Zamazal mzamazal at redhat.com
Fri Mar 22 20:50:31 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.

v4 (Laurent's review addressed):
 - Use "ppm" rather than "pnm" everywhere.
 - Alphabetical ordering at several places.
 - config.stride used directly instead of storing it to a variable.
 - A short note regarding file formats added to the commit message.

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 PPM output format

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

-- 
2.42.0



More information about the libcamera-devel mailing list