summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/rotate-ccw.svg
diff options
context:
space:
mode:
authorUmang Jain <umang.jain@ideasonboard.com>2021-05-24 14:50:18 +0530
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-05-24 14:13:01 +0300
commitff9276cc626dce468d0f2aa63a908a836a7a33d5 (patch)
tree5fe050d58dc93c5d200033210e0b98b4c160d9a0 /src/qcam/assets/feathericons/rotate-ccw.svg
parentb9d55fe69ebb6bf146cf8696771faf61fa366762 (diff)
ipa: Move core IPA interface documentation to a .cpp file
Moving the core.mojom documentation to its corresponding .cpp file (core_ipa_interface.cpp). This will allow Doxygen to generate the documentation for IPABuffer, IPASettings and IPAStream structures. Since the .mojom files are placed in include/ directory, the .cpp file will live in $sourcedir/src/libcamera/ipa/ - which can also contain documentation for other mojom generated IPA interfaces in subsequent commit. Also hide the constructors in generated IPA interface from doxygen, via #ifndef __DOXYGEN__. These constructors provide no major value in documenting them, instead will spew out doxygen warnings during the build. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/assets/feathericons/rotate-ccw.svg')
0 files changed, 0 insertions, 0 deletions
an>() override; void configure([[maybe_unused]] const CameraSensorInfo &sensorInfo, [[maybe_unused]] const std::map<unsigned int, IPAStream> &streamConfig, [[maybe_unused]] const std::map<unsigned int, const ControlInfoMap &> &entityControls, [[maybe_unused]] const IPAOperationData &ipaConfig, [[maybe_unused]] IPAOperationData *result) override {} void mapBuffers([[maybe_unused]] const std::vector<IPABuffer> &buffers) override {} void unmapBuffers([[maybe_unused]] const std::vector<unsigned int> &ids) override {} void processEvent([[maybe_unused]] const IPAOperationData &event) override {} private: void initTrace(); void trace(enum IPAOperationCode operation); int fd_; }; IPAVimc::IPAVimc() : fd_(-1) { initTrace(); } IPAVimc::~IPAVimc() { if (fd_ != -1) ::close(fd_); } int IPAVimc::init(const IPASettings &settings) { trace(IPAOperationInit); LOG(IPAVimc, Debug) << "initializing vimc IPA with configuration file " << settings.configurationFile; File conf(settings.configurationFile); if (!conf.open(File::ReadOnly)) { LOG(IPAVimc, Error) << "Failed to open configuration file"; return -EINVAL; } return 0; } int IPAVimc::start() { trace(IPAOperationStart); LOG(IPAVimc, Debug) << "start vimc IPA!"; return 0; } void IPAVimc::stop() { trace(IPAOperationStop); LOG(IPAVimc, Debug) << "stop vimc IPA!"; } void IPAVimc::initTrace() { struct stat fifoStat; int ret = stat(VIMC_IPA_FIFO_PATH, &fifoStat); if (ret) return; ret = ::open(VIMC_IPA_FIFO_PATH, O_WRONLY); if (ret < 0) { ret = errno; LOG(IPAVimc, Error) << "Failed to open vimc IPA test FIFO: " << strerror(ret); return; } fd_ = ret; } void IPAVimc::trace(enum IPAOperationCode operation) { if (fd_ < 0) return; int ret = ::write(fd_, &operation, sizeof(operation)); if (ret < 0) { ret = errno; LOG(IPAVimc, Error) << "Failed to write to vimc IPA test FIFO: " << strerror(ret); } } /* * External IPA module interface */ extern "C" { const struct IPAModuleInfo ipaModuleInfo = { IPA_MODULE_API_VERSION, 0, "PipelineHandlerVimc", "vimc", }; struct ipa_context *ipaCreate() { return new IPAInterfaceWrapper(std::make_unique<IPAVimc>()); } } } /* namespace libcamera */