summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/awb_algorithm.hpp
diff options
context:
space:
mode:
authorNĂ­colas F. R. A. Prado <nfraprado@collabora.com>2021-07-02 09:21:11 -0300
committerJacopo Mondi <jacopo@jmondi.org>2021-07-06 12:40:47 +0200
commit034e0e81a2884c456eb191753ffb023fb8107062 (patch)
treee08e643f3b55de580d6e3c8d65d539e8eec1e102 /src/ipa/raspberrypi/controller/awb_algorithm.hpp
parentb0bf6b0aa90e2ce94ec77e389eea0e5849f2eaec (diff)
lc-compliance: Make SimpleCapture::stop() idempotent
Make SimpleCapture::stop() be able to be called multiple times and at any point so that it can be called from the destructor and an assert failure can return immediately. Signed-off-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/ipa/raspberrypi/controller/awb_algorithm.hpp')
0 files changed, 0 insertions, 0 deletions
a id='n65' href='#n65'>65 66 67 68 69 70 71 72 73 74 75
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 * Copyright (C) 2019, Google Inc.
 *
 * v4l2_device.h - Common base for V4L2 video devices and subdevices
 */
#ifndef __LIBCAMERA_INTERNAL_V4L2_DEVICE_H__
#define __LIBCAMERA_INTERNAL_V4L2_DEVICE_H__

#include <map>
#include <memory>
#include <vector>

#include <linux/videodev2.h>

#include <libcamera/signal.h>

#include "libcamera/internal/log.h"
#include "libcamera/internal/v4l2_controls.h"

namespace libcamera {

class EventNotifier;

class V4L2Device : protected Loggable
{
public:
	void close();
	bool isOpen() const { return fd_ != -1; }

	const ControlInfoMap &controls() const { return controls_; }

	ControlList getControls(const std::vector<uint32_t> &ids);
	int setControls(ControlList *ctrls);

	const struct v4l2_query_ext_ctrl *controlInfo(uint32_t id) const;

	const std::string &deviceNode() const { return deviceNode_; }
	std::string devicePath() const;

	int setFrameStartEnabled(bool enable);