Files
external_libcamera/include/libcamera/ipa/ipa_interface.h
Paul Elder 17e8f6f71c utils: ipc: Include instead of forward-declare CameraSensorInfo
For structs defined in core.mojom that have the skipHeader tag, if
they're only used in function parameters (in a mojom file) then a
forward-declaration is sufficient. However, if the struct is used in
another struct in a mojom file, then the forward-declaration is
insufficient, and the definition needs to be included. Do so for
CameraSensorInfo, which is the only forward-declared struct in
ipa_interface.h, and update the documentation comment.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Tested-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-04-27 17:34:55 +09:00

43 lines
799 B
C++

/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* ipa_interface.h - Image Processing Algorithm interface
*/
#ifndef __LIBCAMERA_IPA_INTERFACE_H__
#define __LIBCAMERA_IPA_INTERFACE_H__
#include <stddef.h>
#include <stdint.h>
#include <map>
#include <vector>
#include <libcamera/buffer.h>
#include <libcamera/controls.h>
#include <libcamera/geometry.h>
#include <libcamera/signal.h>
#include "libcamera/internal/camera_sensor.h"
namespace libcamera {
/*
* Structs that are defined in core.mojom and have the skipHeader tag must be
* #included here.
*/
class IPAInterface
{
public:
virtual ~IPAInterface() = default;
};
} /* namespace libcamera */
extern "C" {
libcamera::IPAInterface *ipaCreate();
}
#endif /* __LIBCAMERA_IPA_INTERFACE_H__ */