From 1cc1015fe8d97d0036fd18de7344f50d968c8569 Mon Sep 17 00:00:00 2001 From: capitalistspz Date: Mon, 2 Sep 2024 21:06:18 +0100 Subject: [PATCH 1/2] Event arg correction from surface to surface buffer --- include/camera/camera.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/camera/camera.h b/include/camera/camera.h index 9787eb2ff..0d2a63995 100644 --- a/include/camera/camera.h +++ b/include/camera/camera.h @@ -73,8 +73,8 @@ struct CAMEventData { struct { - //! The surface that finished decoding - CAMSurface* surface; + //! Pointer to the buffer of the decoded image + void* surfaceBuffer; //! Handle of instance CAMHandle handle; //! TRUE if decode failed From 12a20e648fbbd44690c0eccf6af8c205b59b4ea4 Mon Sep 17 00:00:00 2001 From: capitalistspz Date: Mon, 2 Sep 2024 21:22:22 +0100 Subject: [PATCH 2/2] Correct offset check --- include/camera/camera.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/camera/camera.h b/include/camera/camera.h index 0d2a63995..55c457ec0 100644 --- a/include/camera/camera.h +++ b/include/camera/camera.h @@ -92,7 +92,7 @@ struct CAMEventData }; }; WUT_CHECK_OFFSET(CAMEventData, 0x00, eventType); -WUT_CHECK_OFFSET(CAMEventData, 0x04, decode.surface); +WUT_CHECK_OFFSET(CAMEventData, 0x04, decode.surfaceBuffer); WUT_CHECK_OFFSET(CAMEventData, 0x08, decode.handle); WUT_CHECK_OFFSET(CAMEventData, 0x0c, decode.failed); WUT_CHECK_OFFSET(CAMEventData, 0x04, detach.connected);