summaryrefslogtreecommitdiff
path: root/src/apps/common/ppm_writer.h
blob: 8c8d2e15a6ede10e4a734dd46eb5632d4ae6ffdd (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
 */

#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);
};