[v4,0/1] cam: Add support for PPM output format
mbox series

Message ID 20240322195032.1803017-1-mzamazal@redhat.com
Headers show
Series
  • cam: Add support for PPM output format
Related show

Message

Milan Zamazal March 22, 2024, 7:50 p.m. UTC
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