1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * Copyright (C) 2024, Red Hat, Inc. * * PPM writer */ #pragma once #include <libcamera/base/span.h> #include <libcamera/stream.h> class PPMWriter { public: static int write(const char *filename, const libcamera::StreamConfiguration &config, const libcamera::Span<uint8_t> &data); };