mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 02:15:05 +03:00
Clean up the py_main.cpp a bit by moving the ControlValue helpers to a separate file. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
13 lines
382 B
C
13 lines
382 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2022, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <libcamera/libcamera.h>
|
|
|
|
#include <pybind11/smart_holder.h>
|
|
|
|
pybind11::object controlValueToPy(const libcamera::ControlValue &cv);
|
|
libcamera::ControlValue pyToControlValue(const pybind11::object &ob, libcamera::ControlType type);
|