py: Generate pixel formats list

Generate a list of pixel formats under 'libcamera.formats'.

The 'formats' is a "dummy" container class, the only purpose of which is
to contain the read-only pixel format properties.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Tomi Valkeinen
2022-05-27 17:44:18 +03:00
committed by Laurent Pinchart
parent c3515cf6e5
commit 9ecf311375
4 changed files with 96 additions and 0 deletions
@@ -0,0 +1,25 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2022, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
*
* Python bindings - Auto-generated formats
*
* This file is auto-generated. Do not edit.
*/
#include <libcamera/formats.h>
#include <pybind11/smart_holder.h>
namespace py = pybind11;
class PyFormats
{
};
void init_py_formats_generated(py::module& m)
{
py::class_<PyFormats>(m, "formats")
${formats}
;
}