summaryrefslogtreecommitdiff
path: root/include/libcamera/ipa
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2020-09-18 10:42:33 +0100
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-09-21 13:10:49 +0200
commit39798e8777b553ed9ae9863da02e16e417d8307e (patch)
treee2915e2dd0b0bc015227077851f4095cad59c7d4 /include/libcamera/ipa
parentdd0df6d73965bc8566ad97d0e005545a71b7b409 (diff)
pipeline: ipa: raspberrypi: Handle any externally allocated FrameBuffer
Handle the case where a FrameBuffer that has been externally allocated (i.e. not through the v4l2 video device) is passed into a Request. We must store the buffer pointer in the stream internal buffer list to identify when used. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include/libcamera/ipa')
-rw-r--r--include/libcamera/ipa/raspberrypi.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/libcamera/ipa/raspberrypi.h b/include/libcamera/ipa/raspberrypi.h
index 262fc6f3..dd6ebeac 100644
--- a/include/libcamera/ipa/raspberrypi.h
+++ b/include/libcamera/ipa/raspberrypi.h
@@ -28,11 +28,12 @@ enum RPiOperations {
RPI_IPA_EVENT_QUEUE_REQUEST,
};
-enum RPiIpaMask {
- ID = 0x0ffff,
- STATS = 0x10000,
- EMBEDDED_DATA = 0x20000,
- BAYER_DATA = 0x40000
+enum RPiBufferMask {
+ ID = 0x00ffff,
+ STATS = 0x010000,
+ EMBEDDED_DATA = 0x020000,
+ BAYER_DATA = 0x040000,
+ EXTERNAL_BUFFER = 0x100000,
};
/* Size of the LS grid allocation. */