summaryrefslogtreecommitdiff
path: root/src/py/libcamera/py_helpers.h
blob: 983969dfff0373b14bc87f082a4de10888d0dd7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* 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/pybind11.h>

pybind11::object controlValueToPy(const libcamera::ControlValue &cv);
libcamera::ControlValue pyToControlValue(const pybind11::object &ob, libcamera::ControlType type);