summaryrefslogtreecommitdiff
path: root/src/apps/common/ppm_writer.h
blob: 4c38f5ce58617b67a746504ecc982f5f9b0f27d1 (plain)
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.h - 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);
};