From 3226d1026637ce7106a14dda0b47f0c2a265ec9d Mon Sep 17 00:00:00 2001 From: Derek Snell Date: Mon, 22 Jul 2024 16:40:58 -0400 Subject: [PATCH] samples: video: capture: leverage PXP to flip image PXP can flip image written to the frame buffer. Provide a mirror image on the display by flipping the camera image horizontally. Enabled on boards mimxrt1066_evk and mimxrt1060_evkb. Signed-off-by: Derek Snell --- samples/subsys/video/capture/boards/mimxrt1060_evkb.conf | 4 ++++ samples/subsys/video/capture/boards/mimxrt1064_evk.conf | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 samples/subsys/video/capture/boards/mimxrt1060_evkb.conf create mode 100644 samples/subsys/video/capture/boards/mimxrt1064_evk.conf diff --git a/samples/subsys/video/capture/boards/mimxrt1060_evkb.conf b/samples/subsys/video/capture/boards/mimxrt1060_evkb.conf new file mode 100644 index 00000000000..55ff96ee215 --- /dev/null +++ b/samples/subsys/video/capture/boards/mimxrt1060_evkb.conf @@ -0,0 +1,4 @@ +# Leverage PXP to mirror image by flipping +CONFIG_DMA=y +CONFIG_MCUX_ELCDIF_PXP=y +CONFIG_MCUX_ELCDIF_PXP_FLIP_HORIZONTAL=y diff --git a/samples/subsys/video/capture/boards/mimxrt1064_evk.conf b/samples/subsys/video/capture/boards/mimxrt1064_evk.conf new file mode 100644 index 00000000000..55ff96ee215 --- /dev/null +++ b/samples/subsys/video/capture/boards/mimxrt1064_evk.conf @@ -0,0 +1,4 @@ +# Leverage PXP to mirror image by flipping +CONFIG_DMA=y +CONFIG_MCUX_ELCDIF_PXP=y +CONFIG_MCUX_ELCDIF_PXP_FLIP_HORIZONTAL=y