libcamera: ipu3: Formatting improvements
The LSP autoformatter doesn't like some of the current formatting, let's make it happier. Note that not all of its suggestions were accepted because readability is preferred and adjusting .clang-format may not be easy or possible. Signed-off-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
c9eb4a71f1
commit
759b0731d2
4 changed files with 18 additions and 16 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <libcamera/base/utils.h>
|
||||
|
||||
#include <libcamera/control_ids.h>
|
||||
|
||||
#include <libcamera/ipa/core_ipa_interface.h>
|
||||
|
||||
#include "libipa/histogram.h"
|
||||
|
@ -246,7 +247,6 @@ void Agc::process(IPAContext &context, [[maybe_unused]] const uint32_t frame,
|
|||
utils::Duration frameDuration = context.configuration.sensor.lineDuration
|
||||
* vTotal;
|
||||
metadata.set(controls::FrameDuration, frameDuration.get<std::micro>());
|
||||
|
||||
}
|
||||
|
||||
REGISTER_IPA_ALGORITHM(Agc, "Agc")
|
||||
|
|
|
@ -24,10 +24,11 @@
|
|||
|
||||
#include <libcamera/control_ids.h>
|
||||
#include <libcamera/framebuffer.h>
|
||||
#include <libcamera/request.h>
|
||||
|
||||
#include <libcamera/ipa/ipa_interface.h>
|
||||
#include <libcamera/ipa/ipa_module_info.h>
|
||||
#include <libcamera/ipa/ipu3_ipa_interface.h>
|
||||
#include <libcamera/request.h>
|
||||
|
||||
#include "libcamera/internal/mapped_framebuffer.h"
|
||||
#include "libcamera/internal/yaml_parser.h"
|
||||
|
@ -308,8 +309,8 @@ int IPAIPU3::init(const IPASettings &settings,
|
|||
|
||||
/* Clean context */
|
||||
context_.configuration = {};
|
||||
context_.configuration.sensor.lineDuration = sensorInfo.minLineLength
|
||||
* 1.0s / sensorInfo.pixelRate;
|
||||
context_.configuration.sensor.lineDuration =
|
||||
sensorInfo.minLineLength * 1.0s / sensorInfo.pixelRate;
|
||||
|
||||
/* Load the tuning data file. */
|
||||
File file(settings.configurationFile);
|
||||
|
@ -472,8 +473,8 @@ int IPAIPU3::configure(const IPAConfigInfo &configInfo,
|
|||
context_.frameContexts.clear();
|
||||
|
||||
/* Initialise the sensor configuration. */
|
||||
context_.configuration.sensor.lineDuration = sensorInfo_.minLineLength
|
||||
* 1.0s / sensorInfo_.pixelRate;
|
||||
context_.configuration.sensor.lineDuration =
|
||||
sensorInfo_.minLineLength * 1.0s / sensorInfo_.pixelRate;
|
||||
context_.configuration.sensor.size = sensorInfo_.outputSize;
|
||||
|
||||
/*
|
||||
|
|
|
@ -18,12 +18,13 @@
|
|||
#include <libcamera/camera.h>
|
||||
#include <libcamera/control_ids.h>
|
||||
#include <libcamera/formats.h>
|
||||
#include <libcamera/ipa/ipu3_ipa_interface.h>
|
||||
#include <libcamera/ipa/ipu3_ipa_proxy.h>
|
||||
#include <libcamera/property_ids.h>
|
||||
#include <libcamera/request.h>
|
||||
#include <libcamera/stream.h>
|
||||
|
||||
#include <libcamera/ipa/ipu3_ipa_interface.h>
|
||||
#include <libcamera/ipa/ipu3_ipa_proxy.h>
|
||||
|
||||
#include "libcamera/internal/camera.h"
|
||||
#include "libcamera/internal/camera_lens.h"
|
||||
#include "libcamera/internal/camera_sensor.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue