libcamera: software_isp: Add contrast control
This patch introduces support for applying runtime controls to software ISP. It enables the contrast control as the first control that can be used. Signed-off-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
9135aacff1
commit
3930b94021
@@ -13,6 +13,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <libcamera/controls.h>
|
||||
#include <libcamera/formats.h>
|
||||
#include <libcamera/stream.h>
|
||||
|
||||
@@ -60,9 +61,11 @@ LOG_DEFINE_CATEGORY(SoftwareIsp)
|
||||
* \brief Constructs SoftwareIsp object
|
||||
* \param[in] pipe The pipeline handler in use
|
||||
* \param[in] sensor Pointer to the CameraSensor instance owned by the pipeline
|
||||
* \param[out] ipaControls The IPA controls to update
|
||||
* handler
|
||||
*/
|
||||
SoftwareIsp::SoftwareIsp(PipelineHandler *pipe, const CameraSensor *sensor)
|
||||
SoftwareIsp::SoftwareIsp(PipelineHandler *pipe, const CameraSensor *sensor,
|
||||
ControlInfoMap *ipaControls)
|
||||
: dmaHeap_(DmaBufAllocator::DmaBufAllocatorFlag::CmaHeap |
|
||||
DmaBufAllocator::DmaBufAllocatorFlag::SystemHeap |
|
||||
DmaBufAllocator::DmaBufAllocatorFlag::UDmaBuf)
|
||||
@@ -124,7 +127,8 @@ SoftwareIsp::SoftwareIsp(PipelineHandler *pipe, const CameraSensor *sensor)
|
||||
int ret = ipa_->init(IPASettings{ ipaTuningFile, sensor->model() },
|
||||
debayer_->getStatsFD(),
|
||||
sharedParams_.fd(),
|
||||
sensor->controls());
|
||||
sensor->controls(),
|
||||
ipaControls);
|
||||
if (ret) {
|
||||
LOG(SoftwareIsp, Error) << "IPA init failed";
|
||||
debayer_.reset();
|
||||
|
||||
Reference in New Issue
Block a user