ipa: raspberrypi: Pass lens shading table through configure() function

The IPAInterface::configure() function now accepts custom configuration
data. Use it to pass the lens shading table instead of using a custom
IPA event. This will allow starting the IPA when starting the camera,
instead of pre-starting it early in order to process the lens shading
table allocation event.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
This commit is contained in:
Laurent Pinchart
2020-06-29 00:42:20 +03:00
parent c0b0b7205c
commit 40ed8b3b75
3 changed files with 14 additions and 13 deletions
+4 -1
View File
@@ -10,6 +10,10 @@
#include <libcamera/control_ids.h>
#include <libcamera/controls.h>
enum RPiConfigParameters {
RPI_IPA_CONFIG_LS_TABLE = (1 << 0),
};
enum RPiOperations {
RPI_IPA_ACTION_V4L2_SET_STAGGERED = 1,
RPI_IPA_ACTION_V4L2_SET_ISP,
@@ -21,7 +25,6 @@ enum RPiOperations {
RPI_IPA_EVENT_SIGNAL_STAT_READY,
RPI_IPA_EVENT_SIGNAL_ISP_PREPARE,
RPI_IPA_EVENT_QUEUE_REQUEST,
RPI_IPA_EVENT_LS_TABLE_ALLOCATION,
};
enum RPiIpaMask {