[libcamera-devel] [PATCH 1/4] utils: rkisp1: Remove frames before starting capture

Laurent Pinchart laurent.pinchart at ideasonboard.com
Mon Jun 20 23:06:55 CEST 2022


Delete frames previously captured before starting a new capture, to
avoid mixing old and new frames.

Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
 utils/rkisp1/rkisp1-capture.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/rkisp1/rkisp1-capture.sh b/utils/rkisp1/rkisp1-capture.sh
index 4d09f5d5f01b..d5ebe5b1d1ba 100755
--- a/utils/rkisp1/rkisp1-capture.sh
+++ b/utils/rkisp1/rkisp1-capture.sh
@@ -88,6 +88,7 @@ capture_frames() {
 
 	if [[ $save_file -eq 1 ]]; then
 		file_op="--file=/tmp/frame-#.bin"
+		rm -f /tmp/frame-*.bin
 	fi
 
 	yavta -c$frame_count -n5 -I -f $capture_format -s $capture_size \
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list