summaryrefslogtreecommitdiff
path: root/src/py/libcamera/py_helpers.h
blob: cd31e2cc5fa42ce0530b05b53f415761df708651 (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/smart_holder.h>

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