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:
committed by
Laurent Pinchart
parent
c3515cf6e5
commit
9ecf311375
@@ -132,6 +132,7 @@ static void handleRequestCompleted(Request *req)
|
||||
|
||||
void init_py_enums(py::module &m);
|
||||
void init_py_control_enums_generated(py::module &m);
|
||||
void init_py_formats_generated(py::module &m);
|
||||
void init_py_geometry(py::module &m);
|
||||
|
||||
PYBIND11_MODULE(_libcamera, m)
|
||||
@@ -171,6 +172,8 @@ PYBIND11_MODULE(_libcamera, m)
|
||||
auto pyColorSpaceRange = py::enum_<ColorSpace::Range>(pyColorSpace, "Range");
|
||||
auto pyPixelFormat = py::class_<PixelFormat>(m, "PixelFormat");
|
||||
|
||||
init_py_formats_generated(m);
|
||||
|
||||
/* Global functions */
|
||||
m.def("log_set_level", &logSetLevel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user